devise-i18n-views 0.2.3 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/.project ADDED
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <projectDescription>
3
+ <name>devise-i18n-views</name>
4
+ <comment></comment>
5
+ <projects>
6
+ </projects>
7
+ <buildSpec>
8
+ </buildSpec>
9
+ <natures>
10
+ <nature>com.aptana.ruby.core.rubynature</nature>
11
+ </natures>
12
+ </projectDescription>
data/README.md CHANGED
@@ -20,6 +20,14 @@ rails g devise:views:locale it
20
20
 
21
21
  will generate `config/locales/devise.views.it.yml`.
22
22
 
23
+ ## Customizing Views
24
+
25
+ The `devise:views:i18n_templates` generator will copy all views to your application, so you can modify the files as you wish:
26
+
27
+ ``` sh
28
+ rails g devise:views:i18n_templates
29
+ ```
30
+
23
31
  ## Contributing to devise-i18n-views
24
32
  ### with Localeapp
25
33
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "devise-i18n-views"
8
- s.version = "0.2.3"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
+ ".project",
21
22
  ".rspec",
22
23
  "Gemfile",
23
24
  "Gemfile.lock",
@@ -39,6 +40,7 @@ Gem::Specification.new do |s|
39
40
  "app/views/devise/unlocks/new.html.erb",
40
41
  "devise-i18n-views.gemspec",
41
42
  "lib/devise-i18n-views.rb",
43
+ "lib/generators/devise/views/i18n_templates/i18n_templates_generator.rb",
42
44
  "lib/generators/devise/views/locale/locale_generator.rb",
43
45
  "locales/de.yml",
44
46
  "locales/en.yml",
@@ -0,0 +1,10 @@
1
+ module Devise
2
+ module Views
3
+ class I18nTemplatesGenerator < Rails::Generators::Base
4
+ source_root File.expand_path('../../../../../../app/views', __FILE__)
5
+ def copy_views
6
+ directory("devise", Rails.root.join("app", "views", "devise"))
7
+ end
8
+ end
9
+ end
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-i18n-views
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -100,6 +100,7 @@ extra_rdoc_files:
100
100
  - README.md
101
101
  files:
102
102
  - .document
103
+ - .project
103
104
  - .rspec
104
105
  - Gemfile
105
106
  - Gemfile.lock
@@ -121,6 +122,7 @@ files:
121
122
  - app/views/devise/unlocks/new.html.erb
122
123
  - devise-i18n-views.gemspec
123
124
  - lib/devise-i18n-views.rb
125
+ - lib/generators/devise/views/i18n_templates/i18n_templates_generator.rb
124
126
  - lib/generators/devise/views/locale/locale_generator.rb
125
127
  - locales/de.yml
126
128
  - locales/en.yml
@@ -147,7 +149,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
149
  version: '0'
148
150
  segments:
149
151
  - 0
150
- hash: 2774387395828348818
152
+ hash: -1462681026008733906
151
153
  required_rubygems_version: !ruby/object:Gem::Requirement
152
154
  none: false
153
155
  requirements: