easy-auto 0.1.0 → 0.1.1

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: dca8d1b438beb23123e1543badb53fc151a37bbf
4
- data.tar.gz: 8bd09ac9a4f68a5478313924314ca60062cd7aa6
3
+ metadata.gz: be9a417bed8d6dd4cbfb267726053abaa78a32bd
4
+ data.tar.gz: 3e35062f83f88fa1baed26cebc3d3343eff628a9
5
5
  SHA512:
6
- metadata.gz: eaf8302161a39925b80c10522734b3c1f107c1e12a4c03a148f1f637d8b7e465069bc3011b5b464bf1c07cb3ed649f9f0c1394644332825fa54d1dc2a83f072a
7
- data.tar.gz: bc2fcbad9c35222faaf40b7f2e15ae12a20037fec77d71a595265dce23504c9815724c217fd17b4a80612868f92ff1199f556b7c93acc3ad3a4d96e9c74b0334
6
+ metadata.gz: da1a925c02ac7c2833a9693a26c344ef8e01650891167c883423dc984911624be7c9766ed233f65761e2635fb53997a7098198a0fc6c70d7b2ec2fc1a7bf7162
7
+ data.tar.gz: 3a58bc900cef5f77632f0d09d5128adc31010890a478074b1b8bf5d7324eabe6802200cc3996a610052e99924d4e3ece2fb3a84ce43edb5898da44cb90adb8eb
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'easy_auto'
4
4
 
5
- new_branch = ARGV.pop
6
- origin_branch = ARGV.pop
5
+ new_branch = ARGV.shift
6
+ origin_branch = ARGV.shift
7
7
 
8
8
  EasyAuto::CreateBranch.new(new_branch, origin_branch).run
@@ -25,6 +25,7 @@ module EasyAuto
25
25
  Octokit::Client.new(login: config_manager.github_email, access_token: config_manager.github_token).user
26
26
  rescue Faraday::Error::ConnectionFailed => e
27
27
  p e
28
+ p "It appears you had an SSL error. Read http://mislav.uniqpath.com/2013/07/ruby-openssl/ to fix it."
28
29
  rescue
29
30
  puts "make sure you have octokit installed and have run easy-authorize!"
30
31
  system_exit
@@ -1,3 +1,3 @@
1
1
  module EasyAuto
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -42,19 +42,11 @@ describe EasyAuto::CreateBranch do
42
42
  end
43
43
 
44
44
  describe 'command line invocation' do
45
- # add webmock to stop network io
46
- # do stuff with ARGV in create-branch bin script
47
- # get up the nerve to dm bernhardt on twitter to pair with you
48
45
 
49
46
  it 'should return usage when invoked without arguments' do
50
47
  -> { CBMock.new(nil, nil).run }.must_output "usage: create-branch <new-branch> <OPTIONAL: branch-to-track>.\n"
51
48
  end
52
49
 
53
- # it 'should return usage when invoked with too many arguments' do
54
- # subject = CBMock.new 'arg', 'too', 'many'
55
- # -> { subject.run }.must_output "usage: create-branch <new-branch> <OPTIONAL: branch-to-track>.\n"
56
- # end
57
-
58
50
  it 'should return usage when invoked with -h' do
59
51
  subject = CBMock.new '-h'
60
52
  -> { subject.run }.must_output "usage: create-branch <new-branch> <OPTIONAL: branch-to-track>.\n"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy-auto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Nelson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-06 00:00:00.000000000 Z
11
+ date: 2013-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler