trello_flow 2.3.0 → 2.3.1

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
  SHA1:
3
- metadata.gz: 2b44cd47ac37171ecc417f5d41f4aeca06c62883
4
- data.tar.gz: dc309ac29890af06342ee905d4cf3ba744f649d0
3
+ metadata.gz: da6972f158b3380bab52dc6ef7fe1e56150a1521
4
+ data.tar.gz: ac6cd154cbaf3743e58ce8316e156323e8cb36a9
5
5
  SHA512:
6
- metadata.gz: db78158f7f61dde7b653e4a3e1327cc3892932e0fad547869a7a3239062a46c6d5c88f4e58a3bcf41f7c5250473aec0103bdedc47dd55e443bb3a478d3694c58
7
- data.tar.gz: f4370603146fbb561000671fc91c8ac01efcd199abb69ce1622b954800aceb9f5fe9f1d3d1909aff6002582f478a8bc17336edf7fb0ecb4ec531ba4196dfc4da
6
+ metadata.gz: 200113d40b7f2a9cc8704409879b59a86e88d8fa8c4b9d5a4d86d7062e82cf4a5d776bed76b344076e6caa03b02f9f6ef064d09df50ea7916391c4cc257338f4
7
+ data.tar.gz: be3688d7624b458672ca3656d2239f322ff12d36ee945672e62f47d0a13d3eebbe9f9af21e28e0ada0d10735e54d3c993066837fe4081883305fbb512c8545b1
@@ -18,6 +18,10 @@ module TrelloFlow
18
18
  c.request :json
19
19
  c.use JSONParser
20
20
  c.adapter Faraday.default_adapter
21
+
22
+ # For trello api logging
23
+ # require "faraday/conductivity"
24
+ # c.use Faraday::Conductivity::ExtendedLogging
21
25
  end
22
26
  self.token = token
23
27
  end
@@ -26,11 +26,11 @@ module TrelloFlow
26
26
 
27
27
  def add_member(user)
28
28
  return if member_ids.include?(user.id)
29
- self.class.with("cards/:id/members").where(id: id, value: user.id).post
29
+ self.class.request(:post, "cards/#{id}/members", value: user.id)
30
30
  end
31
31
 
32
32
  def add_label(label)
33
- self.class.with("cards/:id/idLabels").where(id: id, value: label.id).post
33
+ self.class.request(:post, "cards/#{id}/idLabels", value: label.id)
34
34
  end
35
35
 
36
36
  def url
@@ -51,7 +51,7 @@ module TrelloFlow
51
51
  def create_new_card(name)
52
52
  card = board.lists.backlog.cards.create name: name
53
53
  label = Table.pick board.labels, caption: "Add label:"
54
- card.add_label(label)
54
+ card.add_label(label) if label
55
55
  card
56
56
  end
57
57
 
@@ -1,3 +1,3 @@
1
1
  module TrelloFlow
2
- VERSION = "2.3.0"
2
+ VERSION = "2.3.1"
3
3
  end
data/trello_flow.gemspec CHANGED
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "minitest-reporters"
27
27
  spec.add_development_dependency "pry"
28
28
  spec.add_development_dependency "webmock"
29
+ spec.add_development_dependency "faraday-conductivity"
29
30
 
30
31
  spec.add_dependency "colored"
31
32
  spec.add_dependency "highline"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trello_flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: faraday-conductivity
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: colored
113
127
  requirement: !ruby/object:Gem::Requirement