airrecord 1.0.7 → 1.0.10

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: deb117e05bbf701e4e1e60cf3cccc659a173c7d4f1fc5cb6f80ee72af5603b0e
4
- data.tar.gz: a4e928fbd33774f2d41508136da24e56eb2687775c2b962912df86e99eb34bdf
3
+ metadata.gz: 2140fe15354970d81a69ca08eccffeae0b01bdb2b479f90081cca5304438fbd2
4
+ data.tar.gz: 76ce4af2fb471aa3a04e95b7e03481c9421120b5a5875afa5c3c1aa9d4b2dc00
5
5
  SHA512:
6
- metadata.gz: 890dbffd8a3489d505db3da5149cefeb85acbee754d0cc39a9ecf15e5d38b145735df895de9a16a747e20a0b92ae533e01a954e21220d0e044beb7e73ddc3c3e
7
- data.tar.gz: 518f7f4cbc0559bb20931ba39a7c000a5ed632075ebd6ce41ff4555334c5c31251256b1f92105d8cd44b21b93b79e52e6b820ab2f5875bbd26a219dd3334967b
6
+ metadata.gz: f8817c39c254feb9cefe90305193954e689d949014bc348b4d2a053e4b850244781cd571f376e10a5b5f70d3b8db2b1bb6a4ede2eac5758293bb021baaabdc26
7
+ data.tar.gz: df2f9499f1cf610bce130acad4d498453bcc6ecb0da2b204eac0ba471132267ec39c4b9449e44ed2a19c05462b871c081aefe332e808d18cb244f41bdad27b25
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # 1.0.10
2
+
3
+ * No longer compatible with Faraday < 1
4
+
5
+ # 1.0.9
6
+
7
+ * Faraday 2 compatibility round 2 (#90)
8
+
9
+ # 1.0.8
10
+
11
+ * Faraday 2 compatibility (#88)
12
+
1
13
  # 1.0.7
2
14
 
3
15
  * Further Ruby 3 compatibility, in particular with Faraday (#83)
data/airrecord.gemspec CHANGED
@@ -21,8 +21,9 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ["lib"]
22
22
  spec.required_ruby_version = ">= 2.2"
23
23
 
24
- spec.add_dependency "faraday", [">= 0.10", "< 2.0"]
24
+ spec.add_dependency "faraday", [">= 1.0", "< 3.0"]
25
25
  spec.add_dependency "net-http-persistent"
26
+ spec.add_dependency "faraday-net_http_persistent"
26
27
 
27
28
  spec.add_development_dependency "bundler", "~> 2"
28
29
  spec.add_development_dependency "byebug"
@@ -1,9 +1,11 @@
1
1
  require 'airrecord'
2
2
 
3
+ p Faraday::VERSION
4
+
3
5
  Tea = Airrecord.table(
4
6
  ENV["AIRTABLE_TOKEN"],
5
7
  "appZJC9q8TBYPDF7j",
6
8
  "Teas"
7
9
  )
8
10
 
9
- p Tea.all
11
+ # p Tea.all
@@ -43,8 +43,8 @@ module Airrecord
43
43
  end
44
44
 
45
45
  def handle_error(status, error)
46
- if error.is_a?(Hash)
47
- raise Error, "HTTP #{status}: #{error['error']["type"]}: #{error['error']['message']}"
46
+ if error.is_a?(Hash) && error['error']
47
+ raise Error, "HTTP #{status}: #{error['error']['type']}: #{error['error']['message']}"
48
48
  else
49
49
  raise Error, "HTTP #{status}: Communication error: #{error}"
50
50
  end
@@ -1,3 +1,3 @@
1
1
  module Airrecord
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.10"
3
3
  end
data/lib/airrecord.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require "json"
2
2
  require "faraday"
3
+ require 'faraday/net_http_persistent'
3
4
  require "time"
4
5
  require "airrecord/version"
5
6
  require "airrecord/client"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airrecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Eskildsen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-03 00:00:00.000000000 Z
11
+ date: 2022-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.10'
19
+ version: '1.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '2.0'
22
+ version: '3.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.10'
29
+ version: '1.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '2.0'
32
+ version: '3.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: net-http-persistent
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -44,6 +44,20 @@ dependencies:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: faraday-net_http_persistent
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
47
61
  - !ruby/object:Gem::Dependency
48
62
  name: bundler
49
63
  requirement: !ruby/object:Gem::Requirement
@@ -143,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
157
  - !ruby/object:Gem::Version
144
158
  version: '0'
145
159
  requirements: []
146
- rubygems_version: 3.2.15
160
+ rubygems_version: 3.3.3
147
161
  signing_key:
148
162
  specification_version: 4
149
163
  summary: Airtable client