postdata 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/Gemfile.lock +2 -2
- data/build.sh +15 -0
- data/lib/postdata/downloader.rb +3 -3
- data/lib/postdata/version.rb +1 -1
- data/test.sh +5 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ce2b9ef418a8aca1b5fd63c865bb697311b5e95
|
4
|
+
data.tar.gz: 8511d231ce860e934d5ff2d4c1a95716de1511d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0d7c360168ed95419cf84c4ed78d87c131f91b7e7e30933fc102b456de88698b33268936550917341bd4fd415a129c4eabd8f4225882073578b63585bf05a38
|
7
|
+
data.tar.gz: 7a7fe4eecf2b9406fc0aed58b8253a0395482886ec922726340685b2e0a9b8a8d02e0199a2132f47b89d055f453d8550d676b08f618c44532ed6d00a8f02c61f
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3
|
1
|
+
2.4.3
|
data/Gemfile.lock
CHANGED
data/build.sh
ADDED
data/lib/postdata/downloader.rb
CHANGED
@@ -22,13 +22,13 @@ module Postdata
|
|
22
22
|
|
23
23
|
def self.get_update_date(url)
|
24
24
|
content = open(url, "r:UTF-8").read
|
25
|
-
|
25
|
+
# p content
|
26
|
+
if content !~ />(\d+)年(\d+)月(\d+)日更新/
|
26
27
|
raise RuntimeError, "更新日が取得できません";
|
27
28
|
end
|
28
|
-
|
29
|
+
year = $1
|
29
30
|
month = $2
|
30
31
|
day = $3
|
31
|
-
year = heisei_to_seireki(heisei).to_s
|
32
32
|
|
33
33
|
ymd = year + format_month_or_day(month) + format_month_or_day(day)
|
34
34
|
if (ymd.length != 8)
|
data/lib/postdata/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postdata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- src
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- Rakefile
|
81
81
|
- bin/console
|
82
82
|
- bin/setup
|
83
|
+
- build.sh
|
83
84
|
- download.sh
|
84
85
|
- exe/postdata
|
85
86
|
- lib/postdata.rb
|
@@ -87,6 +88,7 @@ files:
|
|
87
88
|
- lib/postdata/version.rb
|
88
89
|
- postdata.gemspec
|
89
90
|
- postdata.iml
|
91
|
+
- test.sh
|
90
92
|
homepage: https://github.com/src256/postdata
|
91
93
|
licenses:
|
92
94
|
- MIT
|
@@ -107,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
109
|
version: '0'
|
108
110
|
requirements: []
|
109
111
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.6.14
|
111
113
|
signing_key:
|
112
114
|
specification_version: 4
|
113
115
|
summary: Postdata utilities
|