ruby-trello 3.2.0 → 4.0.0
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 +14 -19
- data/lib/trello.rb +2 -2
- data/spec/spec_helper.rb +2 -3
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 444768a08c6a6d45235a6a35d935870d9a18dfd3486e64067ba4cdececf34701
|
4
|
+
data.tar.gz: b3af839b451f934e29be6c6a5247c2945fc6d864182f70dc70be284f38c9cb55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 |
|
19
|
-
| ---- | ---- | ---- | ---- |
|
20
|
-
| 2.
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
Use
|
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
|
-
|
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
|
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
|
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'] || '
|
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:
|
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-
|
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:
|
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:
|
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:
|
70
|
+
name: faraday
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
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:
|
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.
|
444
|
+
version: 2.7.0
|
445
445
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
446
446
|
requirements:
|
447
447
|
- - ">="
|