Permalink
Browse files

Converting the existing js repo into a Rubygem

  • Loading branch information...
1 parent ba60889 commit c1bd508e7b82335f3d1aaf0f1fd22c9f9f3384c2 Cameron Dutro committed Aug 21, 2012
Showing with 20,879 additions and 2,728 deletions.
  1. +6 −0 .travis.yml
  2. +0 −1 CLDR_VERSION
  3. +27 −0 Gemfile
  4. +103 −0 Gemfile.lock
  5. +3 −0 History.txt
  6. +120 −0 NOTICE
  7. +54 −0 Rakefile
  8. +0 −1 VERSION
  9. +0 −39 build.rb
  10. +0 −415 full/twitter_cldr_cs.js
  11. +0 −415 full/twitter_cldr_en.js
  12. +0 −415 full/twitter_cldr_fr.js
  13. +0 −415 full/twitter_cldr_pl.js
  14. +0 −415 full/twitter_cldr_pt.js
  15. 0 lib/assets/javascripts/twitter_cldr/full/.gitignore
  16. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_af.js
  17. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_ar.js
  18. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_ca.js
  19. +887 −0 lib/assets/javascripts/twitter_cldr/full/twitter_cldr_cs.js
  20. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_da.js
  21. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_de.js
  22. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_el.js
  23. +887 −0 lib/assets/javascripts/twitter_cldr/full/twitter_cldr_en.js
  24. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_es.js
  25. +480 −8 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_eu.js
  26. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_fa.js
  27. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_fi.js
  28. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_fil.js
  29. +887 −0 lib/assets/javascripts/twitter_cldr/full/twitter_cldr_fr.js
  30. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_he.js
  31. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_hi.js
  32. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_hu.js
  33. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_id.js
  34. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_it.js
  35. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_ja.js
  36. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_ko.js
  37. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_msa.js
  38. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_nl.js
  39. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_no.js
  40. +887 −0 lib/assets/javascripts/twitter_cldr/full/twitter_cldr_pl.js
  41. +887 −0 lib/assets/javascripts/twitter_cldr/full/twitter_cldr_pt.js
  42. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_ru.js
  43. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_sv.js
  44. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_th.js
  45. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_tr.js
  46. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_uk.js
  47. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_ur.js
  48. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_zh-cn.js
  49. +479 −7 { → lib/assets/javascripts/twitter_cldr}/full/twitter_cldr_zh-tw.js
  50. 0 lib/assets/javascripts/twitter_cldr/min/.gitignore
  51. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_af.js
  52. +13 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_ar.js
  53. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_ca.js
  54. +13 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_cs.js
  55. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_da.js
  56. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_de.js
  57. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_el.js
  58. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_en.js
  59. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_es.js
  60. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_eu.js
  61. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_fa.js
  62. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_fi.js
  63. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_fil.js
  64. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_fr.js
  65. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_he.js
  66. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_hi.js
  67. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_hu.js
  68. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_id.js
  69. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_it.js
  70. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_ja.js
  71. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_ko.js
  72. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_msa.js
  73. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_nl.js
  74. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_no.js
  75. +13 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_pl.js
  76. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_pt.js
  77. +13 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_ru.js
  78. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_sv.js
  79. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_th.js
  80. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_tr.js
  81. +13 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_uk.js
  82. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_ur.js
  83. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_zh-cn.js
  84. +12 −0 lib/assets/javascripts/twitter_cldr/min/twitter_cldr_zh-tw.js
  85. +24 −0 lib/twitter_cldr/js.rb
  86. +47 −0 lib/twitter_cldr/js/compiler.rb
  87. +15 −0 lib/twitter_cldr/js/mustache/bundle.coffee
  88. +240 −0 lib/twitter_cldr/js/mustache/calendars/datetime.coffee
  89. +52 −0 lib/twitter_cldr/js/mustache/calendars/timespan.coffee
  90. +179 −0 lib/twitter_cldr/js/mustache/numbers/numbers.coffee
  91. +14 −0 lib/twitter_cldr/js/mustache/plurals/rules.coffee
  92. +27 −0 lib/twitter_cldr/js/mustache/shared/currencies.coffee
  93. +31 −0 lib/twitter_cldr/js/renderers.rb
  94. +18 −0 lib/twitter_cldr/js/renderers/base.rb
  95. +18 −0 lib/twitter_cldr/js/renderers/bundle.rb
  96. +34 −0 lib/twitter_cldr/js/renderers/calendars/datetime_renderer.rb
  97. +39 −0 lib/twitter_cldr/js/renderers/calendars/timespan_renderer.rb
  98. +31 −0 lib/twitter_cldr/js/renderers/numbers/numbers_renderer.rb
  99. +93 −0 lib/twitter_cldr/js/renderers/plurals/rules/plural_rules_compiler.rb
  100. +26 −0 lib/twitter_cldr/js/renderers/plurals/rules/plural_rules_renderer.rb
  101. +23 −0 lib/twitter_cldr/js/renderers/shared/currencies_renderer.rb
  102. +10 −0 lib/twitter_cldr/js/version.rb
  103. +0 −12 min/twitter_cldr_af.min.js
  104. +0 −12 min/twitter_cldr_ar.min.js
  105. +0 −12 min/twitter_cldr_ca.min.js
  106. +0 −12 min/twitter_cldr_cs.min.js
  107. +0 −12 min/twitter_cldr_da.min.js
  108. +0 −12 min/twitter_cldr_de.min.js
  109. +0 −12 min/twitter_cldr_el.min.js
  110. +0 −12 min/twitter_cldr_en.min.js
  111. +0 −12 min/twitter_cldr_es.min.js
  112. +0 −12 min/twitter_cldr_eu.min.js
  113. +0 −12 min/twitter_cldr_fa.min.js
  114. +0 −12 min/twitter_cldr_fi.min.js
  115. +0 −12 min/twitter_cldr_fil.min.js
  116. +0 −12 min/twitter_cldr_fr.min.js
  117. +0 −12 min/twitter_cldr_he.min.js
  118. +0 −12 min/twitter_cldr_hi.min.js
  119. +0 −12 min/twitter_cldr_hu.min.js
  120. +0 −12 min/twitter_cldr_id.min.js
  121. +0 −12 min/twitter_cldr_it.min.js
  122. +0 −12 min/twitter_cldr_ja.min.js
  123. +0 −12 min/twitter_cldr_ko.min.js
  124. +0 −12 min/twitter_cldr_msa.min.js
  125. +0 −12 min/twitter_cldr_nl.min.js
  126. +0 −12 min/twitter_cldr_no.min.js
  127. +0 −12 min/twitter_cldr_pl.min.js
  128. +0 −12 min/twitter_cldr_pt.min.js
  129. +0 −12 min/twitter_cldr_ru.min.js
  130. +0 −12 min/twitter_cldr_sv.min.js
  131. +0 −12 min/twitter_cldr_th.min.js
  132. +0 −12 min/twitter_cldr_tr.min.js
  133. +0 −12 min/twitter_cldr_uk.min.js
  134. +0 −12 min/twitter_cldr_ur.min.js
  135. +0 −12 min/twitter_cldr_zh-cn.min.js
  136. +0 −12 min/twitter_cldr_zh-tw.min.js
  137. +418 −0 spec/js/calendars/datetime.spec.js
  138. +91 −0 spec/js/calendars/timespan.spec.js
  139. +34 −0 spec/js/numbers/currency.spec.js
  140. +24 −0 spec/js/numbers/decimal.spec.js
  141. +23 −0 spec/js/numbers/helpers/fraction.spec.js
  142. +100 −0 spec/js/numbers/helpers/integer.spec.js
  143. +70 −0 spec/js/numbers/number.spec.js
  144. +22 −0 spec/js/numbers/percent.spec.js
  145. +28 −0 spec/js/plurals/plural_rules.spec.js
  146. +56 −0 spec/ruby/renderers/plurals/plural_rules_compiler_spec.rb
  147. +11 −0 spec/ruby/spec_helper.rb
  148. +28 −0 twitter_cldr_js.gemspec
