idcf-json_hyper_schema 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +0 -4
- data/.rubocop.yml +0 -2
- data/Gemfile.lock +14 -12
- data/README.md +1 -2
- data/idcf-json_hyper_schema.gemspec +1 -0
- data/lib/idcf/json_hyper_schema/expands/link_info_base.rb +4 -4
- data/lib/idcf/json_hyper_schema/version.rb +1 -1
- metadata +3 -4
- data/.rspec +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e46dfb6cfc5842cfdaa1b52e26d6035c7a3ce11
|
4
|
+
data.tar.gz: 54718f288e70ffdf1c173542a8211b2193bcad1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8ce892d827925310000a3ae4f674fc203b245517a270bd2e49ca01edf2dc43a9a9149b0f8b6a47f3e2efc631c0187d0ca446038088cbfe04b948c8452a04499
|
7
|
+
data.tar.gz: 0bb77f19e9489fda26d0e4d2fcb13348cd9350286d7e81cb0cf06918e0b193cbbe345f6f94a92e7881567199ebcbb04df773c7ddf2ad230bba8968d9eece4f9c
|
data/.codeclimate.yml
CHANGED
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
idcf-json_hyper_schema (0.1
|
4
|
+
idcf-json_hyper_schema (0.2.1)
|
5
5
|
activerecord (~> 4.2, >= 4.2.3)
|
6
6
|
activesupport (~> 4.2, >= 4.2.3)
|
7
7
|
json_schema (~> 0.17.0)
|
@@ -9,24 +9,26 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activemodel (4.2.
|
13
|
-
activesupport (= 4.2.
|
12
|
+
activemodel (4.2.11.1)
|
13
|
+
activesupport (= 4.2.11.1)
|
14
14
|
builder (~> 3.1)
|
15
|
-
activerecord (4.2.
|
16
|
-
activemodel (= 4.2.
|
17
|
-
activesupport (= 4.2.
|
15
|
+
activerecord (4.2.11.1)
|
16
|
+
activemodel (= 4.2.11.1)
|
17
|
+
activesupport (= 4.2.11.1)
|
18
18
|
arel (~> 6.0)
|
19
|
-
activesupport (4.2.
|
19
|
+
activesupport (4.2.11.1)
|
20
20
|
i18n (~> 0.7)
|
21
21
|
minitest (~> 5.1)
|
22
22
|
thread_safe (~> 0.3, >= 0.3.4)
|
23
23
|
tzinfo (~> 1.1)
|
24
24
|
arel (6.0.4)
|
25
25
|
builder (3.2.3)
|
26
|
+
concurrent-ruby (1.1.5)
|
26
27
|
diff-lcs (1.3)
|
27
|
-
i18n (0.
|
28
|
-
|
29
|
-
|
28
|
+
i18n (0.9.5)
|
29
|
+
concurrent-ruby (~> 1.0)
|
30
|
+
json_schema (0.17.2)
|
31
|
+
minitest (5.11.3)
|
30
32
|
rake (10.5.0)
|
31
33
|
rspec (3.6.0)
|
32
34
|
rspec-core (~> 3.6.0)
|
@@ -42,7 +44,7 @@ GEM
|
|
42
44
|
rspec-support (~> 3.6.0)
|
43
45
|
rspec-support (3.6.0)
|
44
46
|
thread_safe (0.3.6)
|
45
|
-
tzinfo (1.2.
|
47
|
+
tzinfo (1.2.5)
|
46
48
|
thread_safe (~> 0.1)
|
47
49
|
|
48
50
|
PLATFORMS
|
@@ -55,4 +57,4 @@ DEPENDENCIES
|
|
55
57
|
rspec
|
56
58
|
|
57
59
|
BUNDLED WITH
|
58
|
-
1.
|
60
|
+
1.16.1
|
data/README.md
CHANGED
@@ -46,14 +46,14 @@ module Idcf
|
|
46
46
|
#
|
47
47
|
# @return String
|
48
48
|
def href
|
49
|
-
|
50
|
-
return '' if
|
49
|
+
href_str = @data.href
|
50
|
+
return '' if href_str.nil?
|
51
51
|
l = []
|
52
|
-
|
52
|
+
href_str.split('/').each do |v|
|
53
53
|
next if v.empty?
|
54
54
|
l << v.gsub(PARAMS_REGEXP, '%s').gsub(QUERY_PARAMS_REGEXP, '')
|
55
55
|
end
|
56
|
-
href_head =
|
56
|
+
href_head = href_str =~ FULL_HREF_REGEXP ? "#{l.shift}/" : base_href
|
57
57
|
"#{href_head}/#{l.join('/')}"
|
58
58
|
end
|
59
59
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idcf-json_hyper_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IDC Frontier Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -114,7 +114,6 @@ extra_rdoc_files: []
|
|
114
114
|
files:
|
115
115
|
- ".codeclimate.yml"
|
116
116
|
- ".gitignore"
|
117
|
-
- ".rspec"
|
118
117
|
- ".rubocop.yml"
|
119
118
|
- Gemfile
|
120
119
|
- Gemfile.lock
|
@@ -151,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
150
|
version: '0'
|
152
151
|
requirements: []
|
153
152
|
rubyforge_project:
|
154
|
-
rubygems_version: 2.
|
153
|
+
rubygems_version: 2.4.5.1
|
155
154
|
signing_key:
|
156
155
|
specification_version: 4
|
157
156
|
summary: IDCF Json-Hyper-Schema Expand tools
|
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--require spec_helper
|