Skip to content

Commit

Permalink
Added bundler setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
norman committed Jul 8, 2010
1 parent 1f0aa3b commit fc1553f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
Gemfile
3 changes: 3 additions & 0 deletions Gemfile.default
@@ -0,0 +1,3 @@
source :rubygems

gem "phonology"
3 changes: 3 additions & 0 deletions extras/random_words.rb
@@ -1,4 +1,7 @@
# encoding: utf-8
require "rubygems"
require "bundler"
Bundler.setup
require File.expand_path("../../init.rb", __FILE__)

words = File.read(File.expand_path("../spanish.txt", __FILE__)).split("\n")
Expand Down
11 changes: 11 additions & 0 deletions extras/word.rb
@@ -0,0 +1,11 @@
# encoding: utf-8
require "rubygems"
require "bundler"
Bundler.setup
require File.expand_path("../../init.rb", __FILE__)

until ARGV.empty?
word = ARGV.shift
trans = Spanish.get_sounds(word)
puts Spanish::Syllable.syllabify(word).map {|s| s.to_s }.join(" ")
end
3 changes: 3 additions & 0 deletions test/test_helper.rb
@@ -1,3 +1,6 @@
require "rubygems"
require "bundler"
Bundler.setup
require "test/unit"
require File.expand_path("../../lib/spanish", __FILE__)
include Spanish
Expand Down

0 comments on commit fc1553f

Please sign in to comment.