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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19a0bf9f2105eb2217b4419e6ccef937dea8a9d5
4
- data.tar.gz: c11eabeccf68b1f9a9bd100755f302f8db907f22
3
+ metadata.gz: c3d4bb20f6148ce033a1ac325577ed284db1d552
4
+ data.tar.gz: b6a1f3ce9cff0d7bb5a82b07a9b4b42cf2e9c0c3
5
5
  SHA512:
6
- metadata.gz: cf6bef0ee316d24f24ccf785207f59d936500ca0bf63719548efe98489957e49e7380fe27875ba350a3ededea45b01d7a8ddeaef684452808ac249d067415642
7
- data.tar.gz: e70cec90f67003397cd3ac86d5d0dc56c9d39625eeeee4d37b333ef635ea9a4185e6e28ac48fdc2465199d6ebd24851cb3f506a66deb8cb881d7d3f3dc2870c4
6
+ metadata.gz: 903159fd5d6b4e06877bd32329370c4c98d8d474334df7c1a21f1e821cfc27cfadbf66b4bbd8c0dc302739cc94a045333cf6a51ecd1994798936cb1e24e0599f
7
+ data.tar.gz: 03e22dd818e628f862b83ce89e5b10cbfe26fbc5477d62b7dfa67faf3726252f84ae32c694f3a205ecbdaa947574a5441383075cf1018017c6182c14752ff649
@@ -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
@@ -1,3 +1,22 @@
1
1
  module TrelloFlow
2
- VERSION = "3.4.0"
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.0
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-10 00:00:00.000000000 Z
11
+ date: 2017-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler