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 CHANGED
@@ -1 +1 @@
1
- 0.0.27
1
+ 0.0.28
@@ -0,0 +1,7 @@
1
+ en:
2
+ krasivotokak:
3
+ sugar:
4
+ new: New
5
+ create: Create
6
+ edit: Edit
7
+ update: Update
@@ -0,0 +1,6 @@
1
+ ru:
2
+ krasivotokak:
3
+ new: Новый
4
+ create: Добавить
5
+ edit: Редактирование
6
+ update: Сохранить
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.27"
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-08-31}
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.27
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-08-31 00:00:00 +04:00
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