t1k 1.1.9 → 1.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/t1k/repository.rb +2 -14
- data/lib/t1k/tracker.rb +2 -10
- data/lib/t1k/version.rb +1 -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: f370fc7edc44db8ab23c2ccdf73981d8f933d3f1
|
4
|
+
data.tar.gz: c5a7eb67b8603b72795fe60cdbdfee4594d27c7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85d5d5399dba63eb36d6d09ae8bb6d7fa99dba49ea85d598e13128c9baa591d69e01389af83aafbf49b1c73cfd9d23e394906cf1efefdcfee6f72875aedfb4ea
|
7
|
+
data.tar.gz: 8c20dc5697192bc3d3bba2637fa22053993d0417b918d382bccfb8ba73963bafdb4910d7f3cc15bd737d2040e238507a879c384495345a02ce8fda742a27b3f9
|
data/lib/t1k/repository.rb
CHANGED
@@ -3,20 +3,8 @@ module T1k
|
|
3
3
|
cattr_accessor :adapter
|
4
4
|
@@adapter = T1k::Repositories::Github # default adapter
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.get_issue existent_issue_number
|
11
|
-
adapter.get_issue existent_issue_number
|
12
|
-
end
|
13
|
-
|
14
|
-
def self.get_issue_number issue
|
15
|
-
adapter.get_issue_number issue
|
16
|
-
end
|
17
|
-
|
18
|
-
def self.setup &block
|
19
|
-
self.adapter.setup(&block) if block_given?
|
6
|
+
class << self
|
7
|
+
delegate :setup, :create_issue, :get_issue, :get_issue_number, to: :adapter
|
20
8
|
end
|
21
9
|
|
22
10
|
def self.adapter=(adapter_name)
|
data/lib/t1k/tracker.rb
CHANGED
@@ -3,16 +3,8 @@ module T1k
|
|
3
3
|
cattr_accessor :adapter
|
4
4
|
@@adapter = T1k::Trackers::Trello # default adapter
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.update_card card, issue_number
|
11
|
-
adapter.update_card card, issue_number
|
12
|
-
end
|
13
|
-
|
14
|
-
def self.setup &block
|
15
|
-
self.adapter.setup(&block) if block_given?
|
6
|
+
class << self
|
7
|
+
delegate :setup, :get_card, :update_card, to: :adapter
|
16
8
|
end
|
17
9
|
|
18
10
|
def self.adapter=(adapter_name)
|
data/lib/t1k/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: t1k
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Maia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|