t1k 2.0.2 → 2.0.3

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: 30bc656e49f7c37b16ec00db6ef437da1428a8f0
4
- data.tar.gz: b165b136d38ef551cbcb11ddb8add41176dc7580
3
+ metadata.gz: 8c3f8265a4794d7a4548f44d9b2b739b998e199e
4
+ data.tar.gz: 780206948a7fb7ad03405880b31e9a13c707d24d
5
5
  SHA512:
6
- metadata.gz: 78d28329756e3f99f6730fc1cb12399e0cb3d22d646ab125ab3c32c63438d41a6e6783a55d9479bbaa20c8168469e04780e0c3028befb8d2ffaebb5638ade83c
7
- data.tar.gz: f30ba85e415807db6f9d677f8ac665ee481d0f65cffe7264c9ffb022610b0875d2680cd1c083d5f7672a144b937d9bc8dde5c042fa6164520f94f1a08824c59f
6
+ metadata.gz: ce49d5dac7b20cb53a7d78dfb61b5fb8002490b2593d38bcd17ec09f846fbd489dc39cb21b35bac879a39c9e48b2902de288ccef1ed946435b7c1f0ecf4b0bb1
7
+ data.tar.gz: dc3f8c75a434d3d8a41f086d6a2213c22c2f0735b4ce79a09f65d27defd7bfd113a54f0bcf97d8c8bf1fedbe634678d28476ba1d7c960a65ca85cababa9e73e8
data/Gemfile.lock ADDED
@@ -0,0 +1,78 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ t1k (2.0.3)
5
+ activesupport (~> 4.2)
6
+ clive
7
+ github_api (~> 0.12)
8
+ ruby-trello (~> 1.2.1)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ activemodel (4.2.1)
14
+ activesupport (= 4.2.1)
15
+ builder (~> 3.1)
16
+ activesupport (4.2.1)
17
+ i18n (~> 0.7)
18
+ json (~> 1.7, >= 1.7.7)
19
+ minitest (~> 5.1)
20
+ thread_safe (~> 0.3, >= 0.3.4)
21
+ tzinfo (~> 1.1)
22
+ addressable (2.3.8)
23
+ builder (3.1.4)
24
+ clive (1.2.0)
25
+ descendants_tracker (0.0.4)
26
+ thread_safe (~> 0.3, >= 0.3.1)
27
+ faraday (0.9.1)
28
+ multipart-post (>= 1.2, < 3)
29
+ github_api (0.12.3)
30
+ addressable (~> 2.3)
31
+ descendants_tracker (~> 0.0.4)
32
+ faraday (~> 0.8, < 0.10)
33
+ hashie (>= 3.3)
34
+ multi_json (>= 1.7.5, < 2.0)
35
+ nokogiri (~> 1.6.3)
36
+ oauth2
37
+ hashie (3.4.1)
38
+ i18n (0.7.0)
39
+ json (1.8.2)
40
+ jwt (1.5.0)
41
+ mime-types (1.25.1)
42
+ mini_portile (0.6.2)
43
+ minitest (5.7.0)
44
+ multi_json (1.11.1)
45
+ multi_xml (0.5.5)
46
+ multipart-post (2.0.0)
47
+ netrc (0.10.3)
48
+ nokogiri (1.6.6.2)
49
+ mini_portile (~> 0.6.0)
50
+ oauth (0.4.7)
51
+ oauth2 (1.0.0)
52
+ faraday (>= 0.8, < 0.10)
53
+ jwt (~> 1.0)
54
+ multi_json (~> 1.3)
55
+ multi_xml (~> 0.5)
56
+ rack (~> 1.2)
57
+ rack (1.5.5)
58
+ rake (10.4.2)
59
+ rest-client (1.7.3)
60
+ mime-types (>= 1.16, < 3.0)
61
+ netrc (~> 0.7)
62
+ ruby-trello (1.2.1)
63
+ activemodel (>= 3.2.0)
64
+ addressable (~> 2.3)
65
+ json
66
+ oauth (~> 0.4.5)
67
+ rest-client (~> 1.7.2)
68
+ thread_safe (0.3.5)
69
+ tzinfo (1.2.2)
70
+ thread_safe (~> 0.1)
71
+
72
+ PLATFORMS
73
+ ruby
74
+
75
+ DEPENDENCIES
76
+ bundler (~> 1.9)
77
+ rake (~> 10.0)
78
+ t1k!
data/lib/t1k/command.rb CHANGED
@@ -34,12 +34,20 @@ module T1k
34
34
  @close = close
35
35
  end
36
36
 
37
+ bool :all, :a, 'Add all changed files' do |add|
38
+ @add = add
39
+ end
40
+
41
+ bool :no_message, 'Allow commit with no message' do |no_message|
42
+ @no_message = no_message
43
+ end
44
+
37
45
  opt :message, :m, 'Add a message to the commit', arg: '<message>' do
38
46
  @message = message
39
47
  end
40
48
 
41
49
  action do
42
- Commands::Commit.run @message, @close
50
+ Commands::Commit.run @message, @close, @add, @no_message
43
51
  end
44
52
  end
45
53
 
@@ -63,4 +71,4 @@ module T1k
63
71
  puts T1k::VERSION
64
72
  end
65
73
  end
66
- end
74
+ end
@@ -2,10 +2,15 @@ module T1k
2
2
  module Commands
3
3
  class Commit
4
4
 
5
- def self.run(message, close)
5
+ def self.run(message, close, add, no_message)
6
+ message ||= ""
7
+
8
+ raise "Message can't be blank. Use --no-message to ignore this rule." if message.empty? && !no_message
6
9
  branch = `git branch | grep '*' | awk '{print $2}'`
7
- system "git commit -m '[#{close ? 'close' : ''} ##{branch.strip}] #{message.present?? message : ''}'"
10
+ text_close = close ? 'close ' : ''
11
+ text_add = add ? 'a' : ''
12
+ system "git commit -#{text_add}m '[#{text_close}##{branch.strip}] #{message.present?? message : ''}'"
8
13
  end
9
14
  end
10
15
  end
11
- end
16
+ end
data/lib/t1k/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module T1k
2
- VERSION = "2.0.2"
3
- end
2
+ VERSION = "2.0.3"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: t1k
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Maia
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-02 00:00:00.000000000 Z
13
+ date: 2015-06-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -109,6 +109,7 @@ extra_rdoc_files: []
109
109
  files:
110
110
  - ./CODE_OF_CONDUCT.md
111
111
  - ./Gemfile
112
+ - ./Gemfile.lock
112
113
  - ./LICENSE.txt
113
114
  - ./README.md
114
115
  - ./Rakefile
@@ -133,7 +134,6 @@ files:
133
134
  - ./resources/T1000
134
135
  - ./spec/spec_helper.rb
135
136
  - ./spec/t1k_spec.rb
136
- - ./t1k-2.0.1.gem
137
137
  - ./t1k.gemspec
138
138
  - README.md
139
139
  - Rakefile
data/t1k-2.0.1.gem DELETED
Binary file