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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f39e8d5b9488d381e91dd22c73959b49ee2c720d
4
- data.tar.gz: 3057e9fbc612c01d768f2451d19179a67fbd71b2
3
+ metadata.gz: f74045e71ec2f7c8c91bb039378dd67a166cf09f
4
+ data.tar.gz: 075af48d5091c5e4511d2772e37c3ee49ef52388
5
5
  SHA512:
6
- metadata.gz: 367eda7819093deff8ee80653262efee20304b133ed69b4376c3587c263e33da3288055598646e93e68fccff3636094a140b41a2d282c78fa54591161f361dfe
7
- data.tar.gz: 05c380fedf779562e862059cc38999561461ce3b7c2507450882dd3b9a36e37de355409622665e1f0f0c19f8f91e914ea9506afaf741333b143ead76540268c3
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.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 = "2015-10-15"
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'
@@ -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 = nil, nil
11
+ @token, @token_expires = token, nil
12
12
  @username, @password = username, password
13
13
 
14
14
  if username && password
data/lib/routes.rb CHANGED
@@ -1,6 +1,3 @@
1
- # Provides pseudo-routes from local methods to AGOL URLs. These get loaded into
2
- # AGOL model objects via Agol::Model::load_routes.
3
-
4
1
  module Arcgis
5
2
  module Routes
6
3
  ROUTES = {
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.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-15 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus