d1lcs 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/d1lcs/element.rb +6 -1
- data/lib/d1lcs/version.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c339acdf61a0ed69d61dec2ca1ea27f40dbc24f9
|
4
|
+
data.tar.gz: d48eb32147f2ce9bf01417df864e4099dd2e3d70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e8c9bf2c5440903d85487888453fed485e37caa2e54192265372c29e62560de1c604358ce73c5abcb3afe2ee9b6f7551c6c87767e87a33da6970d0cf8536750
|
7
|
+
data.tar.gz: 50dee5040376a55ec308a8f05e9e1910a44a2e8a16e1d43443f9de76121edac2a507d4374186353c11efe62842536d4dc5ef40edc02d1caf33499256e33bba01
|
data/lib/d1lcs/element.rb
CHANGED
@@ -135,7 +135,12 @@ module D1lcs
|
|
135
135
|
# @return [Hash]
|
136
136
|
def json_parse
|
137
137
|
begin
|
138
|
-
|
138
|
+
open(
|
139
|
+
URI.parse(CHARA_SHEET_URL % @request),
|
140
|
+
'User-Agent' => D1lcs::USER_AGENT
|
141
|
+
) { |f|
|
142
|
+
JSON.parse(f.read)
|
143
|
+
}
|
139
144
|
rescue => e
|
140
145
|
@logger.error { ["requestID:#{@request}", e.class, e].join(' : ') }
|
141
146
|
nil
|
data/lib/d1lcs/version.rb
CHANGED