subdomain_locale 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Readme.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Moves current locale into subdomain. Installation is quick and simple:
4
4
 
5
5
  # Gemfile
6
- gem 'subdomain_locale', '~> 0.0.3'
6
+ gem 'subdomain_locale', '~> 0.1.0'
7
7
 
8
8
  # config/application.rb
9
9
  config.i18n.available_locales = [:ru, :az, :en] # Put your own available locales
@@ -20,3 +20,21 @@ You can also put links to all locales in your view:
20
20
  <% I18n.available_locales.each do |locale| %>
21
21
  <%= link_to locale, params.merge(locale: locale) %>
22
22
  <% end %>
23
+
24
+ ## Changelog
25
+
26
+ 0.1.1
27
+
28
+ * Adding changelog to the readme.
29
+ * Don't require files until they needed. That means less boot time impact.
30
+
31
+ 0.1.0. Minor internal changes & fixes, documentation.
32
+
33
+ * Fixing url_for's argument modified.
34
+ * Adding readme and documentation.
35
+ * Using require instead of autoload.
36
+ * Refactoring tests.
37
+ * Clearly specifying I18n dependency.
38
+
39
+ 0.0.1—0.0.3. Initial releases.
40
+
@@ -1,15 +1,16 @@
1
- require "subdomain_locale/url_for"
2
- require "subdomain_locale/controller"
1
+ require "rails/railtie"
3
2
 
4
3
  module SubdomainLocale
5
4
  class Railtie < ::Rails::Railtie
6
5
 
7
6
  initializer "subdomain_locale.url_helpers" do
7
+ require "subdomain_locale/url_for"
8
8
  Rails.application.routes.url_helpers.send :include, SubdomainLocale::UrlFor
9
9
  end
10
10
 
11
11
  initializer "subdomain_locale.controller" do
12
12
  ActiveSupport.on_load :action_controller do
13
+ require "subdomain_locale/controller"
13
14
  include SubdomainLocale::Controller
14
15
  end
15
16
  end
@@ -1,3 +1,3 @@
1
1
  module SubdomainLocale
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subdomain_locale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-29 00:00:00.000000000 Z
12
+ date: 2012-05-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
16
- requirement: &70346611712320 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70346611712320
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '0.2'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: rdoc
27
- requirement: &70346611711540 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '3.10'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70346611711540
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3.10'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: hoe
38
- requirement: &70346611700380 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
@@ -43,7 +53,12 @@ dependencies:
43
53
  version: '3.0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70346611700380
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
47
62
  description: ''
48
63
  email:
49
64
  - sema@sema.in
@@ -86,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
101
  version: '0'
87
102
  requirements: []
88
103
  rubyforge_project: subdomain_locale
89
- rubygems_version: 1.8.11
104
+ rubygems_version: 1.8.23
90
105
  signing_key:
91
106
  specification_version: 3
92
107
  summary: Moves current locale into subdomain in your Rails app