pully-cli 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 40f2d88dd79739e33f5963e986fc02ede9f3290a
4
- data.tar.gz: 244df5f5d66a29b0f4a4faed26ad8eaeb9ac5657
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MzdhODljYzAyZDJiNDdlZTAwNTVlMjA0ZDRhODIzYjMwZTQ5MTQwYQ==
5
+ data.tar.gz: !binary |-
6
+ NDQwNzAxYjVjODlkZDQxMGRjNzYzYTg5MTM4ZGZjNTUzYWUzMjljMQ==
5
7
  SHA512:
6
- metadata.gz: 43c42626ee4d816157b02bd7a6d86d1d2c1b5fa54df641698abf7ea95f47840d52cfd186021e83186cab77804a94d3219551ae501c5858d457247cc8b181cc6d
7
- data.tar.gz: c95b3db50e5c51451ac976af0841fbe61403685bc2074dc1e636eb04eb9813c8ba896d5b52e1134e2fa26d712c3c5fdd0a46e9f6a904f9c94f2483c29b3e4fd5
8
+ metadata.gz: !binary |-
9
+ YWFmMGIyMmFkZGYwOTJkNWMzMzE0YzM1OWI2MmUxM2MzMTliMTg4NTY2YjE0
10
+ ZTdiOWVmNTBmNGVmNzRmYTY1MGRhYWFhNDVkOWI1OTdiMzMyMjFlZDAyZjQy
11
+ YjQ0Mjc0MDgwMjYxMGJlYjE3MDhmODBmZTY3MGY4NzNmMTBlMTE=
12
+ data.tar.gz: !binary |-
13
+ MjQ1NTYzMjY4Yzg4ZGYxNmRlNTE2N2Q0YmQxODU2NGRiMjRiMTkzNGQ5OTYx
14
+ MTU4ODE2NjM3MDQ2ZDk2YzBmNTEyYTc2OTQ3ZGNjNDQ1ZWJhZTQ1NmU1OTIz
15
+ ZjQ3NjNjMjA4N2NiMmE3OWUwM2U3OGUxMmI0OWRjMTJiM2Q5OTY=
data/.travis.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W3Ocb6u/tD7iW5+5qcRgemmeWPp4RdzeBtUG4xT5f+xjnLLabOsPLXlV0CQ2FhjMlAo2X44Hf1HhMJxOJxjLRNZlUC2iahsG3PGA1kuFC2TPjwULlaCNaOL0Q4g7LEq8/Y2HBYLcGmkcSEqoumCrakcNOu2KjLbr5gkEW+dQ3BxOXClUHe61cVBZM3BHEGLkkMZPdrqV5dP2coRrhuG0awoFZY0tIDFfOwC8qOTv1JPW7WSgAL8zF18exAD4+aOPLR8fUWYOf5s29/ha5Y24l7m2Sis0kb8fAvwiOc2NP5iIk7+pwlQu2zGomlo6VzErPqhys17QhfDV+kPk4R3MbCJeL7r0Tv8ygAbGhzdqwmX3tWFHfscRgIcgOMtA47yX3F4OyyKitCs/EF3Rn+4qPcp5794ggwPUKukQvF7sLlL6PE8iMRa0r5eqF3vdfkLha0x7dso2AO+WcaI=
12
10
  gem: pully-cli
13
11
  gemspec: pully-cli.gemspec
14
12
  on:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pully (0.0.1)
4
+ pully-cli (0.0.2)
5
5
  git
6
6
  uri-ssh_git
7
7
 
@@ -16,7 +16,7 @@ GEM
16
16
  coderay (1.1.0)
17
17
  diff-lcs (1.2.5)
18
18
  docile (1.1.5)
19
- git (1.2.9.1)
19
+ git (1.3.0)
20
20
  json (1.8.3)
21
21
  method_source (0.8.2)
22
22
  parser (2.2.2.6)
@@ -54,7 +54,7 @@ GEM
54
54
  simplecov-html (~> 0.10.0)
55
55
  simplecov-html (0.10.0)
56
56
  slop (3.6.0)
57
- uri-ssh_git (0.1.1)
57
+ uri-ssh_git (1.0.0)
58
58
 
59
59
  PLATFORMS
60
60
  ruby
@@ -62,11 +62,11 @@ PLATFORMS
62
62
  DEPENDENCIES
63
63
  codeclimate-test-reporter
64
64
  pry
