blueprint_ruby_client 0.3.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7fd4fffd6bb7661f4e6774192d3f6c0ca41f233c
4
- data.tar.gz: 763c902e1edfbe4030c80a2d52799d8f464b98e8
3
+ metadata.gz: 5acdad9db079ae8c3ae12f60c4d9ab5d0be09347
4
+ data.tar.gz: 83b6c2245e43f5b0d9270b8717e0aa32eb09924a
5
5
  SHA512:
6
- metadata.gz: 70a75df7a26b535928803e330544508b6673fed069aa6feb05fa7a706b7b42817dd9819e15485117ee039db5e4aa1e77f1b7ffa1d0dfd171dd262b64c5726402
7
- data.tar.gz: 07996f683e8fd77a6065a8f62b8dc76df132b9acdde66b1eda4c3752feda53d4a1b92c7cc2781d00c9f2252d6c700903db6f6d7708d874df7c537548cc9a2cd4
6
+ metadata.gz: 182f2b5566fdd6f645a200d45f2b4b13604886b0f6a8e5371c55d06e4a03a648867bd1cd9d3c06d5e4af765c8d4417e8dac0f058855e6c3d013e450c2acb5afc
7
+ data.tar.gz: 49dcaa29e92993fe2b394c61510d6c9d35d338dbd7e5a3aa36ee25d7430a9ed43262f891fa0a90d74b3fe4ea45f5830aedb92e76d744c7477f1847f6e4fd2dde
data/README.md CHANGED
@@ -7,8 +7,8 @@ This is the API documentation for [Blueprint](https://github.com/talis/blueprint
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 1.0.0
10
- - Package version: 0.3.0
11
- - Build date: 2016-05-31T15:05:29.982-04:00
10
+ - Package version: 0.4.0
11
+ - Build date: 2016-06-03T11:54:36.910-04:00
12
12
  - Build package: class io.swagger.codegen.languages.RubyClientCodegen
13
13
 
14
14
  ## Installation
@@ -34,15 +34,15 @@ gem build blueprint_ruby_client.gemspec
34
34
  Then either install the gem locally:
35
35
 
36
36
  ```shell
37
- gem install ./blueprint_ruby_client-0.3.0.gem
37
+ gem install ./blueprint_ruby_client-0.4.0.gem
38
38
  ```
39
- (for development, run `gem install --dev ./blueprint_ruby_client-0.3.0.gem` to install the development dependencies)
39
+ (for development, run `gem install --dev ./blueprint_ruby_client-0.4.0.gem` to install the development dependencies)
40
40
 
41
41
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
42
42
 
43
43
  Finally add this to the Gemfile:
44
44
 
45
- gem 'blueprint_ruby_client', '~> 0.3.0'
45
+ gem 'blueprint_ruby_client', '~> 0.4.0'
46
46
 
47
47
  ### Install from Git
48
48
 
@@ -130,7 +130,6 @@ Class | Method | HTTP request | Description
130
130
  - [BlueprintClient::Errors](docs/Errors.md)
131
131
  - [BlueprintClient::Links](docs/Links.md)
132
132
  - [BlueprintClient::Meta](docs/Meta.md)
133
- - [BlueprintClient::MixedResourceResultSet](docs/MixedResourceResultSet.md)
134
133
  - [BlueprintClient::Namespace](docs/Namespace.md)
135
134
  - [BlueprintClient::NamespaceRelationship](docs/NamespaceRelationship.md)
136
135
  - [BlueprintClient::Node](docs/Node.md)
data/config.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "gemName": "blueprint_ruby_client",
3
3
  "moduleName": "BlueprintClient",
4
- "gemVersion": "0.3.0",
4
+ "gemVersion": "0.4.0",
5
5
  "gemLicense": "Copyright Talis Education Ltd",
6
6
  "gemHomepage": "https://github.com/talis/blueprint_rb",
7
7
  "gemSummary": "A ruby API wrapper for Blueprint",
@@ -5,6 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **meta** | [**Meta**](Meta.md) | | [optional]
7
7
  **data** | [**Array<Asset>**](Asset.md) | | [optional]
8
- **included** | [**Array<MixedResourceResultSet>**](MixedResourceResultSet.md) | | [optional]
8
+ **included** | [**Array<Resource>**](Resource.md) | | [optional]
9
9
 
10
10
 
@@ -5,6 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **meta** | [**Meta**](Meta.md) | | [optional]
7
7
  **data** | [**Array<Node>**](Node.md) | | [optional]
8
- **included** | [**Array<MixedResourceResultSet>**](MixedResourceResultSet.md) | | [optional]
8
+ **included** | [**Array<Resource>**](Resource.md) | | [optional]
9
9
 
10
10
 
data/docs/Resource.md CHANGED
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **id** | **String** | the unique id of the resource of a given type. |
7
7
  **type** | **String** | |
8
+ **attributes** | **Object** | | [optional]
8
9
 
9
10
 
@@ -41,7 +41,7 @@ module BlueprintClient
41
41
 
42
42
  :'data' => :'Array<Asset>',
43
43
 
44
- :'included' => :'Array<MixedResourceResultSet>'
44
+ :'included' => :'Array<Resource>'
45
45
 
46
46
  }
