trello_flow 3.5.0 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/lib/trello_flow/api/base.rb +5 -3
- data/lib/trello_flow/api/error.rb +5 -0
- data/lib/trello_flow/api/error_handler.rb +15 -0
- data/lib/trello_flow/main.rb +2 -0
- data/lib/trello_flow/version.rb +6 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b1e9f30dd53f58947f5e50bf216210c5b9f2555
|
4
|
+
data.tar.gz: '069dea5960a81879b5e5016442a3e7b4f70a21b2'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0aff2c51924533de3c06e002b8dd2119944b9819748b4f4786fffaf73659039d5c0c432105a75ceb528a7d5bf53584f403d3bf12e5d91d528f928eb4b4820c4
|
7
|
+
data.tar.gz: d89064d0602c7b949d4022362aa109eaeeb67472b7e1b57b502250f4d8657355d5baf944247225c5a3ac45a3d6523abc51c40413362f45675a26f0662e0575eb
|
data/.travis.yml
CHANGED
data/lib/trello_flow/api/base.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "spyke"
|
2
2
|
require "trello_flow/api/json_parser"
|
3
|
+
require "trello_flow/api/error_handler"
|
3
4
|
|
4
5
|
module TrelloFlow
|
5
6
|
module Api
|
@@ -15,9 +16,10 @@ module TrelloFlow
|
|
15
16
|
|
16
17
|
def self.configure(key:, token:)
|
17
18
|
self.connection = Faraday.new(url: "https://api.trello.com/1", params: { key: key, token: token }) do |c|
|
18
|
-
c.request
|
19
|
-
c.use
|
20
|
-
c.
|
19
|
+
c.request :json
|
20
|
+
c.use JSONParser
|
21
|
+
c.use ErrorHandler
|
22
|
+
c.adapter Faraday.default_adapter
|
21
23
|
|
22
24
|
# For trello api logging
|
23
25
|
# require "faraday/conductivity"
|
data/lib/trello_flow/main.rb
CHANGED
data/lib/trello_flow/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module TrelloFlow
|
2
|
-
VERSION = "3.
|
2
|
+
VERSION = "3.6.0"
|
3
3
|
class Version
|
4
4
|
def self.latest?
|
5
5
|
new.latest?
|
@@ -12,11 +12,15 @@ module TrelloFlow
|
|
12
12
|
private
|
13
13
|
|
14
14
|
def latest_version
|
15
|
-
@_latest_version ||= Gem.latest_version_for("trello_flow")
|
15
|
+
@_latest_version ||= Gem.latest_version_for("trello_flow") || first_version
|
16
16
|
end
|
17
17
|
|
18
18
|
def current_version
|
19
19
|
@_current_version ||= Gem::Version.new(VERSION)
|
20
20
|
end
|
21
|
+
|
22
|
+
def first_version
|
23
|
+
@_first_version ||= Gem::Version.new("1.0.0")
|
24
|
+
end
|
21
25
|
end
|
22
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trello_flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Balvig
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -274,6 +274,8 @@ files:
|
|
274
274
|
- lib/trello_flow/api/base.rb
|
275
275
|
- lib/trello_flow/api/board.rb
|
276
276
|
- lib/trello_flow/api/card.rb
|
277
|
+
- lib/trello_flow/api/error.rb
|
278
|
+
- lib/trello_flow/api/error_handler.rb
|
277
279
|
- lib/trello_flow/api/json_parser.rb
|
278
280
|
- lib/trello_flow/api/label.rb
|
279
281
|
- lib/trello_flow/api/list.rb
|