65
- pully!
65
+ pully-cli!
66
66
  rake
67
67
  rspec
68
68
  rubocop
69
69
  simplecov
70
70
 
71
71
  BUNDLED WITH
72
- 1.10.5
72
+ 1.10.6
data/README.md CHANGED
@@ -1,2 +1,12 @@
1
- # pully
2
- Pull request creator on github
1
+ # Pully [![Build Status](https://travis-ci.org/robert2d/pully.svg?branch=master)](https://travis-ci.org/robert2d/pully) [![Code Climate](https://codeclimate.com/github/robert2d/pully/badges/gpa.svg)](https://codeclimate.com/github/robert2d/pully) [![Test Coverage](https://codeclimate.com/github/robert2d/pully/badges/coverage.svg)](https://codeclimate.com/github/robert2d/pully/coverage)
2
+
3
+ Jump straight to a pull request from you command prompt!
4
+ Pully will open a pull request on the repo you are currently in for the branch you are currently on.
5
+
6
+ ### install
7
+ ```
8
+ gem install pully-cli
9
+ ```
10
+
11
+ ### Usage
12
+ `pully`
data/lib/pully.rb CHANGED
@@ -14,7 +14,7 @@ class Pully
14
14
  dir += '/..' until File.directory?("#{dir}/.git")
15
15
  @git = Git.open(dir)
16
16
  @branch = Git::Lib.new.send(:command, 'rev-parse --abbrev-ref HEAD')
17
- @remote = process_remote(git.config['remote.origin.url'])
17
+ @remote = process_remote(@git.config['remote.origin.url'])
18
18
  end
19
19
 
20
20
  def open
@@ -35,6 +35,6 @@ class Pully
35
35
  return remote
36
36
  rescue URI::InvalidURIError
37
37
  uri = URI::SshGit.parse(remote)
38
- return "https://#{uri.host}#{uri.path}"
38
+ return "https://#{uri.host}/#{uri.path.sub(%r{^\/}, '')}"
39
39
  end
40
40
  end
data/lib/pully/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Pully
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
data/pully-cli.gemspec CHANGED
@@ -6,7 +6,6 @@ require 'pully/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = 'pully-cli'
8
8
  gem.version = Pully::VERSION
9
- gem.version = "#{gem.version}-alpha-#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
10
9
  gem.authors = ['Dave Robertson']
11
10
  gem.email = ['david.andrew.robertson.nz@gmail.com']
12
11
  gem.description = 'Consumer Data EMR Tool'
@@ -19,6 +19,16 @@ describe Pully do
19
19
  )
20
20
  subject.open
21
21
  end
22
+
23
+ it 'opens company url' do
24
+ expect_any_instance_of(subject).to receive(:system).with(
25
+ 'open https://github.com/NuffieProductions/CE-Service/compare/master?expand=1'
26
+ )
27
+ expect_any_instance_of(Git::Base).to receive(:config).and_return(
28
+ 'remote.origin.url' => 'git@github.com:NuffieProductions/CE-Service.git'
29
+ )
30
+ subject.open
31
+ end
22
32
  end
23
33
  end
24
34
 
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pully-cli
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
  - Dave Robertson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-29 00:00:00.000000000 Z
11
+ date: 2016-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: uri-ssh_git
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: simplecov
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - ! '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: codeclimate-test-reporter
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - ! '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  description: Consumer Data EMR Tool
@@ -130,11 +130,11 @@ executables:
130
130
  extensions: []
131
131
  extra_rdoc_files: []
132
132
  files:
133
- - ".gitignore"
134
- - ".rspec"
135
- - ".rubocop.yml"
136
- - ".ruby-version"
137
- - ".travis.yml"
133
+ - .gitignore
134
+ - .rspec
135
+ - .rubocop.yml
136
+ - .ruby-version
137
+ - .travis.yml
138
138
  - Gemfile
139
139
  - Gemfile.lock
140
140
  - LICENSE
@@ -156,12 +156,12 @@ require_paths:
156
156
  - lib
157
157
  required_ruby_version: !ruby/object:Gem::Requirement
158
158
  requirements:
159
- - - ">="
159
+ - - ! '>='
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0'
162
162
  required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ">="
164
+ - - ! '>='
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
@@ -173,4 +173,3 @@ summary: Pull request creator on github or enterprise github
173
173
  test_files:
174
174
  - spec/lib/pully_spec.rb
175
175
  - spec/spec_helper.rb
176
- has_rdoc: