sinatra-r18n 0.4.5 → 0.4.6

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/README.rdoc CHANGED
@@ -1,8 +1,8 @@
1
1
  = Sinatra R18n Plugin
2
2
 
3
- Sinatra extension that provides i18n support to translate your web application.
3
+ Sinatra extension which provides i18n support to translate your web application.
4
4
 
5
- It is just a wrapper for R18n core library. See R18n documentation for more
5
+ It is a wrapper for R18n core library. See R18n documentation for more
6
6
  information.
7
7
 
8
8
  == Features
@@ -50,13 +50,13 @@ information.
50
50
  haml :post
51
51
  end
52
52
 
53
- Or you save locale in session, when user change it:
53
+ Or save locale in session, when user change it:
54
54
 
55
55
  before do
56
56
  session[:locale] = params[:locale] if params[:locale]
57
57
  end
58
58
 
59
- 5. Use translation messages in view. For example in HAML:
59
+ 5. Use translation messages in views. For example in HAML:
60
60
 
61
61
  %p= t.post.friends
62
62
  %p= t.post.tags(@post.tags.join(', '))
data/lib/sinatra/r18n.rb CHANGED
@@ -18,11 +18,7 @@ You should have received a copy of the GNU Lesser General Public License
18
18
  along with this program. If not, see <http://www.gnu.org/licenses/>.
19
19
  =end
20
20
 
21
- require 'rubygems'
22
- gem 'sinatra'
23
21
  require 'sinatra/base'
24
-
25
- gem 'r18n-core', '~>0.3'
26
22
  require 'r18n-core'
27
23
 
28
24
  module Sinatra #::nodoc::
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'pp'
3
+ require 'rubygems'
4
+ gem 'sinatra'
3
5
 
4
6
  require File.join(File.dirname(__FILE__), 'app/app')
5
7
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 5
9
- version: 0.4.5
8
+ - 6
9
+ version: 0.4.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andrey "A.I." Sitnik
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-19 00:00:00 +04:00
17
+ date: 2010-06-22 00:00:00 +04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -27,8 +27,8 @@ dependencies:
27
27
  segments:
28
28
  - 0
29
29
  - 4
30
- - 5
31
- version: 0.4.5
30
+ - 6
31
+ version: 0.4.6
32
32
  type: :runtime
33
33
  version_requirements: *id001
34
34
  description: " A Sinatra extension that provides i18n support to translate your web\n application. It is just a wrapper for R18n core library.\n It has nice Ruby-style syntax, filters, flexible locales, custom loaders,\n translation support for any classes, time and number localization, several\n user language support, agnostic core package with out-of-box support for\n Rails, Sinatra, Merb and desktop applications.\n"
@@ -75,9 +75,9 @@ signing_key:
75
75
  specification_version: 3
76
76
  summary: A Sinatra extension that provides i18n support to translate your web application.
77
77
  test_files:
78
- - spec/sinatra-r18n_spec.rb
79
78
  - spec/spec_helper.rb
80
79
  - spec/app/views/post.erb
81
- - spec/app/app.rb
82
- - spec/app/i18n/ru.yml
83
80
  - spec/app/i18n/en.yml
81
+ - spec/app/i18n/ru.yml
82
+ - spec/app/app.rb
83
+ - spec/sinatra-r18n_spec.rb