plexts 0.0.7 → 0.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43ff1927597abbe62d665958fae462f59a765305
4
- data.tar.gz: c3ff07fe2b7528d8d77881412be1e0ff65f2ec4e
3
+ metadata.gz: ed0e96e0eb4d6a394f1bfb3de0314726ada1056e
4
+ data.tar.gz: b6bd1be73c638ebd8c06cca80e4273d7a1400bb8
5
5
  SHA512:
6
- metadata.gz: 659b05271c6b40396d007312f5935eaeec4a947cf92cdb2db97af346667f83b320b5fb3f216bf709661401822cfdba6745b5dcf01b1b5c6ccefb7aed2d606ef3
7
- data.tar.gz: 31dc7830a1ea86abb1d129661368cc61a9f736db0bc2098b561eb8b02a555e58a61d9c449153b389202abca31238cc561050c4b48c45ec430f965b28b2b18dfc
6
+ metadata.gz: f57a48e32957be0954c2076817aa67609c9b6bb5d765d7e744e47a9bd7fa59e357776ce065d36a46bb82a9a6e6dab2c6fae690d73708bb695ac59712d6a5e77c
7
+ data.tar.gz: 5e4b7aa2fb7109656402e6cbe2e45a14c981d51d8cadc2cd3ba890fdff7c3e0ba6122a2aebdc0e1dce2f2a79e714d15ba69eafb21f396852aeb5be1349620834
data/README.md CHANGED
@@ -30,11 +30,13 @@ $ rbenb rehash # If necessary
30
30
  $ plexts -h
31
31
  Usage: plexts [options]
32
32
  -c, --console show all or faction, aleart messages
33
- -e, --entity show portals infomation of JSON format
33
+ -e, --entity show entities infomation of JSON format
34
34
  --minlat VALUE south west area latitude
35
35
  --minlng VALUE south west area longitude
36
36
  --maxlat VALUE north east area latitude
37
37
  --maxlng VALUE north east area longitude
38
+ -p, --portal show portal infomation of JSON format
39
+ --guid VALUE portal guid
38
40
  -z VALUE map zoom level 1-20
39
41
  -a, --artifacts artifacts infomation of JSON format
40
42
  ```
@@ -48,6 +50,19 @@ gem 'plexts'
48
50
 
49
51
  Don't forget to put `intel.yml` in root of your project
50
52
 
53
+ ```Ruby
54
+ Plexts::get_artifacts
55
+ # => {}
56
+
57
+ # COMM log
58
+ Plexts.get_plexts(minLatE6, minLngE6, maxLatE6, maxLngE6)
59
+
60
+ # Map entities
61
+ Plexts.get_entities(minLatE6, minLngE6, maxLatE6, maxLngE6, zoom)
62
+
63
+ # Portal details
64
+ Plexts.get_portal_details('d431c89010b4434da63e4b6070e6c414.12')
65
+ ```
51
66
 
52
67
  ## Caution
53
68
 
@@ -0,0 +1,9 @@
1
+ module Plexts
2
+
3
+ def self.get_portal_details(guid)
4
+ body = {
5
+ "guid" => guid
6
+ }
7
+ get_intel_data('https://www.ingress.com/r/getPortalDetails', body)
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module Plexts
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - tfunato
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-21 00:00:00.000000000 Z
12
+ date: 2015-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -75,6 +75,7 @@ files:
75
75
  - lib/plexts/entities.rb
76
76
  - lib/plexts/intel_data.rb
77
77
  - lib/plexts/plexts.rb
78
+ - lib/plexts/portal_details.rb
78
79
  - lib/plexts/to_console.rb
79
80
  - lib/plexts/version.rb
80
81
  - plexts.gemspec
@@ -100,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  version: '0'
101
102
  requirements: []
102
103
  rubyforge_project:
103
- rubygems_version: 2.4.5
104
+ rubygems_version: 2.4.8
104
105
  signing_key:
105
106
  specification_version: 4
106
107
  summary: Ingress COMM API caller.