wheelbarrow 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 744e8f64ed8b740f66ac71c36575d378e8c2c66e
4
- data.tar.gz: e04daaae786f0c2aca09f01482ffaa7c04042e10
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MTU2MzhhZDdiNTZjMDQxZGVjYzBmOWYyZWI0ZmM2OGIwNGU3YzhjZQ==
5
+ data.tar.gz: !binary |-
6
+ NjFmOGJkZDZjOGQyNjAwMmRmNGIwYTZmMjFmMDZhMTY0OTg0MzgwYg==
5
7
  SHA512:
6
- metadata.gz: 2def2f76471b9a215c5b43462faf29fd0c4f09aa8b2c140a1d2f8af33bd30000380e6f0468f891d139ca4c0f868a85c28645d51d14d7695a7d1d59a7c7300b55
7
- data.tar.gz: 16a4c5ebe3c47a2f64f32b990242c966f2ca8a503ae07584f58d1ac7edde40191079b080a6c7c9273692592810b49f055ef08883c99afc8e3267b918e3adc5fc
8
+ metadata.gz: !binary |-
9
+ OWNhNTNiOWIwMjBkMjU0YTMzOGFiNDc0NjM0Y2I3NmJkOWU4ZjQ5YzBjYzNj
10
+ ZDhjNzUwNjFlNDU5Yjk0MWE5M2IxN2QyMzk0ZmQ4MzdiNTNjN2UyMWJlYzdi
11
+ N2M3MjFiZjg5MTE5MjRjMDAyZDY2ZDQ4YTM3OTFhMzBjOWQ2ZTM=
12
+ data.tar.gz: !binary |-
13
+ N2NhN2I5MGYzZDFlM2ZmYTdlYmIyYjU5OTllN2I0MTE4OGRiNGMwNWYwY2Mw
14
+ MDhhMmU4MGNkMTM2ZjAwMTk3Y2UxZTk4NTBhNDlmZmFlNDU3NTkyM2YyOTQy
15
+ ZTdiZTM1OWJjYTQ2NzUzZTZiNTgxYzEzNWExODY2NDRiNDgwM2E=
@@ -1 +1 @@
1
- 2.1.2
1
+ 1.9.3
@@ -0,0 +1,9 @@
1
+ ## 0.0.2 (2014-10-15)
2
+ - Added gem version badge to README. (fe68ab)
3
+ - Added waffle.io badge to README. (31994a)
4
+ - Added demo gif. (842786)
5
+ - Added changelog. (7eb665)
6
+ - Support ruby 1.9.3 and up. (bc0151)
7
+
8
+ ## 0.0.1 (2014-10-12)
9
+ - initial version
@@ -1,12 +1,16 @@
1
1
  # Wheelbarrow
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/wheelbarrow.svg)](http://badge.fury.io/rb/wheelbarrow)
4
+ [![Code Climate](https://codeclimate.com/github/LuckyThirteen/wheelbarrow/badges/gpa.svg)](https://codeclimate.com/github/LuckyThirteen/wheelbarrow)
3
5
  [![Codeship Status for LuckyThirteen/wheelbarrow](https://www.codeship.io/projects/5f0d9af0-33fe-0132-f9b7-7a72371aeacb/status)](https://www.codeship.io/projects/40700)
4
6
 
5
- [![Code Climate](https://codeclimate.com/github/LuckyThirteen/wheelbarrow/badges/gpa.svg)](https://codeclimate.com/github/LuckyThirteen/wheelbarrow)
7
+ [![Stories in Ready](https://badge.waffle.io/luckythirteen/wheelbarrow.svg?label=ready&title=Ready)](http://waffle.io/luckythirteen/wheelbarrow)
6
8
 
7
9
  ## About
8
10
  Wheelbarrow is a command line utility for sending BitBucket pull requests.
9
11
 
12
+ ![Wheelbarrow demo](wheelbarrow.gif "")
13
+
10
14
  ## Installation
11
15
  `gem install wheelbarrow`
12
16
 
data/Rakefile CHANGED
@@ -28,3 +28,30 @@ task :ci do
28
28
  puts "\033[34mRunning rspec:\033[0m"
29
29
  Rake::Task['spec'].invoke
30
30
  end
31
+
32
+ # simple rake task to output a changelog between two commits, tags ...
33
+ # output is formatted simply, commits are grouped under each author name
34
+ #
35
+ desc 'generate changelog with nice clean output'
36
+ task :changelog, :since_c, :until_c do |_, args|
37
+ since_c = args[:since_c] || `git tag | head -1`.chomp
38
+ until_c = args[:until_c]
39
+ cmd = `git log --pretty='format:%ci::%an <%ae>::%s::%H' #{since_c}..#{until_c}`
40
+
41
+ entries = {}
42
+ changelog_content = ''
43
+
44
+ cmd.split("\n").each do |entry|
45
+ _, author, subject, hash = entry.chomp.split('::')
46
+ entries[author] ||= []
47
+ entries[author] << "#{subject} (#{hash})" unless subject =~ /Merge/
48
+ end
49
+
50
+ # generate clean output
51
+ entries.keys.each do |author|
52
+ changelog_content += "#{author}\n"
53
+ entries[author].reverse.each { |entry| changelog_content += " * #{entry}\n" }
54
+ end
55
+
56
+ puts changelog_content
57
+ end
@@ -29,7 +29,7 @@ module Wheelbarrow
29
29
  end
30
30
 
31
31
  def fetch_consumer_creditetntials
32
- @config[:consumer_key] = shell.ask 'Enter your consumer_key:'
32
+ @config[:consumer_key] = shell.ask 'Enter your consumer key:'
33
33
  @config[:consumer_secret] = shell.ask 'Enter your consumer secret:'
34
34
  end
35
35
 
@@ -11,9 +11,11 @@ module Wheelbarrow
11
11
  @bb_client = Authenticator.instance.oauth_client
12
12
  end
13
13
 
14
- def send_pull_request!(target_branch: 'master',
15
- title: Utils.last_commit_message,
16
- description: '')
14
+ def send_pull_request!(options = {})
15
+ target_branch = options[:target_branch] || 'master'
16
+ title = options[:target_title] || Utils.last_commit_message
17
+ description = options[:description]
18
+
17
19
  payload = pull_request_body(target_branch, title, description).to_json
18
20
 
19
21
  res = @bb_client.post pull_request_url,
@@ -30,6 +30,8 @@ module Wheelbarrow
30
30
  pr_response = Bucketeer.instance.send_pull_request! args
31
31
  puts pretty_pr_status(pr_response)
32
32
  end
33
+ rescue => e
34
+ puts e.message
33
35
  end
34
36
  map ['pull-request', 'pr'] => :pull_request
35
37
 
@@ -1,3 +1,3 @@
1
1
  module Wheelbarrow
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -7,8 +7,6 @@ RSpec.configure do |config|
7
7
  mocks.verify_partial_doubles = true
8
8
  end
9
9
 
10
- config.filter_run :focus
11
-
12
10
  config.default_formatter = 'doc' if config.files_to_run.one?
13
11
 
14
12
  config.order = :random
Binary file
metadata CHANGED
@@ -1,173 +1,173 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wheelbarrow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - LuckyThirteen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-13 00:00:00.000000000 Z
11
+ date: 2014-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.19'
20
- - - ">="
20
+ - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: 0.19.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0.19'
30
- - - ">="
30
+ - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: 0.19.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: oauth
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ~>
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0.4'
40
- - - ">="
40
+ - - ! '>='
41
41
  - !ruby/object:Gem::Version
42
42
  version: 0.4.7
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
47
+ - - ~>
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0.4'
50
- - - ">="
50
+ - - ! '>='
51
51
  - !ruby/object:Gem::Version
52
52
  version: 0.4.7
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: launchy
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - "~>"
57
+ - - ~>
58
58
  - !ruby/object:Gem::Version
59
59
  version: '2.4'
60
- - - ">="
60
+ - - ! '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: 2.4.2
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
67
+ - - ~>
68
68
  - !ruby/object:Gem::Version
69
69
  version: '2.4'
70
- - - ">="
70
+ - - ! '>='
71
71
  - !ruby/object:Gem::Version
72
72
  version: 2.4.2
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: bundler
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - "~>"
77
+ - - ~>
78
78
  - !ruby/object:Gem::Version
79
79
  version: '1.6'
80
- - - ">="
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.6.2
83
83
  type: :development
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.6'
90
- - - ">="
90
+ - - ! '>='
91
91
  - !ruby/object:Gem::Version
92
92
  version: 1.6.2
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: rake
95
95
  requirement: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - "~>"
97
+ - - ~>
98
98
  - !ruby/object:Gem::Version
99
99
  version: '10.3'
100
- - - ">="
100
+ - - ! '>='
101
101
  - !ruby/object:Gem::Version
102
102
  version: 10.3.2
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - "~>"
107
+ - - ~>
108
108
  - !ruby/object:Gem::Version
109
109
  version: '10.3'
110
- - - ">="
110
+ - - ! '>='
111
111
  - !ruby/object:Gem::Version
112
112
  version: 10.3.2
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rspec
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - "~>"
117
+ - - ~>
118
118
  - !ruby/object:Gem::Version
119
119
  version: '3.1'
120
- - - ">="
120
+ - - ! '>='
121
121
  - !ruby/object:Gem::Version
122
122
  version: 3.1.0
123
123
  type: :development
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - "~>"
127
+ - - ~>
128
128
  - !ruby/object:Gem::Version
129
129
  version: '3.1'
130
- - - ">="
130
+ - - ! '>='
131
131
  - !ruby/object:Gem::Version
132
132
  version: 3.1.0
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: nyan-cat-formatter
135
135
  requirement: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - "~>"
137
+ - - ~>
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0.10'
140
- - - ">="
140
+ - - ! '>='
141
141
  - !ruby/object:Gem::Version
142
142
  version: 0.10.1
143
143
  type: :development
144
144
  prerelease: false
145
145
  version_requirements: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - "~>"
147
+ - - ~>
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0.10'
150
- - - ">="
150
+ - - ! '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.10.1
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rubocop
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - ~>
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0.26'
160
- - - ">="
160
+ - - ! '>='
161
161
  - !ruby/object:Gem::Version
162
162
  version: 0.26.1
163
163
  type: :development
164
164
  prerelease: false
165
165
  version_requirements: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - "~>"
167
+ - - ~>
168
168
  - !ruby/object:Gem::Version
169
169
  version: '0.26'
170
- - - ">="
170
+ - - ! '>='
171
171
  - !ruby/object:Gem::Version
172
172
  version: 0.26.1
173
173
  description: command-line utility for BitBucket pull requests
@@ -178,11 +178,12 @@ executables:
178
178
  extensions: []
179
179
  extra_rdoc_files: []
180
180
  files:
181
- - ".gitignore"
182
- - ".rspec"
183
- - ".rubocop.yml"
184
- - ".ruby-gemset"
185
- - ".ruby-version"
181
+ - .gitignore
182
+ - .rspec
183
+ - .rubocop.yml
184
+ - .ruby-gemset
185
+ - .ruby-version
186
+ - CHANGELOG.markdown
186
187
  - Gemfile
187
188
  - LICENSE
188
189
  - README.markdown
@@ -197,6 +198,7 @@ files:
197
198
  - lib/wheelbarrow/version.rb
198
199
  - spec/spec_helper.rb
199
200
  - wheelbarrow.gemspec
201
+ - wheelbarrow.gif
200
202
  homepage: https://github.com/LuckyThirteen/wheelbarrow
201
203
  licenses:
202
204
  - GNU GPL v3
@@ -207,12 +209,12 @@ require_paths:
207
209
  - lib
208
210
  required_ruby_version: !ruby/object:Gem::Requirement
209
211
  requirements:
210
- - - ">="
212
+ - - ! '>='
211
213
  - !ruby/object:Gem::Version
212
214
  version: '0'
213
215
  required_rubygems_version: !ruby/object:Gem::Requirement
214
216
  requirements:
215
- - - ">="
217
+ - - ! '>='
216
218
  - !ruby/object:Gem::Version
217
219
  version: '0'
218
220
  requirements: []