octopolo 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.markdown +1 -0
- data/lib/octopolo/commands/issue.rb +1 -4
- data/lib/octopolo/commands/pull_request.rb +2 -5
- data/lib/octopolo/commands/sync_branch.rb +2 -3
- data/lib/octopolo/config.rb +5 -4
- data/lib/octopolo/version.rb +1 -1
- data/spec/octopolo/config_spec.rb +2 -2
- data/spec/octopolo/github/pull_request_spec.rb +1 -0
- metadata +3 -5
- data/.ruby-version +0 -1
- data/spec/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6a67ceec3847ae82cd909737bf2b46f62158dab
|
4
|
+
data.tar.gz: c4c8486b109e1a402c8cf77ad5af2f7cc4ebb249
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94940d74fb753515939e99b38cd9ab386cff1b78ae1232f4f63a5442df0f30430555202b87f48b7c91d90db1ca48df4af203588fa265b592f35c6f669ed41596
|
7
|
+
data.tar.gz: ea460b23ad0cbb4054936d5cf017480c1e04d1b1227164984b02a9e3f2611466ef555c09bf2d40b43f5e718d1a487a2d9a58780e8953c531e1fe9a69dfde46d2
|
data/.gitignore
CHANGED
data/CHANGELOG.markdown
CHANGED
@@ -1,10 +1,7 @@
|
|
1
1
|
desc "Create an issue for the current project."
|
2
2
|
command 'issue' do |c|
|
3
|
-
config = Octopolo::Config.parse
|
4
|
-
user_config = Octopolo::UserConfig.parse
|
5
|
-
|
6
3
|
c.desc "Use $EDITOR to update PR description before creating"
|
7
|
-
c.switch [:e, :editor], :default_value => user_config.editor
|
4
|
+
c.switch [:e, :editor], :default_value => Octopolo.user_config.editor
|
8
5
|
|
9
6
|
c.action do |global_options, options, args|
|
10
7
|
require_relative '../scripts/issue'
|
@@ -1,13 +1,10 @@
|
|
1
1
|
desc "Create a pull request from the current branch to the application's designated deploy branch."
|
2
2
|
command 'pull-request' do |c|
|
3
|
-
config = Octopolo::Config.parse
|
4
|
-
user_config = Octopolo::UserConfig.parse
|
5
|
-
|
6
3
|
c.desc "Branch to create the pull request against"
|
7
|
-
c.flag [:d, :dest, :destination], :arg_name => "destination_branch", :default_value => config.deploy_branch
|
4
|
+
c.flag [:d, :dest, :destination], :arg_name => "destination_branch", :default_value => Octopolo.config.deploy_branch
|
8
5
|
|
9
6
|
c.desc "Use $EDITOR to update PR description before creating"
|
10
|
-
c.switch [:e, :editor], :default_value => user_config.editor
|
7
|
+
c.switch [:e, :editor], :default_value => Octopolo.user_config.editor
|
11
8
|
|
12
9
|
c.action do |global_options, options, args|
|
13
10
|
require_relative '../scripts/pull_request'
|
@@ -1,8 +1,7 @@
|
|
1
|
-
|
2
|
-
long_desc "branch - Which branch to merge into yours (default: #{config.deploy_branch})"
|
1
|
+
long_desc "branch - Which branch to merge into yours (default: #{Octopolo.config.deploy_branch})"
|
3
2
|
|
4
3
|
arg :branch
|
5
|
-
desc "Merge the #{config.deploy_branch} branch into the current working branch"
|
4
|
+
desc "Merge the #{Octopolo.config.deploy_branch} branch into the current working branch"
|
6
5
|
command 'sync-branch' do |c|
|
7
6
|
c.action do |global_options, options, args|
|
8
7
|
require_relative '../scripts/sync_branch'
|
data/lib/octopolo/config.rb
CHANGED
@@ -88,11 +88,13 @@ module Octopolo
|
|
88
88
|
# end defaults
|
89
89
|
|
90
90
|
def self.parse
|
91
|
-
new(attributes_from_file)
|
91
|
+
new(attributes_from_file || {})
|
92
92
|
end
|
93
93
|
|
94
94
|
def self.attributes_from_file
|
95
|
-
|
95
|
+
if path = octopolo_config_path
|
96
|
+
YAML.load_file(path)
|
97
|
+
end
|
96
98
|
end
|
97
99
|
|
98
100
|
def self.octopolo_config_path
|
@@ -104,8 +106,7 @@ module Octopolo
|
|
104
106
|
if old_dir != Dir.pwd
|
105
107
|
octopolo_config_path
|
106
108
|
else
|
107
|
-
Octopolo::CLI.say "Could not find #{FILE_NAMES.join(' or ')}"
|
108
|
-
exit
|
109
|
+
Octopolo::CLI.say "*** WARNING: Could not find #{FILE_NAMES.join(' or ')} ***"
|
109
110
|
end
|
110
111
|
end
|
111
112
|
end
|
data/lib/octopolo/version.rb
CHANGED
@@ -237,8 +237,8 @@ module Octopolo
|
|
237
237
|
|
238
238
|
it "gives up if it can't find a config file" do
|
239
239
|
File.stub(:exists?) { false }
|
240
|
-
Octopolo::CLI.should_receive(:say).with("Could not find .octopolo.yml or .automation.yml")
|
241
|
-
|
240
|
+
Octopolo::CLI.should_receive(:say).with("*** WARNING: Could not find .octopolo.yml or .automation.yml ***")
|
241
|
+
subject.octopolo_config_path
|
242
242
|
Dir.chdir project_working_dir
|
243
243
|
end
|
244
244
|
|
@@ -298,6 +298,7 @@ module Octopolo
|
|
298
298
|
|
299
299
|
it "calls GitHub.pull_requests with the current repo/branch and return a single pull request" do
|
300
300
|
Git.should_receive(:current_branch) { branch_name }
|
301
|
+
CLI.should_receive(:say).with("Pull request for current branch is number #{pr_number}")
|
301
302
|
GitHub.should_receive(:search_issues) { double(total_count: 1, items: [pull]) }
|
302
303
|
PullRequest.current.should == pull
|
303
304
|
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.2.
|
4
|
+
version: 1.2.1
|
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: 2016-05-
|
13
|
+
date: 2016-05-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: gli
|
@@ -193,7 +193,6 @@ extra_rdoc_files: []
|
|
193
193
|
files:
|
194
194
|
- ".gitignore"
|
195
195
|
- ".ruby-gemset"
|
196
|
-
- ".ruby-version"
|
197
196
|
- ".soyuz.yml"
|
198
197
|
- ".travis.yml"
|
199
198
|
- CHANGELOG.markdown
|
@@ -269,7 +268,6 @@ files:
|
|
269
268
|
- lib/octopolo/version.rb
|
270
269
|
- lib/octopolo/week.rb
|
271
270
|
- octopolo.gemspec
|
272
|
-
- spec/.DS_Store
|
273
271
|
- spec/octopolo/cli_spec.rb
|
274
272
|
- spec/octopolo/config_spec.rb
|
275
273
|
- spec/octopolo/convenience_wrappers_spec.rb
|
@@ -334,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
334
332
|
version: '0'
|
335
333
|
requirements: []
|
336
334
|
rubyforge_project:
|
337
|
-
rubygems_version: 2.4.
|
335
|
+
rubygems_version: 2.4.3
|
338
336
|
signing_key:
|
339
337
|
specification_version: 4
|
340
338
|
summary: A set of GitHub workflow scripts to provide a smooth development process
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ruby-2.1
|
data/spec/.DS_Store
DELETED
Binary file
|