ruby-trello 1.6.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/spec/card_spec.rb +23 -3
  4. metadata +18 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b666e156d0e650e1f3a28d42dfdc0eaff8b8c147
4
- data.tar.gz: 232b7631c884e4126aba17d87dcde5fa7e3b44be
3
+ metadata.gz: aef36c181b18bcb01b8a45c21aad954536f40188
4
+ data.tar.gz: 1271b238eae444a32c6c84ea9c3cf8c26fe50a98
5
5
  SHA512:
6
- metadata.gz: 4195f7cabbe3497ce58ca381d35703e05fca562895abaaf305351d70418ea2e54d13e72be42c2fa548920350a2e01f7a80ab88cd10d66cf876f4e77361e2ddb0
7
- data.tar.gz: 134a4f52ae538a3d4c68004a2ae9b5852c36a98d7841c9becc456b9fdabe7130a0a2b70a8a684d0a7de2f67906ddc511f41c03e90629888d2391930b906d3c9f
6
+ metadata.gz: 86b932d63a9e11a9d63ab20233e67aeb241cc5203bfd689d56f5323c8a31dfbb5dfd1d6b5873571d50fad68487033ead6b70282b7e52557ffd72b7bb81cd70fa
7
+ data.tar.gz: b03c3113250ff01a490bb39304e7d7ed4dc7a64f61a6c7feb923138a7621e0034b73bfeee58c796e017485a0d2b0d5f46c80ab907c68b19c0f2f19dc503d91bc
data/README.md CHANGED
@@ -46,7 +46,7 @@ require 'trello'
46
46
 
47
47
  Trello.configure do |config|
48
48
  config.developer_public_key = TRELLO_DEVELOPER_PUBLIC_KEY # The "key" from step 1
49
- config.member_token = TRELLO_MEMBER_TOKEN # The token from step 3.
49
+ config.member_token = TRELLO_MEMBER_TOKEN # The token from step 2.
50
50
  end
51
51
  ```
52
52
 
data/spec/card_spec.rb CHANGED
@@ -722,15 +722,35 @@ module Trello
722
722
 
723
723
  describe "can mark due_complete" do
724
724
  it "updates the due completed attribute to true" do
725
- card.due = Time.now
725
+ due_date = Time.now
726
+
727
+ payload = {
728
+ due: due_date,
729
+ }
730
+
731
+ expect(client)
732
+ .to receive(:put)
733
+ .once
734
+ .with("/cards/abcdef123456789123456789", payload)
735
+
736
+ card.due = due_date
726
737
  card.save
727
738
 
728
739
  expect(card.due).to_not be_nil
729
740
 
741
+ payload = {
742
+ dueComplete: true
743
+ }
744
+
745
+ expect(client)
746
+ .to receive(:put)
747
+ .once
748
+ .with("/cards/abcdef123456789123456789", payload)
749
+
730
750
  card.due_complete = true
731
- card.save
751
+ card.save
732
752
 
733
- expect(card.due_complete).to_be true
753
+ expect(card.due_complete).to be true
734
754
  end
735
755
  end
736
756
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-trello
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 2.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: 2016-12-21 00:00:00.000000000 Z
11
+ date: 2017-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.2.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
26
  version: 3.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: addressable
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: oauth
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.4.5
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.4.5
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rest-client
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 1.8.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
82
  version: 1.8.0
83
83
  description: A wrapper around the trello.com API.
@@ -87,6 +87,8 @@ extensions: []
87
87
  extra_rdoc_files:
88
88
  - README.md
89
89
  files:
90
+ - README.md
91
+ - lib/trello.rb
90
92
  - lib/trello/action.rb
91
93
  - lib/trello/association.rb
92
94
  - lib/trello/association_proxy.rb
@@ -118,8 +120,6 @@ files:
118
120
  - lib/trello/plugin_datum.rb
119
121
  - lib/trello/token.rb
120
122
  - lib/trello/webhook.rb
121
- - lib/trello.rb
122
- - README.md
123
123
  - spec/action_spec.rb
124
124
  - spec/array_spec.rb
125
125
  - spec/association_spec.rb
@@ -152,22 +152,22 @@ licenses:
152
152
  metadata: {}
153
153
  post_install_message:
154
154
  rdoc_options:
155
- - --charset=UTF-8
155
+ - "--charset=UTF-8"
156
156
  require_paths:
157
157
  - lib
158
158
  required_ruby_version: !ruby/object:Gem::Requirement
159
159
  requirements:
160
- - - '>='
160
+ - - ">="
161
161
  - !ruby/object:Gem::Version
162
162
  version: 2.1.0
163
163
  required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - '>='
165
+ - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
169
  rubyforge_project: ruby-trello
170
- rubygems_version: 2.0.14.1
170
+ rubygems_version: 2.5.1
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: A wrapper around the trello.com API.