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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b76e9a90a52ce56ae6c126729bac908cee6faeb7
4
- data.tar.gz: f619ca9d4a02d273600f07376a288aabe7a49483
3
+ metadata.gz: f370fc7edc44db8ab23c2ccdf73981d8f933d3f1
4
+ data.tar.gz: c5a7eb67b8603b72795fe60cdbdfee4594d27c7d
5
5
  SHA512:
6
- metadata.gz: 6cc3b1c02a71b2061dd007709cd10ec476a6655e5f20b5c750d5f8e6c719f862db100cd03aa072a6518bafc11486e5d56bcb8f408faa14200d5596077b9dbc22
7
- data.tar.gz: 5887fad6333c8a098539f349e4dfd38794e30e7ca02235e1f847ee46a20478dbdacc3c160ba7304bc44e9bfca47ef230f85918b698b07f55a86b8296b5463c22
6
+ metadata.gz: 85d5d5399dba63eb36d6d09ae8bb6d7fa99dba49ea85d598e13128c9baa591d69e01389af83aafbf49b1c73cfd9d23e394906cf1efefdcfee6f72875aedfb4ea
7
+ data.tar.gz: 8c20dc5697192bc3d3bba2637fa22053993d0417b918d382bccfb8ba73963bafdb4910d7f3cc15bd737d2040e238507a879c384495345a02ce8fda742a27b3f9
@@ -3,20 +3,8 @@ module T1k
3
3
  cattr_accessor :adapter
4
4
  @@adapter = T1k::Repositories::Github # default adapter
5
5
 
6
- def self.create_issue card_name
7
- adapter.create_issue card_name
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
- def self.get_card url_card
7
- adapter.get_card url_card
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
@@ -1,3 +1,3 @@
1
1
  module T1k
2
- VERSION = "1.1.9"
2
+ VERSION = "1.1.10"
3
3
  end
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.9
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-09 00:00:00.000000000 Z
11
+ date: 2015-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails