ruby_mint 0.1.0 → 0.1.1
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/.gitignore +1 -0
- data/lib/ruby_mint/version.rb +1 -1
- data/lib/ruby_mint.rb +4 -4
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f35663ac4c4455968a43c43629104347ac097356
|
4
|
+
data.tar.gz: c00b9cd9cf3e4eb9c54450a730cf039f3996b706
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13692c620ee097e5368b4bcf0ab96cc6dd7229d3ef4f38f768e42f1c634fd871d881c6e1ef5a8f043d5ecc8b77930564700a8b46c388ed1f661abd9001294637
|
7
|
+
data.tar.gz: de2f372cdf31d425fb64eeac56db6e9caca6d366dcb526952a07b3468ecf834cc786fe71cc44171f15ed800bf91ca962ee60a99bfcbb675253fc1bf796c78a14
|
data/.gitignore
CHANGED
data/lib/ruby_mint/version.rb
CHANGED
data/lib/ruby_mint.rb
CHANGED
@@ -63,7 +63,7 @@ class RubyMint
|
|
63
63
|
|
64
64
|
# Check if user is logged in already by the presence of a token.
|
65
65
|
#
|
66
|
-
# @
|
66
|
+
# @return [Boolean]
|
67
67
|
def logged_in?
|
68
68
|
!@token.nil?
|
69
69
|
end
|
@@ -82,7 +82,7 @@ class RubyMint
|
|
82
82
|
|
83
83
|
# Is Mint.com in the process of refreshing its data?
|
84
84
|
#
|
85
|
-
# @
|
85
|
+
# @return [Boolean]
|
86
86
|
def refreshing?
|
87
87
|
response = agent.get("https://wwws.mint.com/userStatus.xevent", JSON_HEADERS)
|
88
88
|
if response.code != "200" || !response.body.include?("isRefreshing")
|
@@ -95,7 +95,7 @@ class RubyMint
|
|
95
95
|
# Get account data
|
96
96
|
#
|
97
97
|
# @param account_types [Array<String>] Type of accounts to retrieve. Defaults to all types.
|
98
|
-
# @
|
98
|
+
# @return [Hash]
|
99
99
|
def accounts(account_types = ACCOUNT_TYPES)
|
100
100
|
# Use a new request_id
|
101
101
|
@request_id += 1
|
@@ -123,7 +123,7 @@ class RubyMint
|
|
123
123
|
# Get transactions from mint. They are returned as CSV and include ALL
|
124
124
|
# the transactions available
|
125
125
|
#
|
126
|
-
# @
|
126
|
+
# @return [String] CSV of all transactions
|
127
127
|
def transactions
|
128
128
|
results = agent.get("https://wwws.mint.com/transactionDownload.event", JSON_HEADERS)
|
129
129
|
raise RubyMintError.new("Unable to obtain transations.") if results.code != "200"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_mint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Marrone
|
@@ -123,3 +123,4 @@ signing_key:
|
|
123
123
|
specification_version: 4
|
124
124
|
summary: Retrieve your Mint.com transaction and account information.
|
125
125
|
test_files: []
|
126
|
+
has_rdoc:
|