trello_flow 3.4.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trello_flow/main.rb +2 -0
- data/lib/trello_flow/version.rb +20 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3d4bb20f6148ce033a1ac325577ed284db1d552
|
4
|
+
data.tar.gz: b6a1f3ce9cff0d7bb5a82b07a9b4b42cf2e9c0c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 903159fd5d6b4e06877bd32329370c4c98d8d474334df7c1a21f1e821cfc27cfadbf66b4bbd8c0dc302739cc94a045333cf6a51ecd1994798936cb1e24e0599f
|
7
|
+
data.tar.gz: 03e22dd818e628f862b83ce89e5b10cbfe26fbc5477d62b7dfa67faf3726252f84ae32c694f3a205ecbdaa947574a5441383075cf1018017c6182c14752ff649
|
data/lib/trello_flow/main.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require "trello_flow/version"
|
1
2
|
require "trello_flow/local_config"
|
2
3
|
require "trello_flow/global_config"
|
3
4
|
|
@@ -9,6 +10,7 @@ module TrelloFlow
|
|
9
10
|
end
|
10
11
|
|
11
12
|
def start(name)
|
13
|
+
Cli.error "Your `trello_flow` version is out of date. Please run `gem update trello_flow`." unless Version.latest?
|
12
14
|
card = create_or_pick_card(name)
|
13
15
|
card.add_member(current_user)
|
14
16
|
card.start
|
data/lib/trello_flow/version.rb
CHANGED
@@ -1,3 +1,22 @@
|
|
1
1
|
module TrelloFlow
|
2
|
-
VERSION = "3.
|
2
|
+
VERSION = "3.5.0"
|
3
|
+
class Version
|
4
|
+
def self.latest?
|
5
|
+
new.latest?
|
6
|
+
end
|
7
|
+
|
8
|
+
def latest?
|
9
|
+
latest_version <= current_version
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def latest_version
|
15
|
+
@_latest_version ||= Gem.latest_version_for("trello_flow")
|
16
|
+
end
|
17
|
+
|
18
|
+
def current_version
|
19
|
+
@_current_version ||= Gem::Version.new(VERSION)
|
20
|
+
end
|
21
|
+
end
|
3
22
|
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.5.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-02-
|
11
|
+
date: 2017-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|