gitable 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "gitable"
4
- s.version = "0.1.2"
4
+ s.version = "0.1.3"
5
5
  s.authors = ["Martin Emde"]
6
6
  s.email = ["martin.emde@gmail.com"]
7
7
  s.homepage = "http://github.org/martinemde/gitable"
@@ -2,7 +2,7 @@ require 'addressable/uri'
2
2
 
3
3
  module Gitable
4
4
  class URI < Addressable::URI
5
- SCP_URI_REGEXP = %r|^([^:/?#]+):([^?#]*)$|
5
+ SCP_URI_REGEXP = %r|^([^:/?#]+):([^:?#]*)$|
6
6
 
7
7
  ##
8
8
  # Parse a git repository URI into a URI object.
@@ -81,7 +81,7 @@ module Gitable
81
81
  end
82
82
 
83
83
  def authenticated?
84
- ssh? || (user && password.nil?)
84
+ ssh? || (!user.nil? && password.nil?)
85
85
  end
86
86
 
87
87
  # Set an extension name, replacing one if it exists.
@@ -159,15 +159,6 @@ describe Gitable::URI do
159
159
  })
160
160
  end
161
161
 
162
- describe_uri "https://user@host.xz/path/to/repo.git/" do
163
- it { subject.to_s.should == @uri }
164
- it_sets expected.merge({
165
- :user => "user",
166
- :scheme => "https",
167
- :authenticated? => true,
168
- })
169
- end
170
-
171
162
  describe_uri "https://host.xz:8888/path/to/repo.git/" do
172
163
  it { subject.to_s.should == @uri }
173
164
  it_sets expected.merge({
@@ -181,6 +172,7 @@ describe Gitable::URI do
181
172
  it_sets expected.merge({
182
173
  :scheme => "git+ssh",
183
174
  :ssh? => true,
175
+ :authenticated? => true,
184
176
  })
185
177
  end
186
178
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
4
+ hash: 29
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Martin Emde
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-06 00:00:00 -08:00
18
+ date: 2011-02-16 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -77,7 +77,6 @@ files:
77
77
  - LICENSE
78
78
  - README.rdoc
79
79
  - Rakefile
80
- - VERSION.yml
81
80
  - gitable.gemspec
82
81
  - lib/gitable.rb
83
82
  - lib/gitable/scp_uri.rb
@@ -117,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
116
  requirements: []
118
117
 
119
118
  rubyforge_project:
120
- rubygems_version: 1.3.7
119
+ rubygems_version: 1.5.0
121
120
  signing_key:
122
121
  specification_version: 3
123
122
  summary: Addressable::URI for Git. Gitable::URI.
@@ -1,5 +0,0 @@
1
- ---
2
- :major: 0
3
- :minor: 0
4
- :patch: 3
5
-