View
@@ -0,0 +1,6 @@
+language: ruby
+install: npm install jasmine-node
+rvm:
+ - 1.8.7
+ - 1.9.3
+script: 'bundle exec rake'
View
@@ -1 +0,0 @@
-21.0
View
27 Gemfile
@@ -0,0 +1,27 @@
+source :rubygems
+
+gemspec
+
+group :development, :test do
+ gem 'rake'
+end
+
+group :development do
+ gem 'mustache', '~> 0.99.4'
+ gem 'ruby_parser', '~> 2.3.1'
+
+ platform :ruby do
+ gem 'therubyracer', '~> 0.9.10'
+ gem 'uglifier', '~> 1.2.4'
+ gem 'coffee-script', '~> 2.2.0'
+ end
+end
+
+group :test do
+ gem 'rspec', '~> 2.11.0'
+ gem 'rr', '~> 1.0.4'
+
+ platform :mri_18 do
+ gem 'rcov'
+ end
+end
View
@@ -0,0 +1,103 @@
+PATH
+ remote: .
+ specs:
+ twitter_cldr_js (1.0.0)
+ json (>= 1.1.9)
+ railties (~> 3.1)
+ twitter_cldr (~> 1.8.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionpack (3.1.4)
+ activemodel (= 3.1.4)
+ activesupport (= 3.1.4)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ i18n (~> 0.6)
+ rack (~> 1.3.6)
+ rack-cache (~> 1.1)
+ rack-mount (~> 0.8.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.0.3)
+ activemodel (3.1.4)
+ activesupport (= 3.1.4)
+ builder (~> 3.0.0)
+ i18n (~> 0.6)
+ activesupport (3.1.4)
+ multi_json (~> 1.0)
+ builder (3.0.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.3.3)
+ diff-lcs (1.1.3)
+ erubis (2.7.0)
+ execjs (1.4.0)
+ multi_json (~> 1.0)
+ hike (1.2.1)
+ i18n (0.6.0)
+ json (1.7.5)
+ libv8 (3.3.10.4)
+ multi_json (1.3.6)
+ mustache (0.99.4)
+ rack (1.3.6)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-mount (0.8.3)
+ rack (>= 1.0.0)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ railties (3.1.4)
+ actionpack (= 3.1.4)
+ activesupport (= 3.1.4)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+ rake (0.9.2.2)
+ rcov (1.0.0)
+ rdoc (3.12)
+ json (~> 1.4)
+ rr (1.0.4)
+ rspec (2.11.0)
+ rspec-core (~> 2.11.0)
+ rspec-expectations (~> 2.11.0)
+ rspec-mocks (~> 2.11.0)
+ rspec-core (2.11.1)
+ rspec-expectations (2.11.2)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.11.2)
+ ruby_parser (2.3.1)
+ sexp_processor (~> 3.0)
+ sexp_processor (3.2.0)
+ sprockets (2.0.4)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ therubyracer (0.9.10)
+ libv8 (~> 3.3.10)
+ thor (0.14.6)
+ tilt (1.3.3)
+ twitter_cldr (1.8.0)
+ json (>= 1.1.9)
+ uglifier (1.2.7)
+ execjs (>= 0.3.0)
+ multi_json (~> 1.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-script (~> 2.2.0)
+ mustache (~> 0.99.4)
+ rake
+ rcov
+ rr (~> 1.0.4)
+ rspec (~> 2.11.0)
+ ruby_parser (~> 2.3.1)
+ therubyracer (~> 0.9.10)
+ twitter_cldr_js!
+ uglifier (~> 1.2.4)
View
@@ -0,0 +1,3 @@
+=== 1.0.0
+
+* Moved JavaScript compilation files out of twitter-cldr-rb and into their own gem here.
View
120 NOTICE
@@ -0,0 +1,120 @@
+twitter-cldr-rb is a Ruby implementation of the Common Locale Data Repository
+Copyright (C) 2012 Twitter, Inc.
+
+
+Portions of this gem were borrowed from Sven Fuchs' ruby-cldr gem. Here is
+the license that accompanied Mr. Fuchs' code:
+
+Copyright (c) 2009 Sven Fuchs
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+Backporting of String interpolation from Ruby 1.9 to Ruby 1.8 implemented in
+this gem (see file interpolation.rb) was partially copied and heavily based
+on the implementation of i18n and gettext gems. Below are the license agreements
+that accompanied these gems.
+
+License agreement of the i18n gem (https://github.com/svenfuchs/i18n):
+
+Copyright (c) 2008 The Ruby I18n team
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+License of the gettext gem (https://github.com/mutoh/gettext):
+
+Copyright (C) 2005-2009 Masao Mutoh
+
+You may redistribute it [the code] and/or modify it under the same license
+terms as Ruby or LGPL [http://www.gnu.org/licenses/lgpl-3.0.txt].
+
+Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
+You can redistribute it and/or modify it under either the terms of the GPL
+version 2 (see the file GPL), or the conditions below:
+
+ 1. You may make and give away verbatim copies of the source form of the
+ software without restriction, provided that you duplicate all of the
+ original copyright notices and associated disclaimers.
+
+ 2. You may modify your copy of the software in any way, provided that
+ you do at least ONE of the following:
+
+ a) place your modifications in the Public Domain or otherwise
+ make them Freely Available, such as by posting said
+modifications to Usenet or an equivalent medium, or by allowing
+the author to include your modifications in the software.
+
+ b) use the modified software only within your corporation or
+ organization.
+
+ c) give non-standard binaries non-standard names, with
+ instructions on where to get the original software distribution.
+
+ d) make other distribution arrangements with the author.
+
+ 3. You may distribute the software in object code or binary form,
+ provided that you do at least ONE of the following:
+
+ a) distribute the binaries and library files of the software,
+together with instructions (in the manual page or equivalent)
+on where to get the original distribution.
+
+ b) accompany the distribution with the machine-readable source of
+the software.
+
+ c) give non-standard binaries non-standard names, with
+ instructions on where to get the original software distribution.
+
+ d) make other distribution arrangements with the author.
+
+ 4. You may modify and include the part of the software into any other
+ software (possibly commercial). But some files in the distribution
+ are not written by the author, so that they are not under these terms.
+
+ For the list of those files and their copying conditions, see the
+ file LEGAL.
+
+ 5. The scripts and library files supplied as input to or produced as
+ output from the software do not automatically fall under the
+ copyright of the software, but belong to whomever generated them,
+ and may be sold commercially, and may be aggregated with this
+ software.
+
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE.
View
@@ -0,0 +1,54 @@
+# encoding: UTF-8
+
+# Copyright 2012 Twitter, Inc
+# http://www.apache.org/licenses/LICENSE-2.0
+
+require 'rubygems' unless ENV['NO_RUBYGEMS']
+
+require 'bundler'
+require 'digest'
+
+require 'rspec/core/rake_task'
+require 'rubygems/package_task'
+
+require './lib/twitter_cldr/js'
+
+Bundler::GemHelper.install_tasks
+
+task :default => :spec
+
+desc 'Run specs'
+task :spec => ["spec:ruby", "spec:js"]
+
+desc 'Run Ruby specs'
+RSpec::Core::RakeTask.new("spec:ruby") do |t|
+ t.pattern = './spec/**/*_spec.rb'
+end
+
+desc 'Run JavaScript specs'
+task "spec:js" do
+ puts "\nJasmine Specs"
+ puts `jasmine-node #{File.dirname(__FILE__)}`
+end
+
+if RUBY_VERSION < '1.9.0'
+ desc 'Run all examples with RCov'
+ RSpec::Core::RakeTask.new('spec:rcov') do |t|
+ t.rcov = true
+ t.pattern = './spec/**/*_spec.rb'
+ t.rcov_opts = %w(-T --sort coverage --exclude gems/,spec/)
+ end
+end
+
+task :update do
+ output_dir = File.join(File.dirname(__FILE__), "lib/assets/javascripts/twitter_cldr")
+ compiler = TwitterCldr::Js::Compiler.new
+
+ { "min" => true, "full" => false }.each_pair do |dir, minify|
+ compiler.compile_each(:minify => minify) do |bundle, locale|
+ File.open(File.join(output_dir, dir, "twitter_cldr_#{locale}.js"), "w+") do |f|
+ f.write(bundle)
+ end
+ end
+ end
+end
View
@@ -1 +0,0 @@
-1.6.2
View
@@ -1,39 +0,0 @@
-#!/usr/bin/env ruby
-
-# This script builds and exports the JavaScript version of TwitterCLDR (http://github.com/twitter/twitter-cldr-rb).
-#
-# Run it like so:
-# OUTPUT_DIR=wherever/you/want ./build.rb
-#
-
-begin
- require 'rubygems' unless ENV['NO_RUBYGEMS']
-rescue LoadError
- puts "You need to have rubygems installed to continue. See: http://rubygems.org/pages/download/ for more info."
-end
-
-begin
- require 'twitter_cldr'
-rescue LoadError
- puts "You need to have the twitter_cldr gem installed. Run `gem install twitter_cldr`."
-end
-
-require 'fileutils'
-
-TwitterCldr.require_js
-
-if ENV["OUTPUT_DIR"]
- build_dir = ENV["OUTPUT_DIR"]
-else
- build_dir = Dir.pwd
- puts "Building JavaScript files in the current directory."
- puts "(Use the OUTPUT_DIR environment variable to override)"
-end
-
-$stdout.write("Building... ")
-$stdout.flush
-TwitterCldr::Js.output_dir = build_dir
-TwitterCldr::Js.make(:locales => TwitterCldr.supported_locales)
-TwitterCldr::Js.install
-
-puts "Done."
Oops, something went wrong.

0 comments on commit c1bd508

Please sign in to comment.