gpis 0.0.7.1 → 0.0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.idea/workspace.xml +23 -27
- data/lib/gpis/gpis_scraper.rb +2 -2
- data/lib/gpis/version.rb +1 -1
- metadata +1 -1
data/.idea/workspace.xml
CHANGED
@@ -1,11 +1,7 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
|
-
<list default="true" id="5a7cce55-79e3-449d-ab1c-02d21d595272" name="Default" comment=""
|
5
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/gpis.iml" afterPath="$PROJECT_DIR$/.idea/gpis.iml" />
|
6
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
7
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/gpis/version.rb" afterPath="$PROJECT_DIR$/lib/gpis/version.rb" />
|
8
|
-
</list>
|
4
|
+
<list default="true" id="5a7cce55-79e3-449d-ab1c-02d21d595272" name="Default" comment="" />
|
9
5
|
<ignored path="gpis.iws" />
|
10
6
|
<ignored path=".idea/workspace.xml" />
|
11
7
|
<option name="TRACKING_ENABLED" value="true" />
|
@@ -50,10 +46,10 @@
|
|
50
46
|
</provider>
|
51
47
|
</entry>
|
52
48
|
</file>
|
53
|
-
<file leaf-file-name="version.rb" pinned="false" current="
|
49
|
+
<file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
|
54
50
|
<entry file="file://$PROJECT_DIR$/lib/gpis/version.rb">
|
55
51
|
<provider selected="true" editor-type-id="text-editor">
|
56
|
-
<state line="1" column="20" selection-start="32" selection-end="32" vertical-scroll-proportion="0.
|
52
|
+
<state line="1" column="20" selection-start="32" selection-end="32" vertical-scroll-proportion="0.0">
|
57
53
|
<folding />
|
58
54
|
</state>
|
59
55
|
</provider>
|
@@ -77,10 +73,10 @@
|
|
77
73
|
</provider>
|
78
74
|
</entry>
|
79
75
|
</file>
|
80
|
-
<file leaf-file-name="gpis_scraper.rb" pinned="false" current="
|
76
|
+
<file leaf-file-name="gpis_scraper.rb" pinned="false" current="true" current-in-tab="true">
|
81
77
|
<entry file="file://$PROJECT_DIR$/lib/gpis/gpis_scraper.rb">
|
82
78
|
<provider selected="true" editor-type-id="text-editor">
|
83
|
-
<state line="
|
79
|
+
<state line="34" column="19" selection-start="1123" selection-end="1123" vertical-scroll-proportion="0.6605317">
|
84
80
|
<folding />
|
85
81
|
</state>
|
86
82
|
</provider>
|
@@ -103,8 +99,8 @@
|
|
103
99
|
<option value="$PROJECT_DIR$/lib/gpis/gpis_app_info.rb" />
|
104
100
|
<option value="$PROJECT_DIR$/README.md" />
|
105
101
|
<option value="$PROJECT_DIR$/gpis.gemspec" />
|
106
|
-
<option value="$PROJECT_DIR$/lib/gpis/gpis_scraper.rb" />
|
107
102
|
<option value="$PROJECT_DIR$/lib/gpis/version.rb" />
|
103
|
+
<option value="$PROJECT_DIR$/lib/gpis/gpis_scraper.rb" />
|
108
104
|
</list>
|
109
105
|
</option>
|
110
106
|
</component>
|
@@ -426,13 +422,6 @@
|
|
426
422
|
</state>
|
427
423
|
</provider>
|
428
424
|
</entry>
|
429
|
-
<entry file="file://$PROJECT_DIR$/Rakefile">
|
430
|
-
<provider selected="true" editor-type-id="text-editor">
|
431
|
-
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
432
|
-
<folding />
|
433
|
-
</state>
|
434
|
-
</provider>
|
435
|
-
</entry>
|
436
425
|
<entry file="file://$PROJECT_DIR$/README.md">
|
437
426
|
<provider selected="true" editor-type-id="text-editor">
|
438
427
|
<state line="25" column="74" selection-start="406" selection-end="406" vertical-scroll-proportion="0.0" />
|
@@ -445,37 +434,44 @@
|
|
445
434
|
</state>
|
446
435
|
</provider>
|
447
436
|
</entry>
|
448
|
-
<entry file="file://$PROJECT_DIR$/
|
437
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
449
438
|
<provider selected="true" editor-type-id="text-editor">
|
450
|
-
<state line="
|
439
|
+
<state line="3" column="4" selection-start="85" selection-end="85" vertical-scroll-proportion="0.0">
|
451
440
|
<folding />
|
452
441
|
</state>
|
453
442
|
</provider>
|
454
443
|
</entry>
|
455
|
-
<entry file="file://$PROJECT_DIR$/lib/gpis/
|
444
|
+
<entry file="file://$PROJECT_DIR$/lib/gpis/version.rb">
|
456
445
|
<provider selected="true" editor-type-id="text-editor">
|
457
|
-
<state line="
|
446
|
+
<state line="1" column="20" selection-start="32" selection-end="32" vertical-scroll-proportion="0.0">
|
458
447
|
<folding />
|
459
448
|
</state>
|
460
449
|
</provider>
|
461
450
|
</entry>
|
462
|
-
<entry file="file://$PROJECT_DIR$/
|
451
|
+
<entry file="file://$PROJECT_DIR$/gpis.gemspec">
|
463
452
|
<provider selected="true" editor-type-id="text-editor">
|
464
|
-
<state line="
|
453
|
+
<state line="20" column="0" selection-start="936" selection-end="1074" vertical-scroll-proportion="0.0">
|
465
454
|
<folding />
|
466
455
|
</state>
|
467
456
|
</provider>
|
468
457
|
</entry>
|
469
|
-
<entry file="file://$PROJECT_DIR$/gpis.
|
458
|
+
<entry file="file://$PROJECT_DIR$/lib/gpis/gpis_app_info.rb">
|
470
459
|
<provider selected="true" editor-type-id="text-editor">
|
471
|
-
<state line="
|
460
|
+
<state line="62" column="51" selection-start="2103" selection-end="2103" vertical-scroll-proportion="0.0">
|
472
461
|
<folding />
|
473
462
|
</state>
|
474
463
|
</provider>
|
475
464
|
</entry>
|
476
|
-
<entry file="file://$PROJECT_DIR$/
|
465
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
466
|
+
<provider selected="true" editor-type-id="text-editor">
|
467
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
468
|
+
<folding />
|
469
|
+
</state>
|
470
|
+
</provider>
|
471
|
+
</entry>
|
472
|
+
<entry file="file://$PROJECT_DIR$/lib/gpis/gpis_scraper.rb">
|
477
473
|
<provider selected="true" editor-type-id="text-editor">
|
478
|
-
<state line="
|
474
|
+
<state line="34" column="19" selection-start="1123" selection-end="1123" vertical-scroll-proportion="0.6605317">
|
479
475
|
<folding />
|
480
476
|
</state>
|
481
477
|
</provider>
|
data/lib/gpis/gpis_scraper.rb
CHANGED
@@ -21,8 +21,8 @@ class GpisScraper
|
|
21
21
|
url = $!.uri
|
22
22
|
retry
|
23
23
|
rescue OpenURI::HTTPError => e
|
24
|
-
status_code = e.io.status[0]
|
25
|
-
if status_code == 503
|
24
|
+
status_code = e.io.status[0]
|
25
|
+
if status_code == "503"
|
26
26
|
raise GpisServiceNotAvailable.new("Gpis: Service Not Available : #{e.message} :#{e.backtrace.join("\n")}")
|
27
27
|
else
|
28
28
|
raise GpisPageNotFoundError.new("Gpis: Page Not Found Error : #{e.message} :#{e.backtrace.join("\n")}")
|
data/lib/gpis/version.rb
CHANGED