exchange 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- data/exchange.gemspec +2 -1
- data/lib/exchange/base.rb +1 -1
- metadata +92 -58
data/exchange.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.date = "2012-10-09"
|
10
10
|
s.description = "The Exchange Gem gives you easy access to currency functions directly on your Numbers. Imagine a conversion as easy as \n 1.in(:eur).to(:usd) or even better \n 1.in(:eur).to(:usd, :at => Time.now - 84600)\n which gets you an exchange at the rates of yesterday."
|
11
11
|
s.email = "exchange_gem@gmail.com"
|
12
|
-
s.homepage = "http://github.com/
|
12
|
+
s.homepage = "http://beatrichartz.github.com/exchange"
|
13
13
|
s.licenses = ["MIT"]
|
14
14
|
s.require_paths = ["lib"]
|
15
15
|
s.rubygems_version = "1.8.24"
|
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.require_paths = ["lib"]
|
22
22
|
|
23
23
|
s.add_dependency "nokogiri", ">= 1.0.0"
|
24
|
+
s.add_development_dependency "json", ">= 1.0.0"
|
24
25
|
s.add_development_dependency "yard", ">= 0.7.4"
|
25
26
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
26
27
|
end
|
data/lib/exchange/base.rb
CHANGED
metadata
CHANGED
@@ -1,73 +1,99 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: exchange
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 51
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 10
|
9
|
+
- 2
|
10
|
+
version: 0.10.2
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Beat Richartz
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-10-09 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: nokogiri
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 23
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 0
|
32
|
+
- 0
|
21
33
|
version: 1.0.0
|
22
34
|
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: json
|
23
38
|
prerelease: false
|
24
|
-
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
25
40
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 23
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 0
|
48
|
+
- 0
|
29
49
|
version: 1.0.0
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: yard
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 0.7.4
|
38
50
|
type: :development
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: yard
|
39
54
|
prerelease: false
|
40
|
-
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
56
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 11
|
61
|
+
segments:
|
62
|
+
- 0
|
63
|
+
- 7
|
64
|
+
- 4
|
45
65
|
version: 0.7.4
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: bundler
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ! '>='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 1.0.0
|
54
66
|
type: :development
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: bundler
|
55
70
|
prerelease: false
|
56
|
-
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
57
72
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 23
|
77
|
+
segments:
|
78
|
+
- 1
|
79
|
+
- 0
|
80
|
+
- 0
|
61
81
|
version: 1.0.0
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
82
|
+
type: :development
|
83
|
+
version_requirements: *id004
|
84
|
+
description: |-
|
85
|
+
The Exchange Gem gives you easy access to currency functions directly on your Numbers. Imagine a conversion as easy as
|
86
|
+
1.in(:eur).to(:usd) or even better
|
87
|
+
1.in(:eur).to(:usd, :at => Time.now - 84600)
|
88
|
+
which gets you an exchange at the rates of yesterday.
|
66
89
|
email: exchange_gem@gmail.com
|
67
90
|
executables: []
|
91
|
+
|
68
92
|
extensions: []
|
93
|
+
|
69
94
|
extra_rdoc_files: []
|
70
|
-
|
95
|
+
|
96
|
+
files:
|
71
97
|
- .document
|
72
98
|
- .gitignore
|
73
99
|
- .rspec
|
@@ -145,32 +171,40 @@ files:
|
|
145
171
|
- spec/support/api_responses/example_historic_json.json
|
146
172
|
- spec/support/api_responses/example_json_api.json
|
147
173
|
- spec/support/api_responses/example_xml_api.xml
|
148
|
-
homepage: http://github.com/
|
149
|
-
licenses:
|
174
|
+
homepage: http://beatrichartz.github.com/exchange
|
175
|
+
licenses:
|
150
176
|
- MIT
|
151
177
|
post_install_message:
|
152
178
|
rdoc_options: []
|
153
|
-
|
179
|
+
|
180
|
+
require_paths:
|
154
181
|
- lib
|
155
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
182
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
156
183
|
none: false
|
157
|
-
requirements:
|
158
|
-
- -
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
|
161
|
-
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
hash: 3
|
188
|
+
segments:
|
189
|
+
- 0
|
190
|
+
version: "0"
|
191
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
192
|
none: false
|
163
|
-
requirements:
|
164
|
-
- -
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
|
193
|
+
requirements:
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
hash: 3
|
197
|
+
segments:
|
198
|
+
- 0
|
199
|
+
version: "0"
|
167
200
|
requirements: []
|
201
|
+
|
168
202
|
rubyforge_project:
|
169
203
|
rubygems_version: 1.8.24
|
170
204
|
signing_key:
|
171
205
|
specification_version: 3
|
172
206
|
summary: Simple Exchange Rate operations for your ruby app
|
173
|
-
test_files:
|
207
|
+
test_files:
|
174
208
|
- spec/exchange/cache/base_spec.rb
|
175
209
|
- spec/exchange/cache/configuration_spec.rb
|
176
210
|
- spec/exchange/cache/file_spec.rb
|