diva 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/diva.rb +3 -1
- data/lib/diva/uri.rb +4 -4
- data/lib/diva/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 68d766412779aaedc71ea2ab874be3861238afff5b896d4d4bdab9e50e2c5103
|
4
|
+
data.tar.gz: 7ca9cc8bec5f1b284fe51b078501831572519263feab02619b641ee7498543bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77ca8065a2a25a922bebdf0fe297242363f17e4277f411f4f72ece8ed0b61e26893452c6683d7815a55c96e5944f58e86436d77d38952fc9bf30c97c24e2c815
|
7
|
+
data.tar.gz: 77627879b34087e1a4877125c54c489b0b799d768fee187bffff8f237e337cce67981ccae60eaa7481b964bbe841fd02bbed68740ab5f972f60c7aa7b7ac6517
|
data/lib/diva.rb
CHANGED
data/lib/diva/uri.rb
CHANGED
@@ -44,8 +44,8 @@ class Diva::URI
|
|
44
44
|
|
45
45
|
def ==(other)
|
46
46
|
case other
|
47
|
-
when URI, Addressable::URI
|
48
|
-
other ==
|
47
|
+
when URI, Addressable::URI, String
|
48
|
+
other.to_s == self.to_s
|
49
49
|
when Diva::URI
|
50
50
|
if has_string? or other.has_string?
|
51
51
|
to_s == other.to_s
|
@@ -119,13 +119,13 @@ class Diva::URI
|
|
119
119
|
|
120
120
|
def generate_uri_by_string
|
121
121
|
URI.parse(@uri_string)
|
122
|
-
rescue URI::
|
122
|
+
rescue URI::Error
|
123
123
|
Addressable::URI.parse(@uri_string)
|
124
124
|
end
|
125
125
|
|
126
126
|
def generate_uri_by_hash
|
127
127
|
URI::Generic.build(@uri_hash)
|
128
|
-
rescue URI::
|
128
|
+
rescue URI::Error
|
129
129
|
Addressable::URI.new(@uri_hash)
|
130
130
|
end
|
131
131
|
end
|
data/lib/diva/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diva
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toshiaki Asai
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: '0'
|
149
149
|
requirements: []
|
150
150
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.6
|
151
|
+
rubygems_version: 2.7.6
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: Implementation of expression for handling things.
|