geckodriver-helper 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -0
- data/CHANGELOG.md +7 -0
- data/geckodriver-helper.gemspec +0 -2
- data/lib/geckodriver/helper/gecko_release_page_parser.rb +5 -10
- data/lib/geckodriver/helper/version.rb +1 -1
- data/spec/gecko_release_page_parser_spec.rb +0 -1
- metadata +2 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc9296caa367e4874f6f43377f49606ca9f4a770
|
4
|
+
data.tar.gz: 1db20f272e015470c2a3b506c324f652b845b78d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 579c0398de479c0f040f8738cf2a6fe12a686d9d79490a4f224035f3df537695c06502b218c23757322b3d0434c5f57f4f0de860a288f5999a6ec57c5ab18bb5
|
7
|
+
data.tar.gz: eb64ff45ef1a26f9d156f2a57fa8033ba188e91c3f3f9ccbe0fc80f91816def278e76830a06d20e00b42674f72dcbec180352cf004de6f08c6eb6a9f58b1afc3
|
data/CHANGELOG.md
CHANGED
data/geckodriver-helper.gemspec
CHANGED
@@ -22,6 +22,4 @@ described by the WebDriver protocol to communicate with Gecko browsers, such as
|
|
22
22
|
s.add_development_dependency "rake", "~> 10.0"
|
23
23
|
|
24
24
|
s.add_runtime_dependency "archive-zip", "~> 0.7.0"
|
25
|
-
s.add_runtime_dependency "faraday", "~> 0.9.2"
|
26
|
-
s.add_runtime_dependency "faraday_middleware", "~> 0.10.0"
|
27
25
|
end
|
@@ -1,20 +1,15 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
1
|
+
require 'open-uri'
|
2
|
+
require 'json'
|
3
3
|
|
4
4
|
module Geckodriver
|
5
5
|
class Helper
|
6
6
|
class GeckoReleasePageParser
|
7
|
-
GIT_API_URL = 'https://api.github.com'
|
7
|
+
GIT_API_URL = 'https://api.github.com/repos/mozilla/geckodriver/releases'
|
8
8
|
|
9
9
|
attr_reader :platform
|
10
10
|
|
11
11
|
def initialize(platform)
|
12
12
|
@platform = platform
|
13
|
-
@conn = Faraday.new(url: GIT_API_URL) do |faraday|
|
14
|
-
faraday.request :url_encoded
|
15
|
-
faraday.adapter Faraday.default_adapter
|
16
|
-
faraday.response :json, :content_type => /\bjson$/
|
17
|
-
end
|
18
13
|
end
|
19
14
|
|
20
15
|
def download_url(versions)
|
@@ -31,8 +26,8 @@ module Geckodriver
|
|
31
26
|
end
|
32
27
|
|
33
28
|
def latest_release
|
34
|
-
|
35
|
-
download_url(
|
29
|
+
result = JSON.parse(open(GIT_API_URL).read)
|
30
|
+
download_url(result)
|
36
31
|
end
|
37
32
|
end
|
38
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geckodriver-helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Devico Solutions
|
@@ -52,34 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.7.0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: faraday
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.9.2
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 0.9.2
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: faraday_middleware
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 0.10.0
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 0.10.0
|
83
55
|
description: |-
|
84
56
|
Easy installation and use of geckodriver, that provides the HTTP API
|
85
57
|
described by the WebDriver protocol to communicate with Gecko browsers, such as Firefox.
|
@@ -91,6 +63,7 @@ executables:
|
|
91
63
|
extensions: []
|
92
64
|
extra_rdoc_files: []
|
93
65
|
files:
|
66
|
+
- ".gitignore"
|
94
67
|
- ".travis.yml"
|
95
68
|
- CHANGELOG.md
|
96
69
|
- Gemfile
|