octopolo 0.3.6 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +4 -0
- data/CHANGELOG.markdown +5 -0
- data/lib/octopolo/commands/issue.rb +14 -0
- data/lib/octopolo/github.rb +9 -2
- data/lib/octopolo/github/issue.rb +106 -0
- data/lib/octopolo/github/issue_creator.rb +147 -0
- data/lib/octopolo/github/pull_request.rb +10 -81
- data/lib/octopolo/github/pull_request_creator.rb +12 -97
- data/lib/octopolo/renderer.rb +1 -0
- data/lib/octopolo/scripts/issue.rb +140 -0
- data/lib/octopolo/scripts/pull_request.rb +5 -71
- data/lib/octopolo/templates/issue_body.erb +22 -0
- data/lib/octopolo/version.rb +1 -1
- data/spec/octopolo/github/issue_creator_spec.rb +217 -0
- data/spec/octopolo/github/issue_spec.rb +243 -0
- data/spec/octopolo/github/pull_request_creator_spec.rb +11 -11
- data/spec/octopolo/github/pull_request_spec.rb +16 -16
- data/spec/octopolo/github_spec.rb +15 -0
- data/spec/octopolo/scripts/issue_spec.rb +233 -0
- data/spec/octopolo/scripts/pull_request_spec.rb +3 -3
- metadata +13 -2
@@ -45,7 +45,7 @@ module Octopolo
|
|
45
45
|
expect(subject).to receive(:update_pivotal)
|
46
46
|
expect(subject).to receive(:update_jira)
|
47
47
|
expect(subject).to receive(:update_label)
|
48
|
-
expect(subject).to receive(:
|
48
|
+
expect(subject).to receive(:open_in_browser)
|
49
49
|
|
50
50
|
subject.execute
|
51
51
|
end
|
@@ -255,7 +255,7 @@ module Octopolo
|
|
255
255
|
|
256
256
|
end
|
257
257
|
|
258
|
-
context "#
|
258
|
+
context "#open_in_browser" do
|
259
259
|
before do
|
260
260
|
subject.pull_request = pull_request
|
261
261
|
pull_request.stub(:url) { pull_request_url }
|
@@ -264,7 +264,7 @@ module Octopolo
|
|
264
264
|
it "copies the pull request's URL to the clipboard and opens it in the browser" do
|
265
265
|
cli.should_receive(:copy_to_clipboard) { pull_request.url}
|
266
266
|
cli.should_receive(:open) { pull_request.url }
|
267
|
-
subject.send(:
|
267
|
+
subject.send(:open_in_browser)
|
268
268
|
end
|
269
269
|
end
|
270
270
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopolo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Byrne
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-05-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -211,6 +211,7 @@ files:
|
|
211
211
|
- lib/octopolo/commands/compare_release.rb
|
212
212
|
- lib/octopolo/commands/deployable.rb
|
213
213
|
- lib/octopolo/commands/github_auth.rb
|
214
|
+
- lib/octopolo/commands/issue.rb
|
214
215
|
- lib/octopolo/commands/new_branch.rb
|
215
216
|
- lib/octopolo/commands/new_deployable.rb
|
216
217
|
- lib/octopolo/commands/new_staging.rb
|
@@ -228,6 +229,8 @@ files:
|
|
228
229
|
- lib/octopolo/git.rb
|
229
230
|
- lib/octopolo/github.rb
|
230
231
|
- lib/octopolo/github/commit.rb
|
232
|
+
- lib/octopolo/github/issue.rb
|
233
|
+
- lib/octopolo/github/issue_creator.rb
|
231
234
|
- lib/octopolo/github/label.rb
|
232
235
|
- lib/octopolo/github/pull_request.rb
|
233
236
|
- lib/octopolo/github/pull_request_creator.rb
|
@@ -243,6 +246,7 @@ files:
|
|
243
246
|
- lib/octopolo/scripts/compare_release.rb
|
244
247
|
- lib/octopolo/scripts/deployable.rb
|
245
248
|
- lib/octopolo/scripts/github_auth.rb
|
249
|
+
- lib/octopolo/scripts/issue.rb
|
246
250
|
- lib/octopolo/scripts/new_branch.rb
|
247
251
|
- lib/octopolo/scripts/new_deployable.rb
|
248
252
|
- lib/octopolo/scripts/new_staging.rb
|
@@ -255,6 +259,7 @@ files:
|
|
255
259
|
- lib/octopolo/scripts/sync_branch.rb
|
256
260
|
- lib/octopolo/scripts/tag_release.rb
|
257
261
|
- lib/octopolo/semver_tag_scrubber.rb
|
262
|
+
- lib/octopolo/templates/issue_body.erb
|
258
263
|
- lib/octopolo/templates/pull_request_body.erb
|
259
264
|
- lib/octopolo/user_config.rb
|
260
265
|
- lib/octopolo/version.rb
|
@@ -267,6 +272,8 @@ files:
|
|
267
272
|
- spec/octopolo/dated_branch_creator_spec.rb
|
268
273
|
- spec/octopolo/git_spec.rb
|
269
274
|
- spec/octopolo/github/commit_spec.rb
|
275
|
+
- spec/octopolo/github/issue_creator_spec.rb
|
276
|
+
- spec/octopolo/github/issue_spec.rb
|
270
277
|
- spec/octopolo/github/label_spec.rb
|
271
278
|
- spec/octopolo/github/pull_request_creator_spec.rb
|
272
279
|
- spec/octopolo/github/pull_request_spec.rb
|
@@ -281,6 +288,7 @@ files:
|
|
281
288
|
- spec/octopolo/scripts/compare_release_spec.rb
|
282
289
|
- spec/octopolo/scripts/deployable_spec.rb
|
283
290
|
- spec/octopolo/scripts/github_auth_spec.rb
|
291
|
+
- spec/octopolo/scripts/issue_spec.rb
|
284
292
|
- spec/octopolo/scripts/new_branch_spec.rb
|
285
293
|
- spec/octopolo/scripts/new_deployable_spec.rb
|
286
294
|
- spec/octopolo/scripts/new_staging_spec.rb
|
@@ -333,6 +341,8 @@ test_files:
|
|
333
341
|
- spec/octopolo/dated_branch_creator_spec.rb
|
334
342
|
- spec/octopolo/git_spec.rb
|
335
343
|
- spec/octopolo/github/commit_spec.rb
|
344
|
+
- spec/octopolo/github/issue_creator_spec.rb
|
345
|
+
- spec/octopolo/github/issue_spec.rb
|
336
346
|
- spec/octopolo/github/label_spec.rb
|
337
347
|
- spec/octopolo/github/pull_request_creator_spec.rb
|
338
348
|
- spec/octopolo/github/pull_request_spec.rb
|
@@ -347,6 +357,7 @@ test_files:
|
|
347
357
|
- spec/octopolo/scripts/compare_release_spec.rb
|
348
358
|
- spec/octopolo/scripts/deployable_spec.rb
|
349
359
|
- spec/octopolo/scripts/github_auth_spec.rb
|
360
|
+
- spec/octopolo/scripts/issue_spec.rb
|
350
361
|
- spec/octopolo/scripts/new_branch_spec.rb
|
351
362
|
- spec/octopolo/scripts/new_deployable_spec.rb
|
352
363
|
- spec/octopolo/scripts/new_staging_spec.rb
|