Skip to content

Commit 026f26f

Browse files
committed
updates
1 parent 1d0074b commit 026f26f

5 files changed

Lines changed: 18 additions & 6 deletions

File tree

Prototypes/PacletInfo.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Description -> "A paclet for prototype functions",
44
Creator -> "Arnoud Buzing",
55
Publisher -> "Wolfram Research",
6-
Version -> "0.5.4",
7-
MathematicaVersion -> "11.2+",
6+
Version -> "0.5.5",
7+
MathematicaVersion -> "11.3+",
88
Loading -> Automatic,
99
Thumbnail -> "icons/icon.png",
1010
Extensions -> {
@@ -60,7 +60,8 @@
6060
"Prototypes`CacheClear", "Prototypes`SatelliteImage","Prototypes`PlaceholderImage","Prototypes`ResourceFunctionSearch",
6161
"Prototypes`Redder","Prototypes`Bluer", "Prototypes`Greener", "Prototypes`Yellower", "Prototypes`Oranger",
6262
"Prototypes`Pinker", "Prototypes`Purpler", "Prototypes`Blacker", "Prototypes`Grayer", "Prototypes`Whiter",
63-
"Prototypes`AddCodeCompletion", "Prototypes`RasterizeLargeCells", "Prototypes`RandomDate", "Prototypes`MessageBlock"}
63+
"Prototypes`AddCodeCompletion", "Prototypes`RasterizeLargeCells", "Prototypes`RandomDate", "Prototypes`MessageBlock",
64+
"Prototypes`IPStack"}
6465
}
6566
}
6667
]

Prototypes/Prototypes.wl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Module[ {files},
2020
"Image.wl", "Language.wl", "Paclet.wl", "Formats.wl",
2121
"Resources.wl", "Search.wl", "String.wl", "System.wl", "Color.wl", "Styles.wl",
2222
"Entities.wl", "WolframAlpha.wl", "Translation.wl","GeoGraphics.wl", "Words.wl", "Packages.wl", "Random.wl",
23-
"Cryptography.wl", "External.wl", "Service/What3Words.wl", "Service/OpenSky.wl", "Service/Satellite.wl", "Primes/Primes.wl",
24-
"Java/Runtime.wl", "Compiler/Build.wl"};
23+
"Cryptography.wl", "External.wl", "Service/What3Words.wl", "Service/OpenSky.wl", "Service/Satellite.wl", "Service/IPStack.wl",
24+
"Primes/Primes.wl", "Java/Runtime.wl", "Compiler/Build.wl"};
2525
Map[
2626
Function[ {file},
2727
AppendTo[ timings, file<>"-Before" -> N@SessionTime[] ];
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
IPStack[ip_String, key_String] := Module[{response},
2+
response = URLRead["http://api.ipstack.com/" <> ip <> "?access_key=" <> key];
3+
ImportByteArray[response["BodyByteArray"], "RawJSON"]
4+
];
5+
6+
IPStack[ip_IPAddress, key_String] := IPStack[First[ip], key]
7+
8+
IPStack[ips_List, key_String] := Dataset[ Map[ IPStack[#,key]&, ips] ];
9+

Prototypes/Usage.wl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,5 @@ RasterizeLargeCells::usage = "RasterizeLargeCells[nb,style] uses the 'BitmapCond
186186
RandomDate::usage = "RandomDate[] generates a random date between 1/1/1900 and today. RandomDate[date1,date2] generates a random date between 'date1' and date2'.";
187187

188188
MessageBlock::usage = "MessageBlock[expr,failure] suppresses all message output during the evaluation of 'expr'. If 'expr' generates messages, then 'failure' is evaluated without suppressing message output.";
189+
190+
IPStack::usage = "IPStack[ip,key] gives geographical information for IP address 'ip' using API access 'key' from https://ipstack.com (not included)";

build-with-documentation.wls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Print["\n=======================================================================
2222
Print["Building Documentation"];
2323
Print["================================================================================\n"];
2424

25-
PrependTo[$Path,"D:\\git\\pubs"];
25+
PrependTo[$Path,"D:\\git"];
2626

2727
Quiet[ Get["DocumentationBuild`"], {RunProcess::pnfd, StringReplace::strse}];
2828

0 commit comments

Comments
 (0)