fop 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -17
- data/lib/fop/client.rb +3 -3
- data/lib/fop/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 655fefa320e09871e6e20a614c6e31639807e1f98eee33d0f860468e8d803177
|
|
4
|
+
data.tar.gz: 1cbeb2f12f3194d801d19457d55162afc0ecb96690707154eeccd5ceb9e348bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4bdae87131dbb8a06185f7cb80f077c43081c573f9d88c7712d116a436bae9a5c6ee4fdc67d5a0bcbcaead1abddd838ad519c87a8c1f60fcf32aa2bd3a00a9cd
|
|
7
|
+
data.tar.gz: 8797886b3669a9d28efb6e377e1e8393d967c33dfff9e547ddd80f362853a72421ff4a821eee5d6ae44fd6ed76042c32cfcf857dce4f2acc2d3cbe80a42e1311
|
data/Gemfile.lock
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
fop (0.1.
|
|
4
|
+
fop (0.1.1)
|
|
5
5
|
nokogiri
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
10
|
diff-lcs (1.3)
|
|
11
|
-
mini_portile2 (2.
|
|
12
|
-
nokogiri (1.
|
|
13
|
-
mini_portile2 (~> 2.
|
|
14
|
-
rake (12.3.
|
|
15
|
-
rspec (3.
|
|
16
|
-
rspec-core (~> 3.
|
|
17
|
-
rspec-expectations (~> 3.
|
|
18
|
-
rspec-mocks (~> 3.
|
|
19
|
-
rspec-core (3.
|
|
20
|
-
rspec-support (~> 3.
|
|
21
|
-
rspec-expectations (3.
|
|
11
|
+
mini_portile2 (2.4.0)
|
|
12
|
+
nokogiri (1.10.3)
|
|
13
|
+
mini_portile2 (~> 2.4.0)
|
|
14
|
+
rake (12.3.3)
|
|
15
|
+
rspec (3.8.0)
|
|
16
|
+
rspec-core (~> 3.8.0)
|
|
17
|
+
rspec-expectations (~> 3.8.0)
|
|
18
|
+
rspec-mocks (~> 3.8.0)
|
|
19
|
+
rspec-core (3.8.2)
|
|
20
|
+
rspec-support (~> 3.8.0)
|
|
21
|
+
rspec-expectations (3.8.4)
|
|
22
22
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
23
|
-
rspec-support (~> 3.
|
|
24
|
-
rspec-mocks (3.
|
|
23
|
+
rspec-support (~> 3.8.0)
|
|
24
|
+
rspec-mocks (3.8.1)
|
|
25
25
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
26
|
-
rspec-support (~> 3.
|
|
27
|
-
rspec-support (3.
|
|
26
|
+
rspec-support (~> 3.8.0)
|
|
27
|
+
rspec-support (3.8.2)
|
|
28
28
|
|
|
29
29
|
PLATFORMS
|
|
30
30
|
ruby
|
|
@@ -36,4 +36,4 @@ DEPENDENCIES
|
|
|
36
36
|
rspec (~> 3.0)
|
|
37
37
|
|
|
38
38
|
BUNDLED WITH
|
|
39
|
-
1.
|
|
39
|
+
1.17.3
|
data/lib/fop/client.rb
CHANGED
|
@@ -194,15 +194,15 @@ module Fop
|
|
|
194
194
|
end
|
|
195
195
|
|
|
196
196
|
def post_form(data)
|
|
197
|
-
Nokogiri::HTML(Net::HTTP.post_form(ENDPOINT_URI, data).tap(&:value).body
|
|
197
|
+
Nokogiri::HTML(Net::HTTP.post_form(ENDPOINT_URI, data).tap(&:value).body)
|
|
198
198
|
end
|
|
199
199
|
|
|
200
200
|
def form_page
|
|
201
|
-
@form_page ||= Nokogiri::HTML(open(ENDPOINT_URI, 'r', &:read)
|
|
201
|
+
@form_page ||= Nokogiri::HTML(open(ENDPOINT_URI, 'r', &:read))
|
|
202
202
|
end
|
|
203
203
|
|
|
204
204
|
def data_js
|
|
205
|
-
@data_js ||= open(DATA_JS_URI, 'r', &:read)
|
|
205
|
+
@data_js ||= open(DATA_JS_URI, 'r', &:read)
|
|
206
206
|
end
|
|
207
207
|
end
|
|
208
208
|
end
|
data/lib/fop/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sorah Fukumori
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-08-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -106,8 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
106
106
|
- !ruby/object:Gem::Version
|
|
107
107
|
version: '0'
|
|
108
108
|
requirements: []
|
|
109
|
-
|
|
110
|
-
rubygems_version: 2.7.3
|
|
109
|
+
rubygems_version: 3.0.3
|
|
111
110
|
signing_key:
|
|
112
111
|
specification_version: 4
|
|
113
112
|
summary: scraping client of Japan Airlines FOP/Mileage calculator
|