fio_api 0.0.1 → 0.0.2
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.
- data/.travis.yml +3 -0
- data/README.rdoc +2 -0
- data/VERSION +1 -1
- data/fio_api.gemspec +4 -3
- data/lib/base/list.rb +2 -2
- data/spec/base/list_spec.rb +2 -2
- metadata +5 -4
data/.travis.yml
ADDED
data/README.rdoc
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
{<img src="https://secure.travis-ci.org/robinbortlik/fio_api.png?branch=master" alt="Build Status" />}[http://travis-ci.org/robinbortlik/fio_api]
|
|
2
|
+
{<img src="https://codeclimate.com/badge.png" />}[https://codeclimate.com/github/robinbortlik/fio_api]
|
|
1
3
|
= Fio API
|
|
2
4
|
|
|
3
5
|
This project rocks and uses MIT-LICENSE.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.2
|
data/fio_api.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "fio_api"
|
|
8
|
-
s.version = "0.0.
|
|
8
|
+
s.version = "0.0.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Robin Bortlik"]
|
|
12
|
-
s.date = "
|
|
12
|
+
s.date = "2013-05-02"
|
|
13
13
|
s.description = "API wrapper for FIO bank"
|
|
14
14
|
s.email = "robinbortlik@gmail.com"
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
|
|
|
18
18
|
]
|
|
19
19
|
s.files = [
|
|
20
20
|
".rspec",
|
|
21
|
+
".travis.yml",
|
|
21
22
|
"Gemfile",
|
|
22
23
|
"Gemfile.lock",
|
|
23
24
|
"LICENSE.txt",
|
|
@@ -47,7 +48,7 @@ Gem::Specification.new do |s|
|
|
|
47
48
|
s.homepage = "http://github.com/robinbortlik/fio_api"
|
|
48
49
|
s.licenses = ["MIT"]
|
|
49
50
|
s.require_paths = ["lib"]
|
|
50
|
-
s.rubygems_version = "1.8.
|
|
51
|
+
s.rubygems_version = "1.8.25"
|
|
51
52
|
s.summary = "API wrapper for FIO bank"
|
|
52
53
|
|
|
53
54
|
if s.respond_to? :specification_version then
|
data/lib/base/list.rb
CHANGED
|
@@ -58,7 +58,7 @@ module FioAPI
|
|
|
58
58
|
#
|
|
59
59
|
# https://www.fio.cz/ib_api/rest/set-last-id/(token)/(id)/
|
|
60
60
|
def set_last_fetch_id(transaction_id)
|
|
61
|
-
fetch_and_deserialize_response('set-last-id', FioAPI.token, transaction_id)
|
|
61
|
+
fetch_and_deserialize_response('set-last-id', FioAPI.token, transaction_id, "/")
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
# Allow request to set last request date
|
|
@@ -72,7 +72,7 @@ module FioAPI
|
|
|
72
72
|
#
|
|
73
73
|
# https://www.fio.cz/ib_api/rest/set-last-date/(token)/(rrrr-mm-dd)/
|
|
74
74
|
def set_last_fetch_date(date)
|
|
75
|
-
fetch_and_deserialize_response('set-last-date', FioAPI.token, date)
|
|
75
|
+
fetch_and_deserialize_response('set-last-date', FioAPI.token, date, "/")
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
private
|
data/spec/base/list_spec.rb
CHANGED
|
@@ -27,13 +27,13 @@ describe FioAPI::List do
|
|
|
27
27
|
|
|
28
28
|
it "should set request with uri to set last fetch id" do
|
|
29
29
|
id = "12345"
|
|
30
|
-
url = "https://www.fio.cz/ib_api/rest/set-last-id/#{FioAPI.token}/#{id}"
|
|
30
|
+
url = "https://www.fio.cz/ib_api/rest/set-last-id/#{FioAPI.token}/#{id}/"
|
|
31
31
|
@list.set_last_fetch_id(id).request.uri.should eq url
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
it "should set request with uri to set last date" do
|
|
35
35
|
date = Date.new(2012,11,25)
|
|
36
|
-
url = "https://www.fio.cz/ib_api/rest/set-last-date/#{FioAPI.token}/#{date}"
|
|
36
|
+
url = "https://www.fio.cz/ib_api/rest/set-last-date/#{FioAPI.token}/#{date}/"
|
|
37
37
|
@list.set_last_fetch_date(date).request.uri.should eq url
|
|
38
38
|
end
|
|
39
39
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fio_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2013-05-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: httparty
|
|
@@ -116,6 +116,7 @@ extra_rdoc_files:
|
|
|
116
116
|
- README.rdoc
|
|
117
117
|
files:
|
|
118
118
|
- .rspec
|
|
119
|
+
- .travis.yml
|
|
119
120
|
- Gemfile
|
|
120
121
|
- Gemfile.lock
|
|
121
122
|
- LICENSE.txt
|
|
@@ -156,7 +157,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
156
157
|
version: '0'
|
|
157
158
|
segments:
|
|
158
159
|
- 0
|
|
159
|
-
hash:
|
|
160
|
+
hash: 3264340917465575318
|
|
160
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
162
|
none: false
|
|
162
163
|
requirements:
|
|
@@ -165,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
165
166
|
version: '0'
|
|
166
167
|
requirements: []
|
|
167
168
|
rubyforge_project:
|
|
168
|
-
rubygems_version: 1.8.
|
|
169
|
+
rubygems_version: 1.8.25
|
|
169
170
|
signing_key:
|
|
170
171
|
specification_version: 3
|
|
171
172
|
summary: API wrapper for FIO bank
|