rainforest 2.0.0 → 2.0.1

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: 82b786fc24d65611d96a516701e188e587011fac
4
- data.tar.gz: 13d9d3e95a6ecc8fa6422f4e75169615bb43de73
3
+ metadata.gz: 323f66cb060449d71da91978b6d230aa147c4c44
4
+ data.tar.gz: 2062c37a004e17b71178eb1d107836f27337d38b
5
5
  SHA512:
6
- metadata.gz: 8cc5b56ef4426f7c9284b6290842715e95efa7a274eb82781055f0209ec95bce8a381db10a7e4286dc97218c9b4010b61364c292bbff4b7b093e009196d9a1bf
7
- data.tar.gz: 8b01181dbf47463375447865db939c80218a37363c53d024daf25bcde64c410449f6530335e58ef4d6fcbedc0f9b64fd2ed88d11ed1eafab108d78f317204d12
6
+ metadata.gz: 36e09e0d6ba219dbe40369174c00527848a875c2a6981dad5c9e98a701a0f4ed113622bd3b2059b895c568e8d79ebdb9e8a350298b50798b07c438cac20c5e87
7
+ data.tar.gz: d321a3b56e23c3f372a028836b6d0b887be0ea9dd55ec6c272cc028435853e46f6da2dfe1700f563e8135a1dd4aa2624500b4c2be0d3b14906b90b61e34c7b9c
data/README.md CHANGED
@@ -15,9 +15,13 @@ If you want to build & install the gem from source:
15
15
 
16
16
  ```bash
17
17
  gem build rainforest.gemspec
18
- gem install rainforest-2.0.0.gem
18
+ gem install rainforest-2.0.1.gem
19
19
  ```
20
20
 
21
+ ## Documentation
22
+
23
+ Full documentation is available at [https://docs.rainfroestqa.com](https://docs.rainfroestqa.com).
24
+
21
25
 
22
26
  ## Requirements
23
27
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.0.1
@@ -53,12 +53,6 @@ module Rainforest
53
53
  @api_attributes.map(&:first)
54
54
  end
55
55
 
56
- def self.editable_api_attribute_names
57
- @api_attributes.select do |k, v|
58
- v[:editable]
59
- end.map(&:first)
60
- end
61
-
62
56
  def self.add_api_attribute(name)
63
57
  attr_accessor name.to_sym
64
58
  @api_attributes[name.to_sym] = {}
@@ -95,14 +89,6 @@ module Rainforest
95
89
  ret
96
90
  end
97
91
 
98
- def editable_api_attributes
99
- ret = {}
100
- self.class.editable_api_attribute_names.each do |name|
101
- ret[name] = self.send(name)
102
- end
103
- ret
104
- end
105
-
106
92
  def clear_api_attributes
107
93
  self.class.api_attribute_names.each do |name|
108
94
  instance_variable_set("@#{name}", nil)
@@ -43,12 +43,6 @@ module Rainforest
43
43
  self.refresh_from(res.json, res.api_method, res.client)
44
44
  end
45
45
 
46
- def save(params={}, headers={})
47
- params = ParamsBuilder.merge(api_attributes, params)
48
- res = client.environments.update(id, params, headers)
49
- self.refresh_from(res.json, res.api_method, res.client)
50
- end
51
-
52
46
  def delete(params={}, headers={})
53
47
  res = client.environments.delete(id, params, headers)
54
48
  res
@@ -58,6 +52,12 @@ module Rainforest
58
52
  EnvironmentRunsEndpoint.new(client, self)
59
53
  end
60
54
 
55
+ def save(params={}, headers={})
56
+ params = ParamsBuilder.merge(api_attributes, params)
57
+ res = client.environments.update(id, params, headers)
58
+ self.refresh_from(res.json, res.api_method, res.client)
59
+ end
60
+
61
61
  # Everything below here is used behind the scenes.
62
62
  ApiResource.register_api_subclass(self, "environment")
63
63
  @api_attributes = {
@@ -2,6 +2,7 @@ module Rainforest
2
2
  class Generator < ApiResource
3
3
  attr_accessor :columns
4
4
  attr_accessor :created_at
5
+ attr_accessor :data
5
6
  attr_accessor :description
6
7
  attr_accessor :generator_type
7
8
  attr_accessor :id
@@ -43,12 +44,6 @@ module Rainforest
43
44
  self.refresh_from(res.json, res.api_method, res.client)
44
45
  end
45
46
 
46
- def save(params={}, headers={})
47
- params = ParamsBuilder.merge(api_attributes, params)
48
- res = client.generators.update(id, params, headers)
49
- self.refresh_from(res.json, res.api_method, res.client)
50
- end
51
-
52
47
  def delete(params={}, headers={})
53
48
  res = client.generators.delete(id, params, headers)
54
49
  res
@@ -58,11 +53,18 @@ module Rainforest
58
53
  GeneratorRowsEndpoint.new(client, self)
59
54
  end
60
55
 
56
+ def save(params={}, headers={})
57
+ params = ParamsBuilder.merge(api_attributes, params)
58
+ res = client.generators.update(id, params, headers)
59
+ self.refresh_from(res.json, res.api_method, res.client)
60
+ end
61
+
61
62
  # Everything below here is used behind the scenes.
62
63
  ApiResource.register_api_subclass(self, "generator")
63
64
  @api_attributes = {
64
65
  :columns => {},
65
66
  :created_at => {},
67
+ :data => {},
66
68
  :description => { :editable => true },
67
69
  :generator_type => {},
68
70
  :id => {},
@@ -61,7 +61,7 @@ module Rainforest
61
61
  res
62
62
  end
63
63
 
64
- def tests()
64
+ def associated_tests()
65
65
  RunTestsEndpoint.new(client, self)
66
66
  end
67
67
 
@@ -40,17 +40,17 @@ module Rainforest
40
40
  self.refresh_from(res.json, res.api_method, res.client)
41
41
  end
42
42
 
43
+ def delete(params={}, headers={})
44
+ res = client.schedules.delete(id, params, headers)
45
+ res
46
+ end
47
+
43
48
  def save(params={}, headers={})
44
49
  params = ParamsBuilder.merge(api_attributes, params)
45
50
  res = client.schedules.update(id, params, headers)
46
51
  self.refresh_from(res.json, res.api_method, res.client)
47
52
  end
48
53
 
49
- def delete(params={}, headers={})
50
- res = client.schedules.delete(id, params, headers)
51
- res
52
- end
53
-
54
54
  # Everything below here is used behind the scenes.
55
55
  ApiResource.register_api_subclass(self, "schedule")
56
56
  @api_attributes = {
@@ -30,17 +30,17 @@ module Rainforest
30
30
  self.refresh_from(res.json, res.api_method, res.client)
31
31
  end
32
32
 
33
+ def delete(params={}, headers={})
34
+ res = client.sites.delete(id, params, headers)
35
+ res
36
+ end
37
+
33
38
  def save(params={}, headers={})
34
39
  params = ParamsBuilder.merge(api_attributes, params)
35
40
  res = client.sites.update(id, params, headers)
36
41
  self.refresh_from(res.json, res.api_method, res.client)
37
42
  end
38
43
 
39
- def delete(params={}, headers={})
40
- res = client.sites.delete(id, params, headers)
41
- res
42
- end
43
-
44
44
  # Everything below here is used behind the scenes.
45
45
  ApiResource.register_api_subclass(self, "site")
46
46
  @api_attributes = {
@@ -55,12 +55,6 @@ module Rainforest
55
55
  self.refresh_from(res.json, res.api_method, res.client)
56
56
  end
57
57
 
58
- def save(params={}, headers={})
59
- params = ParamsBuilder.merge(api_attributes, params)
60
- res = client.tests.update(id, params, headers)
61
- self.refresh_from(res.json, res.api_method, res.client)
62
- end
63
-
64
58
  def delete(params={}, headers={})
65
59
  res = client.tests.delete(id, params, headers)
66
60
  res
@@ -71,6 +65,12 @@ module Rainforest
71
65
  res
72
66
  end
73
67
 
68
+ def save(params={}, headers={})
69
+ params = ParamsBuilder.merge(api_attributes, params)
70
+ res = client.tests.update(id, params, headers)
71
+ self.refresh_from(res.json, res.api_method, res.client)
72
+ end
73
+
74
74
  # Everything below here is used behind the scenes.
75
75
  ApiResource.register_api_subclass(self, "test")
76
76
  @api_attributes = {
@@ -46,17 +46,17 @@ module Rainforest
46
46
  self.refresh_from(res.json, res.api_method, res.client)
47
47
  end
48
48
 
49
+ def reset_password(params={}, headers={})
50
+ res = client.users.reset_password(email, params, headers)
51
+ res
52
+ end
53
+
49
54
  def save(params={}, headers={})
50
55
  params = ParamsBuilder.merge(api_attributes, params)
51
56
  res = client.users.update(id, params, headers)
52
57
  self.refresh_from(res.json, res.api_method, res.client)
53
58
  end
54
59
 
55
- def reset_password(params={}, headers={})
56
- res = client.users.reset_password(email, params, headers)
57
- res
58
- end
59
-
60
60
  # Everything below here is used behind the scenes.
61
61
  ApiResource.register_api_subclass(self, "user")
62
62
  @api_attributes = {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rainforest
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apibits.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-28 00:00:00.000000000 Z
11
+ date: 2015-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  version: '0'
207
207
  requirements: []
208
208
  rubyforge_project:
209
- rubygems_version: 2.2.2
209
+ rubygems_version: 2.4.5
210
210
  signing_key:
211
211
  specification_version: 4
212
212
  summary: Ruby bindings for Rainforest API