stormforge 0.6.0 → 0.7.0
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/.gitignore +1 -0
- data/Rakefile +12 -0
- data/lib/stormforge/client.rb +10 -4
- data/lib/stormforge/version.rb +1 -1
- data/lib/thor/main.rb +2 -1
- data/stormforge_ruby.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a87bf765a24f8440cbd0e50555d347ff624c7243
|
4
|
+
data.tar.gz: cf4d86449b0fef9f9e6df96cc6f84a6218aafcec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c52c56da34474a7735ab52eba05a45cfddb86be06477397720e8b985210e1e7f00929c14c84da5f7d3869e06e2811e4eaeeab09cbca282c643ea65e29309e8cf
|
7
|
+
data.tar.gz: da1a75a9e865f9dd1999b6eb59378027f4d040e45e129fe916c911820d2241db9c6687e30c5ab439b640cbc4f309744f83d23cd38cd6616b521fb5f82fbab242
|
data/.gitignore
CHANGED
data/Rakefile
CHANGED
@@ -1,6 +1,18 @@
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
|
1
4
|
require "bundler/gem_tasks"
|
2
5
|
require "rspec/core/rake_task"
|
3
6
|
|
4
7
|
RSpec::Core::RakeTask.new(:spec)
|
5
8
|
|
6
9
|
task :default => :spec
|
10
|
+
|
11
|
+
task :console do
|
12
|
+
require "irb"
|
13
|
+
require "irb/completion"
|
14
|
+
require "stormforge"
|
15
|
+
|
16
|
+
ARGV.clear
|
17
|
+
IRB.start
|
18
|
+
end
|
data/lib/stormforge/client.rb
CHANGED
@@ -25,10 +25,10 @@ class StormForge::Client
|
|
25
25
|
def connection
|
26
26
|
@connection ||= Faraday.new(url: @url_base, ssl: {
|
27
27
|
verify: !@skip_ssl_verification}) do |faraday|
|
28
|
-
faraday.basic_auth(email, token)
|
29
|
-
|
30
28
|
faraday.headers["User-Agent"] = "stormforge-ruby (#{StormForge::VERSION})"
|
31
29
|
faraday.headers["Content-Type"] = "application/json"
|
30
|
+
faraday.headers["X-User-Email"] = email
|
31
|
+
faraday.headers["X-User-Token"] = token
|
32
32
|
|
33
33
|
faraday.request :json
|
34
34
|
faraday.request :multipart
|
@@ -66,8 +66,14 @@ class StormForge::Client
|
|
66
66
|
connection.get("#{test_run_endpoint(test_run_id)}/log?since=#{since}&limit=#{limit}&include_start=#{include_start}")
|
67
67
|
end
|
68
68
|
|
69
|
-
def ping
|
70
|
-
|
69
|
+
def ping(authenticated=false)
|
70
|
+
path = if authenticated
|
71
|
+
"#{url_base}/authenticated_ping"
|
72
|
+
else
|
73
|
+
"#{url_base}/ping"
|
74
|
+
end
|
75
|
+
|
76
|
+
connection.get(path)
|
71
77
|
end
|
72
78
|
|
73
79
|
def aquire_api_token(email, password)
|
data/lib/stormforge/version.rb
CHANGED
data/lib/thor/main.rb
CHANGED
@@ -55,8 +55,9 @@ class StormForge::Thor::Main < StormForge::Thor::Base
|
|
55
55
|
end
|
56
56
|
|
57
57
|
desc "ping", "Ping StormForger API"
|
58
|
+
method_option :authenticated, type: :boolean, default: false, desc: 'Make authenticated ping'
|
58
59
|
def ping
|
59
|
-
result = client.ping
|
60
|
+
result = client.ping(options[:authenticated])
|
60
61
|
say "pong" if result.status < 399
|
61
62
|
end
|
62
63
|
|
data/stormforge_ruby.gemspec
CHANGED
@@ -37,6 +37,7 @@ Gem::Specification.new do |gem|
|
|
37
37
|
gem.add_development_dependency "rb-fsevent"
|
38
38
|
gem.add_development_dependency "terminal-notifier-guard"
|
39
39
|
gem.add_development_dependency "wirble"
|
40
|
+
gem.add_development_dependency "awesome_print"
|
40
41
|
end
|
41
42
|
|
42
43
|
if Object.const_defined?(:RUBY_ENGINE) && RUBY_ENGINE == "rbx"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stormforge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Cohnen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -248,6 +248,20 @@ dependencies:
|
|
248
248
|
- - ">="
|
249
249
|
- !ruby/object:Gem::Version
|
250
250
|
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: awesome_print
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
251
265
|
description: stormforge-ruby is ruby the client library for the StormForger load test
|
252
266
|
service
|
253
267
|
email:
|
@@ -333,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
333
347
|
version: '0'
|
334
348
|
requirements: []
|
335
349
|
rubyforge_project:
|
336
|
-
rubygems_version: 2.2.
|
350
|
+
rubygems_version: 2.2.2
|
337
351
|
signing_key:
|
338
352
|
specification_version: 4
|
339
353
|
summary: stormforge-ruby is ruby the client library for the StormForger load test
|