t1k 2.0.0.alpha → 2.0.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: b96b74479f3ee077f668e24ea6349f2c6e4cedeb
4
- data.tar.gz: b046a9d6730e25a55b015e752ce8ba8b1acbd8b0
3
+ metadata.gz: ef4ee15b057dd3de48ddbdcc24ff74962f4ef258
4
+ data.tar.gz: 1cea960fd611d9b54c123a91e2da43209109da5e
5
5
  SHA512:
6
- metadata.gz: 2561a612aea91a0960a4927982379eeb791949a97f27d533adf7fb86c47bffde9a5e1eebadae89683c24788b23bb7aaaf2521710c62a93111e0733864d447039
7
- data.tar.gz: 6fdc77bca049bb2afb01bd6ef68b24e370b35389e3e73872bd587bb59cdc6d3e73b1187db7cafbc8feba69f0acba5af7b89a4b70d15d47ffd8521f5276719fa2
6
+ metadata.gz: ef66e9174b4c8153a05c2b513b1e560231a1556fb8f1270830460732f4c56d6b8449c219cc8b352c6e01fe58b42f534cb73836edb8f004e9aaf252b4cbc4aac8
7
+ data.tar.gz: f183bdc3d6c5f8d09e8205cad41766fbb5ca185bcee2e5806b2e4208a435f840e958fe9681c6e9849336fc4cf98f952fa92c260c7286f509bb50145d0c534dcd
data/README.md CHANGED
@@ -10,7 +10,10 @@ T1k allow you from command line to use some tasks to make easy to create brach,
10
10
  - [Getting started](#getting-started)
11
11
  - [T1000 Configuration File](#t1000-configuration-file)
12
12
  - [Commands](#commands)
13
+ - [Help](#help)
14
+ - [Validate](#validate)
13
15
  - [Init](#init)
16
+ - [Hack](#hack)
14
17
  - [Commit](#commit)
15
18
  - [Sink](#sink)
16
19
  - [Ship](#ship)
@@ -43,54 +46,105 @@ T1k.setup do |config|
43
46
 
44
47
  # Change the tracker adapter. Default is trello.
45
48
  # config.tracker.adapter = :trello
49
+ # Setup Github repository credentials
46
50
 
47
- # Configuring your repository
51
+ # Create an auth_token here: https://github.com/settings/applications
52
+
53
+ config.repository.adapter = :github
48
54
  config.repository.setup do |c|
49
- # https://github.com/settings/applications
50
- # Personal access tokens
51
- c.oauth_token = 'PERSONAL_ACCESS_TOKEN'
52
- c.user = 'YOUR_REPOSITORY_USERNAME'
53
- c.repo = 'YOUR_REPOSITORY_NAME'
55
+ c.user_name = "GITHUB_USER"
56
+ c.repo = "REPOSITORY_NAME"
57
+ c.oauth_token = "YOUR_GITHUB_AUTH_TOKEN"
54
58
  end
55
59
 
56
- # Configuring your tracker
57
- config.tracker.setup do |c|
58
- # https://trello.com/app-key
59
- # https://trello.com/1/connect?key=YOUR_KEY&name=BOARD_NAME&expiration=never&response_type=token&scope=read,write
60
- c.developer_public_key = 'PUBLIC_KEY'
61
- c.member_token = 'APP_MEMBER_TOKEN'
62
- c.user_name = 'YOUR_TRELLO_USER'
63
- c.board_name = 'BOARD_NAME'
60
+ # Setup Trello board credentials
61
+ #
62
+ # Trello APP_DEVELOPER_KEY: https://trello.com/app-key
63
+ # Trello App permission key: https://trello.com/1/connect?key=YOUR_KEY&name=BOARD_NAME&expiration=never&response_type=token&scope=read,write
64
+ #
65
+ T1k.setup do |config|
66
+ config.tracker.adapter = [:trello, :pivotal, :none]
67
+ config.tracker.setup do |c|
68
+ c.user_name = "TRELLO_USER"
69
+ c.board_name = "TRELLO_BOARD_NAME"
70
+ c.app_token = "TRELLO_APP_TOKEN"
71
+ c.developer_public_key = "TRELLO_DEVELOPER_PUB_KEY"
72
+ end
64
73
  end
65
74
  end
66
75
  ```
67
76
 
68
- When using `:github` as your repository, you must define `:oauth_token`, `:user`, `:repo`.
77
+ Get your [Trello APP_DEVELOPER_KEY](https://trello.com/app-key)
78
+
79
+ Get your `app_token` - https://trello.com/1/connect?key=YOUR_KEY&name=BOARD_NAME&expiration=never&response_type=token&scope=read,write
69
80
 
70
- When using `:trello` as your tracker, you must define `:developer_public_key`, `:member_token`, `:user_name` and `:board_name`.
81
+ * When using `:github` as your repository, you must define `:oauth_token`, `:user`, `:repo`.
82
+ * When using `:trello` as your tracker, you must define `:developer_public_key`, `:member_token`, `:user_name` and `:board_name`.
83
+ * When using `:none` as your tracker, T1k will create issues with the name passed as argument on `t1k hack <issue-name>`
71
84
 
72
85
  ## Commands
73
86
 
74
- Basic workflow:
87
+ Basic workflow with Trello as Tracker:
75
88
 
76
89
  ```shell
90
+ $ t1k hack yk2adi9
77
91
  $ t1k commit -m 'commit message'
78
92
  $ t1k commit -m 'finish issue and close it' -c
79
93
  $ t1k sink
80
94
  $ t1k ship
81
95
  ```
82
96
 
97
+ ### Help
98
+
99
+ `t1k --help`
100
+
101
+ ```
102
+ Usage: t1k [command] [options]
103
+
104
+ Commands:
105
+ commit,cmt # Commit current staged changes
106
+ hack,hck <card_url> # Checkout to a new branch or existing branch associated with tracked card (issue)
107
+ init,setup # Create T1000 credentials file template in your current folder
108
+ ship,pack,deliver # Delivery your changes to local and remote master branch
109
+ sink,sync # Update current branch with master (ie Sync with master)
110
+ validate # Validate current credentials
111
+ help [<command>] # Display help
112
+
113
+ Options:
114
+ -v, --version # Display the current version
115
+ -h, --help # Display this help message
116
+ ```
117
+
118
+ ### Validate
119
+
120
+ Validates your current credentials stored in `T1000` file
121
+
83
122
  ### Init
84
123
 
85
- Just adds to your project folder a T1000 config file template
124
+ Just adds to your project folder a `T1000` config file template
125
+
126
+ ### Hack
127
+
128
+ When you type `$ t1k hack 18asd92` t1k creates or switches to a branch associated to a card.
129
+
130
+ * Where `18asd92` can be the card identifier or any url part of its.
86
131
 
87
132
  ### Commit
88
133
 
89
134
  Commit has to params options, -m and -c.
90
135
 
136
+ ```
137
+ Usage: t1k commit,cmt [options]
138
+
139
+ Options:
140
+ -c, --[no-]close # Close current branch and resolves issue
141
+ -m, --message <message> # Add a message to the commit
142
+ -h, --help # Display this help message
143
+ ```
144
+
91
145
  1. `t1k commit` : just commits your staged changes (no message is added) *not recommended*
92
146
  2. `t1k commit -m 'message'` : commits your staged changes with a custom message
93
- 2. `t1k commit -c -m 'message'` : -c is used to close your issue.
147
+ 2. `t1k commit -c -m 'message'` : `-c` is used to close your issue.
94
148
 
95
149
  ### Sink
96
150
 
data/bin/t1k CHANGED
@@ -2,7 +2,10 @@
2
2
 
3
3
  require 't1k'
4
4
 
5
- puts ARGV
6
-
7
- command = T1k::Command.new(ARGV)
8
- command.run
5
+ begin
6
+ T1k::CLI.run ARGV
7
+ rescue Clive::Parser::MissingArgumentError => argument_error
8
+ puts argument_error.message.red
9
+ rescue RuntimeError => error
10
+ puts error.message.red
11
+ end
data/lib/t1k/command.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 't1k/commands/validate'
1
2
  require 't1k/commands/init'
2
3
  require 't1k/commands/hack'
3
4
  require 't1k/commands/commit'
@@ -5,46 +6,61 @@ require 't1k/commands/sink'
5
6
  require 't1k/commands/ship'
6
7
 
7
8
  module T1k
8
- INIT = "init"
9
- HACK = "hack"
10
- COMMIT = "commit"
11
- SINK = "sink"
12
- SHIP = "ship"
9
+ class CLI < Clive
10
+ desc 'Create T1000 credentials file template in your current folder'
11
+ command :init, :setup do
12
+ action do
13
+ Commands::Init.run
14
+ end
15
+ end
13
16
 
14
- class Command
17
+ desc 'Validate current credentials'
18
+ command :validate do
19
+ action do
20
+ Commands::Validate.run
21
+ end
22
+ end
15
23
 
16
- def initialize(argv)
17
- @args = argv
24
+ desc 'Checkout to a new branch or existing branch associated with tracked card (issue)'
25
+ command :hack, :hck, arg: '<card_url>' do
26
+ action do
27
+ Commands::Hack.run card_url
28
+ end
18
29
  end
19
30
 
20
- def run
21
- T1k.setup_credentials
31
+ desc 'Commit current staged changes'
32
+ command :commit, :cmt do
33
+ bool :close, :c, 'Close current branch and resolves issue' do |close|
34
+ @close = close
35
+ end
36
+
37
+ opt :message, :m, 'Add a message to the commit', arg: '<message>' do
38
+ @message = message
39
+ end
22
40
 
23
- @args.count == 0 ? help : parse_args(@args)
41
+ action do
42
+ Commands::Commit.run @message, @close
43
+ end
24
44
  end
25
45
 
26
- def help
27
- puts "T1K (T-100) Gem. It's a help and let's learn"
28
- puts ""
29
- puts "t1k [command] <params>"
30
- puts ""
31
- puts T1k::Commands::Init.help
32
- puts T1k::Commands::Hack.help
33
- puts T1k::Commands::Commit.help
34
- puts T1k::Commands::Sink.help
35
- puts T1k::Commands::Ship.help
46
+ desc 'Update current branch with master (ie Sync with master)'
47
+ command :sink, :sync do
48
+
49
+ action do
50
+ Commands::Sink.run
51
+ end
36
52
  end
37
53
 
38
- private
54
+ desc 'Delivery your changes to local and remote master branch'
55
+ command :ship, :pack, :deliver do
39
56
 
40
- def parse_args(args)
41
- command = args[0]
57
+ action do
58
+ Commands::Ship.run
59
+ end
60
+ end
42
61
 
43
- T1k::Commands::Init.run if command == INIT && args.count == 1
44
- T1k::Commands::Hack.run(args[1]) if command == HACK && args.count == 2
45
- T1k::Commands::Commit.run(args[1..args.count]) if command == COMMIT
46
- T1k::Commands::Sink.run if command == SINK && args.count == 1
47
- T1k::Commands::Ship.run if command == SHIP && args.count == 1
62
+ opt :v, :version, 'Display the current version' do
63
+ puts T1k::VERSION
48
64
  end
49
65
  end
50
66
  end
@@ -2,35 +2,9 @@ module T1k
2
2
  module Commands
3
3
  class Commit
4
4
 
5
- def self.run(args)
6
- message, close = parse_args(args)
7
-
5
+ def self.run(message, close)
8
6
  branch = `git branch | grep '*' | awk '{print $2}'`
9
- system "git commit -m '[#{close} ##{branch.strip}] #{message}'"
10
- end
11
-
12
- def self.help
13
- <<-DESC
14
- commit - commit your staged changes.
15
-
16
- -m <message> - send a commit with a custom message
17
- -c - send a commit with close sentence. eg. [closes #320]
18
- DESC
19
- end
20
-
21
- private
22
-
23
- def self.parse_args(args)
24
- message = ""
25
- close = ""
26
-
27
- args.each_with_index do |arg, i|
28
-
29
- message = args[i + 1] || message if arg == '-m'
30
- close = "close" if arg == '-c'
31
- end
32
-
33
- return message, close
7
+ system "git commit -m '[#{close ? 'close' : ''} ##{branch.strip}] #{message.present?? message : ''}'"
34
8
  end
35
9
  end
36
10
  end
@@ -3,6 +3,7 @@ module T1k
3
3
  class Hack
4
4
 
5
5
  def self.run(path_card_part)
6
+ T1k.setup_credentials
6
7
  code_card = T1k::hack path_card_part
7
8
 
8
9
  system 'git checkout master'
@@ -15,12 +16,6 @@ module T1k
15
16
  system "git checkout -b #{code_card}"
16
17
  end
17
18
  end
18
-
19
- def self.help
20
- <<-DESC
21
- hack <card_identifier> - creates a branch associated with a card and checkout to it.
22
- DESC
23
- end
24
19
  end
25
20
  end
26
21
  end
@@ -5,17 +5,17 @@ module T1k
5
5
  class Init
6
6
 
7
7
  def self.run
8
+ if Validate.credentials?
9
+ puts "There is T1000 file inside your directory. Remove it before do init".red
10
+ exit 1
11
+ end
12
+
8
13
  src = File.join(T1k::path_to_resources, "T1000")
9
14
  dest = T1k::tthousand_path
10
15
 
11
16
  FileUtils.cp src, dest
12
- end
13
17
 
14
- def self.help
15
- <<-DESC
16
- init - Creates T1000 file into your project folder.
17
- Setup your keys and other configurations in this file.
18
- DESC
18
+ puts "Setup your T1000 file".blue
19
19
  end
20
20
  end
21
21
  end
@@ -1,22 +1,14 @@
1
-
2
-
3
1
  module T1k
4
2
  module Commands
5
3
  class Ship
6
4
 
7
5
  def self.run
8
- branch = `git branch | grep '*' | awk '{print $2}'`
9
- system "git checkout master"
10
- system "git pull --rebase"
11
- system "git merge #{branch.strip}"
12
- system "git commit -v"
13
- system "git push origin master"
14
- end
15
-
16
- def self.help
17
- <<-DESC
18
- ship - delivery your changes to local and remote master branch.
19
- DESC
6
+ branch = `git branch | grep '*' | awk '{print $2}'`
7
+ system "git checkout master"
8
+ system "git pull --rebase"
9
+ system "git merge #{branch.strip}"
10
+ system "git commit -v"
11
+ system "git push origin master"
20
12
  end
21
13
  end
22
14
  end
@@ -1,7 +1,6 @@
1
1
  module T1k
2
2
  module Commands
3
3
  class Sink
4
-
5
4
  def self.run
6
5
  branch = `git branch | grep '*' | awk '{print $2}'`
7
6
  system "git checkout master"
@@ -9,12 +8,6 @@ module T1k
9
8
  system "git checkout #{branch.strip}"
10
9
  system "git rebase master #{branch.strip}"
11
10
  end
12
-
13
- def self.help
14
- <<-DESC
15
- sink - update current branch with master (ie Sync with master).
16
- DESC
17
- end
18
11
  end
19
12
  end
20
13
  end
@@ -0,0 +1,43 @@
1
+ require 'clive'
2
+ require 'fileutils'
3
+
4
+ module T1k
5
+ module Commands
6
+ class Validate
7
+
8
+ cattr_accessor :messages
9
+ @@messages = []
10
+ @@errors = []
11
+
12
+ def self.run
13
+ T1k.setup_credentials
14
+
15
+ c = Validate.credentials?
16
+ t = Validate.trello?
17
+ g = Validate.github?
18
+
19
+ @@messages = @@messages + Trackers::Trello.messages + Repositories::Github.messages
20
+ @@errors = @@errors + Trackers::Trello.errors + Repositories::Github.errors
21
+
22
+ @@messages.each do |m| puts m.green end
23
+
24
+ puts "The are some errors listed below:\n".red unless c && t && g
25
+ @@errors.each do |e| puts e.red end
26
+ end
27
+
28
+ def self.credentials?
29
+ exist = File.exist?(T1k::tthousand_path)
30
+ exist ? @@messages << "T1000 file was found" : @@errors << "T1000 file not found"
31
+ exist
32
+ end
33
+
34
+ def self.trello?
35
+ Trackers::Trello.valid_keys?
36
+ end
37
+
38
+ def self.github?
39
+ Repositories::Github.valid_keys?
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,3 @@
1
+ module T1k
2
+ T1000 = "T1000"
3
+ end
@@ -13,17 +13,26 @@ module T1k
13
13
  cattr_accessor :repo
14
14
  @@repo = ""
15
15
 
16
+ cattr_accessor :messages
17
+ @@messages = []
18
+ cattr_accessor :errors
19
+ @@errors = []
20
+
16
21
  Issue = Struct.new(:code, :link)
17
22
 
18
23
  def self.setup &block
19
24
  yield(self) if block_given?
20
- self.config_keys
21
25
  end
22
26
 
23
- def self.config_keys
24
- # ::Github.configure do |config|
25
- # your keys
26
- # end
27
+ def self.valid_keys?
28
+ begin
29
+ me = ::Github.new(oauth_token: self.oauth_token).users.get
30
+ @@messages << "Wecolme #{me.name} - Github"
31
+ return true
32
+ rescue Exception => e
33
+ @@errors << e.message
34
+ return false
35
+ end
27
36
  end
28
37
 
29
38
  def self.create_issue title
data/lib/t1k/tracker.rb CHANGED
@@ -5,11 +5,7 @@ module T1k
5
5
  @@adapter = T1k::Trackers::Trello # default adapter
6
6
 
7
7
  class << self
8
- delegate :get_card, :update_card, to: @@adapter
9
- end
10
-
11
- def self.setup &block
12
- self.adapter.setup(&block) if block_given?
8
+ delegate :setup, :get_card, :update_card, to: :adapter
13
9
  end
14
10
 
15
11
  def self.adapter=(adapter_name)
@@ -0,0 +1,18 @@
1
+ module T1k
2
+ module Trackers
3
+ class None
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
@@ -16,6 +16,12 @@ module T1k
16
16
  cattr_accessor :board_name
17
17
  @@board_name = ""
18
18
 
19
+ cattr_accessor :messages
20
+ @@messages = []
21
+
22
+ cattr_accessor :errors
23
+ @@errors = []
24
+
19
25
  def self.setup &block
20
26
  yield(self) if block_given?
21
27
  self.config_keys
@@ -28,18 +34,30 @@ module T1k
28
34
  end
29
35
  end
30
36
 
31
- def self.get_card url_card
37
+ def self.valid_keys?
32
38
  begin
33
- puts 'Fetching card'
39
+ me = ::Trello::Member.find(self.user_name)
40
+ @@messages << "Welcome #{me.full_name} - Trello"
41
+ return true
42
+ rescue Exception => e
43
+ @@errors << e.message
44
+ return false
45
+ end
46
+ end
34
47
 
48
+ def self.get_card url_card
49
+ puts "Fetching card"
50
+ begin
35
51
  me = ::Trello::Member.find(self.user_name)
52
+ raise "User not found" if me.nil?
36
53
  board = me.boards.select{|x| x.name.upcase == self.board_name.upcase}.first
54
+ raise "Board not found.\nBoards available: #{me.boards.map(&:name)}" if board.nil?
37
55
  card = board.cards.select{|x| x.url.index(url_card)}.first
38
- raise if card.nil?
56
+ raise "Card not found" if card.nil?
39
57
 
40
58
  card
41
- rescue
42
- raise 'Card not found'
59
+ rescue Exception => e
60
+ raise "#{e.message}"
43
61
  end
44
62
  end
45
63
 
data/lib/t1k/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module T1k
2
- VERSION = "2.0.0.alpha"
2
+ VERSION = "2.0.0"
3
3
  end
data/lib/t1k.rb CHANGED
@@ -1,9 +1,14 @@
1
- require 't1k/version'
2
- require 't1k/command'
3
- require 'pathname'
4
1
  require 'active_support/core_ext/module/delegation'
5
2
  require 'active_support/core_ext/module/attribute_accessors'
6
3
  require 'active_support/inflector'
4
+ require 'pathname'
5
+
6
+ require 'clive'
7
+ require 'clive/output'
8
+
9
+ require 't1k/version'
10
+ require 't1k/constants'
11
+ require 't1k/command'
7
12
 
8
13
  module T1k
9
14
  autoload :Repository, 't1k/repository'
@@ -15,6 +20,7 @@ module T1k
15
20
  end
16
21
 
17
22
  module Trackers
23
+ autoload :None, 't1k/trackers/none'
18
24
  autoload :Trello, 't1k/trackers/trello'
19
25
  autoload :Pivotal, 't1k/trackers/pivotal'
20
26
  end
@@ -26,7 +32,7 @@ module T1k
26
32
  @@tracker = T1k::Tracker
27
33
 
28
34
  mattr_accessor :tthousand_path
29
- @@tthousand_path = Pathname.pwd + 'T1000'
35
+ @@tthousand_path = Pathname.pwd + T1000
30
36
 
31
37
  def self.setup &block
32
38
  yield(self) if block_given?
data/resources/T1000 CHANGED
@@ -1,22 +1,26 @@
1
1
  T1k.setup do |config|
2
2
 
3
3
  # Setup Github repository credentials
4
+ # Create an auth_token here: https://github.com/settings/applications
4
5
  #
5
- # config.repository.adapter = :github
6
+ # config.repository.adapter = [:github, :bitbucket]
6
7
  # config.repository.setup do |c|
7
- # c.user = "GITHUB_USER"
8
- # c.oauth_token = "GITHUB_AUTH_TOKEN"
8
+ # c.user_name = "GITHUB_USER"
9
9
  # c.repo = "REPOSITORY_NAME"
10
+ # c.oauth_token = "YOUR_GITHUB_AUTH_TOKEN"
10
11
  # end
11
12
 
12
13
  # Setup Trello board credentials
13
14
  #
15
+ # Trello APP_DEVELOPER_KEY: https://trello.com/app-key
16
+ # Trello App permission key: https://trello.com/1/connect?key=YOUR_KEY&name=BOARD_NAME&expiration=never&response_type=token&scope=read,write
17
+ #
14
18
  # T1k.setup do |config|
15
- # config.tracker.adapter = :trello
19
+ # config.tracker.adapter = [:trello, :pivotal, :none]
16
20
  # config.tracker.setup do |c|
17
21
  # c.user_name = "TRELLO_USER"
18
- # c.member_token = "TRELLO_MEMBER_TOKEN"
19
22
  # c.board_name = "TRELLO_BOARD_NAME"
23
+ # c.app_token = "TRELLO_APP_TOKEN"
20
24
  # c.developer_public_key = "TRELLO_DEVELOPER_PUB_KEY"
21
25
  # end
22
26
  # end
data/t1k.gemspec CHANGED
@@ -19,9 +19,11 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = ["t1k"]
20
20
  spec.require_paths = ["lib", "resources"]
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.9"
23
- spec.add_development_dependency "rake", "~> 10.0"
24
- spec.add_dependency "ruby-trello", "1.2.1"
25
- spec.add_dependency "github_api", "~> 0.12"
26
- spec.add_dependency 'activesupport', '~> 4.2.1'
22
+ spec.add_development_dependency 'bundler', '~> 1.9'
23
+ spec.add_development_dependency 'rake', '~> 10.0'
24
+
25
+ spec.add_dependency 'ruby-trello', '~> 1.2.1'
26
+ spec.add_dependency 'github_api', '~> 0.12'
27
+ spec.add_dependency 'activesupport', '~> 4.2'
28
+ spec.add_dependency 'clive'
27
29
  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: 2.0.0.alpha
4
+ version: 2.0.0
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-13 00:00:00.000000000 Z
11
+ date: 2015-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: ruby-trello
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.2.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.2.1
55
55
  - !ruby/object:Gem::Dependency
@@ -72,14 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: 4.2.1
75
+ version: '4.2'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: 4.2.1
82
+ version: '4.2'
83
+ - !ruby/object:Gem::Dependency
84
+ name: clive
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  description: Use those scripts to create automatically branchs associated with issues
84
98
  and tracked commits.
85
99
  email:
@@ -94,7 +108,6 @@ files:
94
108
  - ./LICENSE.txt
95
109
  - ./README.md
96
110
  - ./Rakefile
97
- - ./T1000
98
111
  - ./bin/t1k
99
112
  - ./lib/t1k.rb
100
113
  - ./lib/t1k/command.rb
@@ -103,10 +116,13 @@ files:
103
116
  - ./lib/t1k/commands/init.rb
104
117
  - ./lib/t1k/commands/ship.rb
105
118
  - ./lib/t1k/commands/sink.rb
119
+ - ./lib/t1k/commands/validate.rb
120
+ - ./lib/t1k/constants.rb
106
121
  - ./lib/t1k/repositories/bitbucket.rb
107
122
  - ./lib/t1k/repositories/github.rb
108
123
  - ./lib/t1k/repository.rb
109
124
  - ./lib/t1k/tracker.rb
125
+ - ./lib/t1k/trackers/none.rb
110
126
  - ./lib/t1k/trackers/pivotal.rb
111
127
  - ./lib/t1k/trackers/trello.rb
112
128
  - ./lib/t1k/version.rb
@@ -133,12 +149,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
149
  version: '0'
134
150
  required_rubygems_version: !ruby/object:Gem::Requirement
135
151
  requirements:
136
- - - '>'
152
+ - - '>='
137
153
  - !ruby/object:Gem::Version
138
- version: 1.3.1
154
+ version: '0'
139
155
  requirements: []
140
156
  rubyforge_project:
141
- rubygems_version: 2.2.2
157
+ rubygems_version: 2.4.7
142
158
  signing_key:
143
159
  specification_version: 4
144
160
  summary: T1K - Automated Git and Trello Workflow
data/T1000 DELETED
@@ -1,24 +0,0 @@
1
- T1k.setup do |config|
2
-
3
- # Setup Github repository credentials
4
- #
5
- # config.repository.adapter = :github
6
- # config.repository.setup do |c|
7
- # c.user = "GITHUB_USER"
8
- # c.oauth_token = "GITHUB_AUTH_TOKEN"
9
- # c.repo = "REPOSITORY_NAME"
10
- # end
11
-
12
- # Setup Trello board credentials
13
- #
14
- # T1k.setup do |config|
15
- # config.tracker.adapter = :trello
16
- # config.tracker.setup do |c|
17
- # c.user_name = "TRELLO_USER"
18
- # c.member_token = "TRELLO_MEMBER_TOKEN"
19
- # c.board_name = "TRELLO_BOARD_NAME"
20
- # c.developer_public_key = "TRELLO_DEVELOPER_PUB_KEY"
21
- # end
22
- # end
23
-
24
- end