sinatra-r18n 0.4.4 → 0.4.5

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.
Files changed (3) hide show
  1. data/README.rdoc +7 -0
  2. data/spec/sinatra-r18n_spec.rb +4 -0
  3. metadata +21 -10
data/README.rdoc CHANGED
@@ -74,6 +74,13 @@ information.
74
74
  %li
75
75
  %a{ href: "/#{locale.code}/" }= locale.title
76
76
 
77
+ == Configuration
78
+
79
+ You can change default locale and translations dir:
80
+
81
+ set :default_locale, 'ru'
82
+ set :translations, './translations'
83
+
77
84
  == License
78
85
 
79
86
  R18n is licensed under the GNU Lesser General Public License version 3.
@@ -2,6 +2,10 @@
2
2
  require File.join(File.dirname(__FILE__), 'spec_helper')
3
3
 
4
4
  describe Sinatra::R18n do
5
+ before(:all) do
6
+ Sinatra::R18n.registered(app)
7
+ end
8
+
5
9
  after do
6
10
  set :default_locale, 'en'
7
11
  set :environment, :test
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-r18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 4
8
+ - 5
9
+ version: 0.4.5
5
10
  platform: ruby
6
11
  authors:
7
12
  - Andrey "A.I." Sitnik
@@ -9,19 +14,23 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-03-29 00:00:00 +04:00
17
+ date: 2010-04-19 00:00:00 +04:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: r18n-core
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - "="
22
26
  - !ruby/object:Gem::Version
23
- version: 0.4.4
24
- version:
27
+ segments:
28
+ - 0
29
+ - 4
30
+ - 5
31
+ version: 0.4.5
32
+ type: :runtime
33
+ version_requirements: *id001
25
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"
26
35
  email: andrey@sitnik.ru
27
36
  executables: []
@@ -48,18 +57,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
57
  requirements:
49
58
  - - ">="
50
59
  - !ruby/object:Gem::Version
60
+ segments:
61
+ - 0
51
62
  version: "0"
52
- version:
53
63
  required_rubygems_version: !ruby/object:Gem::Requirement
54
64
  requirements:
55
65
  - - ">="
56
66
  - !ruby/object:Gem::Version
67
+ segments:
68
+ - 0
57
69
  version: "0"
58
- version:
59
70
  requirements: []
60
71
 
61
72
  rubyforge_project: sinatra-r18n
62
- rubygems_version: 1.3.5
73
+ rubygems_version: 1.3.6
63
74
  signing_key:
64
75
  specification_version: 3
65
76
  summary: A Sinatra extension that provides i18n support to translate your web application.