arcgis-ruby 0.0.0 → 0.0.2
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 +2 -0
- data/arcgis-ruby.gemspec +2 -2
- data/lib/arcgis/connection.rb +2 -2
- data/lib/routes.rb +0 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f74045e71ec2f7c8c91bb039378dd67a166cf09f
|
|
4
|
+
data.tar.gz: 075af48d5091c5e4511d2772e37c3ee49ef52388
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 902702e74e6ffb027728e12c63eff53da4d282306a8585ea9af0a8f3294919b19e8da0a7af9203094368ce3e64c01d646883d3800affe77e95a5ae234e3b1a22
|
|
7
|
+
data.tar.gz: 0800f4a49d5152a28ecff0c6c8fdb331f7d5858c48012bebf873fd1c73100a2ae363a05dca8c39d97078f61259112a585661472b40e018cce800ac8c0e969b55
|
data/README.md
CHANGED
|
@@ -14,6 +14,8 @@ Just install using Rubygems:
|
|
|
14
14
|
|
|
15
15
|
## Instructions
|
|
16
16
|
|
|
17
|
+
The @lib/arcgis/routes.rb@ file has a list of available actions that the gem supports. The example below should make it clear how this routes file translates into code.
|
|
18
|
+
|
|
17
19
|
```ruby
|
|
18
20
|
# Create a client
|
|
19
21
|
connection = Arcgis::Connection.new(host: "http://www.arcgis.com/sharing/rest/")
|
data/arcgis-ruby.gemspec
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "arcgis-ruby"
|
|
6
|
-
s.version = "0.0.
|
|
6
|
+
s.version = "0.0.2"
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.require_paths = ["lib"]
|
|
10
10
|
s.authors = ["Jake Sower"]
|
|
11
|
-
s.date = "
|
|
11
|
+
s.date = Time.now.strftime("%Y-%m-%d")
|
|
12
12
|
s.email = "jsower@esri.com"
|
|
13
13
|
s.summary = "A simple wrapper for ArcGIS Online sharing API"
|
|
14
14
|
s.license = 'apache'
|
data/lib/arcgis/connection.rb
CHANGED
|
@@ -6,9 +6,9 @@ class Arcgis::Connection
|
|
|
6
6
|
#
|
|
7
7
|
# Take in username/password upon initialization
|
|
8
8
|
#
|
|
9
|
-
def initialize(host:, username: nil, password: nil)
|
|
9
|
+
def initialize(host:, username: nil, password: nil, token: nil)
|
|
10
10
|
@host = host.sub(/\/$/,'')
|
|
11
|
-
@token, @token_expires =
|
|
11
|
+
@token, @token_expires = token, nil
|
|
12
12
|
@username, @password = username, password
|
|
13
13
|
|
|
14
14
|
if username && password
|
data/lib/routes.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: arcgis-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jake Sower
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|