mondo 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +17 -0
- data/lib/mondo/attachment.rb +4 -0
- data/lib/mondo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a86e0346276dc433c2c6656ee8e85a960d7d683
|
4
|
+
data.tar.gz: 6a84018a4318815baba9c56ae76bb9d880432d50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e64c21a8a9f55343a9ae3a6e39b52fbb6abd0c66ea08d4096fe5518b0f280cb684e38a4aceca46ce6761c555ee15108d297982eae68e315f7d1d9e9ef0eeb15
|
7
|
+
data.tar.gz: 53734ac3157c20dddda54190377ba0647b6de6c00e16a5bfb4130e73313d8f4db32e72e9891ac302efb0ca1999438328c9d9e758a523773f1f1330f6ce19c182
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## 0.4.1 - September 19, 2015
|
2
|
+
|
3
|
+
- Added support to deregister attachments
|
4
|
+
|
5
|
+
## 0.4.0 - September 19, 2015
|
6
|
+
|
7
|
+
- Fix to fetch account_id on initialisation of client (API changed)
|
8
|
+
- Added support for attachments on transactions
|
9
|
+
|
1
10
|
## 0.3.2 - September 19, 2015
|
2
11
|
|
3
12
|
- Catch nil merchants
|
data/README.md
CHANGED
@@ -68,3 +68,20 @@ tx.metadata[:tags] += "#expenses" # tag this "expenses"
|
|
68
68
|
tx.save_metadata
|
69
69
|
=> true
|
70
70
|
```
|
71
|
+
|
72
|
+
|
73
|
+
## Add an attachment to a transaction
|
74
|
+
|
75
|
+
```ruby
|
76
|
+
tx = mondo.transactions.first
|
77
|
+
|
78
|
+
tx.register_attachment(
|
79
|
+
file_url: "https://example.com/nyannyan.jpg",
|
80
|
+
file_type: "image/jpg"
|
81
|
+
)
|
82
|
+
|
83
|
+
=> [#<Mondo::Attachment {"id"=>"attach_00009253YR2h9Besgp6aLR", "url"=>"https://example.com/nyannyan.jpg", "type"=>"image/jpg", "created"=>"2015-11-13T16:50:05Z"}>]
|
84
|
+
|
85
|
+
# And remove it again
|
86
|
+
tx.attachments.first.deregsiter
|
87
|
+
```
|
data/lib/mondo/attachment.rb
CHANGED
data/lib/mondo/version.rb
CHANGED