plexts 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b337f4b3a6f76429fb6a22ea9a78e55cdc23797a
4
- data.tar.gz: c0a5968ffd838fd55abed0e980878649aef02c94
3
+ metadata.gz: 43ff1927597abbe62d665958fae462f59a765305
4
+ data.tar.gz: c3ff07fe2b7528d8d77881412be1e0ff65f2ec4e
5
5
  SHA512:
6
- metadata.gz: 18582f1e0725968006c7d748c8c28ef32218e22b501c8a66d7469ff87192078b9c8b43ecb503b29ffa3c75ca24aa30176c20a2ecc43ecbddb3e7d1da8a2a960b
7
- data.tar.gz: 7d177cf940d550db74ddaa5e87145186dc17bd8791cd3f84ccea180c22e9773768044576d00fd33354a923bf14d4bfcef32e5245e44d47aaa58bf8c365f3e0d1
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 .env.sample .env
14
+ cp intel.yml.sample intel.yml
15
15
  ```
16
16
 
17
- write .env
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
- --lat VALUE portal Latitude
36
- --lng VALUE portal Longitude
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 portals infomation of JSON format') {|v| args[:e] = v}
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
@@ -1,3 +1,3 @@
1
1
  module Plexts
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/plexts.rb CHANGED
@@ -3,6 +3,7 @@ require 'plexts/entities'
3
3
  require 'plexts/artifacts'
4
4
  require 'plexts/to_console'
5
5
  require 'plexts/intel_data'
6
+ require 'plexts/portal_details'
6
7
  require 'plexts/version'
7
8
 
8
9
  module Plexts
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plexts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - tfunato