octopolo 1.1.1 → 1.2.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: 6a0b617ccee9ebb7554e62724dd31dbd47886480
4
- data.tar.gz: cd633da707dbd0e117a1f9b61490580bf56e9807
3
+ metadata.gz: 432e910dc903f53748dd91a860fbaee266bc4adf
4
+ data.tar.gz: b70ac1dd46b538625ef6c2535afc598bc9566860
5
5
  SHA512:
6
- metadata.gz: 583071ec68cab9f4edbae1ab44cfc4ab848ae2790d953943fa305ff283b953801d4b0387c3bb504e1dd9aed38bec4de66a17a592c48162fb83f4603f2bdba02e
7
- data.tar.gz: 5def72cb1727d14fadeb66ab5a3ce885bb68952cff88614db207a39cca0b5341423bbd4e58cb294626122a793760ed4ba1bb03f547d30e43ccfae613a168c71c
6
+ metadata.gz: a0a05cdd533e6a7c0a927cb6ede96fc779556d6e988f4332d79d2ae3617f962418309d9f750581e35f6e6b92f67b76f822db941e9709ea00d8028c8f17170479
7
+ data.tar.gz: 0ec4e43d17a7f14acb90ad49ca11a8799e74677d94076666270df508f7f20665f276ff5e6dd1d8408a2d1c8af29107069d3a43ff2c779487bc7c64ebe0f7fb6e
@@ -1,3 +1,8 @@
1
+ #### v1.2.0
2
+ * View PR in Browser
3
+
4
+ > David Peterson, Brian Bergstrom: https://github.com/sportngin/octopolo/pull/75
5
+
1
6
  #### v1.1.1
2
7
  * Refine depdencies
3
8
 
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem 'guard', '~>2.5.0'
3
4
  gemspec
5
+
@@ -0,0 +1,7 @@
1
+ desc 'Opens the Pull Request in your default browser'
2
+ command 'view-pr' do |c|
3
+ c.action do |global_options, options, args|
4
+ require_relative '../scripts/view_pr'
5
+ Octopolo::Scripts::ViewPr.execute
6
+ end
7
+ end
@@ -0,0 +1,24 @@
1
+ require_relative "../scripts"
2
+ require_relative "../pull_request_merger"
3
+
4
+ module Octopolo
5
+ module Scripts
6
+ class ViewPr
7
+ include CLIWrapper
8
+
9
+ def self.execute
10
+ new.execute
11
+ end
12
+
13
+ # Public: Perform the script
14
+ def execute
15
+ current = GitHub::PullRequest.current
16
+
17
+ if current
18
+ cli.say "Opening Pull Request #{current.number}"
19
+ cli.open current.pull_request.html_url
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,3 +1,3 @@
1
1
  module Octopolo
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.0"
3
3
  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: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Byrne
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-11-05 00:00:00.000000000 Z
13
+ date: 2016-05-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: gli
@@ -225,6 +225,7 @@ files:
225
225
  - lib/octopolo/commands/stale_branches.rb
226
226
  - lib/octopolo/commands/sync_branch.rb
227
227
  - lib/octopolo/commands/tag_release.rb
228
+ - lib/octopolo/commands/view_pr.rb
228
229
  - lib/octopolo/config.rb
229
230
  - lib/octopolo/convenience_wrappers.rb
230
231
  - lib/octopolo/dated_branch_creator.rb
@@ -260,6 +261,7 @@ files:
260
261
  - lib/octopolo/scripts/stale_branches.rb
261
262
  - lib/octopolo/scripts/sync_branch.rb
262
263
  - lib/octopolo/scripts/tag_release.rb
264
+ - lib/octopolo/scripts/view_pr.rb
263
265
  - lib/octopolo/semver_tag_scrubber.rb
264
266
  - lib/octopolo/templates/issue_body.erb
265
267
  - lib/octopolo/templates/pull_request_body.erb
@@ -332,7 +334,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
332
334
  version: '0'
333
335
  requirements: []
334
336
  rubyforge_project:
335
- rubygems_version: 2.4.3
337
+ rubygems_version: 2.4.8
336
338
  signing_key:
337
339
  specification_version: 4
338
340
  summary: A set of GitHub workflow scripts to provide a smooth development process