bigcartel-currency-locales 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/.travis.yml +12 -0
  4. data/Appraisals +19 -0
  5. data/Gemfile +3 -0
  6. data/README.md +23 -0
  7. data/Rakefile +25 -0
  8. data/bigcartel-currency-locales.gemspec +21 -0
  9. data/gemfiles/2.3.gemfile +10 -0
  10. data/gemfiles/2.3.gemfile.lock +44 -0
  11. data/gemfiles/3.0.gemfile +8 -0
  12. data/gemfiles/3.0.gemfile.lock +99 -0
  13. data/gemfiles/3.1.gemfile +8 -0
  14. data/gemfiles/3.1.gemfile.lock +110 -0
  15. data/gemfiles/3.2.gemfile +8 -0
  16. data/gemfiles/3.2.gemfile.lock +109 -0
  17. data/lib/currency-locales.rb +12 -0
  18. data/lib/currency-locales/locales/cs.yml +26 -0
  19. data/lib/currency-locales/locales/da.yml +26 -0
  20. data/lib/currency-locales/locales/en-AU.yml +26 -0
  21. data/lib/currency-locales/locales/en-GB.yml +26 -0
  22. data/lib/currency-locales/locales/en-PH.yml +27 -0
  23. data/lib/currency-locales/locales/en-US.yml +26 -0
  24. data/lib/currency-locales/locales/es-MX.yml +26 -0
  25. data/lib/currency-locales/locales/eu.yml +26 -0
  26. data/lib/currency-locales/locales/gsw-CH.yml +26 -0
  27. data/lib/currency-locales/locales/hu.yml +26 -0
  28. data/lib/currency-locales/locales/il.yml +26 -0
  29. data/lib/currency-locales/locales/ja.yml +30 -0
  30. data/lib/currency-locales/locales/ms-MY.yml +26 -0
  31. data/lib/currency-locales/locales/nb.yml +22 -0
  32. data/lib/currency-locales/locales/pl.yml +27 -0
  33. data/lib/currency-locales/locales/pt-BR.yml +26 -0
  34. data/lib/currency-locales/locales/sv-SE.yml +26 -0
  35. data/lib/currency-locales/locales/th.yml +26 -0
  36. data/lib/currency-locales/locales/tr.yml +29 -0
  37. data/lib/currency-locales/locales/zh-TW.yml +30 -0
  38. data/lib/currency-locales/railtie.rb +11 -0
  39. data/lib/currency-locales/version.rb +5 -0
  40. data/rails/init.rb +1 -0
  41. data/spec/integration/currency_locales_spec.rb +421 -0
  42. data/spec/spec_helper.rb +27 -0
  43. metadata +125 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c68f1672fdc985d1583764156b786b0de555da76
