Permalink
Browse files

Adding number parser

  • Loading branch information...
1 parent cd4894c commit 7c65e514a4486f733131b806ffed0f0eb322b446 Cameron Dutro committed Oct 31, 2013
Showing with 12,631 additions and 4,827 deletions.
  1. +4 −5 Rakefile
  2. +208 −98 lib/assets/javascripts/twitter_cldr/af.js
  3. +208 −98 lib/assets/javascripts/twitter_cldr/ar.js
  4. +211 −101 lib/assets/javascripts/twitter_cldr/be.js
  5. +208 −98 lib/assets/javascripts/twitter_cldr/bg.js
  6. +208 −98 lib/assets/javascripts/twitter_cldr/bn.js
  7. +208 −98 lib/assets/javascripts/twitter_cldr/ca.js
  8. +208 −98 lib/assets/javascripts/twitter_cldr/cs.js
  9. +208 −98 lib/assets/javascripts/twitter_cldr/cy.js
  10. +208 −98 lib/assets/javascripts/twitter_cldr/da.js
  11. +208 −98 lib/assets/javascripts/twitter_cldr/de.js
  12. +208 −98 lib/assets/javascripts/twitter_cldr/el.js
  13. +1,994 −0 lib/assets/javascripts/twitter_cldr/en-GB.js
  14. +206 −96 lib/assets/javascripts/twitter_cldr/en.js
  15. +209 −98 lib/assets/javascripts/twitter_cldr/es.js
  16. +209 −98 lib/assets/javascripts/twitter_cldr/eu.js
  17. +209 −98 lib/assets/javascripts/twitter_cldr/fa.js
  18. +209 −98 lib/assets/javascripts/twitter_cldr/fi.js
  19. +209 −98 lib/assets/javascripts/twitter_cldr/fil.js
  20. +209 −98 lib/assets/javascripts/twitter_cldr/fr.js
  21. +212 −101 lib/assets/javascripts/twitter_cldr/ga.js
  22. +209 −98 lib/assets/javascripts/twitter_cldr/gl.js
  23. +209 −98 lib/assets/javascripts/twitter_cldr/he.js
  24. +209 −98 lib/assets/javascripts/twitter_cldr/hi.js
  25. +209 −98 lib/assets/javascripts/twitter_cldr/hr.js
  26. +210 −99 lib/assets/javascripts/twitter_cldr/hu.js
  27. +209 −98 lib/assets/javascripts/twitter_cldr/id.js
  28. +209 −98 lib/assets/javascripts/twitter_cldr/is.js
  29. +209 −98 lib/assets/javascripts/twitter_cldr/it.js
  30. +209 −98 lib/assets/javascripts/twitter_cldr/ja.js
  31. +209 −98 lib/assets/javascripts/twitter_cldr/ko.js
  32. +209 −98 lib/assets/javascripts/twitter_cldr/lv.js
  33. +209 −98 lib/assets/javascripts/twitter_cldr/msa.js
  34. +209 −98 lib/assets/javascripts/twitter_cldr/nl.js
  35. +209 −98 lib/assets/javascripts/twitter_cldr/no.js
  36. +209 −98 lib/assets/javascripts/twitter_cldr/pl.js
  37. +209 −98 lib/assets/javascripts/twitter_cldr/pt.js
  38. +209 −98 lib/assets/javascripts/twitter_cldr/ro.js
  39. +209 −98 lib/assets/javascripts/twitter_cldr/ru.js
  40. +209 −98 lib/assets/javascripts/twitter_cldr/sk.js
  41. +212 −101 lib/assets/javascripts/twitter_cldr/sq.js
  42. +209 −98 lib/assets/javascripts/twitter_cldr/sr.js
  43. +209 −98 lib/assets/javascripts/twitter_cldr/sv.js
  44. +209 −98 lib/assets/javascripts/twitter_cldr/ta.js
  45. +209 −98 lib/assets/javascripts/twitter_cldr/th.js
  46. +209 −98 lib/assets/javascripts/twitter_cldr/tr.js
  47. +209 −98 lib/assets/javascripts/twitter_cldr/uk.js
  48. +210 −99 lib/assets/javascripts/twitter_cldr/ur.js
  49. +209 −98 lib/assets/javascripts/twitter_cldr/vi.js
  50. +209 −98 lib/assets/javascripts/twitter_cldr/zh-cn.js
  51. +209 −98 lib/assets/javascripts/twitter_cldr/zh-tw.js
  52. +20 −5 lib/twitter_cldr/js/compiler.rb
  53. +6 −0 lib/twitter_cldr/js/mustache/bundle.coffee
  54. +103 −0 lib/twitter_cldr/js/mustache/parsers/number_parser.coffee
  55. +4 −0 lib/twitter_cldr/js/renderers.rb
  56. +2 −0 lib/twitter_cldr/js/renderers/base.rb
  57. +34 −0 lib/twitter_cldr/js/renderers/parsers/number_parser.rb
  58. +15 −3 lib/twitter_cldr/js/tasks/tasks.rb
  59. +211 −0 spec/js/parsers/number_parser.spec.js
  60. +0 −3 spec/js/utilities.spec.js
View
@@ -31,11 +31,10 @@ end
desc 'Run JavaScript specs'
task "spec:js" do
- ENV["LOCALES"] = "en"
+ ENV["LOCALES"] = "en,ar"
Rake::Task["twitter_cldr:js:update"].invoke
puts "\nJasmine Specs"
- failures = 0
if `which jasmine-node`.strip.empty?
puts "ERROR: You need to install jasmine-node to run JavaScript tests:"
@@ -44,12 +43,12 @@ task "spec:js" do
else
puts `jasmine-node #{File.dirname(__FILE__)} --junitreport`
doc_files = Dir.glob(File.join(File.dirname(__FILE__), "reports/**"))
+ failures = 0
doc_files.each do |doc_file|
doc = REXML::Document.new(File.read(doc_file))
- failures += doc.elements.to_a("testsuites/testsuite").inject(0) do |sum, element|
- sum += element.attributes["failures"].to_i
- sum
+ failures = doc.elements.to_a("testsuites/testsuite").inject(0) do |sum, element|
+ sum + element.attributes["failures"].to_i
end
end

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 7c65e51

Please sign in to comment.