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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 113ebf578a2e5db18a4353b491a2eea521345d0b
4
- data.tar.gz: 1202b0cc8720861b7ef2319bfb135468f8ec6ffe
3
+ metadata.gz: 5ce2b9ef418a8aca1b5fd63c865bb697311b5e95
4
+ data.tar.gz: 8511d231ce860e934d5ff2d4c1a95716de1511d4
5
5
  SHA512:
6
- metadata.gz: fcc8e94870c5d9155e5e2dff470a0c76d4a38bacb66975ab29b442afe712113875dbc5531c33c78d78b879d4717ea6ffee96367af8a149310d083fed2f1e2353
7
- data.tar.gz: e66632ad69680c15128d97344e92c39f5e37358535a723ce5a96b806402d5be8fa1358b80ac706a76cfa75d9f54759da1e4c89f8615aa08c8846cf2aff8fc7a9
6
+ metadata.gz: b0d7c360168ed95419cf84c4ed78d87c131f91b7e7e30933fc102b456de88698b33268936550917341bd4fd415a129c4eabd8f4225882073578b63585bf05a38
7
+ data.tar.gz: 7a7fe4eecf2b9406fc0aed58b8253a0395482886ec922726340685b2e0a9b8a8d02e0199a2132f47b89d055f453d8550d676b08f618c44532ed6d00a8f02c61f
data/.gitignore CHANGED
@@ -30,6 +30,7 @@ pickle-email-*.html
30
30
  .idea/tasks.xml
31
31
 
32
32
  data/*
33
+ /vendor/bundle
33
34
 
34
35
 
35
36
 
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.4.3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- postdata (0.1.0)
4
+ postdata (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -19,4 +19,4 @@ DEPENDENCIES
19
19
  rake (~> 10.0)
20
20
 
21
21
  BUNDLED WITH
22
- 1.11.2
22
+ 1.16.0
@@ -0,0 +1,15 @@
1
+ #!/bin/sh
2
+
3
+ bundle_dir=./vendor/bundle
4
+ if [ -d "$bundle_dir" ] ; then
5
+ /bin/rm -rf "$bundle_dir"
6
+ bundle update
7
+ else
8
+ /bin/rm -rf "$bundle_dir"
9
+ bundle install --path "$bundle_dir"
10
+ fi
11
+
12
+
13
+
14
+
15
+
@@ -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
- if content !~ /<p><small>平成(\d+)年\s*(\d+)月\s*(\d+)日更[^<]*<\/small><\/p>/u
25
+ # p content
26
+ if content !~ />(\d+)年(\d+)月(\d+)日更新/
26
27
  raise RuntimeError, "更新日が取得できません";
27
28
  end
28
- heisei = $1
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)
@@ -1,3 +1,3 @@
1
1
  module Postdata
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
data/test.sh ADDED
@@ -0,0 +1,5 @@
1
+ #!/bin/sh
2
+ bundle exec rake test
3
+
4
+
5
+
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.1.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: 2016-08-09 00:00:00.000000000 Z
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.5.1
112
+ rubygems_version: 2.6.14
111
113
  signing_key:
112
114
  specification_version: 4
113
115
  summary: Postdata utilities