testrail 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +5 -14
- data/README.md +5 -1
- data/Rakefile +17 -33
- data/lib/testrail.rb +5 -4
- data/lib/testrail/command_helper.rb +2 -2
- data/lib/testrail/config.rb +11 -9
- data/lib/testrail/request.rb +14 -28
- data/lib/testrail/version.rb +2 -2
- data/spec/lib/testrail/command_helper_spec.rb +5 -5
- data/spec/lib/testrail/config_spec.rb +6 -5
- data/spec/lib/testrail/request_spec.rb +5 -5
- metadata +62 -39
- data/.document +0 -5
- data/.rspec +0 -3
- data/.travis.yml +0 -7
- data/Gemfile.lock +0 -48
- data/testrail.gemspec +0 -82
data/Gemfile
CHANGED
@@ -1,15 +1,6 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
|
-
|
3
|
-
#
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
# Include everything needed to run rake, tests, features, etc.
|
8
|
-
group :development do
|
9
|
-
gem "rspec", "~> 2.8.0"
|
10
|
-
gem "rdoc", "~> 3.12"
|
11
|
-
gem "bundler", "~> 1.1.3"
|
12
|
-
gem "jeweler", "~> 1.8.4"
|
13
|
-
gem "webmock", "~> 1.9.0"
|
14
|
-
gem "simplecov", ">= 0"
|
15
|
-
end
|
2
|
+
|
3
|
+
# Declare your gem's dependencies in testrail.gemspec.
|
4
|
+
# Bundler will treat runtime dependencies like base dependencies, and
|
5
|
+
# development dependencies will be added by default to the :development group.
|
6
|
+
gemspec
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# testrail [![Travis Status](https://travis-ci.org/kris-at-tout/testrail.png)](https://travis-ci.org/kris-at-tout/testrail)
|
1
|
+
# testrail [![Gem Version](https://badge.fury.io/rb/testrail.png)](http://badge.fury.io/rb/testrail) [![Travis Status](https://travis-ci.org/kris-at-tout/testrail.png)](https://travis-ci.org/kris-at-tout/testrail) [![Code Climate](https://codeclimate.com/github/krobi64/testrail.png)](https://codeclimate.com/github/krobi64/testrail) [![Gemnasium](https://gemnasium.com/krobi64/testrail.png)](https://gemnasium.com/krobi64/testrail)
|
2
2
|
|
3
3
|
A Ruby client that tries to match TestRail's API one-to-one, while still
|
4
4
|
providing an idiomatic interface.
|
@@ -6,6 +6,10 @@ providing an idiomatic interface.
|
|
6
6
|
## Installation
|
7
7
|
gem install testrail
|
8
8
|
|
9
|
+
or in Gemfile
|
10
|
+
|
11
|
+
gem "testrail"
|
12
|
+
|
9
13
|
## Configuration
|
10
14
|
|
11
15
|
By default, Testrail's configuration points to their hosted service. You can set your api_key in either of the following ways:
|
data/Rakefile
CHANGED
@@ -1,37 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require 'bundler'
|
1
|
+
#!/usr/bin/env rake
|
5
2
|
begin
|
6
|
-
|
7
|
-
rescue
|
8
|
-
|
9
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
-
exit e.status_code
|
3
|
+
require 'bundler/setup'
|
4
|
+
rescue LoadError
|
5
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
11
6
|
end
|
12
|
-
require 'rake'
|
13
7
|
|
14
|
-
|
15
|
-
require_relative './lib/testrail/version'
|
16
|
-
Jeweler::Tasks.new do |gem|
|
17
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
18
|
-
gem.name = "testrail"
|
19
|
-
gem.version = Testrail::VERSION
|
20
|
-
gem.homepage = "http://github.com/kris-at-tout/testrail"
|
21
|
-
gem.license = "MIT"
|
22
|
-
gem.summary = "A Ruby client library for TestRail"
|
23
|
-
gem.description = <<-EOS
|
24
|
-
A Ruby client that tries to match TestRail's API one-to-one, while still
|
25
|
-
providing an idiomatic interface.
|
26
|
-
EOS
|
27
|
-
gem.email = "krobison@gmail.com"
|
28
|
-
gem.authors = ["Kristine Robison"]
|
29
|
-
# dependencies defined in Gemfile
|
30
|
-
end
|
31
|
-
Jeweler::RubygemsDotOrgTasks.new
|
8
|
+
Bundler::GemHelper.install_tasks
|
32
9
|
|
33
10
|
require 'rspec/core'
|
34
11
|
require 'rspec/core/rake_task'
|
12
|
+
desc "Run all specs in spec directory"
|
35
13
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
36
14
|
spec.pattern = FileList['spec/**/*_spec.rb']
|
37
15
|
end
|
@@ -43,12 +21,18 @@ end
|
|
43
21
|
|
44
22
|
task :default => :spec
|
45
23
|
|
46
|
-
|
47
|
-
|
48
|
-
|
24
|
+
begin
|
25
|
+
require 'rdoc/task'
|
26
|
+
rescue LoadError
|
27
|
+
require 'rdoc/rdoc'
|
28
|
+
require 'rake/rdoctask'
|
29
|
+
RDoc::Task = Rake::RDocTask
|
30
|
+
end
|
49
31
|
|
32
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
50
33
|
rdoc.rdoc_dir = 'rdoc'
|
51
|
-
rdoc.title
|
52
|
-
rdoc.
|
34
|
+
rdoc.title = 'Testrail'
|
35
|
+
rdoc.options << '--line-numbers'
|
36
|
+
rdoc.rdoc_files.include('README.md')
|
53
37
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
54
38
|
end
|
data/lib/testrail.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
require 'testrail/config'
|
2
|
+
require 'testrail/request'
|
3
|
+
require 'testrail/response'
|
4
|
+
require 'testrail/client'
|
4
5
|
|
5
6
|
module Testrail
|
6
7
|
def self.logger
|
7
8
|
Testrail.config.logger
|
8
9
|
end
|
9
|
-
end
|
10
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Testrail
|
2
2
|
module CommandHelper
|
3
|
-
def
|
3
|
+
def build_url(command, ids = nil)
|
4
4
|
command = Testrail.config.server + Testrail.config.api_path + command
|
5
5
|
unless ids.nil?
|
6
6
|
ids = '/' + [ids].flatten.join('/')
|
@@ -14,4 +14,4 @@ module Testrail
|
|
14
14
|
'&key=' + String(Testrail.config.api_key)
|
15
15
|
end
|
16
16
|
end
|
17
|
-
end
|
17
|
+
end
|
data/lib/testrail/config.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
require 'logger'
|
2
|
+
require 'active_support/configurable'
|
2
3
|
|
3
4
|
module Testrail
|
4
5
|
|
5
6
|
def self.configure(&block)
|
6
|
-
@config = Config.new
|
7
|
+
@config = Config.new
|
8
|
+
yield @config if block_given?
|
7
9
|
end
|
8
10
|
|
9
11
|
def self.config
|
@@ -11,21 +13,21 @@ module Testrail
|
|
11
13
|
end
|
12
14
|
|
13
15
|
class Config
|
14
|
-
|
16
|
+
include ActiveSupport::Configurable
|
17
|
+
config_accessor :headers, :server, :api_path, :api_key, :logger
|
15
18
|
|
16
|
-
def initialize
|
19
|
+
def initialize
|
17
20
|
default_config
|
18
|
-
instance_eval(&block) if block_given?
|
19
21
|
end
|
20
22
|
|
21
23
|
def default_config
|
22
|
-
|
24
|
+
self.headers = {
|
23
25
|
"Accept" => "application/json"
|
24
26
|
}
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
27
|
+
self.server = "https://example.testrail.com"
|
28
|
+
self.api_path = "/index.php?/miniapi/"
|
29
|
+
self.api_key = nil
|
30
|
+
self.logger = Logger.new STDOUT
|
29
31
|
end
|
30
32
|
end
|
31
33
|
end
|
data/lib/testrail/request.rb
CHANGED
@@ -1,48 +1,35 @@
|
|
1
1
|
require 'httparty'
|
2
|
+
require 'testrail/command_helper'
|
2
3
|
|
3
4
|
module Testrail
|
4
5
|
class Request
|
5
|
-
include HTTParty
|
6
6
|
extend Testrail::CommandHelper
|
7
|
-
|
7
|
+
include HTTParty
|
8
|
+
|
8
9
|
base_uri Testrail.config.server
|
9
10
|
format :json
|
10
11
|
|
11
12
|
def self.get(*args)
|
12
|
-
|
13
|
-
url = build_command(command, ids)
|
14
|
-
attempts = 0
|
15
|
-
begin
|
16
|
-
attempts += 1
|
17
|
-
response = Testrail::Response.new(super(url, opts))
|
18
|
-
rescue TimeoutError => error
|
19
|
-
retry if attempts < 3
|
20
|
-
unless Testrail.logger.nil?
|
21
|
-
Testrail.logger.error "Timeout connecting to GET #{url}"
|
22
|
-
Testrail.logger.error error
|
23
|
-
end
|
24
|
-
raise error
|
25
|
-
rescue Exception => error
|
26
|
-
unless Testrail.logger.nil?
|
27
|
-
Testrail.logger.error "Unexpected exception intercepted calling TestRail"
|
28
|
-
Testrail.logger.error error
|
29
|
-
end
|
30
|
-
raise error
|
31
|
-
end
|
32
|
-
response
|
13
|
+
request(:get, *args)
|
33
14
|
end
|
34
15
|
|
35
16
|
def self.post(*args)
|
17
|
+
request(:post, *args)
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def self.request(method, *args)
|
36
23
|
command, ids, opts = parse_args(*args)
|
37
|
-
url =
|
24
|
+
url = build_url(command, ids)
|
38
25
|
attempts = 0
|
39
26
|
begin
|
40
27
|
attempts += 1
|
41
|
-
response = Testrail::Response.new(
|
28
|
+
response = Testrail::Response.new(HTTParty.send(method, url, opts))
|
42
29
|
rescue TimeoutError => error
|
43
30
|
retry if attempts < 3
|
44
31
|
unless Testrail.logger.nil?
|
45
|
-
Testrail.logger.error "Timeout connecting to
|
32
|
+
Testrail.logger.error "Timeout connecting to #{method.to_s.upcase} #{url}"
|
46
33
|
Testrail.logger.error error
|
47
34
|
end
|
48
35
|
raise error
|
@@ -56,7 +43,6 @@ module Testrail
|
|
56
43
|
response
|
57
44
|
end
|
58
45
|
|
59
|
-
private
|
60
46
|
def self.parse_args(*args)
|
61
47
|
opts = args.last.instance_of?(Hash) ? args.pop : {}
|
62
48
|
opts[:headers] = opts[:headers] ? Testrail.config.headers.merge(opts[:headers]) : Testrail.config.headers
|
@@ -65,4 +51,4 @@ module Testrail
|
|
65
51
|
[command, ids, opts]
|
66
52
|
end
|
67
53
|
end
|
68
|
-
end
|
54
|
+
end
|
data/lib/testrail/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module Testrail
|
2
|
-
VERSION =
|
1
|
+
module Testrail
|
2
|
+
VERSION = '0.0.3'
|
3
3
|
end
|
@@ -9,10 +9,10 @@ describe Testrail::CommandHelper do
|
|
9
9
|
let(:key) { '&key=' + String(Testrail.config.api_key) }
|
10
10
|
let(:url_prefix) { Testrail.config.server + Testrail.config.api_path}
|
11
11
|
|
12
|
-
describe ".
|
12
|
+
describe ".build_url" do
|
13
13
|
context "with nil id" do
|
14
14
|
before do
|
15
|
-
@command = subject.
|
15
|
+
@command = subject.build_url('a_command')
|
16
16
|
end
|
17
17
|
|
18
18
|
it "creates a valid URL" do
|
@@ -22,7 +22,7 @@ describe Testrail::CommandHelper do
|
|
22
22
|
|
23
23
|
context "with a single id" do
|
24
24
|
before do
|
25
|
-
@command = subject.
|
25
|
+
@command = subject.build_url('a_command', 235)
|
26
26
|
end
|
27
27
|
|
28
28
|
it "creates a valid URL" do
|
@@ -32,7 +32,7 @@ describe Testrail::CommandHelper do
|
|
32
32
|
|
33
33
|
context "with an array of ids" do
|
34
34
|
before do
|
35
|
-
@command = subject.
|
35
|
+
@command = subject.build_url('a_command', [235, 'ax45'])
|
36
36
|
end
|
37
37
|
|
38
38
|
it "creates a valid URL" do
|
@@ -40,4 +40,4 @@ describe Testrail::CommandHelper do
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
43
|
-
end
|
43
|
+
end
|
@@ -13,7 +13,8 @@ describe Testrail do
|
|
13
13
|
context "without a block" do
|
14
14
|
before do
|
15
15
|
@default_config = subject.config.dup
|
16
|
-
|
16
|
+
subject.configure
|
17
|
+
@actual_config = subject.config
|
17
18
|
end
|
18
19
|
|
19
20
|
it "returns the default configuration" do
|
@@ -27,9 +28,10 @@ describe Testrail do
|
|
27
28
|
context "with a block" do
|
28
29
|
before do
|
29
30
|
@default_config = subject.config.dup
|
30
|
-
|
31
|
+
subject.configure { |config|
|
31
32
|
config.server = 'localhost'
|
32
33
|
}
|
34
|
+
@new_config = subject.config
|
33
35
|
end
|
34
36
|
|
35
37
|
it "overrides specified settings" do
|
@@ -55,7 +57,6 @@ describe Testrail do
|
|
55
57
|
before do
|
56
58
|
@new_server = new_server = 'http://localhost'
|
57
59
|
@new_api_path = new_api_path = '/some_path/'
|
58
|
-
debugger
|
59
60
|
subject.configure do |config|
|
60
61
|
config.server = new_server
|
61
62
|
config.api_path = new_api_path
|
@@ -105,7 +106,7 @@ describe Testrail do
|
|
105
106
|
subject.configure
|
106
107
|
end
|
107
108
|
end
|
108
|
-
|
109
|
+
|
109
110
|
context "with custom settings" do
|
110
111
|
before do
|
111
112
|
@mock_logger = mock_logger = mock('A Different Logger')
|
@@ -124,4 +125,4 @@ describe Testrail do
|
|
124
125
|
after do
|
125
126
|
Testrail.configure
|
126
127
|
end
|
127
|
-
end
|
128
|
+
end
|
@@ -17,26 +17,26 @@ describe Testrail::Request do
|
|
17
17
|
with(action_options).
|
18
18
|
to_return(body: JSON.generate({result: true, an_object: 'abc'}))
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
it "returns a Testrail::Response object" do
|
22
22
|
result = subject.send(method, command, action_options)
|
23
23
|
result.should be_instance_of Testrail::Response
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
26
|
context "with no ids" do
|
27
27
|
it "should call the HTTPclient with the correct parameters" do
|
28
28
|
subject.send(method, command, action_options)
|
29
29
|
WebMock.should have_requested(method, url_prefix + key)
|
30
30
|
end
|
31
31
|
end
|
32
|
-
|
32
|
+
|
33
33
|
context "with a single id" do
|
34
34
|
it "should call the HTTPclient with the correct parameters" do
|
35
35
|
subject.send(method, command, 789, action_options)
|
36
36
|
WebMock.should have_requested(method, url_prefix + '/789' + key)
|
37
37
|
end
|
38
38
|
end
|
39
|
-
|
39
|
+
|
40
40
|
context "with multiple ids" do
|
41
41
|
it "should call the HTTPclient with the correct parameters" do
|
42
42
|
subject.send(method, command, [789, 'a4g8'], action_options)
|
@@ -169,4 +169,4 @@ describe Testrail::Request do
|
|
169
169
|
end
|
170
170
|
end
|
171
171
|
end
|
172
|
-
end
|
172
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testrail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,32 +9,48 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-05-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 0.11.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.11.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
31
|
+
name: activesupport
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: '3.1'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.1'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 10.0.3
|
38
54
|
type: :development
|
39
55
|
prerelease: false
|
40
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,15 +58,15 @@ dependencies:
|
|
42
58
|
requirements:
|
43
59
|
- - ~>
|
44
60
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
61
|
+
version: 10.0.3
|
46
62
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
63
|
+
name: rspec
|
48
64
|
requirement: !ruby/object:Gem::Requirement
|
49
65
|
none: false
|
50
66
|
requirements:
|
51
67
|
- - ~>
|
52
68
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
69
|
+
version: 2.13.0
|
54
70
|
type: :development
|
55
71
|
prerelease: false
|
56
72
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,15 +74,15 @@ dependencies:
|
|
58
74
|
requirements:
|
59
75
|
- - ~>
|
60
76
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
77
|
+
version: 2.13.0
|
62
78
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
79
|
+
name: debugger
|
64
80
|
requirement: !ruby/object:Gem::Requirement
|
65
81
|
none: false
|
66
82
|
requirements:
|
67
83
|
- - ~>
|
68
84
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.
|
85
|
+
version: 1.5.0
|
70
86
|
type: :development
|
71
87
|
prerelease: false
|
72
88
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -74,15 +90,15 @@ dependencies:
|
|
74
90
|
requirements:
|
75
91
|
- - ~>
|
76
92
|
- !ruby/object:Gem::Version
|
77
|
-
version: 1.
|
93
|
+
version: 1.5.0
|
78
94
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
95
|
+
name: rdoc
|
80
96
|
requirement: !ruby/object:Gem::Requirement
|
81
97
|
none: false
|
82
98
|
requirements:
|
83
99
|
- - ~>
|
84
100
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
101
|
+
version: 4.0.1
|
86
102
|
type: :development
|
87
103
|
prerelease: false
|
88
104
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -90,7 +106,7 @@ dependencies:
|
|
90
106
|
requirements:
|
91
107
|
- - ~>
|
92
108
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
109
|
+
version: 4.0.1
|
94
110
|
- !ruby/object:Gem::Dependency
|
95
111
|
name: webmock
|
96
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,7 +114,7 @@ dependencies:
|
|
98
114
|
requirements:
|
99
115
|
- - ~>
|
100
116
|
- !ruby/object:Gem::Version
|
101
|
-
version: 1.
|
117
|
+
version: 1.11.0
|
102
118
|
type: :development
|
103
119
|
prerelease: false
|
104
120
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,25 +122,25 @@ dependencies:
|
|
106
122
|
requirements:
|
107
123
|
- - ~>
|
108
124
|
- !ruby/object:Gem::Version
|
109
|
-
version: 1.
|
125
|
+
version: 1.11.0
|
110
126
|
- !ruby/object:Gem::Dependency
|
111
127
|
name: simplecov
|
112
128
|
requirement: !ruby/object:Gem::Requirement
|
113
129
|
none: false
|
114
130
|
requirements:
|
115
|
-
- -
|
131
|
+
- - ~>
|
116
132
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
133
|
+
version: 0.7.1
|
118
134
|
type: :development
|
119
135
|
prerelease: false
|
120
136
|
version_requirements: !ruby/object:Gem::Requirement
|
121
137
|
none: false
|
122
138
|
requirements:
|
123
|
-
- -
|
139
|
+
- - ~>
|
124
140
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
126
|
-
description: ! "
|
127
|
-
while still\n
|
141
|
+
version: 0.7.1
|
142
|
+
description: ! "\n A Ruby client that tries to match TestRail's API one-to-one,
|
143
|
+
while still\n providing an idiomatic interface.\n "
|
128
144
|
email: krobison@gmail.com
|
129
145
|
executables: []
|
130
146
|
extensions: []
|
@@ -132,21 +148,17 @@ extra_rdoc_files:
|
|
132
148
|
- LICENSE.txt
|
133
149
|
- README.md
|
134
150
|
files:
|
135
|
-
- .document
|
136
|
-
- .rspec
|
137
|
-
- .travis.yml
|
138
|
-
- Gemfile
|
139
|
-
- Gemfile.lock
|
140
|
-
- LICENSE.txt
|
141
|
-
- README.md
|
142
|
-
- Rakefile
|
143
|
-
- lib/testrail.rb
|
144
151
|
- lib/testrail/client.rb
|
145
152
|
- lib/testrail/command_helper.rb
|
146
153
|
- lib/testrail/config.rb
|
147
154
|
- lib/testrail/request.rb
|
148
155
|
- lib/testrail/response.rb
|
149
156
|
- lib/testrail/version.rb
|
157
|
+
- lib/testrail.rb
|
158
|
+
- Gemfile
|
159
|
+
- Rakefile
|
160
|
+
- README.md
|
161
|
+
- LICENSE.txt
|
150
162
|
- spec/lib/testrail/client_spec.rb
|
151
163
|
- spec/lib/testrail/command_helper_spec.rb
|
152
164
|
- spec/lib/testrail/config_spec.rb
|
@@ -156,7 +168,6 @@ files:
|
|
156
168
|
- spec/lib/testrail_spec.rb
|
157
169
|
- spec/spec_helper.rb
|
158
170
|
- spec/support/http_values.rb
|
159
|
-
- testrail.gemspec
|
160
171
|
homepage: http://github.com/kris-at-tout/testrail
|
161
172
|
licenses:
|
162
173
|
- MIT
|
@@ -172,17 +183,29 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
172
183
|
version: '0'
|
173
184
|
segments:
|
174
185
|
- 0
|
175
|
-
hash: -
|
186
|
+
hash: -4440718458882339959
|
176
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
188
|
none: false
|
178
189
|
requirements:
|
179
190
|
- - ! '>='
|
180
191
|
- !ruby/object:Gem::Version
|
181
192
|
version: '0'
|
193
|
+
segments:
|
194
|
+
- 0
|
195
|
+
hash: -4440718458882339959
|
182
196
|
requirements: []
|
183
197
|
rubyforge_project:
|
184
|
-
rubygems_version: 1.8.
|
198
|
+
rubygems_version: 1.8.25
|
185
199
|
signing_key:
|
186
200
|
specification_version: 3
|
187
201
|
summary: A Ruby client library for TestRail
|
188
|
-
test_files:
|
202
|
+
test_files:
|
203
|
+
- spec/lib/testrail/client_spec.rb
|
204
|
+
- spec/lib/testrail/command_helper_spec.rb
|
205
|
+
- spec/lib/testrail/config_spec.rb
|
206
|
+
- spec/lib/testrail/request_spec.rb
|
207
|
+
- spec/lib/testrail/response_spec.rb
|
208
|
+
- spec/lib/testrail/version_spec.rb
|
209
|
+
- spec/lib/testrail_spec.rb
|
210
|
+
- spec/spec_helper.rb
|
211
|
+
- spec/support/http_values.rb
|
data/.document
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
data/Gemfile.lock
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
addressable (2.3.2)
|
5
|
-
crack (0.3.1)
|
6
|
-
diff-lcs (1.1.3)
|
7
|
-
git (1.2.5)
|
8
|
-
httparty (0.9.0)
|
9
|
-
multi_json (~> 1.0)
|
10
|
-
multi_xml
|
11
|
-
jeweler (1.8.4)
|
12
|
-
bundler (~> 1.0)
|
13
|
-
git (>= 1.2.5)
|
14
|
-
rake
|
15
|
-
rdoc
|
16
|
-
json (1.7.5)
|
17
|
-
multi_json (1.3.7)
|
18
|
-
multi_xml (0.5.1)
|
19
|
-
rake (10.0.2)
|
20
|
-
rdoc (3.12)
|
21
|
-
json (~> 1.4)
|
22
|
-
rspec (2.8.0)
|
23
|
-
rspec-core (~> 2.8.0)
|
24
|
-
rspec-expectations (~> 2.8.0)
|
25
|
-
rspec-mocks (~> 2.8.0)
|
26
|
-
rspec-core (2.8.0)
|
27
|
-
rspec-expectations (2.8.0)
|
28
|
-
diff-lcs (~> 1.1.2)
|
29
|
-
rspec-mocks (2.8.0)
|
30
|
-
simplecov (0.7.1)
|
31
|
-
multi_json (~> 1.0)
|
32
|
-
simplecov-html (~> 0.7.1)
|
33
|
-
simplecov-html (0.7.1)
|
34
|
-
webmock (1.9.0)
|
35
|
-
addressable (>= 2.2.7)
|
36
|
-
crack (>= 0.1.7)
|
37
|
-
|
38
|
-
PLATFORMS
|
39
|
-
ruby
|
40
|
-
|
41
|
-
DEPENDENCIES
|
42
|
-
bundler (~> 1.1.3)
|
43
|
-
httparty
|
44
|
-
jeweler (~> 1.8.4)
|
45
|
-
rdoc (~> 3.12)
|
46
|
-
rspec (~> 2.8.0)
|
47
|
-
simplecov
|
48
|
-
webmock (~> 1.9.0)
|
data/testrail.gemspec
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = "testrail"
|
8
|
-
s.version = "0.0.1"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Kristine Robison"]
|
12
|
-
s.date = "2012-11-27"
|
13
|
-
s.description = " A Ruby client that tries to match TestRail's API one-to-one, while still\n providing an idiomatic interface.\n"
|
14
|
-
s.email = "krobison@gmail.com"
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.md"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
".rspec",
|
22
|
-
".travis.yml",
|
23
|
-
"Gemfile",
|
24
|
-
"Gemfile.lock",
|
25
|
-
"LICENSE.txt",
|
26
|
-
"README.md",
|
27
|
-
"Rakefile",
|
28
|
-
"lib/testrail.rb",
|
29
|
-
"lib/testrail/client.rb",
|
30
|
-
"lib/testrail/command_helper.rb",
|
31
|
-
"lib/testrail/config.rb",
|
32
|
-
"lib/testrail/request.rb",
|
33
|
-
"lib/testrail/response.rb",
|
34
|
-
"lib/testrail/version.rb",
|
35
|
-
"spec/lib/testrail/client_spec.rb",
|
36
|
-
"spec/lib/testrail/command_helper_spec.rb",
|
37
|
-
"spec/lib/testrail/config_spec.rb",
|
38
|
-
"spec/lib/testrail/request_spec.rb",
|
39
|
-
"spec/lib/testrail/response_spec.rb",
|
40
|
-
"spec/lib/testrail/version_spec.rb",
|
41
|
-
"spec/lib/testrail_spec.rb",
|
42
|
-
"spec/spec_helper.rb",
|
43
|
-
"spec/support/http_values.rb",
|
44
|
-
"testrail.gemspec"
|
45
|
-
]
|
46
|
-
s.homepage = "http://github.com/kris-at-tout/testrail"
|
47
|
-
s.licenses = ["MIT"]
|
48
|
-
s.require_paths = ["lib"]
|
49
|
-
s.rubygems_version = "1.8.24"
|
50
|
-
s.summary = "A Ruby client library for TestRail"
|
51
|
-
|
52
|
-
if s.respond_to? :specification_version then
|
53
|
-
s.specification_version = 3
|
54
|
-
|
55
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
56
|
-
s.add_runtime_dependency(%q<httparty>, [">= 0"])
|
57
|
-
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
58
|
-
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
59
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.1.3"])
|
60
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
61
|
-
s.add_development_dependency(%q<webmock>, ["~> 1.9.0"])
|
62
|
-
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
63
|
-
else
|
64
|
-
s.add_dependency(%q<httparty>, [">= 0"])
|
65
|
-
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
66
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
67
|
-
s.add_dependency(%q<bundler>, ["~> 1.1.3"])
|
68
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
69
|
-
s.add_dependency(%q<webmock>, ["~> 1.9.0"])
|
70
|
-
s.add_dependency(%q<simplecov>, [">= 0"])
|
71
|
-
end
|
72
|
-
else
|
73
|
-
s.add_dependency(%q<httparty>, [">= 0"])
|
74
|
-
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
75
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
76
|
-
s.add_dependency(%q<bundler>, ["~> 1.1.3"])
|
77
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
78
|
-
s.add_dependency(%q<webmock>, ["~> 1.9.0"])
|
79
|
-
s.add_dependency(%q<simplecov>, [">= 0"])
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|