active_exchange 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 nerbie69
1
+ Copyright (c) 2009 pjammer
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.rdoc CHANGED
@@ -10,7 +10,7 @@ By going to XavierMedia once a day, you get stable rates to use throughout the d
10
10
 
11
11
  I personally wouldn't use this if my model was, say an F/X trader on a big time exchange where second by second data is needed, however.
12
12
 
13
- == Useage
13
+ == Usage
14
14
 
15
15
  * add config.gem 'active_exchange' to your environment.rb file
16
16
  * For now: Copy the rake file and migration into your app's (for rake) lib/task directory and (for migration file)db/migrate
@@ -32,4 +32,4 @@ You can now integrate the data into your app as you see fit.
32
32
 
33
33
  == Copyright
34
34
 
35
- Copyright (c) 2009 pjammer. See LICENSE for details.
35
+ Copyright (c) 2009 pjammer. See LICENSE for details. MIT.
data/Rakefile CHANGED
@@ -1,15 +1,15 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
-
3
+
4
4
  begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "active_exchange"
8
- gem.summary = %Q{Foreign Exchange for your rails app}
8
+ gem.summary = %Q{Foreign Exchange for your Rails app}
9
9
  gem.description = %Q{Foreign Exchange for your Rails app.}
10
10
  gem.email = "philipjingram@yahoo.com"
11
- gem.homepage = "http://github.com/nerbie69/active_exchange"
12
- gem.authors = ["nerbie69"]
11
+ gem.homepage = "http://github.com/pjammer/active_exchange"
12
+ gem.authors = ["pjammer"]
13
13
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
14
14
  end
15
15
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{active_exchange}
8
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["nerbie69"]
12
- s.date = %q{2009-10-27}
11
+ s.authors = ["pjammer"]
12
+ s.date = %q{2010-10-20}
13
13
  s.description = %q{Foreign Exchange for your Rails app.}
14
14
  s.email = %q{philipjingram@yahoo.com}
15
15
  s.extra_rdoc_files = [
@@ -31,11 +31,11 @@ Gem::Specification.new do |s|
31
31
  "test/helper.rb",
32
32
  "test/test_active_exchange.rb"
33
33
  ]
34
- s.homepage = %q{http://github.com/nerbie69/active_exchange}
34
+ s.homepage = %q{http://github.com/pjammer/active_exchange}
35
35
  s.rdoc_options = ["--charset=UTF-8"]
36
36
  s.require_paths = ["lib"]
37
- s.rubygems_version = %q{1.3.5}
38
- s.summary = %q{Foreign Exchange for your rails app}
37
+ s.rubygems_version = %q{1.3.7}
38
+ s.summary = %q{Foreign Exchange for your Rails app}
39
39
  s.test_files = [
40
40
  "test/helper.rb",
41
41
  "test/test_active_exchange.rb"
@@ -45,7 +45,7 @@ Gem::Specification.new do |s|
45
45
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46
46
  s.specification_version = 3
47
47
 
48
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
48
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
49
  else
50
50
  end
51
51
  else
@@ -10,4 +10,8 @@ class TestActiveExchange < Test::Unit::TestCase
10
10
  actual = ActiveExchange.exchange_rate_on(Date.parse("10/07/2009"))
11
11
  assert_equal("0.889898255813954", actual.to_s)
12
12
  end
13
+ def test_retrieve_data_returns_a_200
14
+ actual = ActiveExchange.retrieve_data
15
+ assert_equal("200", actual.root.attributes["responsecode"])
16
+ end
13
17
  end
metadata CHANGED
@@ -1,15 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_exchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ hash: 19
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
5
11
  platform: ruby
6
12
  authors:
7
- - nerbie69
13
+ - pjammer
8
14
  autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-10-27 00:00:00 -04:00
18
+ date: 2010-10-20 00:00:00 -04:00
13
19
  default_executable:
14
20
  dependencies: []
15
21
 
@@ -37,7 +43,7 @@ files:
37
43
  - test/helper.rb
38
44
  - test/test_active_exchange.rb
39
45
  has_rdoc: true
40
- homepage: http://github.com/nerbie69/active_exchange
46
+ homepage: http://github.com/pjammer/active_exchange
41
47
  licenses: []
42
48
 
43
49
  post_install_message:
@@ -46,24 +52,30 @@ rdoc_options:
46
52
  require_paths:
47
53
  - lib
48
54
  required_ruby_version: !ruby/object:Gem::Requirement
55
+ none: false
49
56
  requirements:
50
57
  - - ">="
51
58
  - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
52
62
  version: "0"
53
- version:
54
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
+ none: false
55
65
  requirements:
56
66
  - - ">="
57
67
  - !ruby/object:Gem::Version
68
+ hash: 3
69
+ segments:
70
+ - 0
58
71
  version: "0"
59
- version:
60
72
  requirements: []
61
73
 
62
74
  rubyforge_project:
63
- rubygems_version: 1.3.5
75
+ rubygems_version: 1.3.7
64
76
  signing_key:
65
77
  specification_version: 3
66
- summary: Foreign Exchange for your rails app
78
+ summary: Foreign Exchange for your Rails app
67
79
  test_files:
68
80
  - test/helper.rb
69
81
  - test/test_active_exchange.rb