ynab 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/config.json +1 -1
- data/lib/ynab/models/account.rb +2 -2
- data/lib/ynab/version.rb +1 -1
- data/spec-v1-swagger.json +12 -1
- metadata +2 -4
- data/pkg/ynab-0.1.0.gem +0 -0
- data/pkg/ynab-0.2.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69ec9bd6f5c67e0bbb248e2334e3754e345a604e
|
4
|
+
data.tar.gz: 76aa486bdad86177ec11d9043d0195d288cbdeb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68679167f76ff3eefc8f80e3330ad4df2559a48576b8d1933c84eb81c777ae623138e007e4094e6fb2db3f7d7a0a8a82e3b045318365c3f443d1e3e751eee225
|
7
|
+
data.tar.gz: eb0a9f8d73d96658f15f2d01f19da3edfd064ad800f06456eaecaf485235f1fe1b4e5d4fd4441d1f278c32331a32c955107b4a03f959e70858005313a477d279
|
data/README.md
CHANGED
@@ -49,6 +49,7 @@ See the [examples folder](https://github.com/ynab/ynab-sdk-ruby/tree/master/exam
|
|
49
49
|
- Install dependencies: `bundle`
|
50
50
|
- Generate latest client based on swagger spec: `rake generate`
|
51
51
|
- Run tests: `rake spec` or `rspec`
|
52
|
+
- Publish: Update `gemVersion` in config.json and then `rake generate && rspec && gem build ynab && gem push ynab`
|
52
53
|
|
53
54
|
## License
|
54
55
|
|
data/config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"gemName": "ynab",
|
3
3
|
"moduleName": "YnabApi",
|
4
|
-
"gemVersion": "0.
|
4
|
+
"gemVersion": "0.3.0",
|
5
5
|
"gemDescription": "Ruby gem wrapper for the YNAB API. Read the documentation at https://api.youneedabudget.com",
|
6
6
|
"gemHomepage": "https://github.com/ynab/ynab-sdk-ruby",
|
7
7
|
"gemLicense": "Apache-2.0",
|
data/lib/ynab/models/account.rb
CHANGED
@@ -185,7 +185,7 @@ module YnabApi
|
|
185
185
|
return false if @id.nil?
|
186
186
|
return false if @name.nil?
|
187
187
|
return false if @type.nil?
|
188
|
-
type_validator = EnumAttributeValidator.new('String', ["checking", "savings", "creditCard"])
|
188
|
+
type_validator = EnumAttributeValidator.new('String', ["checking", "savings", "creditCard", "cash", "lineOfCredit", "merchantAccount", "investmentAccount", "mortgage", "otherAsset", "otherLiability"])
|
189
189
|
return false unless type_validator.valid?(@type)
|
190
190
|
return false if @on_budget.nil?
|
191
191
|
return false if @closed.nil?
|
@@ -199,7 +199,7 @@ module YnabApi
|
|
199
199
|
# Custom attribute writer method checking allowed values (enum).
|
200
200
|
# @param [Object] type Object to be assigned
|
201
201
|
def type=(type)
|
202
|
-
validator = EnumAttributeValidator.new('String', ["checking", "savings", "creditCard"])
|
202
|
+
validator = EnumAttributeValidator.new('String', ["checking", "savings", "creditCard", "cash", "lineOfCredit", "merchantAccount", "investmentAccount", "mortgage", "otherAsset", "otherLiability"])
|
203
203
|
unless validator.valid?(type)
|
204
204
|
fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
|
205
205
|
end
|
data/lib/ynab/version.rb
CHANGED
data/spec-v1-swagger.json
CHANGED
@@ -1294,7 +1294,18 @@
|
|
1294
1294
|
},
|
1295
1295
|
"type": {
|
1296
1296
|
"type": "string",
|
1297
|
-
"enum": [
|
1297
|
+
"enum": [
|
1298
|
+
"checking",
|
1299
|
+
"savings",
|
1300
|
+
"creditCard",
|
1301
|
+
"cash",
|
1302
|
+
"lineOfCredit",
|
1303
|
+
"merchantAccount",
|
1304
|
+
"investmentAccount",
|
1305
|
+
"mortgage",
|
1306
|
+
"otherAsset",
|
1307
|
+
"otherLiability"
|
1308
|
+
]
|
1298
1309
|
},
|
1299
1310
|
"on_budget": {
|
1300
1311
|
"type": "boolean",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ynab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- You Need A Budget, LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -247,8 +247,6 @@ files:
|
|
247
247
|
- lib/ynab/models/transactions_response.rb
|
248
248
|
- lib/ynab/models/transactions_wrapper.rb
|
249
249
|
- lib/ynab/version.rb
|
250
|
-
- pkg/ynab-0.1.0.gem
|
251
|
-
- pkg/ynab-0.2.0.gem
|
252
250
|
- spec-v1-swagger.json
|
253
251
|
- spec/api/accounts_spec.rb
|
254
252
|
- spec/api/budgets_spec.rb
|
data/pkg/ynab-0.1.0.gem
DELETED
Binary file
|
data/pkg/ynab-0.2.0.gem
DELETED
Binary file
|