espresso 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.11
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.11"
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-08-31}
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",
@@ -0,0 +1,5 @@
1
+ en:
2
+ krasivotokak:
3
+ espresso:
4
+ previous: ← Previous
5
+ next: Next →
@@ -0,0 +1,5 @@
1
+ ru:
2
+ krasivotokak:
3
+ espresso:
4
+ previous: ← Туда
5
+ next: Сюда →
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.11
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-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
  - !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