ruby-trello 3.2.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -19
  3. data/lib/trello.rb +2 -2
  4. data/spec/spec_helper.rb +2 -3
  5. metadata +10 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46d6d62edf1eb8973cfea687f157402b32ab4741b4f5cf3c638dd3b2704d5ad8
4
- data.tar.gz: a31459e8d18d04b759be5ec6385b9fa75e55250fb691b37c484a639a799f8ee6
3
+ metadata.gz: 444768a08c6a6d45235a6a35d935870d9a18dfd3486e64067ba4cdececf34701
4
+ data.tar.gz: b3af839b451f934e29be6c6a5247c2945fc6d864182f70dc70be284f38c9cb55
5
5
  SHA512:
6
- metadata.gz: ca3cffbb4c3e0b3ce88ec21dade8b5a21bf0b2bedb2cdb259523fac0986632d521eb04f3c607273192cd4ce617b73005152507dedfa42c370b51cf75e4d1ec45
7
- data.tar.gz: 7b13d2e420d26fde4cdd62e09f7f199dd170102272f17c630554c2156aaee2ddc2f2f76a62a67707df23d252ce2723edd5de1b6697b64ca7ef2b9f30c6f56c15
6
+ metadata.gz: 5a719ac68ef702c5acb8e1cdccee07ff149f69c73e523f5c553823f68d3a7ac9643337b668218009f3c45138d69545dcde89946bad1b5f3fe464ea1ae6b0f020
7
+ data.tar.gz: 6a3f2dd5aee11df5ab30a08098174c70119e1ceac944d4b689e0fca4076d9dac198d06b63f376c8142fd4a825ac96645e34eacca260f1909257b2b7cfaf340b6
data/README.md CHANGED
@@ -15,22 +15,17 @@ to, please just [create an issue](https://github.com/jeremytregunna/ruby-trello/
15
15
 
16
16
  ## Requirements
17
17
 
18
- | Ruby \ ActiveModel | 4.2 | 5.2 | 6.0 | 6.1 | 7.0 |
19
- | ---- | ---- | ---- | ---- | ---- | ---- |
20
- | 2.5 | ✅ | ✅ | ✅ | ✅ | ❌ |
21
- | 2.6 | ✅ | ✅ | ✅ | ✅ | ❌ |
22
- | 2.7 | ❌ | ✅ | ✅ | ✅ | ✅ |
23
- | 3.0 | ❌ | ❌ | ✅ | ✅ | ✅ |
24
- | 3.1 | | | | | ✅ |
25
- | jRuby 9.3 | | | | ✅ | ❌ |
26
-
27
- Use the newest version for Ruby 2.5.0 or newer support.
28
-
29
- Use version 2.2.1 or earlier for Ruby 2.1 ~ 2.4 support.
30
-
31
- Use version 1.3.0 or earlier for Ruby 1.9.3 support.
32
-
33
- Use version 1.4.x or earlier for Ruby 2.0.0 support.
18
+ | Ruby \ ActiveModel | 6.0 | 6.1 | 7.0 |
19
+ | ---- | ---- | ---- | ---- |
20
+ | 2.7 | ✅ | ✅ | ✅ |
21
+ | 3.0 | ✅ | ✅ | ✅ |
22
+ | 3.1 | ✅ | ✅ | ✅ |
23
+
24
+ - Use the newest version for Ruby 2.7.0 or newer support.
25
+ - Use version 3.2.0 or earlier for Ruby 2.5 ~ 2.6 support.
26
+ - Use version 2.2.1 or earlier for Ruby 2.1 ~ 2.4 support.
27
+ - Use version 1.3.0 or earlier for Ruby 1.9.3 support.
28
+ - Use version 1.4.x or earlier for Ruby 2.0.0 support.
34
29
 
35
30
  ## Installation
36
31
 
@@ -89,13 +84,13 @@ All the calls this library makes to Trello require authentication using these ke
89
84
 
90
85
  #### HTTP Client
91
86
 
92
- By default, ruby-trello uses [rest-client](https://rubygems.org/gems/rest-client) for network calls. You can configure ruby-trello to use either rest-client or [faraday](https://rubygems.org/gems/faraday), depending on your project's needs. In the next major version, ruby-trello will not require either gem in the gemspec and will default to faraday if both are present.
87
+ ruby-trello requires either [rest-client](https://rubygems.org/gems/rest-client) or [faraday](https://rubygems.org/gems/faraday) to be present for network calls. You can configure ruby-trello to use either one, depending on your project's needs. If both are present, ruby-trello defaults to using faraday.
93
88
 
94
89
  ```ruby
95
90
  Trello.configure do |config|
96
- config.http_client = 'rest-client'
97
- # OR
98
91
  config.http_client = 'faraday'
92
+ # OR
93
+ config.http_client = 'rest-client'
99
94
  end
100
95
  ```
101
96
 
data/lib/trello.rb CHANGED
@@ -122,7 +122,7 @@ module Trello
122
122
  end
123
123
 
124
124
  # The order in which we will try the http clients
125
- HTTP_CLIENT_PRIORITY = %w(rest-client faraday)
125
+ HTTP_CLIENT_PRIORITY = %w(faraday rest-client)
126
126
  HTTP_CLIENTS = {
127
127
  'faraday' => Trello::TFaraday::TInternet,
128
128
  'rest-client' => Trello::TRestClient::TInternet
@@ -141,7 +141,7 @@ module Trello
141
141
  end
142
142
  end
143
143
 
144
- raise ConfigurationError, 'Trello requires either rest-client or faraday installed' unless client
144
+ raise ConfigurationError, 'Trello requires either faraday or rest-client installed' unless client
145
145
 
146
146
  client
147
147
  end
data/spec/spec_helper.rb CHANGED
@@ -4,8 +4,7 @@ require 'trello'
4
4
  require 'webmock/rspec'
5
5
  require 'stringio'
6
6
  require 'vcr'
7
-
8
- require 'pry-byebug' if RUBY_ENGINE != 'jruby'
7
+ require 'pry-byebug'
9
8
 
10
9
  VCR.configure do |config|
11
10
  config.default_cassette_options = { match_requests_on: %i[uri method body] }
@@ -74,7 +73,7 @@ module IntegrationHelpers
74
73
  Trello.configure do |config|
75
74
  config.developer_public_key = ENV['TRELLO_DEVELOPER_PUBLIC_KEY'] || 'developerpublickey'
76
75
  config.member_token = ENV['TRELLO_MEMBER_TOKEN'] || 'membertoken'
77
- config.http_client = ENV['HTTP_CLIENT_GEM'] || 'rest-client'
76
+ config.http_client = ENV['HTTP_CLIENT_GEM'] || 'faraday'
78
77
  end
79
78
  end
80
79
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-trello
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Tregunna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-30 00:00:00.000000000 Z
11
+ date: 2022-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.0
19
+ version: 6.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.0
26
+ version: 6.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: addressable
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -67,19 +67,19 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.4.5
69
69
  - !ruby/object:Gem::Dependency
70
- name: rest-client
70
+ name: faraday
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.8.0
75
+ version: '2.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.8.0
82
+ version: '2.0'
83
83
  description: A wrapper around the trello.com API.
84
84
  email: jeremy@tregunna.ca
85
85
  executables: []
@@ -441,7 +441,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
441
441
  requirements:
442
442
  - - ">="
443
443
  - !ruby/object:Gem::Version
444
- version: 2.1.0
444
+ version: 2.7.0
445
445
  required_rubygems_version: !ruby/object:Gem::Requirement
446
446
  requirements:
447
447
  - - ">="