spree_multi_currency 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data.tar.gz.sig +3 -0
  2. data/.gitignore +5 -0
  3. data/Gemfile +11 -0
  4. data/LICENSE +0 -0
  5. data/README.markdown +196 -0
  6. data/Rakefile +28 -0
  7. data/Versionfile +9 -0
  8. data/app/controllers/spree/admin/currencies_controller.rb +11 -0
  9. data/app/controllers/spree/admin/currency_converters_controller.rb +4 -0
  10. data/app/controllers/spree/base_controller_decorator.rb +12 -0
  11. data/app/controllers/spree/currency_controller.rb +16 -0
  12. data/app/helpers/number_helper_decorator.rb +40 -0
  13. data/app/models/spree/adjustment_decorator.rb +4 -0
  14. data/app/models/spree/currency.rb +119 -0
  15. data/app/models/spree/currency_converter.rb +14 -0
  16. data/app/models/spree/line_item_decorator.rb +13 -0
  17. data/app/models/spree/order_decorator.rb +83 -0
  18. data/app/models/spree/variant_decorator.rb +22 -0
  19. data/app/overrides/add_currencies_admin_configurations_menu.rb +10 -0
  20. data/app/views/spree/admin/currencies/_form.html.erb +40 -0
  21. data/app/views/spree/admin/currencies/edit.html.erb +16 -0
  22. data/app/views/spree/admin/currencies/index.html.erb +44 -0
  23. data/app/views/spree/admin/currencies/new.html.erb +16 -0
  24. data/app/views/spree/admin/currency_converters/_form.html.erb +35 -0
  25. data/app/views/spree/admin/currency_converters/edit.html.erb +16 -0
  26. data/app/views/spree/admin/currency_converters/index.html.erb +42 -0
  27. data/app/views/spree/admin/currency_converters/new.html.erb +16 -0
  28. data/config/cucumber.yml +10 -0
  29. data/config/locales/currencies.yml +51 -0
  30. data/config/locales/en_multi_currency.yml +28 -0
  31. data/config/locales/ru_multi_currency.yml +26 -0
  32. data/config/routes.rb +8 -0
  33. data/db/migrate/20101109134351_create_currencies.rb +25 -0
  34. data/db/migrate/20101109134453_create_currency_converters.rb +15 -0
  35. data/db/sample/currencies.yml +1603 -0
  36. data/db/sample/currency_converters.yml +689 -0
  37. data/db/seeds.rb +2 -0
  38. data/features/products.feature +32 -0
  39. data/features/step_definitions/product.rb +124 -0
  40. data/features/step_definitions/ror_ringer.jpeg +0 -0
  41. data/features/support/env.rb +16 -0
  42. data/features/support/paths.rb +42 -0
  43. data/lib/generators/spree_multi_currency/install/install_generator.rb +29 -0
  44. data/lib/spree_multi_currency.rb +40 -0
  45. data/lib/spree_multi_currency/engine.rb +34 -0
  46. data/lib/tasks/spree_multi_currency.rake +99 -0
  47. data/script/rails +5 -0
  48. data/spec/changing_currency_spec.rb +18 -0
  49. data/spec/spec_helper.rb +17 -0
  50. data/spree_multi_currency.gemspec +32 -0
  51. metadata +226 -0
  52. metadata.gz.sig +1 -0
@@ -0,0 +1,17 @@
1
+ # This file is copied to ~/spec when you run 'ruby script/generate rspec'
2
+ # from the project root directory.
3
+ ENV["RAILS_ENV"] ||= 'test'
4
+ require File.expand_path("../dummy/config/environment", __FILE__)
5
+ require 'rspec/rails'
6
+
7
+ # Requires supporting files with custom matchers and macros, etc,
8
+ # in ./support/ and its subdirectories.
9
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
10
+
11
+ require 'spree/core/testing_support/factories'
12
+
13
+ RSpec.configure do |config|
14
+ config.mock_with :rspec
15
+
16
+ config.use_transactional_fixtures = true
17
+ end
@@ -0,0 +1,32 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.platform = Gem::Platform::RUBY
6
+ s.name = 'spree_multi_currency'
7
+ s.version = '1.0.4'
8
+ s.summary = 'Add gem summary here'
9
+ s.required_ruby_version = '>= 1.8.7'
10
+ s.authors = ["Pronix LLC"]
11
+ s.email = ["parallel588@gmail.com","pronix.service@gmail.com"]
12
+ s.homepage = "http://nanopodcast-pronix.rhcloud.com/"
13
+ s.summary = %q{spree_multi_currency}
14
+ s.description = %q{spree_multi_currency}
15
+ s.signing_key = '/home/dima/.gem/keys/gem-private_key.pem'
16
+ s.cert_chain = ['/home/dima/.gem/keys/gem-public_cert.pem']
17
+
18
+ # s.rubyforge_project = "spree-multi-currency"
19
+
20
+ s.files = `git ls-files`.split("\n")
21
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
22
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
23
+
24
+ s.require_path = ['lib']
25
+
26
+ s.add_dependency('spree_core', '>= 1.2.0')
27
+ s.add_dependency('nokogiri', '>= 1.4.4')
28
+ s.add_dependency('money', '>= 5.0.0')
29
+ s.add_dependency('json', '>= 1.5.1')
30
+ s.add_development_dependency("rspec", ">= 2.5.0")
31
+ s.add_development_dependency 'rspec-rails'
32
+ end
metadata ADDED
@@ -0,0 +1,226 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spree_multi_currency
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.4
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Pronix LLC
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain:
12
+ - !binary |-
13
+ LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURQakNDQWlhZ0F3SUJB
14
+ Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREJGTVJjd0ZRWURWUVFEREE1d2Nt
15
+ OXUKYVhndWMyVnlkbWxqWlRFVk1CTUdDZ21TSm9tVDhpeGtBUmtXQldkdFlX
16
+ bHNNUk13RVFZS0NaSW1pWlB5TEdRQgpHUllEWTI5dE1CNFhEVEV6TURNeU16
17
+ RXhNVGcxTTFvWERURTBNRE15TXpFeE1UZzFNMW93UlRFWE1CVUdBMVVFCkF3
18
+ d09jSEp2Ym1sNExuTmxjblpwWTJVeEZUQVRCZ29Ka2lhSmsvSXNaQUVaRmdW
19
+ bmJXRnBiREVUTUJFR0NnbVMKSm9tVDhpeGtBUmtXQTJOdmJUQ0NBU0l3RFFZ
20
+ SktvWklodmNOQVFFQkJRQURnZ0VQQURDQ0FRb0NnZ0VCQU51awo3U2R5Uzcy
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UNMTHZ0RmNhejZRTUgxT0ZtVnJ6YmlKdWpacktsbnpLdVZZcXlaUzQ4
38
+ QkhRNi8yMgpHWnVjQmIwZ0NzTzNMVnVmTXNieWZkeVQKLS0tLS1FTkQgQ0VS
39
+ VElGSUNBVEUtLS0tLQo=
40
+ date: 2013-03-23 00:00:00.000000000 Z
41
+ dependencies:
42
+ - !ruby/object:Gem::Dependency
43
+ name: spree_core
44
+ requirement: !ruby/object:Gem::Requirement
45
+ none: false
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: 1.2.0
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: 1.2.0
58
+ - !ruby/object:Gem::Dependency
59
+ name: nokogiri
60
+ requirement: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: 1.4.4
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: 1.4.4
74
+ - !ruby/object:Gem::Dependency
75
+ name: money
76
+ requirement: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ! '>='
80
+ - !ruby/object:Gem::Version
81
+ version: 5.0.0
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: 5.0.0
90
+ - !ruby/object:Gem::Dependency
91
+ name: json
92
+ requirement: !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: 1.5.1
98
+ type: :runtime
99
+ prerelease: false
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ none: false
102
+ requirements:
103
+ - - ! '>='
104
+ - !ruby/object:Gem::Version
105
+ version: 1.5.1
106
+ - !ruby/object:Gem::Dependency
107
+ name: rspec
108
+ requirement: !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: 2.5.0
114
+ type: :development
115
+ prerelease: false
116
+ version_requirements: !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: 2.5.0
122
+ - !ruby/object:Gem::Dependency
123
+ name: rspec-rails
124
+ requirement: !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ! '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ type: :development
131
+ prerelease: false
132
+ version_requirements: !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - ! '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ description: spree_multi_currency
139
+ email:
140
+ - parallel588@gmail.com
141
+ - pronix.service@gmail.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - .gitignore
147
+ - Gemfile
148
+ - LICENSE
149
+ - README.markdown
150
+ - Rakefile
151
+ - Versionfile
152
+ - app/controllers/spree/admin/currencies_controller.rb
153
+ - app/controllers/spree/admin/currency_converters_controller.rb
154
+ - app/controllers/spree/base_controller_decorator.rb
155
+ - app/controllers/spree/currency_controller.rb
156
+ - app/helpers/number_helper_decorator.rb
157
+ - app/models/spree/adjustment_decorator.rb
158
+ - app/models/spree/currency.rb
159
+ - app/models/spree/currency_converter.rb
160
+ - app/models/spree/line_item_decorator.rb
161
+ - app/models/spree/order_decorator.rb
162
+ - app/models/spree/variant_decorator.rb
163
+ - app/overrides/add_currencies_admin_configurations_menu.rb
164
+ - app/views/spree/admin/currencies/_form.html.erb
165
+ - app/views/spree/admin/currencies/edit.html.erb
166
+ - app/views/spree/admin/currencies/index.html.erb
167
+ - app/views/spree/admin/currencies/new.html.erb
168
+ - app/views/spree/admin/currency_converters/_form.html.erb
169
+ - app/views/spree/admin/currency_converters/edit.html.erb
170
+ - app/views/spree/admin/currency_converters/index.html.erb
171
+ - app/views/spree/admin/currency_converters/new.html.erb
172
+ - config/cucumber.yml
173
+ - config/locales/currencies.yml
174
+ - config/locales/en_multi_currency.yml
175
+ - config/locales/ru_multi_currency.yml
176
+ - config/routes.rb
177
+ - db/migrate/20101109134351_create_currencies.rb
178
+ - db/migrate/20101109134453_create_currency_converters.rb
179
+ - db/sample/currencies.yml
180
+ - db/sample/currency_converters.yml
181
+ - db/seeds.rb
182
+ - features/products.feature
183
+ - features/step_definitions/product.rb
184
+ - features/step_definitions/ror_ringer.jpeg
185
+ - features/support/env.rb
186
+ - features/support/paths.rb
187
+ - lib/generators/spree_multi_currency/install/install_generator.rb
188
+ - lib/spree_multi_currency.rb
189
+ - lib/spree_multi_currency/engine.rb
190
+ - lib/tasks/spree_multi_currency.rake
191
+ - script/rails
192
+ - spec/changing_currency_spec.rb
193
+ - spec/spec_helper.rb
194
+ - spree_multi_currency.gemspec
195
+ homepage: http://nanopodcast-pronix.rhcloud.com/
196
+ licenses: []
197
+ post_install_message:
198
+ rdoc_options: []
199
+ require_paths:
200
+ - - lib
201
+ required_ruby_version: !ruby/object:Gem::Requirement
202
+ none: false
203
+ requirements:
204
+ - - ! '>='
205
+ - !ruby/object:Gem::Version
206
+ version: 1.8.7
207
+ required_rubygems_version: !ruby/object:Gem::Requirement
208
+ none: false
209
+ requirements:
210
+ - - ! '>='
211
+ - !ruby/object:Gem::Version
212
+ version: '0'
213
+ requirements: []
214
+ rubyforge_project:
215
+ rubygems_version: 1.8.25
216
+ signing_key:
217
+ specification_version: 3
218
+ summary: spree_multi_currency
219
+ test_files:
220
+ - features/products.feature
221
+ - features/step_definitions/product.rb
222
+ - features/step_definitions/ror_ringer.jpeg
223
+ - features/support/env.rb
224
+ - features/support/paths.rb
225
+ - spec/changing_currency_spec.rb
226
+ - spec/spec_helper.rb
metadata.gz.sig ADDED
@@ -0,0 +1 @@
1
+ [ ��`��>�=�ņ�|gٗ�"���~!�\�^8�G4Yf��{GJ���#����ك:��sx��)ꏱ����� =�s��毮�<��? 0@����*1�\��Z�W�����#0�n�w �$�<)9��d�~�@�$�8�,��*2`ƻ�TǴ��8�Q�0��e�;N��{�W_g�Jn�@�)�0з��6L6*j��j�4���k���k���1����?SP*��1#�g<�zD��