Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2 tests still fail and integration tests must be run with selenium because of bug in capybara.
- Loading branch information
Showing
82 changed files
with
66,881 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
tmp/**/* | ||
tmp/**/* | ||
test/dummy/db/migrate/*.tolk.rb | ||
Gemfile.lock | ||
.bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
source "http://rubygems.org" | ||
|
||
gem "rails", :git => "http://github.com/rails/rails.git" | ||
gem "arel", :git => "http://github.com/rails/arel.git" | ||
|
||
gem 'will_paginate', :git => 'http://github.com/mislav/will_paginate.git', :branch => 'rails3' | ||
gem "ya2yaml" | ||
|
||
gem "factory_girl_rails" | ||
gem "capybara", ">= 0.3.9" | ||
gem "sqlite3-ruby", :require => "sqlite3" | ||
gem "mocha" | ||
|
||
if RUBY_VERSION < '1.9' | ||
gem "ruby-debug", ">= 0.10.3" | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,39 @@ | ||
# Add your own tasks in files placed in lib/tasks ending in .rake, | ||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | ||
|
||
require(File.join(File.dirname(__FILE__), 'config', 'boot')) | ||
|
||
# encoding: UTF-8 | ||
require 'rake' | ||
require 'rake/testtask' | ||
require 'rake/rdoctask' | ||
require 'rake/gempackagetask' | ||
|
||
require 'rake/testtask' | ||
|
||
Rake::TestTask.new(:test) do |t| | ||
t.libs << 'lib' | ||
t.libs << 'test' | ||
t.pattern = 'test/**/*_test.rb' | ||
t.verbose = false | ||
end | ||
|
||
task :default => :test | ||
|
||
Rake::RDocTask.new(:rdoc) do |rdoc| | ||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = 'Tolk' | ||
rdoc.options << '--line-numbers' << '--inline-source' | ||
rdoc.rdoc_files.include('README.rdoc') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
end | ||
|
||
spec = Gem::Specification.new do |s| | ||
s.name = "tolk" | ||
s.summary = "Rails engine providing web interface for managing i18n yaml files" | ||
s.description = "Tolk is a web interface for doing i18n translations packaged as an engine for Rails applications." | ||
s.files = FileList["[A-Z]*", "lib/**/*"] | ||
s.version = "2.0.0.beta" | ||
end | ||
|
||
Rake::GemPackageTask.new(spec) do |pkg| | ||
end | ||
|
||
require 'tasks/rails' | ||
desc "Install the gem #{spec.name}-#{spec.version}.gem" | ||
task :install do | ||
system("gem install pkg/#{spec.name}-#{spec.version}.gem --no-ri --no-rdoc") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
Rails.application.routes.draw do |map| | ||
map.namespace('tolk') do |tolk| | ||
tolk.root :controller => 'locales' | ||
tolk.resources :locales, :member => {:all => :get, :updated => :get} | ||
tolk.resource :search | ||
Tolk::Engine.routes.draw do | ||
root :to => 'locales#index' | ||
resources :locales do | ||
member do | ||
get :all | ||
get :updated | ||
end | ||
end | ||
resource :search | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
require 'will_paginate' | ||
require 'ya2yaml' | ||
require 'tolk/engine' | ||
require 'tolk/sync' | ||
require 'tolk/import' | ||
|
||
module Tolk | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
module Tolk | ||
class Engine < Rails::Engine | ||
engine_name :tolk | ||
namespace Tolk | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Add your own tasks in files placed in lib/tasks ending in .rake, | ||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | ||
|
||
require File.expand_path('../config/application', __FILE__) | ||
require 'rake' | ||
|
||
Dummy::Application.load_tasks |
Oops, something went wrong.