4
+ data.tar.gz: d0d7298869163637f77fceb445ae9c9c492c7485
5
+ SHA512:
6
+ metadata.gz: d7139ee5a0739b4ffee33bb4750d64d84dbc915504392c2172680ce4d562813a6e4a0b813a7ca73548b190d265303de2c76a01726904f27a020c26717967e1a6
7
+ data.tar.gz: 24bcc7f97d18c088476cebb6fd1d423c7906aa365e90f06702a7b46790d18e6d12e635b3d98c237a2454b0e19817e521a071686e146249d23c601ed6f5c69bf3
@@ -0,0 +1,4 @@
1
+ .DS_Store
2
+ Gemfile.lock
3
+ *.gem
4
+ log
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ rvm:
3
+ - ree
4
+ - 1.9.3
5
+ - 2.0
6
+ gemfile:
7
+ - gemfiles/2.3.gemfile
8
+ - gemfiles/3.0.gemfile
9
+ - gemfiles/3.1.gemfile
10
+ - gemfiles/3.2.gemfile
11
+ notifications:
12
+ email: false
@@ -0,0 +1,19 @@
1
+ appraise "3.2" do
2
+ gem "rails", "~> 3.2.11"
3
+ gem "bigcartel-currency-locales", :path => "../"
4
+ end
5
+
6
+ appraise "3.1" do
7
+ gem "rails", "~> 3.1.10"
8
+ gem "bigcartel-currency-locales", :path => "../"
9
+ end
10
+
11
+ appraise "3.0" do
12
+ gem "rails", "~> 3.0.20"
13
+ gem "bigcartel-currency-locales", :path => "../"
14
+ end
15
+
16
+ appraise "2.3" do
17
+ gem "rails", "~> 2.3.16"
18
+ gem "bigcartel-currency-locales", :path => "../"
19
+ end
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1,23 @@
1
+ # Big Cartel Currency Locales [![Build Status](https://travis-ci.org/bigcartel/bigcartel-currency-locales.png?branch=master)](https://travis-ci.org/bigcartel/bigcartel-currency-locales) [![Gem Version](https://badge.fury.io/rb/bigcartel-currency-locales.png)](http://badge.fury.io/rb/bigcartel-currency-locales)
2
+
3
+ Loads locale data for all of [Big Cartel's supported currencies](http://help.bigcartel.com/customer/portal/articles/772222#currency) so that we can format the currency amounts with the I18n gem. Used internally by [Big Cartel](http://bigcartel.com) and [Dugway](https://github.com/bigcartel/dugway).
4
+
5
+ ## Install
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'bigcartel-currency-locales'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ ```ruby
16
+ bundle
17
+ ```
18
+
19
+ Or install it yourself as:
20
+
21
+ ```ruby
22
+ gem install bigcartel-currency-locales
23
+ ```
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+
4
+ require 'rake'
5
+ # We have different tasks for rspec-rails between rails 2 and 3
6
+ begin
7
+ require 'rspec/core/rake_task'
8
+ rescue LoadError
9
+ require 'spec/rake/spectask'
10
+ end
11
+
12
+ require 'appraisal'
13
+
14
+ desc "Run all examples"
15
+ if Module.const_defined? "RSpec"
16
+ RSpec::Core::RakeTask.new(:spec) do |t|
17
+ t.rspec_opts = %w[--color]
18
+ end
19
+ else
20
+ Spec::Rake::SpecTask.new(:spec) do |t|
21
+ t.spec_opts = %w[--color]
22
+ end
23
+ end
24
+
25
+ task :default => [:spec]
@@ -0,0 +1,21 @@
1
+ # encoding: utf-8
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "currency-locales/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "bigcartel-currency-locales"
7
+ s.version = BigCartel::CurrencyLocales::VERSION
8
+ s.authors = ["Big Cartel"]
9
+ s.email = "dev@bigcartel.com"
10
+ s.homepage = "http://github.com/bigcartel/bigcartel-currency-locales"
11
+ s.summary = "Common locale data for Rails i18n of Big Cartel's supported currencies."
12
+ s.description = "Common locale data for Rails i18n of Big Cartel's supported currencies."
13
+
14
+ s.files = `git ls-files`.split($\)
15
+ s.platform = Gem::Platform::RUBY
16
+ s.require_path = 'lib'
17
+
18
+ s.add_development_dependency "appraisal"
19
+ s.add_development_dependency "rails", "= 3.2.9"
20
+ s.add_development_dependency "rspec-rails", ">= 2.0"
21
+ end
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 2.3.16"
6
+ gem "bigcartel-currency-locales", :path=>"../"
7
+ gem 'rspec'
8
+ gem 'rspec-rails', '< 2'
9
+
10
+ gemspec :path=>"../"
@@ -0,0 +1,44 @@
1
+ PATH
2
+ remote: /Users/kreynolds/Documents/devel/bigcartel/currency-locales
3
+ specs:
4
+ bigcartel-currency-locales (1.3.0)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ actionmailer (2.3.16)
10
+ actionpack (= 2.3.16)
11
+ actionpack (2.3.16)
12
+ activesupport (= 2.3.16)
13
+ rack (~> 1.1.0)
14
+ activerecord (2.3.16)
15
+ activesupport (= 2.3.16)
16
+ activeresource (2.3.16)
17
+ activesupport (= 2.3.16)
18
+ activesupport (2.3.16)
19
+ appraisal (0.5.1)
20
+ bundler
21
+ rake
22
+ rack (1.1.5)
23
+ rails (2.3.16)
24
+ actionmailer (= 2.3.16)
25
+ actionpack (= 2.3.16)
26
+ activerecord (= 2.3.16)
27
+ activeresource (= 2.3.16)
28
+ activesupport (= 2.3.16)
29
+ rake (>= 0.8.3)
30
+ rake (10.0.3)
31
+ rspec (1.3.2)
32
+ rspec-rails (1.3.4)
33
+ rack (>= 1.0.0)
34
+ rspec (~> 1.3.1)
35
+
36
+ PLATFORMS
37
+ ruby
38
+
39
+ DEPENDENCIES
40
+ appraisal
41
+ bigcartel-currency-locales!
42
+ rails (~> 2.3.16)
43
+ rspec
44
+ rspec-rails (< 2)
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.0.20"
6
+ gem "bigcartel-currency-locales", :path=>"../"
7
+
8
+ gemspec :path=>"../"
@@ -0,0 +1,99 @@
1
+ PATH
2
+ remote: /Users/kreynolds/Documents/devel/bigcartel/currency-locales
3
+ specs:
4
+ bigcartel-currency-locales (1.3.0)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ abstract (1.0.0)
10
+ actionmailer (3.0.20)
11
+ actionpack (= 3.0.20)
12
+ mail (~> 2.2.19)
13
+ actionpack (3.0.20)
14
+ activemodel (= 3.0.20)
15
+ activesupport (= 3.0.20)
16
+ builder (~> 2.1.2)
17
+ erubis (~> 2.6.6)
18
+ i18n (~> 0.5.0)
19
+ rack (~> 1.2.5)
20
+ rack-mount (~> 0.6.14)
21
+ rack-test (~> 0.5.7)
22
+ tzinfo (~> 0.3.23)
23
+ activemodel (3.0.20)
24
+ activesupport (= 3.0.20)
25
+ builder (~> 2.1.2)
26
+ i18n (~> 0.5.0)
27
+ activerecord (3.0.20)
28
+ activemodel (= 3.0.20)
29
+ activesupport (= 3.0.20)
30
+ arel (~> 2.0.10)
31
+ tzinfo (~> 0.3.23)
32
+ activeresource (3.0.20)
33
+ activemodel (= 3.0.20)
34
+ activesupport (= 3.0.20)
35
+ activesupport (3.0.20)
36
+ appraisal (0.5.1)
37
+ bundler
38
+ rake
39
+ arel (2.0.10)
40
+ builder (2.1.2)
41
+ diff-lcs (1.1.3)
42
+ erubis (2.6.6)
43
+ abstract (>= 1.0.0)
44
+ i18n (0.5.0)
45
+ json (1.7.6)
46
+ mail (2.2.19)
47
+ activesupport (>= 2.3.6)
48
+ i18n (>= 0.4.0)
49
+ mime-types (~> 1.16)
50
+ treetop (~> 1.4.8)
51
+ mime-types (1.19)
52
+ polyglot (0.3.3)
53
+ rack (1.2.7)
54
+ rack-mount (0.6.14)
55
+ rack (>= 1.0.0)
56
+ rack-test (0.5.7)
57
+ rack (>= 1.0)
58
+ rails (3.0.20)
59
+ actionmailer (= 3.0.20)
60
+ actionpack (= 3.0.20)
61
+ activerecord (= 3.0.20)
62
+ activeresource (= 3.0.20)
63
+ activesupport (= 3.0.20)
64
+ bundler (~> 1.0)
65
+ railties (= 3.0.20)
66
+ railties (3.0.20)
67
+ actionpack (= 3.0.20)
68
+ activesupport (= 3.0.20)
69
+ rake (>= 0.8.7)
70
+ rdoc (~> 3.4)
71
+ thor (~> 0.14.4)
72
+ rake (10.0.3)
73
+ rdoc (3.12)
74
+ json (~> 1.4)
75
+ rspec-core (2.12.2)
76
+ rspec-expectations (2.12.1)
77
+ diff-lcs (~> 1.1.3)
78
+ rspec-mocks (2.12.2)
79
+ rspec-rails (2.12.2)
80
+ actionpack (>= 3.0)
81
+ activesupport (>= 3.0)
82
+ railties (>= 3.0)
83
+ rspec-core (~> 2.12.0)
84
+ rspec-expectations (~> 2.12.0)
85
+ rspec-mocks (~> 2.12.0)
86
+ thor (0.14.6)
87
+ treetop (1.4.12)
88
+ polyglot
89
+ polyglot (>= 0.3.1)
90
+ tzinfo (0.3.35)
91
+
92
+ PLATFORMS
93
+ ruby
94
+
95
+ DEPENDENCIES
96
+ appraisal
97
+ bigcartel-currency-locales!
98
+ rails (~> 3.0.20)
99
+ rspec-rails (>= 2.0)
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.1.10"
6
+ gem "bigcartel-currency-locales", :path=>"../"
7
+
8
+ gemspec :path=>"../"
@@ -0,0 +1,110 @@
1
+ PATH
2
+ remote: /Users/kreynolds/Documents/devel/bigcartel/currency-locales
3
+ specs:
4
+ bigcartel-currency-locales (1.3.0)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ actionmailer (3.1.10)
10
+ actionpack (= 3.1.10)
11
+ mail (~> 2.3.3)
12
+ actionpack (3.1.10)
13
+ activemodel (= 3.1.10)
14
+ activesupport (= 3.1.10)
15
+ builder (~> 3.0.0)
16
+ erubis (~> 2.7.0)
17
+ i18n (~> 0.6)
18
+ rack (~> 1.3.6)
19
+ rack-cache (~> 1.2)
20
+ rack-mount (~> 0.8.2)
21
+ rack-test (~> 0.6.1)
22
+ sprockets (~> 2.0.4)
23
+ activemodel (3.1.10)
24
+ activesupport (= 3.1.10)
25
+ builder (~> 3.0.0)
26
+ i18n (~> 0.6)
27
+ activerecord (3.1.10)
28
+ activemodel (= 3.1.10)
29
+ activesupport (= 3.1.10)
30
+ arel (~> 2.2.3)
31
+ tzinfo (~> 0.3.29)
32
+ activeresource (3.1.10)
33
+ activemodel (= 3.1.10)
34
+ activesupport (= 3.1.10)
35
+ activesupport (3.1.10)
36
+ multi_json (>= 1.0, < 1.3)
37
+ appraisal (0.5.1)
38
+ bundler
39
+ rake
40
+ arel (2.2.3)
41
+ builder (3.0.4)
42
+ diff-lcs (1.1.3)
43
+ erubis (2.7.0)
44
+ hike (1.2.1)
45
+ i18n (0.6.1)
46
+ json (1.7.6)
47
+ mail (2.3.3)
48
+ i18n (>= 0.4.0)
49
+ mime-types (~> 1.16)
50
+ treetop (~> 1.4.8)
51
+ mime-types (1.19)
52
+ multi_json (1.2.0)
53
+ polyglot (0.3.3)
54
+ rack (1.3.9)
55
+ rack-cache (1.2)
56
+ rack (>= 0.4)
57
+ rack-mount (0.8.3)
58
+ rack (>= 1.0.0)
59
+ rack-ssl (1.3.3)
60
+ rack
61
+ rack-test (0.6.2)
62
+ rack (>= 1.0)
63
+ rails (3.1.10)
64
+ actionmailer (= 3.1.10)
65
+ actionpack (= 3.1.10)
66
+ activerecord (= 3.1.10)
67
+ activeresource (= 3.1.10)
68
+ activesupport (= 3.1.10)
69
+ bundler (~> 1.0)
70
+ railties (= 3.1.10)
71
+ railties (3.1.10)
72
+ actionpack (= 3.1.10)
73
+ activesupport (= 3.1.10)
74
+ rack-ssl (~> 1.3.2)
75
+ rake (>= 0.8.7)
76
+ rdoc (~> 3.4)
77
+ thor (~> 0.14.6)
78
+ rake (10.0.3)
79
+ rdoc (3.12)
80
+ json (~> 1.4)
81
+ rspec-core (2.12.2)
82
+ rspec-expectations (2.12.1)
83
+ diff-lcs (~> 1.1.3)
84
+ rspec-mocks (2.12.2)
85
+ rspec-rails (2.12.2)
86
+ actionpack (>= 3.0)
87
+ activesupport (>= 3.0)
88
+ railties (>= 3.0)
89
+ rspec-core (~> 2.12.0)
90
+ rspec-expectations (~> 2.12.0)
91
+ rspec-mocks (~> 2.12.0)
92
+ sprockets (2.0.4)
93
+ hike (~> 1.2)
94
+ rack (~> 1.0)
95
+ tilt (~> 1.1, != 1.3.0)
96
+ thor (0.14.6)
97
+ tilt (1.3.3)
98
+ treetop (1.4.12)
99
+ polyglot
100
+ polyglot (>= 0.3.1)
101
+ tzinfo (0.3.35)
102
+
103
+ PLATFORMS
104
+ ruby
105
+
106
+ DEPENDENCIES
107
+ appraisal
108
+ bigcartel-currency-locales!
109
+ rails (~> 3.1.10)
110
+ rspec-rails (>= 2.0)
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.2.11"
6
+ gem "bigcartel-currency-locales", :path=>"../"
7
+
8
+ gemspec :path=>"../"
@@ -0,0 +1,109 @@
1
+ PATH
2
+ remote: /Users/kreynolds/Documents/devel/bigcartel/currency-locales
3
+ specs:
4
+ bigcartel-currency-locales (1.3.0)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ actionmailer (3.2.11)
10
+ actionpack (= 3.2.11)
11
+ mail (~> 2.4.4)
12
+ actionpack (3.2.11)
13
+ activemodel (= 3.2.11)
14
+ activesupport (= 3.2.11)
15
+ builder (~> 3.0.0)
16
+ erubis (~> 2.7.0)
17
+ journey (~> 1.0.4)
18
+ rack (~> 1.4.0)
19
+ rack-cache (~> 1.2)
20
+ rack-test (~> 0.6.1)
21
+ sprockets (~> 2.2.1)
22
+ activemodel (3.2.11)
23
+ activesupport (= 3.2.11)
24
+ builder (~> 3.0.0)
25
+ activerecord (3.2.11)
26
+ activemodel (= 3.2.11)
27
+ activesupport (= 3.2.11)
28
+ arel (~> 3.0.2)
29
+ tzinfo (~> 0.3.29)
30
+ activeresource (3.2.11)
31
+ activemodel (= 3.2.11)
32
+ activesupport (= 3.2.11)
33
+ activesupport (3.2.11)
34
+ i18n (~> 0.6)
35
+ multi_json (~> 1.0)
36
+ appraisal (0.5.1)
37
+ bundler
38
+ rake
39
+ arel (3.0.2)
40
+ builder (3.0.4)
41
+ diff-lcs (1.1.3)
42
+ erubis (2.7.0)
43
+ hike (1.2.1)
44
+ i18n (0.6.1)
45
+ journey (1.0.4)
46
+ json (1.7.6)
47
+ mail (2.4.4)
48
+ i18n (>= 0.4.0)
49
+ mime-types (~> 1.16)
50
+ treetop (~> 1.4.8)
51
+ mime-types (1.19)
52
+ multi_json (1.5.0)
53
+ polyglot (0.3.3)
54
+ rack (1.4.4)
55
+ rack-cache (1.2)
56
+ rack (>= 0.4)
57
+ rack-ssl (1.3.3)
58
+ rack
59
+ rack-test (0.6.2)
60
+ rack (>= 1.0)
61
+ rails (3.2.11)
62
+ actionmailer (= 3.2.11)
63
+ actionpack (= 3.2.11)
64
+ activerecord (= 3.2.11)
65
+ activeresource (= 3.2.11)
66
+ activesupport (= 3.2.11)
67
+ bundler (~> 1.0)
68
+ railties (= 3.2.11)
69
+ railties (3.2.11)
70
+ actionpack (= 3.2.11)
71
+ activesupport (= 3.2.11)
72
+ rack-ssl (~> 1.3.2)
73
+ rake (>= 0.8.7)
74
+ rdoc (~> 3.4)
75
+ thor (>= 0.14.6, < 2.0)
76
+ rake (10.0.3)
77
+ rdoc (3.12)
78
+ json (~> 1.4)
79
+ rspec-core (2.12.2)
80
+ rspec-expectations (2.12.1)
81
+ diff-lcs (~> 1.1.3)
82
+ rspec-mocks (2.12.2)
83
+ rspec-rails (2.12.2)
84
+ actionpack (>= 3.0)
85
+ activesupport (>= 3.0)
86
+ railties (>= 3.0)
87
+ rspec-core (~> 2.12.0)
88
+ rspec-expectations (~> 2.12.0)
89
+ rspec-mocks (~> 2.12.0)
90
+ sprockets (2.2.2)
91
+ hike (~> 1.2)
92
+ multi_json (~> 1.0)
93
+ rack (~> 1.0)
94
+ tilt (~> 1.1, != 1.3.0)
95
+ thor (0.17.0)
96
+ tilt (1.3.3)
97
+ treetop (1.4.12)
98
+ polyglot
99
+ polyglot (>= 0.3.1)
100
+ tzinfo (0.3.35)
101
+
102
+ PLATFORMS
103
+ ruby
104
+
105
+ DEPENDENCIES
106
+ appraisal
107
+ bigcartel-currency-locales!
108
+ rails (~> 3.2.11)
109
+ rspec-rails (>= 2.0)