espresso 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/espresso.gemspec +4 -2
- data/lib/espresso/locales/en.yml +5 -0
- data/lib/espresso/locales/ru.yml +5 -0
- data/lib/espresso.rb +4 -0
- metadata +4 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.12
|
data/espresso.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{espresso}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.12"
|
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.description = %q{Useful templates for controller and model functions}
|
14
14
|
s.email = %q{rotuka@rotuka.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -26,6 +26,8 @@ Gem::Specification.new do |s|
|
|
26
26
|
"init.rb",
|
27
27
|
"lib/espresso.rb",
|
28
28
|
"lib/espresso/helpers.rb",
|
29
|
+
"lib/espresso/locales/en.yml",
|
30
|
+
"lib/espresso/locales/ru.yml",
|
29
31
|
"lib/espresso/model.rb",
|
30
32
|
"lib/espresso/objects_controller.rb",
|
31
33
|
"test/espresso_test.rb",
|
data/lib/espresso.rb
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
module Espresso
|
2
|
+
def self.locale_files
|
3
|
+
Dir[File.join(File.dirname(__FILE__), 'sugar', 'locales', '*')]
|
4
|
+
end
|
2
5
|
end
|
3
6
|
|
4
7
|
require 'espresso/objects_controller'
|
@@ -7,4 +10,5 @@ require 'espresso/model'
|
|
7
10
|
if defined? Rails
|
8
11
|
ActiveRecord::Base.send :include, Espresso::Model if defined? ActiveRecord
|
9
12
|
ActionView::Base.send :include, Espresso::Helpers if defined? ActionView
|
13
|
+
I18n.load_path.unshift(*Sugar.locale_files)
|
10
14
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: espresso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
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
|
- !ruby/object:Gem::Dependency
|
@@ -71,6 +71,8 @@ files:
|
|
71
71
|
- init.rb
|
72
72
|
- lib/espresso.rb
|
73
73
|
- lib/espresso/helpers.rb
|
74
|
+
- lib/espresso/locales/en.yml
|
75
|
+
- lib/espresso/locales/ru.yml
|
74
76
|
- lib/espresso/model.rb
|
75
77
|
- lib/espresso/objects_controller.rb
|
76
78
|
- test/espresso_test.rb
|