testingbot 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d61031deb471a4bf98a95a71b30f45762895f379
4
+ data.tar.gz: a76c02d7ac46d1cc42b2722f681a9f243d16acc7
5
+ SHA512:
6
+ metadata.gz: 1199b957440ea68516923e8966d8f0de90276b3bdd91f96fcc4c786b5bdb361527a2519ea27d9cb965ef85f65ffd18fd06faa765046b8087c0d0bb932be575a0
7
+ data.tar.gz: d9495bdf60a31e5bb9a3d452263fe2c1086779a699288d20410c24b20641781da71e979fd44b099104df7a6c6592ba880b2dfe8fe7b66ee854375941d5e0cfd6
@@ -53,7 +53,7 @@ module TestingBot
53
53
  uri = URI(API_URL + '/v' + VERSION.to_s + url)
54
54
  req = Net::HTTP::Get.new(uri.request_uri)
55
55
  req.basic_auth @config[:client_key], @config[:client_secret]
56
- res = Net::HTTP.start(uri.host, uri.port) {|http|
56
+ res = Net::HTTP.start(uri.host, uri.port, :use_ssl => true) {|http|
57
57
  http.request(req)
58
58
  }
59
59
 
@@ -71,7 +71,7 @@ module TestingBot
71
71
  req = Net::HTTP::Put.new(uri.request_uri)
72
72
  req.basic_auth @config[:client_key], @config[:client_secret]
73
73
  req.set_form_data(params)
74
- res = Net::HTTP.start(uri.host, uri.port) {|http|
74
+ res = Net::HTTP.start(uri.host, uri.port, :use_ssl => true) {|http|
75
75
  http.request(req)
76
76
  }
77
77
 
@@ -89,7 +89,7 @@ module TestingBot
89
89
  req = Net::HTTP::Delete.new(uri.request_uri)
90
90
  req.basic_auth @config[:client_key], @config[:client_secret]
91
91
  req.set_form_data(params)
92
- res = Net::HTTP.start(uri.host, uri.port) {|http|
92
+ res = Net::HTTP.start(uri.host, uri.port, :use_ssl => true) {|http|
93
93
  http.request(req)
94
94
  }
95
95
 
@@ -105,6 +105,7 @@ module TestingBot
105
105
  def post(url, params = {})
106
106
  url = URI.parse(API_URL + '/v' + VERSION + url)
107
107
  http = Net::HTTP.new(url.host, url.port)
108
+ http.use_ssl = true
108
109
  http.basic_auth @config[:client_key], @config[:client_secret]
109
110
  response = http.post(url.path, params.map { |k, v| "#{k.to_s}=#{v}" }.join("&"))
110
111
  end
@@ -41,8 +41,7 @@ if defined?(Spec) && defined?(Spec::VERSION::MAJOR) && Spec::VERSION::MAJOR == 1
41
41
  "session_id" => session_id,
42
42
  "status_message" => @execution_error,
43
43
  "success" => !actual_failure? ? 1 : 0,
44
- "name" => description.to_s,
45
- "kind" => 2
44
+ "name" => description.to_s
46
45
  }
47
46
 
48
47
  begin
@@ -202,8 +201,7 @@ begin
202
201
  "session_id" => session_id,
203
202
  "status_message" => status_message,
204
203
  "success" => example.exception.nil? ? 1 : 0,
205
- "name" => test_name,
206
- "kind" => 2
204
+ "name" => test_name
207
205
  }
208
206
 
209
207
  begin
@@ -244,8 +242,7 @@ module TestingBot
244
242
  "session_id" => @browser.session_id,
245
243
  "status_message" => @exception || "",
246
244
  "success" => passed? ? 1 : 0,
247
- "name" => self.to_s,
248
- "kind" => 2
245
+ "name" => self.to_s
249
246
  }
250
247
 
251
248
  begin
@@ -261,7 +258,7 @@ module TestingBot
261
258
 
262
259
  def handle_exception(e)
263
260
  @exception = e.to_s
264
- handle_exception_old(e)
261
+ problem_occurred
265
262
  end
266
263
 
267
264
  alias :handle_exception_old :handle_exception
@@ -1,3 +1,3 @@
1
1
  module Testingbot
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
Binary file
metadata CHANGED
@@ -1,71 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testingbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
5
- prerelease:
4
+ version: 0.1.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jochen Delabie
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-23 00:00:00.000000000 Z
11
+ date: 2015-09-01 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: json
16
- requirement: &70143118085740 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70143118085740
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: net-http-persistent
27
- requirement: &70143118085320 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *70143118085320
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: selenium-webdriver
38
- requirement: &70143118084900 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - ">="
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :runtime
45
49
  prerelease: false
46
- version_requirements: *70143118084900
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: rspec
49
- requirement: &70143118084380 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ! '>='
59
+ - - ">="
53
60
  - !ruby/object:Gem::Version
54
61
  version: 2.9.0
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *70143118084380
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 2.9.0
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: rake
60
- requirement: &70143118100340 !ruby/object:Gem::Requirement
61
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
62
72
  requirements:
63
- - - ! '>='
73
+ - - ">="
64
74
  - !ruby/object:Gem::Version
65
75
  version: '0'
66
76
  type: :development
67
77
  prerelease: false
68
- version_requirements: *70143118100340
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description: This gem makes using our Selenium grid on testingbot.com easy
70
84
  email:
71
85
  - info@testingbot.com
@@ -74,8 +88,8 @@ executables:
74
88
  extensions: []
75
89
  extra_rdoc_files: []
76
90
  files:
77
- - .gitignore
78
- - .travis.yml
91
+ - ".gitignore"
92
+ - ".travis.yml"
79
93
  - Gemfile
80
94
  - LICENSE
81
95
  - README.rdoc
@@ -128,27 +142,26 @@ files:
128
142
  - vendor/Testingbot-Tunnel.jar
129
143
  homepage: http://www.testingbot.com
130
144
  licenses: []
145
+ metadata: {}
131
146
  post_install_message:
132
147
  rdoc_options: []
133
148
  require_paths:
134
149
  - lib
135
150
  required_ruby_version: !ruby/object:Gem::Requirement
136
- none: false
137
151
  requirements:
138
- - - ! '>='
152
+ - - ">="
139
153
  - !ruby/object:Gem::Version
140
154
  version: '0'
141
155
  required_rubygems_version: !ruby/object:Gem::Requirement
142
- none: false
143
156
  requirements:
144
- - - ! '>='
157
+ - - ">="
145
158
  - !ruby/object:Gem::Version
146
159
  version: '0'
147
160
  requirements: []
148
161
  rubyforge_project: testingbot
149
- rubygems_version: 1.8.10
162
+ rubygems_version: 2.4.2
150
163
  signing_key:
151
- specification_version: 3
164
+ specification_version: 4
152
165
  summary: Ruby Gem to be used with testingbot.com
153
166
  test_files:
154
167
  - spec/integration/api_spec.rb