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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72ab0fa641669721caefc63727fd0546f6a282c5859391bfac406ed70eae417d
4
- data.tar.gz: a054f761adc7a80e1656d2dcd3e35ebef7db9fa42ee987c8496704de2c1ae8fd
3
+ metadata.gz: c9ac141576d782cdd949643b5f838d7daff89719d52757e8a2ec05ce13da39ea
4
+ data.tar.gz: a3dc3a65ebe5486c64ab0b2fac80cf70eca863335cade13030c26ef8df204dca
5
5
  SHA512:
6
- metadata.gz: 263a71fa34b1dcef10a28b5e63573a702d2f0f22cb7c3b622b220138216319996fa97dc8ada57599c172dfcab8772f2eb54badd3d038ca588b565641e3bb48c9
7
- data.tar.gz: 8010d9faa0aff3e4e8fc2bf585b0f301864121612c7db8a1a28ee2fbaa42103f20971b560047a8e9db9991901e759d0b16753a9251ad219d497591930041342b
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...master)
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)
@@ -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(/window.__PRELOADED_STATE__\s*=\s*({.+})/)
45
- raise "Not Found window.__PRELOADED_STATE__ in #{url}" unless m
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
@@ -1,3 +1,3 @@
1
1
  module CureLine
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-05-06 00:00:00.000000000 Z
11
+ date: 2018-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie