regrit 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MGQyZGJjZjg3M2Y3YWIzNTNkNTVlMWFhNGQxMjc4NmYwZmRlZGRkNg==
5
+ data.tar.gz: !binary |-
6
+ YmQwMjY3MGY5ZjJiNGJkMzgyNmM4YmUyMjMxN2EwYjkzODhiZDY2MQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ OTQyMTExZjQ2NGM5MDdhZGEzMGQ0ZDRkYzU5YWE1ODZkMjE2MmNiNjk2NjBl
10
+ NTRhOTdmZmZjYTc5Y2I4M2ZiNWRmOTc1NzI5ZjUwOGFjOGIzM2E3MGRmYWRj
11
+ OGU2M2Q1M2E1YmRlZGVkMDUxYjlhMjhiNGM0MDg2ODMwY2EyODE=
12
+ data.tar.gz: !binary |-
13
+ ODJkMTIwNjIyN2FjYTg0MDUzN2Q0NjU2ZjAwMGNiNjgxZjM5MmQwNzY5YjA4
14
+ MGY3MmY1N2NiYjc2NWQ3MWU4MzJiM2RiNzVkNzU2MzU5ZjhmZDJhZmY1M2M5
15
+ NzI3MTZkODZkODA5ZGE3YjQ0YTU2YWE3NTlkMGRhMzk1NmY3YjY=
@@ -0,0 +1,10 @@
1
+ rvm:
2
+ - 1.9.3
3
+ - 2.0.0
4
+ notifications:
5
+ webhooks:
6
+ urls:
7
+ - https://ensemble.engineyard.com/travis
8
+ on_success: always
9
+ on_failure: always
10
+ on_start: true
data/Rakefile CHANGED
@@ -7,10 +7,3 @@ RSpec::Core::RakeTask.new do |t|
7
7
  t.pattern = 'spec/**/*_spec.rb'
8
8
  end
9
9
  task :default => :spec
10
-
11
- RSpec::Core::RakeTask.new(:rcov) do |t|
12
- t.rspec_opts = %w[--color]
13
- t.pattern = 'spec/**/*_spec.rb'
14
- t.rcov = true
15
- t.rcov_opts = %w[--exclude spec/,gems/,Library/,.bundle]
16
- end
@@ -20,5 +20,9 @@ module Regrit
20
20
  def abbrev_commit
21
21
  commit[0...7]
22
22
  end
23
+
24
+ def match?(named)
25
+ name == named || full_name == named || [type,name].compact.join('/') == named
26
+ end
23
27
  end
24
28
  end
@@ -53,7 +53,7 @@ module Regrit
53
53
  #
54
54
  # @return [Ref, nil] A Ref object or nil
55
55
  def ref(named)
56
- load_refs(named).first
56
+ load_refs(named).detect { |ref| ref.match?(named) }
57
57
  end
58
58
 
59
59
  private
@@ -1,3 +1,3 @@
1
1
  module Regrit
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -23,7 +23,6 @@ Gem::Specification.new do |s|
23
23
 
24
24
  s.add_development_dependency "rspec", "~> 2.0"
25
25
  s.add_development_dependency "rake", "~> 0.9"
26
- s.add_development_dependency "rcov"
27
26
 
28
27
  s.files = `git ls-files`.split("\n")
29
28
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -1 +1 @@
1
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAw/yPM/JVRBMB31fNQE5rI38EhGsUGY5yYRlNkojqCTddBdPsDKjq56q4iPn2YCl01h2wYdOYRwgHkWRSCiYuveFKojqlY7/IcXbWqNShAuV6bAMyeCC1c5pNzGJYylv7WuP1MWT+0/mnJp3pykN5u7FDZ3MfYwMbl1SKqKnw6oKa5RCSm7zPuj62o+KdEHTvce4ozoWkGzSAReh1hDTivJFYOMFgrn1y4GMWBskjcYK9iMQBZI3gzM+QRKk7bMyEh+kwZxhJ4sYJlpJjMzEsMgpER2lzuQDRDktGieaUYBLdo/3R9op3B1Zkb/xJgtS1aOfZQAC720hMjEkNsrZIww== memde@kaffir.local
1
+ ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAw/yPM/JVRBMB31fNQE5rI38EhGsUGY5yYRlNkojqCTddBdPsDKjq56q4iPn2YCl01h2wYdOYRwgHkWRSCiYuveFKojqlY7/IcXbWqNShAuV6bAMyeCC1c5pNzGJYylv7WuP1MWT+0/mnJp3pykN5u7FDZ3MfYwMbl1SKqKnw6oKa5RCSm7zPuj62o+KdEHTvce4ozoWkGzSAReh1hDTivJFYOMFgrn1y4GMWBskjcYK9iMQBZI3gzM+QRKk7bMyEh+kwZxhJ4sYJlpJjMzEsMgpER2lzuQDRDktGieaUYBLdo/3R9op3B1Zkb/xJgtS1aOfZQAC720hMjEkNsrZIww== regrit@engineyard.com
@@ -71,7 +71,7 @@ describe Regrit::RemoteRepo do
71
71
  end
72
72
 
73
73
  context "(private)" do
74
- before { @uri = "git@github.com:martinemde/regrit.git" }
74
+ before { @uri = "git@github.com:engineyard/regrit.git" }
75
75
  subject { described_class.new(@uri, :private_key => private_key) }
76
76
 
77
77
  it { should be_private_key_required }
@@ -81,10 +81,15 @@ describe Regrit::RemoteRepo do
81
81
  it { should have_at_least(2).refs }
82
82
 
83
83
  it "has a master ref" do
84
- subject.ref('master').name.should == 'master'
85
- subject.ref('master').type.should == 'heads'
86
- subject.ref('master').should be_branch
87
- subject.ref('master').should_not be_tag
84
+ ref = subject.ref('master')
85
+ ref.name.should == 'master'
86
+ ref.type.should == 'heads'
87
+ ref.should be_branch
88
+ ref.should_not be_tag
89
+ end
90
+
91
+ it "loads master differently than the duplicate_spec/master branch instead of getting confused by it" do
92
+ subject.ref('master').commit.should_not eq(subject.ref('duplicate_spec/master').commit)
88
93
  end
89
94
 
90
95
  it "has a refs/heads/master ref" do
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regrit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Martin Emde
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-08-23 00:00:00.000000000 Z
11
+ date: 2013-08-08 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: gitable
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: open4
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: escape
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: git-ssh-wrapper
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: system-timer19
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: rspec
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ~>
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ~>
108
95
  - !ruby/object:Gem::Version
@@ -110,7 +97,6 @@ dependencies:
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: rake
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ~>
116
102
  - !ruby/object:Gem::Version
@@ -118,27 +104,10 @@ dependencies:
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ~>
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0.9'
126
- - !ruby/object:Gem::Dependency
127
- name: rcov
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: '0'
134
- type: :development
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
142
111
  description: Deal with remote git repositories, yo.
143
112
  email:
144
113
  - martin.emde@gmail.com
@@ -147,6 +116,7 @@ extensions: []
147
116
  extra_rdoc_files: []
148
117
  files:
149
118
  - .gitignore
119
+ - .travis.yml
150
120
  - Gemfile
151
121
  - README.md
152
122
  - Rakefile
@@ -168,33 +138,26 @@ files:
168
138
  - spec/wrong_key
169
139
  homepage: http://github.com/engineyard/regrit
170
140
  licenses: []
141
+ metadata: {}
171
142
  post_install_message:
172
143
  rdoc_options: []
173
144
  require_paths:
174
145
  - lib
175
146
  required_ruby_version: !ruby/object:Gem::Requirement
176
- none: false
177
147
  requirements:
178
148
  - - ! '>='
179
149
  - !ruby/object:Gem::Version
180
150
  version: '0'
181
- segments:
182
- - 0
183
- hash: 3102733921299104742
184
151
  required_rubygems_version: !ruby/object:Gem::Requirement
185
- none: false
186
152
  requirements:
187
153
  - - ! '>='
188
154
  - !ruby/object:Gem::Version
189
155
  version: '0'
190
- segments:
191
- - 0
192
- hash: 3102733921299104742
193
156
  requirements: []
194
157
  rubyforge_project:
195
- rubygems_version: 1.8.24
158
+ rubygems_version: 2.0.6
196
159
  signing_key:
197
- specification_version: 3
160
+ specification_version: 4
198
161
  summary: Never regrit how you talk with remote git repositories
199
162
  test_files:
200
163
  - spec/id_rsa