testrail-rails 1.0.5 → 1.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d2ed74ce5c99aedbee21fd3c2b8c9a3aa72c5c6
4
- data.tar.gz: 6f5c100314d4114deb7da176d818c05d1b588a7c
3
+ metadata.gz: 6b7113da49f5b0838f62f25288a921ba74e1aae2
4
+ data.tar.gz: 84570548470cbe5e1ec1798e652387a0c568fc86
5
5
  SHA512:
6
- metadata.gz: 4b552f33ea89ed0e44f2b9ac3db8ad6f4b2c3ceeffb44509ec68b1be43da517e51a6208a5c6262062acb1a50b5a50f358be65da1fc92c8ceca981738e24a22a4
7
- data.tar.gz: 483a34189b768f934a10be5c02ef03e9c4d77bf5c67ff67ff6f1c7e343359cca292ca7afbd1307ac29c444de57620e53947edc4474ac82bd96c709a56801dfba
6
+ metadata.gz: 6e59a39cb539255a624d7565002d26344f9e63c79a5764ebbf940d268189d0124eb98fdd31a1a47b1e82c6beb4ae9d1122c2a96b357d9a88a1af7db52418d13d
7
+ data.tar.gz: 2386a421c4e11a1ac216eddbe973f3ca1f193bf2e6fe0ee202f53ee680021fed7b24cf88785d5fd50ef181da682d78215b1d4fe5c19ff2c729e1a2060d5369d9
@@ -1,13 +1,40 @@
1
- require 'testrail/api_client'
2
-
3
1
  module TestRail
4
2
  class Client
5
- attr_accessor :connection
3
+ attr_accessor :connection, :url, :username, :password
4
+
5
+ def initialize(username,password,url)
6
+ @url_endpoint = url || self.class.url
7
+ @connection = APIClient.new(url)
8
+ @connection.user = username || self.class.username
9
+ @connection.password = password || self.class.password
10
+ end
11
+
12
+ def project
13
+ Project.new(connection)
14
+ end
15
+
16
+ def release
17
+ Release.new(connection)
18
+ end
19
+
20
+ def section
21
+ Section.new(connection)
22
+ end
23
+
24
+ def suite
25
+ Suite.new(connection)
26
+ end
27
+
28
+ def test_case
29
+ TestCase.new(connection)
30
+ end
31
+
32
+ def test_result
33
+ TestResult.new(connection)
34
+ end
6
35
 
7
- def initialize(user,password,url)
8
- @connection = TestRail::APIClient.new(url)
9
- @connection.user = user
10
- @connection.password = password
36
+ def test_run
37
+ TestRun.new(connection)
11
38
  end
12
39
  end
13
40
  end
@@ -1,5 +1,5 @@
1
1
  module Testrail
2
2
  module Rails
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testrail-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Lockhart
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2015-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler