cure_line 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/cure_line/user.rb +2 -2
- data/lib/cure_line/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9ac141576d782cdd949643b5f838d7daff89719d52757e8a2ec05ce13da39ea
|
4
|
+
data.tar.gz: a3dc3a65ebe5486c64ab0b2fac80cf70eca863335cade13030c26ef8df204dca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1c6e7851d17f11310e31d33e7f8f00feb6563b6dbc0ea547e4567172ab588592b94fee7c2351a26e93e16ea452550f4516295684a46d01ec5f086598b26f5e7
|
7
|
+
data.tar.gz: 171a4e2e5d68d55e3493f1ddfbf28725b7651a077c90c01478e8f786895d497ddbc6ad5d87cfc2c13dc2181bf3f78a93e98332de3c66a296dbb11d5a347323ff
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## Unreleased
|
2
|
-
[full changelog](http://github.com/sue445/cure_line/compare/v0.1.
|
2
|
+
[full changelog](http://github.com/sue445/cure_line/compare/v0.1.3...master)
|
3
|
+
|
4
|
+
## v0.1.3
|
5
|
+
[full changelog](http://github.com/sue445/cure_line/compare/v0.1.2...v0.1.3)
|
6
|
+
|
7
|
+
* Fixed: Not Found `window.__PRELOADED_STATE__`
|
8
|
+
* https://github.com/sue445/cure_line/pull/10
|
3
9
|
|
4
10
|
## v0.1.2
|
5
11
|
[full changelog](http://github.com/sue445/cure_line/compare/v0.1.1...v0.1.2)
|
data/lib/cure_line/user.rb
CHANGED
@@ -41,8 +41,8 @@ module CureLine
|
|
41
41
|
url = "https://timeline.line.me/user/#{user_id}"
|
42
42
|
html = open(url, options).read
|
43
43
|
|
44
|
-
m = html.match(/
|
45
|
-
raise
|
44
|
+
m = html.match(%r{<script id="init_data" type="application/json">({.+})</script>})
|
45
|
+
raise %Q(Not Found <script id="init_data" type="application/json"> in #{url}) unless m
|
46
46
|
|
47
47
|
@preloaded_state = CureLine::Mash.new(JSON.parse(m[1]))
|
48
48
|
end
|
data/lib/cure_line/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cure_line
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|