Skip to content

Commit

Permalink
Merge pull request #2 from tigrish/master
Browse files Browse the repository at this point in the history
Manage dependencies with bundler, bump CLDR version
  • Loading branch information
tigrish committed Jan 13, 2012
2 parents e5c4b26 + 34a0f3e commit 99d84c8
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vendor/
data/
1 change: 1 addition & 0 deletions .rvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rvm 1.9.2@ruby-cldr
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source :gemcutter

gem 'thor'
gem 'i18n'
gem 'ya2yaml'
gem 'nokogiri'
gem 'jeweler', :group => :development
23 changes: 23 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
GEM
remote: http://rubygems.org/
specs:
git (1.2.5)
i18n (0.6.0)
jeweler (1.6.4)
bundler (~> 1.0)
git (>= 1.2.5)
rake
nokogiri (1.5.0)
rake (0.9.2.2)
thor (0.14.6)
ya2yaml (0.30)

PLATFORMS
ruby

DEPENDENCIES
i18n
jeweler
nokogiri
thor
ya2yaml
7 changes: 5 additions & 2 deletions README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ h2. Requirements
h2. Installation

<pre>
gem install cldr (not there, yet. install locally)
thor install http://github.com/svenfuchs/cldr/raw/master/cldr.thor --as=cldr
gem install bundler
bundle install


thor cldr:download
</pre>

h2. Export
Expand Down
4 changes: 2 additions & 2 deletions lib/cldr/thor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Cldr
class Thor < ::Thor
namespace 'cldr'

desc "download [--source=http://unicode.org/Public/cldr/1.7.2/core.zip] [--target=./vendor]",
desc "download [--source=http://unicode.org/Public/cldr/2.0.1/core.zip] [--target=./vendor]",
"Download and extract CLDR data from source to target dir"
method_options %w(source -s) => :string,
%w(target -t) => :string
Expand All @@ -30,4 +30,4 @@ def export

# TODO flatten task, e.g. flatten all plural locale files into one big file
end
end
end

0 comments on commit 99d84c8

Please sign in to comment.