lolita-i18n 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +4 -0
- data/.rspec +1 -0
- data/Gemfile +24 -0
- data/Gemfile.lock +165 -0
- data/LICENSE.txt +20 -0
- data/README.md +27 -0
- data/Rakefile +46 -0
- data/VERSION +1 -0
- data/app/assets/images/lolita/i18n/google_translate_icon.png +0 -0
- data/app/assets/javascripts/lolita/i18n/application.js +2 -0
- data/app/assets/javascripts/lolita/i18n/i18n.js.coffee +135 -0
- data/app/assets/javascripts/lolita/i18n/spin.min.js +2 -0
- data/app/assets/stylesheets/lolita/i18n/application.scss +102 -0
- data/app/controllers/lolita/i18n_controller.rb +39 -0
- data/app/helpers/lolita/i18n_helper.rb +25 -0
- data/app/views/lolita/i18n/index.html.haml +34 -0
- data/config/locales/en.yml +5 -0
- data/config/locales/lv.yml +4 -0
- data/config/routes.rb +11 -0
- data/lib/lolita-i18n.rb +81 -0
- data/lib/lolita-i18n/backend.rb +69 -0
- data/lib/lolita-i18n/google_translate.rb +76 -0
- data/lib/lolita-i18n/module.rb +1 -0
- data/lib/lolita-i18n/rails.rb +6 -0
- data/lolita-i18n.gemspec +110 -0
- data/spec/controllers/lolita/i18n_controller_spec.rb +39 -0
- data/spec/lolita-i18n/backend_spec.rb +21 -0
- data/spec/lolita-i18n/google_translate_spec.rb +31 -0
- data/spec/rails_app/app/controllers/application_controller.rb +3 -0
- data/spec/rails_app/config/application.rb +18 -0
- data/spec/rails_app/config/enviroment.rb +5 -0
- data/spec/rails_app/config/initializers/lolita_i18n.rb +15 -0
- data/spec/rails_app/config/locales/en.yml +9 -0
- data/spec/rails_app/config/locales/lv.yml +2 -0
- data/spec/rails_app/config/routes.rb +3 -0
- data/spec/spec_helper.rb +33 -0
- metadata +197 -0
@@ -0,0 +1 @@
|
|
1
|
+
Lolita.add_module Lolita::I18n
|
data/lolita-i18n.gemspec
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "lolita-i18n"
|
8
|
+
s.version = "0.1.3"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["ITHouse (Latvia)", "Arturs Meisters", "Gatis Tomsons"]
|
12
|
+
s.date = "2011-10-06"
|
13
|
+
s.description = "Lolita plugin, that enables .yml files management from administrative interface. Also faster access to translations, that DB store"
|
14
|
+
s.email = "support@ithouse.lv"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.md",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"app/assets/images/lolita/i18n/google_translate_icon.png",
|
29
|
+
"app/assets/javascripts/lolita/i18n/application.js",
|
30
|
+
"app/assets/javascripts/lolita/i18n/i18n.js.coffee",
|
31
|
+
"app/assets/javascripts/lolita/i18n/spin.min.js",
|
32
|
+
"app/assets/stylesheets/lolita/i18n/application.scss",
|
33
|
+
"app/controllers/lolita/i18n_controller.rb",
|
34
|
+
"app/helpers/lolita/i18n_helper.rb",
|
35
|
+
"app/views/lolita/i18n/index.html.haml",
|
36
|
+
"config/locales/en.yml",
|
37
|
+
"config/locales/lv.yml",
|
38
|
+
"config/routes.rb",
|
39
|
+
"lib/lolita-i18n.rb",
|
40
|
+
"lib/lolita-i18n/backend.rb",
|
41
|
+
"lib/lolita-i18n/google_translate.rb",
|
42
|
+
"lib/lolita-i18n/module.rb",
|
43
|
+
"lib/lolita-i18n/rails.rb",
|
44
|
+
"lolita-i18n.gemspec",
|
45
|
+
"spec/controllers/lolita/i18n_controller_spec.rb",
|
46
|
+
"spec/lolita-i18n/backend_spec.rb",
|
47
|
+
"spec/lolita-i18n/google_translate_spec.rb",
|
48
|
+
"spec/rails_app/app/controllers/application_controller.rb",
|
49
|
+
"spec/rails_app/config/application.rb",
|
50
|
+
"spec/rails_app/config/enviroment.rb",
|
51
|
+
"spec/rails_app/config/initializers/lolita_i18n.rb",
|
52
|
+
"spec/rails_app/config/locales/en.yml",
|
53
|
+
"spec/rails_app/config/locales/lv.yml",
|
54
|
+
"spec/rails_app/config/routes.rb",
|
55
|
+
"spec/spec_helper.rb"
|
56
|
+
]
|
57
|
+
s.homepage = "http://github.com/ithouse/lolita-i18n"
|
58
|
+
s.licenses = ["MIT"]
|
59
|
+
s.require_paths = ["lib"]
|
60
|
+
s.rubygems_version = "1.8.10"
|
61
|
+
s.summary = "Lolita plugin, that enables .yml management"
|
62
|
+
s.test_files = [
|
63
|
+
"spec/controllers/lolita/i18n_controller_spec.rb",
|
64
|
+
"spec/lolita-i18n/backend_spec.rb",
|
65
|
+
"spec/lolita-i18n/google_translate_spec.rb",
|
66
|
+
"spec/rails_app/app/controllers/application_controller.rb",
|
67
|
+
"spec/rails_app/config/application.rb",
|
68
|
+
"spec/rails_app/config/enviroment.rb",
|
69
|
+
"spec/rails_app/config/initializers/lolita_i18n.rb",
|
70
|
+
"spec/rails_app/config/routes.rb",
|
71
|
+
"spec/spec_helper.rb"
|
72
|
+
]
|
73
|
+
|
74
|
+
if s.respond_to? :specification_version then
|
75
|
+
s.specification_version = 3
|
76
|
+
|
77
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
78
|
+
s.add_runtime_dependency(%q<lolita>, ["~> 3.2.0.rc.3"])
|
79
|
+
s.add_runtime_dependency(%q<hiredis>, ["~> 0.3.1"])
|
80
|
+
s.add_runtime_dependency(%q<redis>, ["~> 2.2.2"])
|
81
|
+
s.add_runtime_dependency(%q<yajl-ruby>, ["~> 1.0.0"])
|
82
|
+
s.add_runtime_dependency(%q<easy_translate>, ["~> 0.2.1"])
|
83
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
84
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
85
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
86
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
87
|
+
else
|
88
|
+
s.add_dependency(%q<lolita>, ["~> 3.2.0.rc.3"])
|
89
|
+
s.add_dependency(%q<hiredis>, ["~> 0.3.1"])
|
90
|
+
s.add_dependency(%q<redis>, ["~> 2.2.2"])
|
91
|
+
s.add_dependency(%q<yajl-ruby>, ["~> 1.0.0"])
|
92
|
+
s.add_dependency(%q<easy_translate>, ["~> 0.2.1"])
|
93
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
94
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
95
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
96
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
97
|
+
end
|
98
|
+
else
|
99
|
+
s.add_dependency(%q<lolita>, ["~> 3.2.0.rc.3"])
|
100
|
+
s.add_dependency(%q<hiredis>, ["~> 0.3.1"])
|
101
|
+
s.add_dependency(%q<redis>, ["~> 2.2.2"])
|
102
|
+
s.add_dependency(%q<yajl-ruby>, ["~> 1.0.0"])
|
103
|
+
s.add_dependency(%q<easy_translate>, ["~> 0.2.1"])
|
104
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
105
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
106
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
107
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
USE_RAILS=true unless defined?(USE_RAILS)
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
5
|
+
|
6
|
+
include Lolita::Test::Matchers
|
7
|
+
|
8
|
+
describe Lolita::I18nController do
|
9
|
+
render_views
|
10
|
+
|
11
|
+
it "should have i18n routes" do
|
12
|
+
{:get=>"/lolita/i18n"}.should be_routable
|
13
|
+
{:put=>"/lolita/i18n/1"}.should be_routable
|
14
|
+
{:put=>"/lolita/i18n/translate_untranslated"}.should be_routable
|
15
|
+
{:get=>"/lolita/i18n"}.should be_routable
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should show all translations" do
|
19
|
+
get :index
|
20
|
+
response.should render_template("index")
|
21
|
+
response.body.should match(/#{::I18n.t('lolita-i18n.title')}/)
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should save translation" do
|
25
|
+
put :update, :id=>"en.Page title",:translation=>"New title", :format => :json
|
26
|
+
response.body.should == {error: false}.to_json
|
27
|
+
::I18n.t("Page title", :locale => :en).should == "New title"
|
28
|
+
end
|
29
|
+
|
30
|
+
it "should translate to google" do
|
31
|
+
stub_request(:post, "http://ajax.googleapis.com/ajax/services/language/translate").
|
32
|
+
with(:body => "v=2.0&format=text&q=true&langpair=%7Clv&q=true&langpair=%7Clv&q=Posts&langpair=%7Clv&q=Posts%20description&langpair=%7Clv&q=Comments&langpair=%7Clv&q=Comment%20description&langpair=%7Clv&q=Footer%20text&langpair=%7Clv",
|
33
|
+
:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
|
34
|
+
to_return(:status => 200, :body => '{"responseData": [{"responseData":{"translatedText":"patiess","detectedSourceLanguage":"en"},"responseDetails":null,"responseStatus":200},{"responseData":{"translatedText":"patiess","detectedSourceLanguage":"en"},"responseDetails":null,"responseStatus":200},{"responseData":{"translatedText":"Atbildes","detectedSourceLanguage":"en"},"responseDetails":null,"responseStatus":200},{"responseData":{"translatedText":"Atbildes apraksts","detectedSourceLanguage":"en"},"responseDetails":null,"responseStatus":200},{"responseData":{"translatedText":"Komentāri","detectedSourceLanguage":"en"},"responseDetails":null,"responseStatus":200},{"responseData":{"translatedText":"Cik apraksts","detectedSourceLanguage":"fr"},"responseDetails":null,"responseStatus":200},{"responseData":{"translatedText":"Kājenes tekstu","detectedSourceLanguage":"en"},"responseDetails":null,"responseStatus":200}], "responseDetails": null, "responseStatus": 200}', :headers => {})
|
35
|
+
|
36
|
+
put :translate_untranslated, :active_locale => :lv, :format => :json
|
37
|
+
response.body.should == {errors: [], translated: 7}.to_json
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
USE_RAILS=true unless defined?(USE_RAILS)
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
3
|
+
|
4
|
+
describe Lolita::I18n::Backend do
|
5
|
+
|
6
|
+
it "should have fallback to default I18n store" do
|
7
|
+
I18n.t("Page title").should == "Page title"
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should set translation into DB" do
|
11
|
+
::I18n.t("test-key", :locale => :en, :default => '').should == ''
|
12
|
+
Lolita::I18n::Backend.set("en.test-key","Hello")
|
13
|
+
::I18n.t("test-key", :locale => :en, :default => '').should == 'Hello'
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should get translation into DB" do
|
17
|
+
Lolita::I18n::Backend.get("en.test-key")[:value].should == ''
|
18
|
+
Lolita::I18n::Backend.set("en.test-key","Hello")
|
19
|
+
Lolita::I18n::Backend.get("en.test-key")[:value].should == "Hello"
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
USE_RAILS=true unless defined?(USE_RAILS)
|
4
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
5
|
+
|
6
|
+
describe Lolita::I18n::GoogleTranslate do
|
7
|
+
let(:google_translate){
|
8
|
+
stub_request(:post, "http://ajax.googleapis.com/ajax/services/language/translate").
|
9
|
+
with(:body => "v=2.0&format=text&q=true&langpair=%7Clv&q=true&langpair=%7Clv&q=Posts&langpair=%7Clv&q=Posts%20description&langpair=%7Clv&q=Comments&langpair=%7Clv&q=Comment%20description&langpair=%7Clv&q=Footer%20text&langpair=%7Clv",
|
10
|
+
:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
|
11
|
+
to_return(:status => 200, :body => '{"responseData": [{"responseData":{"translatedText":"patiess","detectedSourceLanguage":"en"},"responseDetails":null,"responseStatus":200},{"responseData":{"translatedText":"patiess","detectedSourceLanguage":"en"},"responseDetails":null,"responseStatus":200},{"responseData":{"translatedText":"Atbildes","detectedSourceLanguage":"en"},"responseDetails":null,"responseStatus":200},{"responseData":{"translatedText":"Atbildes apraksts","detectedSourceLanguage":"en"},"responseDetails":null,"responseStatus":200},{"responseData":{"translatedText":"Komentāri","detectedSourceLanguage":"en"},"responseDetails":null,"responseStatus":200},{"responseData":{"translatedText":"Cik apraksts","detectedSourceLanguage":"fr"},"responseDetails":null,"responseStatus":200},{"responseData":{"translatedText":"Kājenes tekstu","detectedSourceLanguage":"en"},"responseDetails":null,"responseStatus":200}], "responseDetails": null, "responseStatus": 200}', :headers => {})
|
12
|
+
|
13
|
+
gt = Lolita::I18n::GoogleTranslate.new(:lv)
|
14
|
+
gt.run
|
15
|
+
gt
|
16
|
+
}
|
17
|
+
|
18
|
+
it "should store google translation" do
|
19
|
+
google_translate.untranslated_translations.size.should == 7
|
20
|
+
google_translate.untranslated.should == 7
|
21
|
+
google_translate.errors.should be_empty
|
22
|
+
Lolita::I18n::GoogleTranslate.get_translation(:lv, :'posts.Description').should == "Atbildes apraksts"
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should delete google translation" do
|
26
|
+
google_translate
|
27
|
+
Lolita::I18n::GoogleTranslate.get_translation(:lv, :'posts.Description').should == "Atbildes apraksts"
|
28
|
+
Lolita::I18n::GoogleTranslate.del_translation(:lv, :'posts.Description')
|
29
|
+
Lolita::I18n::GoogleTranslate.get_translation(:lv, :'posts.Description').should be_nil
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require "action_controller/railtie"
|
2
|
+
require "action_mailer/railtie"
|
3
|
+
require "active_resource/railtie"
|
4
|
+
require "rails/test_unit/railtie"
|
5
|
+
|
6
|
+
require File.expand_path("../../../../lib/lolita-i18n",__FILE__)
|
7
|
+
require 'i18n'
|
8
|
+
|
9
|
+
module Test
|
10
|
+
class Application < Rails::Application
|
11
|
+
config.root=File.expand_path("#{File.dirname(__FILE__)}/..")
|
12
|
+
config.logger=Logger.new(File.join(config.root,"log","development.log"))
|
13
|
+
config.active_support.deprecation=:log
|
14
|
+
config.i18n.default_locale = :en
|
15
|
+
|
16
|
+
#config.autoload_paths=File.expand_path("../#{File.dirname(__FILE__)}")
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Lolita.setup do |config|
|
2
|
+
# ==> User and authentication configuration
|
3
|
+
# Add one or more of your user classes to Lolita
|
4
|
+
# config.user_classes << MyUser
|
5
|
+
# config.authentication = :authenticate_user!
|
6
|
+
|
7
|
+
# Define authentication for Lolita controllers.
|
8
|
+
# Call some of your own methods
|
9
|
+
# config.authentication=:is_admin?
|
10
|
+
# Or use some customized logic
|
11
|
+
# config.authentication={
|
12
|
+
# current_user.is_a?(Admin) || current_user.has_role?(:admin)
|
13
|
+
# }
|
14
|
+
I18n.backend = Lolita::I18n.load Redis.new(:db => 11)
|
15
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :test)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
|
11
|
+
require 'rails'
|
12
|
+
require 'lolita'
|
13
|
+
require 'webmock/rspec'
|
14
|
+
|
15
|
+
if defined?(USE_RAILS)
|
16
|
+
# require 'mongoid'
|
17
|
+
|
18
|
+
# Mongoid.configure do |config|
|
19
|
+
# config.master = Mongo::Connection.new('127.0.0.1', 27017).db("lolita-i18n-test")
|
20
|
+
# end
|
21
|
+
|
22
|
+
require File.expand_path("../rails_app/config/enviroment.rb",__FILE__)
|
23
|
+
require "rspec/rails"
|
24
|
+
end
|
25
|
+
|
26
|
+
require File.expand_path('lib/lolita-i18n')
|
27
|
+
|
28
|
+
RSpec.configure do |config|
|
29
|
+
config.mock_with :rspec
|
30
|
+
config.before(:each) do
|
31
|
+
Lolita::I18n.store.flushdb
|
32
|
+
end
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,197 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lolita-i18n
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.3
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- ITHouse (Latvia)
|
9
|
+
- Arturs Meisters
|
10
|
+
- Gatis Tomsons
|
11
|
+
autorequire:
|
12
|
+
bindir: bin
|
13
|
+
cert_chain: []
|
14
|
+
date: 2011-10-06 00:00:00.000000000Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: lolita
|
18
|
+
requirement: &79016930 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 3.2.0.rc.3
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: *79016930
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: hiredis
|
29
|
+
requirement: &79016080 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 0.3.1
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: *79016080
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: redis
|
40
|
+
requirement: &79015300 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.2.2
|
46
|
+
type: :runtime
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: *79015300
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: yajl-ruby
|
51
|
+
requirement: &79014520 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ~>
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 1.0.0
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: *79014520
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: easy_translate
|
62
|
+
requirement: &79013420 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ~>
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 0.2.1
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *79013420
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: shoulda
|
73
|
+
requirement: &79012630 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
type: :development
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: *79012630
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: bundler
|
84
|
+
requirement: &79011400 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.0.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: *79011400
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: jeweler
|
95
|
+
requirement: &79010970 !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ~>
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 1.5.2
|
101
|
+
type: :development
|
102
|
+
prerelease: false
|
103
|
+
version_requirements: *79010970
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: rcov
|
106
|
+
requirement: &79010430 !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ! '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
type: :development
|
113
|
+
prerelease: false
|
114
|
+
version_requirements: *79010430
|
115
|
+
description: Lolita plugin, that enables .yml files management from administrative
|
116
|
+
interface. Also faster access to translations, that DB store
|
117
|
+
email: support@ithouse.lv
|
118
|
+
executables: []
|
119
|
+
extensions: []
|
120
|
+
extra_rdoc_files:
|
121
|
+
- LICENSE.txt
|
122
|
+
- README.md
|
123
|
+
files:
|
124
|
+
- .document
|
125
|
+
- .rspec
|
126
|
+
- Gemfile
|
127
|
+
- Gemfile.lock
|
128
|
+
- LICENSE.txt
|
129
|
+
- README.md
|
130
|
+
- Rakefile
|
131
|
+
- VERSION
|
132
|
+
- app/assets/images/lolita/i18n/google_translate_icon.png
|
133
|
+
- app/assets/javascripts/lolita/i18n/application.js
|
134
|
+
- app/assets/javascripts/lolita/i18n/i18n.js.coffee
|
135
|
+
- app/assets/javascripts/lolita/i18n/spin.min.js
|
136
|
+
- app/assets/stylesheets/lolita/i18n/application.scss
|
137
|
+
- app/controllers/lolita/i18n_controller.rb
|
138
|
+
- app/helpers/lolita/i18n_helper.rb
|
139
|
+
- app/views/lolita/i18n/index.html.haml
|
140
|
+
- config/locales/en.yml
|
141
|
+
- config/locales/lv.yml
|
142
|
+
- config/routes.rb
|
143
|
+
- lib/lolita-i18n.rb
|
144
|
+
- lib/lolita-i18n/backend.rb
|
145
|
+
- lib/lolita-i18n/google_translate.rb
|
146
|
+
- lib/lolita-i18n/module.rb
|
147
|
+
- lib/lolita-i18n/rails.rb
|
148
|
+
- lolita-i18n.gemspec
|
149
|
+
- spec/controllers/lolita/i18n_controller_spec.rb
|
150
|
+
- spec/lolita-i18n/backend_spec.rb
|
151
|
+
- spec/lolita-i18n/google_translate_spec.rb
|
152
|
+
- spec/rails_app/app/controllers/application_controller.rb
|
153
|
+
- spec/rails_app/config/application.rb
|
154
|
+
- spec/rails_app/config/enviroment.rb
|
155
|
+
- spec/rails_app/config/initializers/lolita_i18n.rb
|
156
|
+
- spec/rails_app/config/locales/en.yml
|
157
|
+
- spec/rails_app/config/locales/lv.yml
|
158
|
+
- spec/rails_app/config/routes.rb
|
159
|
+
- spec/spec_helper.rb
|
160
|
+
homepage: http://github.com/ithouse/lolita-i18n
|
161
|
+
licenses:
|
162
|
+
- MIT
|
163
|
+
post_install_message:
|
164
|
+
rdoc_options: []
|
165
|
+
require_paths:
|
166
|
+
- lib
|
167
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
168
|
+
none: false
|
169
|
+
requirements:
|
170
|
+
- - ! '>='
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
segments:
|
174
|
+
- 0
|
175
|
+
hash: 631376749
|
176
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
requirements: []
|
183
|
+
rubyforge_project:
|
184
|
+
rubygems_version: 1.8.10
|
185
|
+
signing_key:
|
186
|
+
specification_version: 3
|
187
|
+
summary: Lolita plugin, that enables .yml management
|
188
|
+
test_files:
|
189
|
+
- spec/controllers/lolita/i18n_controller_spec.rb
|
190
|
+
- spec/lolita-i18n/backend_spec.rb
|
191
|
+
- spec/lolita-i18n/google_translate_spec.rb
|
192
|
+
- spec/rails_app/app/controllers/application_controller.rb
|
193
|
+
- spec/rails_app/config/application.rb
|
194
|
+
- spec/rails_app/config/enviroment.rb
|
195
|
+
- spec/rails_app/config/initializers/lolita_i18n.rb
|
196
|
+
- spec/rails_app/config/routes.rb
|
197
|
+
- spec/spec_helper.rb
|