t1k 1.1.6 → 1.1.7

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: 4fd44cf6d6cfbb3a0c4c6a165465859d7952fbdf
4
- data.tar.gz: 46f89bbf15ce26413c47e1263123f5b6602ee706
3
+ metadata.gz: 516a96aa267096efafdfc33f81573ab19af29f9c
4
+ data.tar.gz: 30133a5d5670dfafdfc355b072f8933560aef61a
5
5
  SHA512:
6
- metadata.gz: 79dbbb5194ee2a45c411b603d3d2c784cc0416327b10a1bbd30858a6b234be497bdd113e34f444b51bc7a0c402f44fb3815d06c6a01731418b7b7aa741566942
7
- data.tar.gz: 847bb324d970a5fc9cc1297a43cd2bc8f7849539006ca1e2ed11e6fd23d4779f47d85af62bc0119cfb0f151e2dc226cb051e41cbe82ffd4db6d1bce95182aa18
6
+ metadata.gz: 6609a3768e5eeeef6eedcf114768249abd71fee562c3239dd2040bbb7cc4205768cfdb3d4acb96a5ddffc2e17a08a0273aaff3aba003e3a1aea262ab53fedced
7
+ data.tar.gz: 0117d09ae28e5d7b7966a6a49173a2dfc4dbfb977b67c8ff0e70a609c1108a885f19bac95924495dc07c418f3444a059b0ec5502099f7456e0f27e38342288ca
@@ -1,11 +1,18 @@
1
1
  module T1k
2
2
  class Repository
3
-
4
3
  cattr_accessor :adapter
5
4
  @@adapter = T1k::Repositories::Github # default adapter
6
5
 
7
- class << self
8
- delegate :create_issue, :get_issue, :get_issue_number, to: @@adapter
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
9
16
  end
10
17
 
11
18
  def self.setup &block
data/lib/t1k/tracker.rb CHANGED
@@ -1,11 +1,14 @@
1
1
  module T1k
2
2
  class Tracker
3
-
4
3
  cattr_accessor :adapter
5
4
  @@adapter = T1k::Trackers::Trello # default adapter
6
5
 
7
- class << self
8
- delegate :get_card, :update_card, to: @@adapter
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
9
12
  end
10
13
 
11
14
  def self.setup &block
@@ -0,0 +1,18 @@
1
+ module T1k
2
+ module Trackers
3
+ class Anything
4
+
5
+ Card = Struct.new(:name)
6
+
7
+ def self.setup &block
8
+ end
9
+
10
+ def self.get_card title
11
+ Card.new title
12
+ end
13
+
14
+ def self.update_card card, issue
15
+ end
16
+ end
17
+ end
18
+ end
data/lib/t1k/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module T1k
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
3
3
  end
data/lib/t1k.rb CHANGED
@@ -10,6 +10,7 @@ module T1k
10
10
  end
11
11
 
12
12
  module Trackers
13
+ autoload :Anything, 't1k/trackers/anything'
13
14
  autoload :Trello, 't1k/trackers/trello'
14
15
  autoload :Pivotal, 't1k/trackers/pivotal'
15
16
  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.6
4
+ version: 1.1.7
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-06 00:00:00.000000000 Z
11
+ date: 2015-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -83,6 +83,7 @@ files:
83
83
  - lib/t1k/repositories/github.rb
84
84
  - lib/t1k/repository.rb
85
85
  - lib/t1k/tracker.rb
86
+ - lib/t1k/trackers/anything.rb
86
87
  - lib/t1k/trackers/pivotal.rb
87
88
  - lib/t1k/trackers/trello.rb
88
89
  - lib/t1k/version.rb