sugar 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sugar/locales/en.yml +7 -0
- data/lib/sugar/locales/ru.yml +6 -0
- data/lib/sugar.rb +4 -0
- data/sugar.gemspec +4 -2
- metadata +4 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.28
|
data/lib/sugar.rb
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
module Sugar
|
2
|
+
def self.locale_files
|
3
|
+
Dir[File.join(File.dirname(__FILE__), 'sugar', 'locales', '*')]
|
4
|
+
end
|
2
5
|
end
|
3
6
|
|
4
7
|
require 'sugar/actionview'
|
@@ -7,4 +10,5 @@ require 'sugar/activerecord'
|
|
7
10
|
if defined? Rails
|
8
11
|
ActionView::Base.send :include, Sugar::Actionview if defined? ActionView
|
9
12
|
ActionController::Base.send :include, Sugar::Actioncontroller if defined? ActionController
|
13
|
+
I18n.load_path.unshift(*Sugar.locale_files)
|
10
14
|
end
|
data/sugar.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{sugar}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.28"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Alexander Semyonov"]
|
12
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-09-01}
|
13
13
|
s.email = %q{rotuka@rotuka.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
@@ -27,6 +27,8 @@ Gem::Specification.new do |s|
|
|
27
27
|
"lib/sugar/actioncontroller.rb",
|
28
28
|
"lib/sugar/actionview.rb",
|
29
29
|
"lib/sugar/activerecord.rb",
|
30
|
+
"lib/sugar/locales/en.yml",
|
31
|
+
"lib/sugar/locales/ru.yml",
|
30
32
|
"sugar.gemspec",
|
31
33
|
"test/sugar_test.rb",
|
32
34
|
"test/test_helper.rb"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sugar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Semyonov
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-09-01 00:00:00 +04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -34,6 +34,8 @@ files:
|
|
34
34
|
- lib/sugar/actioncontroller.rb
|
35
35
|
- lib/sugar/actionview.rb
|
36
36
|
- lib/sugar/activerecord.rb
|
37
|
+
- lib/sugar/locales/en.yml
|
38
|
+
- lib/sugar/locales/ru.yml
|
37
39
|
- sugar.gemspec
|
38
40
|
- test/sugar_test.rb
|
39
41
|
- test/test_helper.rb
|