agx 0.2.9 → 0.3.0

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
  SHA256:
3
- metadata.gz: 3b0750cd7f1147e136a2c60d8f2ebd023024960089ec9e94cb94260040f6296c
4
- data.tar.gz: 2596b52e80bf4de9dbeb784272a2c944b9ad24236850c440c897d4b378b3b812
3
+ metadata.gz: e857bc1af586908c17bd9d4979f4d6da3b973e27cec3fa30f5708e76babdf8ad
4
+ data.tar.gz: a0f1d070afad995898c7793d5fdcc5a52a58bcb4e6c0bef106e0a67d43fb1ed5
5
5
  SHA512:
6
- metadata.gz: 6c9213252680c8c44fbeb0f3564c0cffbbc8088d676294fde652d94e51b99e2f9c9e4282c138a0f7d85160d205bec3fc8a0b96e12a1de4b83979a8e4e6dcf2fd
7
- data.tar.gz: 83155d65446067ee1848ef52ba53d1862f2be84d751cc96c8f7bf1253c311b686b2f7a5616811bff1035f3c1ceb6a36bc94fea07ce3be67d052d53524e4bb32d
6
+ metadata.gz: e67bdc8cb9b810593cc3fd57b4332104fa005c8821250549b723d08eef6af666b444441ea3e08a9053841c68012b499b5eacf4d09d2f1ef6db13056a0cdf2586
7
+ data.tar.gz: 3ed758095b42bd65d51230ece29d2224380af76f1f0384fb2f4a9fa9341eded7d70a2a9d1b1b35db3a3e36d7f97b3dc17e19e539be311e6d9945d8d60d7c7ac4
data/README.md CHANGED
@@ -118,39 +118,6 @@ new_grower = {
118
118
  user_transaction_id = nil
119
119
  ```
120
120
 
121
- ### agX Pictures API
122
-
123
- *Note: The pictures API client implementation still needs more work.*
124
-
125
- Setup agX Pictures Client
126
-
127
- ```ruby
128
- @agx_pictures_client = Agx::Pictures::Client.new(
129
- client_id: "your_client_id",
130
- client_secret: "your_client_secret",
131
- version: "v1", # optional
132
- sync_id: "agx_user_sync_id",
133
- access_token: "agx_user_agx_token",
134
- refresh_token: "agx_user_refresh_token",
135
- token_expires_at: "access_token_expiration_timestamp",
136
- filepath: "/path/to/pictures/",
137
- prod: true # optional, false for QA
138
- )
139
- ```
140
-
141
- Make get requests for Pictures API images and metadata
142
-
143
- ***Currently only get requests are supported***
144
- ```ruby
145
-
146
- # Get metadata
147
- image_meta = @agx_pictures_client.get_metadata("661ee0c0-0cbc-4a7b-be39-1a9de49acc86")
148
-
149
- # Get image and save to {filepath}/{sync_id}_{picture_id}.jpeg
150
- image = @agx_pictures_client.get("661ee0c0-0cbc-4a7b-be39-1a9de49acc86")
151
- # => "/path/to/pictures/7_661ee0c0-0cbc-4a7b-be39-1a9de49acc86.jpeg"
152
- ```
153
-
154
121
  ## Development
155
122
 
156
123
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`.
@@ -119,7 +119,7 @@ module Agx
119
119
  site: @site,
120
120
  token_url: @token_url,
121
121
  connection_opts: {
122
- request: { timeout: 300 }
122
+ request: { timeout: 90 }
123
123
  }
124
124
  )
125
125
  end
@@ -205,7 +205,7 @@ module Agx
205
205
  ssl: { ca_path: "/usr/lib/ssl/certs" }
206
206
  },
207
207
  connection_opts: {
208
- request: { timeout: 300 }
208
+ request: { timeout: 90 }
209
209
  }
210
210
  }
211
211
  )
@@ -1,3 +1,3 @@
1
1
  module Agx
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryce Johnston
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-14 00:00:00.000000000 Z
11
+ date: 2020-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj