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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 982ef8e91c621b1ac1896e3a1f8d41cdb911ad1a
4
- data.tar.gz: 3031407309e3a74f1798e9d7681eaaa86e535436
3
+ metadata.gz: fc9296caa367e4874f6f43377f49606ca9f4a770
4
+ data.tar.gz: 1db20f272e015470c2a3b506c324f652b845b78d
5
5
  SHA512:
6
- metadata.gz: 68bb4fccf01c6b56da88a58b590c3f3440f0b7e9f1066d061ffe2ccfaabec8012812162a79174bde90d5c612f67702fbdc6ff49b295d9fa2096c16e78dfce2d0
7
- data.tar.gz: 6fba1095cb8d530585d2f1e75ed60cab2e29c86a7a52cb0a32b07b7e41fc62cf481491441fe2a98a49074a6f3daad3498e4984d70ccfef734022996a6d1c2e09
6
+ metadata.gz: 579c0398de479c0f040f8738cf2a6fe12a686d9d79490a4f224035f3df537695c06502b218c23757322b3d0434c5f57f4f0de860a288f5999a6ec57c5ab18bb5
7
+ data.tar.gz: eb64ff45ef1a26f9d156f2a57fa8033ba188e91c3f3f9ccbe0fc80f91816def278e76830a06d20e00b42674f72dcbec180352cf004de6f08c6eb6a9f58b1afc3
@@ -0,0 +1,5 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
5
+ .idea/
@@ -1,6 +1,13 @@
1
1
  Changelog
2
2
  ==========
3
3
 
4
+ 0.0.3 - 10 November 2016
5
+ ----------
6
+
7
+ * Adding raise exception when SSL certificate is out of date
8
+ * Removed faraday dependency
9
+
10
+
4
11
  0.0.1 - 9 November 2016
5
12
  ----------
6
13
 
@@ -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 'faraday'
2
- require 'faraday_middleware'
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
- response = @conn.get('/repos/mozilla/geckodriver/releases')
35
- download_url(response.body)
29
+ result = JSON.parse(open(GIT_API_URL).read)
30
+ download_url(result)
36
31
  end
37
32
  end
38
33
  end
@@ -1,5 +1,5 @@
1
1
  module Geckodriver
2
2
  class Helper
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
@@ -1,5 +1,4 @@
1
1
  require 'spec_helper'
2
- require 'json'
3
2
 
4
3
  describe Geckodriver::Helper::GeckoReleasePageParser do
5
4
 
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.2
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