plexts 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +17 -6
- data/bin/plexts +5 -1
- data/lib/plexts/version.rb +1 -1
- data/lib/plexts.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43ff1927597abbe62d665958fae462f59a765305
|
4
|
+
data.tar.gz: c3ff07fe2b7528d8d77881412be1e0ff65f2ec4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 659b05271c6b40396d007312f5935eaeec4a947cf92cdb2db97af346667f83b320b5fb3f216bf709661401822cfdba6745b5dcf01b1b5c6ccefb7aed2d606ef3
|
7
|
+
data.tar.gz: 31dc7830a1ea86abb1d129661368cc61a9f736db0bc2098b561eb8b02a555e58a61d9c449153b389202abca31238cc561050c4b48c45ec430f965b28b2b18dfc
|
data/README.md
CHANGED
@@ -11,15 +11,14 @@ Ingress Intel Map API Caller
|
|
11
11
|
## Setup
|
12
12
|
|
13
13
|
```
|
14
|
-
cp .
|
14
|
+
cp intel.yml.sample intel.yml
|
15
15
|
```
|
16
16
|
|
17
|
-
|
17
|
+
Fill `intel.yml` with your intel credentials
|
18
18
|
|
19
19
|
## Using CLI
|
20
20
|
|
21
|
-
|
22
|
-
```
|
21
|
+
```Shell
|
23
22
|
$ rake build
|
24
23
|
plexts 0.0.1 built to pkg/plexts-0.0.1.gem.
|
25
24
|
$ gem install pkg/plexts-0.0.1.gem
|
@@ -32,12 +31,24 @@ $ plexts -h
|
|
32
31
|
Usage: plexts [options]
|
33
32
|
-c, --console show all or faction, aleart messages
|
34
33
|
-e, --entity show portals infomation of JSON format
|
35
|
-
--
|
36
|
-
--
|
34
|
+
--minlat VALUE south west area latitude
|
35
|
+
--minlng VALUE south west area longitude
|
36
|
+
--maxlat VALUE north east area latitude
|
37
|
+
--maxlng VALUE north east area longitude
|
37
38
|
-z VALUE map zoom level 1-20
|
38
39
|
-a, --artifacts artifacts infomation of JSON format
|
39
40
|
```
|
40
41
|
|
42
|
+
## Using in Rails
|
43
|
+
In your Gemfile:
|
44
|
+
|
45
|
+
```Ruby
|
46
|
+
gem 'plexts'
|
47
|
+
```
|
48
|
+
|
49
|
+
Don't forget to put `intel.yml` in root of your project
|
50
|
+
|
51
|
+
|
41
52
|
## Caution
|
42
53
|
|
43
54
|
This application should be used at your own risk.
|
data/bin/plexts
CHANGED
@@ -10,11 +10,13 @@ def cmd_line
|
|
10
10
|
args = {}
|
11
11
|
opts = OptionParser.new do |parser|
|
12
12
|
parser.on('-c', '--console', 'show all or faction, aleart messages') {|v| args[:c] = v}
|
13
|
-
parser.on('-e', '--entity', 'show
|
13
|
+
parser.on('-e', '--entity', 'show entities infomation of JSON format') {|v| args[:e] = v}
|
14
14
|
parser.on('--minlat VALUE', 'south west area latitude') {|v| args[:lat1] = v}
|
15
15
|
parser.on('--minlng VALUE', 'south west area longitude') {|v| args[:lng1] = v}
|
16
16
|
parser.on('--maxlat VALUE', 'north east area latitude') {|v| args[:lat2] = v}
|
17
17
|
parser.on('--maxlng VALUE', 'north east area longitude') {|v| args[:lng2] = v}
|
18
|
+
parser.on('-p', '--portal', 'show portal infomation of JSON format') {|v| args[:p] = v}
|
19
|
+
parser.on('--guid VALUE', 'portal guid') {|v| args[:guid] = v}
|
18
20
|
parser.on('-z VALUE', 'map zoom level 1-20') {|v| args[:z] = v}
|
19
21
|
parser.on('-a', '--artifacts', 'artifacts infomation of JSON format') {|v| args[:a] = v}
|
20
22
|
parser.parse!(ARGV)
|
@@ -37,6 +39,8 @@ elsif args[:e]
|
|
37
39
|
else
|
38
40
|
Plexts.get_entities(args[:lat1].to_f, args[:lng1].to_f, args[:lat2].to_f, args[:lng2].to_f)
|
39
41
|
end
|
42
|
+
elsif args[:p]
|
43
|
+
Plexts.get_portal_details(args[:guid])
|
40
44
|
elsif args[:a]
|
41
45
|
Plexts.get_artifacts()
|
42
46
|
end
|
data/lib/plexts/version.rb
CHANGED
data/lib/plexts.rb
CHANGED