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 +4 -4
- data/README.md +5 -6
- data/config.json +1 -1
- data/docs/AssetResultSet.md +1 -1
- data/docs/NodeResultSet.md +1 -1
- data/docs/Resource.md +1 -0
- data/lib/blueprint_ruby_client/models/asset_result_set.rb +1 -1
- data/lib/blueprint_ruby_client/models/node_result_set.rb +1 -1
- data/lib/blueprint_ruby_client/models/resource.rb +29 -4
- data/lib/blueprint_ruby_client/version.rb +1 -1
- data/lib/blueprint_ruby_client.rb +0 -1
- data/spec/models/resource_spec.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5acdad9db079ae8c3ae12f60c4d9ab5d0be09347
|
4
|
+
data.tar.gz: 83b6c2245e43f5b0d9270b8717e0aa32eb09924a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
11
|
-
- Build date: 2016-
|
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.
|
37
|
+
gem install ./blueprint_ruby_client-0.4.0.gem
|
38
38
|
```
|
39
|
-
(for development, run `gem install --dev ./blueprint_ruby_client-0.
|
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.
|
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.
|
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",
|
data/docs/AssetResultSet.md
CHANGED
@@ -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<
|
8
|
+
**included** | [**Array<Resource>**](Resource.md) | | [optional]
|
9
9
|
|
10
10
|
|
data/docs/NodeResultSet.md
CHANGED
@@ -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<
|
8
|
+
**included** | [**Array<Resource>**](Resource.md) | | [optional]
|
9
9
|
|
10
10
|
|
data/docs/Resource.md
CHANGED
@@ -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
|
@@ -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'
|
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.
|
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-
|
11
|
+
date: 2016-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|