47
47
  end
@@ -41,7 +41,7 @@ module BlueprintClient
41
41
 
42
42
  :'data' => :'Array<Node>',
43
43
 
44
- :'included' => :'Array<MixedResourceResultSet>'
44
+ :'included' => :'Array<Resource>'
45
45
 
46
46
  }
47
47
  end
@@ -19,13 +19,17 @@ module BlueprintClient
19
19
 
20
20
  attr_accessor :type
21
21
 
22
+ attr_accessor :attributes
23
+
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
 
26
28
  :'id' => :'id',
27
29
 
28
- :'type' => :'type'
30
+ :'type' => :'type',
31
+
32
+ :'attributes' => :'attributes'
29
33
 
30
34
  }
31
35
  end
@@ -36,7 +40,9 @@ module BlueprintClient
36
40
 
37
41
  :'id' => :'String',
38
42
 
39
- :'type' => :'String'
43
+ :'type' => :'String',
44
+
45
+ :'attributes' => :'Object'
40
46
 
41
47
  }
42
48
  end
@@ -68,6 +74,15 @@ module BlueprintClient
68
74
  end
69
75
 
70
76
 
77
+ if attributes.has_key?(:'attributes')
78
+
79
+
80
+ self.attributes = attributes[:'attributes']
81
+
82
+
83
+ end
84
+
85
+
71
86
  end
72
87
 
73
88
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -101,6 +116,10 @@ module BlueprintClient
101
116
 
102
117
 
103
118
 
119
+
120
+
121
+
122
+
104
123
  end
105
124
 
106
125
 
@@ -114,13 +133,19 @@ module BlueprintClient
114
133
 
115
134
 
116
135
 
136
+
137
+
138
+
139
+
140
+
117
141
  # Checks equality by comparing each attribute.
118
142
  # @param [Object] Object to be compared
119
143
  def ==(o)
120
144
  return true if self.equal?(o)
121
145
  self.class == o.class &&
122
146
  id == o.id &&
123
- type == o.type
147
+ type == o.type &&
148
+ attributes == o.attributes
124
149
  end
125
150
 
126
151
  # @see the `==` method
@@ -132,7 +157,7 @@ module BlueprintClient
132
157
  # Calculates hash code according to all attributes.
133
158
  # @return [Fixnum] Hash code
134
159
  def hash
135
- [id, type].hash
160
+ [id, type, attributes].hash
136
161
  end
137
162
 
138
163
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
11
  =end
12
12
 
13
13
  module BlueprintClient
14
- VERSION = "0.3.0"
14
+ VERSION = "0.4.0"
15
15
  end
@@ -26,7 +26,6 @@ require 'blueprint_ruby_client/models/error'
26
26
  require 'blueprint_ruby_client/models/errors'
27
27
  require 'blueprint_ruby_client/models/links'
28
28
  require 'blueprint_ruby_client/models/meta'
29
- require 'blueprint_ruby_client/models/mixed_resource_result_set'
30
29
  require 'blueprint_ruby_client/models/namespace'
31
30
  require 'blueprint_ruby_client/models/namespace_relationship'
32
31
  require 'blueprint_ruby_client/models/node'
@@ -52,5 +52,15 @@ describe 'Resource' do
52
52
  end
53
53
  end
54
54
 
55
+ describe 'test attribute "attributes"' do
56
+ it 'should work' do
57
+ # assertion here
58
+ # should be_a()
59
+ # should be_nil
60
+ # should ==
61
+ # should_not ==
62
+ end
63
+ end
64
+
55
65
  end
56
66
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blueprint_ruby_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Paddock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-31 00:00:00.000000000 Z
11
+ date: 2016-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus