i18n_attributes 0.1.4 → 0.1.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.
Files changed (63) hide show
  1. data/.gitignore +6 -0
  2. data/CHANGELOG +8 -0
  3. data/README.markdown +44 -0
  4. data/i18n_attributes.gemspec +9 -0
  5. data/lib/generators/i18n_attributes/install/install_generator.rb +3 -10
  6. data/lib/generators/i18n_attributes/install/templates/i18n_attributes.rb +17 -0
  7. data/lib/generators/i18n_attributes/model/model_generator.rb +25 -6
  8. data/lib/generators/i18n_attributes/revise_model/revise_model_generator.rb +12 -7
  9. data/lib/i18n_attributes.rb +4 -0
  10. data/lib/i18n_attributes/configuration.rb +20 -2
  11. data/lib/i18n_attributes/generator_helpers.rb +72 -18
  12. data/lib/i18n_attributes/railtie.rb +2 -0
  13. data/lib/i18n_attributes/version.rb +3 -1
  14. data/spec/i18n_attributes/generator_helpers_spec.rb +103 -0
  15. data/spec/i18n_attributes_spec.rb +14 -0
  16. data/spec/rails3_0_app/.gitignore +4 -0
  17. data/spec/rails3_0_app/Gemfile +9 -0
  18. data/spec/rails3_0_app/Rakefile +7 -0
  19. data/spec/rails3_0_app/app/controllers/application_controller.rb +3 -0
  20. data/spec/rails3_0_app/app/helpers/application_helper.rb +2 -0
  21. data/spec/rails3_0_app/app/models/user.rb +2 -0
  22. data/spec/rails3_0_app/app/views/layouts/application.html.erb +14 -0
  23. data/spec/rails3_0_app/config.ru +4 -0
  24. data/spec/rails3_0_app/config/application.rb +44 -0
  25. data/spec/rails3_0_app/config/boot.rb +6 -0
  26. data/spec/rails3_0_app/config/database.yml +22 -0
  27. data/spec/rails3_0_app/config/environment.rb +5 -0
  28. data/spec/rails3_0_app/config/environments/development.rb +26 -0
  29. data/spec/rails3_0_app/config/environments/production.rb +49 -0
  30. data/spec/rails3_0_app/config/environments/test.rb +35 -0
  31. data/spec/rails3_0_app/config/initializers/backtrace_silencers.rb +7 -0
  32. data/spec/rails3_0_app/config/initializers/i18n_attributes.rb +15 -0
  33. data/spec/rails3_0_app/config/initializers/inflections.rb +10 -0
  34. data/spec/rails3_0_app/config/initializers/mime_types.rb +5 -0
  35. data/spec/rails3_0_app/config/initializers/secret_token.rb +7 -0
  36. data/spec/rails3_0_app/config/initializers/session_store.rb +8 -0
  37. data/spec/rails3_0_app/config/initializers/youdao_fanyi.rb +7 -0
  38. data/spec/rails3_0_app/config/locales/en.yml +5 -0
  39. data/spec/rails3_0_app/config/locales/model_en/user.yml +11 -0
  40. data/spec/rails3_0_app/config/locales/model_zh-CN/user.yml +11 -0
  41. data/spec/rails3_0_app/config/routes.rb +58 -0
  42. data/spec/rails3_0_app/config/youdao_fanyi_api_keys.yml +9 -0
  43. data/spec/rails3_0_app/db/migrate/20111202073515_create_users.rb +13 -0
  44. data/spec/rails3_0_app/db/schema.rb +22 -0
  45. data/spec/rails3_0_app/db/seeds.rb +7 -0
  46. data/spec/rails3_0_app/doc/README_FOR_APP +2 -0
  47. data/spec/rails3_0_app/lib/tasks/.gitkeep +0 -0
  48. data/spec/rails3_0_app/public/404.html +26 -0
  49. data/spec/rails3_0_app/public/422.html +26 -0
  50. data/spec/rails3_0_app/public/500.html +26 -0
  51. data/spec/rails3_0_app/public/favicon.ico +0 -0
  52. data/spec/rails3_0_app/public/images/rails.png +0 -0
  53. data/spec/rails3_0_app/public/index.html +239 -0
  54. data/spec/rails3_0_app/public/javascripts/.gitkeep +0 -0
  55. data/spec/rails3_0_app/public/javascripts/application.js +0 -0
  56. data/spec/rails3_0_app/public/robots.txt +5 -0
  57. data/spec/rails3_0_app/public/stylesheets/.gitkeep +0 -0
  58. data/spec/rails3_0_app/script/rails +6 -0
  59. data/spec/rails3_0_app/test/fixtures/users.yml +7 -0
  60. data/spec/rails3_0_app/test/unit/user_test.rb +8 -0
  61. data/spec/rails3_0_app/vendor/plugins/.gitkeep +0 -0
  62. data/spec/spec_helper.rb +7 -1
  63. metadata +177 -14
@@ -0,0 +1,13 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :users do |t|
4
+ t.string :username
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+
10
+ def self.down
11
+ drop_table :users
12
+ end
13
+ end
@@ -0,0 +1,22 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20111202072622) do
15
+
16
+ create_table "users", :force => true do |t|
17
+ t.string "username"
18
+ t.datetime "created_at"
19
+ t.datetime "updated_at"
20
+ end
21
+
22
+ end
@@ -0,0 +1,7 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
7
+ # Mayor.create(:name => 'Daley', :city => cities.first)
@@ -0,0 +1,2 @@
1
+ Use this README file to introduce your application and point to useful places in the API for learning more.
2
+ Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1,239 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Ruby on Rails: Welcome aboard</title>
5
+ <style type="text/css" media="screen">
6
+ body {
7
+ margin: 0;
8
+ margin-bottom: 25px;
9
+ padding: 0;
10
+ background-color: #f0f0f0;
11
+ font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
12
+ font-size: 13px;
13
+ color: #333;
14
+ }
15
+
16
+ h1 {
17
+ font-size: 28px;
18
+ color: #000;
19
+ }
20
+
21
+ a {color: #03c}
22
+ a:hover {
23
+ background-color: #03c;
24
+ color: white;
25
+ text-decoration: none;
26
+ }
27
+
28
+
29
+ #page {
30
+ background-color: #f0f0f0;
31
+ width: 750px;
32
+ margin: 0;
33
+ margin-left: auto;
34
+ margin-right: auto;
35
+ }
36
+
37
+ #content {
38
+ float: left;
39
+ background-color: white;
40
+ border: 3px solid #aaa;
41
+ border-top: none;
42
+ padding: 25px;
43
+ width: 500px;
44
+ }
45
+
46
+ #sidebar {
47
+ float: right;
48
+ width: 175px;
49
+ }
50
+
51
+ #footer {
52
+ clear: both;
53
+ }
54
+
55
+
56
+ #header, #about, #getting-started {
57
+ padding-left: 75px;
58
+ padding-right: 30px;
59
+ }
60
+
61
+
62
+ #header {
63
+ background-image: url("images/rails.png");
64
+ background-repeat: no-repeat;
65
+ background-position: top left;
66
+ height: 64px;
67
+ }
68
+ #header h1, #header h2 {margin: 0}
69
+ #header h2 {
70
+ color: #888;
71
+ font-weight: normal;
72
+ font-size: 16px;
73
+ }
74
+
75
+
76
+ #about h3 {
77
+ margin: 0;
78
+ margin-bottom: 10px;
79
+ font-size: 14px;
80
+ }
81
+
82
+ #about-content {
83
+ background-color: #ffd;
84
+ border: 1px solid #fc0;
85
+ margin-left: -55px;
86
+ margin-right: -10px;
87
+ }
88
+ #about-content table {
89
+ margin-top: 10px;
90
+ margin-bottom: 10px;
91
+ font-size: 11px;
92
+ border-collapse: collapse;
93
+ }
94
+ #about-content td {
95
+ padding: 10px;
96
+ padding-top: 3px;
97
+ padding-bottom: 3px;
98
+ }
99
+ #about-content td.name {color: #555}
100
+ #about-content td.value {color: #000}
101
+
102
+ #about-content ul {
103
+ padding: 0;
104
+ list-style-type: none;
105
+ }
106
+
107
+ #about-content.failure {
108
+ background-color: #fcc;
109
+ border: 1px solid #f00;
110
+ }
111
+ #about-content.failure p {
112
+ margin: 0;
113
+ padding: 10px;
114
+ }
115
+
116
+
117
+ #getting-started {
118
+ border-top: 1px solid #ccc;
119
+ margin-top: 25px;
120
+ padding-top: 15px;
121
+ }
122
+ #getting-started h1 {
123
+ margin: 0;
124
+ font-size: 20px;
125
+ }
126
+ #getting-started h2 {
127
+ margin: 0;
128
+ font-size: 14px;
129
+ font-weight: normal;
130
+ color: #333;
131
+ margin-bottom: 25px;
132
+ }
133
+ #getting-started ol {
134
+ margin-left: 0;
135
+ padding-left: 0;
136
+ }
137
+ #getting-started li {
138
+ font-size: 18px;
139
+ color: #888;
140
+ margin-bottom: 25px;
141
+ }
142
+ #getting-started li h2 {
143
+ margin: 0;
144
+ font-weight: normal;
145
+ font-size: 18px;
146
+ color: #333;
147
+ }
148
+ #getting-started li p {
149
+ color: #555;
150
+ font-size: 13px;
151
+ }
152
+
153
+
154
+ #sidebar ul {
155
+ margin-left: 0;
156
+ padding-left: 0;
157
+ }
158
+ #sidebar ul h3 {
159
+ margin-top: 25px;
160
+ font-size: 16px;
161
+ padding-bottom: 10px;
162
+ border-bottom: 1px solid #ccc;
163
+ }
164
+ #sidebar li {
165
+ list-style-type: none;
166
+ }
167
+ #sidebar ul.links li {
168
+ margin-bottom: 5px;
169
+ }
170
+
171
+ </style>
172
+ <script type="text/javascript">
173
+ function about() {
174
+ info = document.getElementById('about-content');
175
+ if (window.XMLHttpRequest)
176
+ { xhr = new XMLHttpRequest(); }
177
+ else
178
+ { xhr = new ActiveXObject("Microsoft.XMLHTTP"); }
179
+ xhr.open("GET","rails/info/properties",false);
180
+ xhr.send("");
181
+ info.innerHTML = xhr.responseText;
182
+ info.style.display = 'block'
183
+ }
184
+ </script>
185
+ </head>
186
+ <body>
187
+ <div id="page">
188
+ <div id="sidebar">
189
+ <ul id="sidebar-items">
190
+ <li>
191
+ <h3>Browse the documentation</h3>
192
+ <ul class="links">
193
+ <li><a href="http://api.rubyonrails.org/">Rails API</a></li>
194
+ <li><a href="http://stdlib.rubyonrails.org/">Ruby standard library</a></li>
195
+ <li><a href="http://corelib.rubyonrails.org/">Ruby core</a></li>
196
+ <li><a href="http://guides.rubyonrails.org/">Rails Guides</a></li>
197
+ </ul>
198
+ </li>
199
+ </ul>
200
+ </div>
201
+
202
+ <div id="content">
203
+ <div id="header">
204
+ <h1>Welcome aboard</h1>
205
+ <h2>You&rsquo;re riding Ruby on Rails!</h2>
206
+ </div>
207
+
208
+ <div id="about">
209
+ <h3><a href="rails/info/properties" onclick="about(); return false">About your application&rsquo;s environment</a></h3>
210
+ <div id="about-content" style="display: none"></div>
211
+ </div>
212
+
213
+ <div id="getting-started">
214
+ <h1>Getting started</h1>
215
+ <h2>Here&rsquo;s how to get rolling:</h2>
216
+
217
+ <ol>
218
+ <li>
219
+ <h2>Use <code>rails generate</code> to create your models and controllers</h2>
220
+ <p>To see all available options, run it without parameters.</p>
221
+ </li>
222
+
223
+ <li>
224
+ <h2>Set up a default route and remove or rename this file</h2>
225
+ <p>Routes are set up in config/routes.rb.</p>
226
+ </li>
227
+
228
+ <li>
229
+ <h2>Create your database</h2>
230
+ <p>Run <code>rake db:migrate</code> to create your database. If you're not using SQLite (the default), edit <code>config/database.yml</code> with your username and password.</p>
231
+ </li>
232
+ </ol>
233
+ </div>
234
+ </div>
235
+
236
+ <div id="footer">&nbsp;</div>
237
+ </div>
238
+ </body>
239
+ </html>
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,7 @@
1
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
+
3
+ one:
4
+ username: MyString
5
+
6
+ two:
7
+ username: MyString
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class UserTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -1,6 +1,12 @@
1
1
  #encoding: utf-8
2
-
3
2
  require "rubygems"
4
3
  require "bundler/setup"
4
+ require "pry"
5
+
6
+ #loading rspec
7
+ Dir[File.expand_path("../support/**/*.rb", __FILE__)].each {|f| require f}
8
+ RSpec.configure do |config|
9
+ end
10
+
5
11
  require "i18n_attributes"
6
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
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: 2011-11-30 00:00:00.000000000 Z
12
+ date: 2011-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &68625060 !ruby/object:Gem::Requirement
16
+ requirement: &72452320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *68625060
24
+ version_requirements: *72452320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &68624450 !ruby/object:Gem::Requirement
27
+ requirement: &72451690 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *68624450
35
+ version_requirements: *72451690
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &68623820 !ruby/object:Gem::Requirement
38
+ requirement: &72451450 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *68623820
46
+ version_requirements: *72451450
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: guard-rspec
49
- requirement: &68623080 !ruby/object:Gem::Requirement
49
+ requirement: &72451220 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,76 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *68623080
57
+ version_requirements: *72451220
58
+ - !ruby/object:Gem::Dependency
59
+ name: pry
60
+ requirement: &72450920 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *72450920
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-rails
71
+ requirement: &72450680 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *72450680
58
80
  - !ruby/object:Gem::Dependency
59
81
  name: rails
60
- requirement: &68622580 !ruby/object:Gem::Requirement
82
+ requirement: &72450410 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ~>
86
+ - !ruby/object:Gem::Version
87
+ version: '3.0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *72450410
91
+ - !ruby/object:Gem::Dependency
92
+ name: sqlite3-ruby
93
+ requirement: &72450190 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *72450190
102
+ - !ruby/object:Gem::Dependency
103
+ name: youdao_fanyi
104
+ requirement: &72449930 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *72449930
113
+ - !ruby/object:Gem::Dependency
114
+ name: rails
115
+ requirement: &72449680 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: '3.0'
121
+ type: :runtime
122
+ prerelease: false
123
+ version_requirements: *72449680
124
+ - !ruby/object:Gem::Dependency
125
+ name: activesupport
126
+ requirement: &72449430 !ruby/object:Gem::Requirement
61
127
  none: false
62
128
  requirements:
63
129
  - - ~>
@@ -65,10 +131,10 @@ dependencies:
65
131
  version: '3.0'
66
132
  type: :runtime
67
133
  prerelease: false
68
- version_requirements: *68622580
134
+ version_requirements: *72449430
69
135
  - !ruby/object:Gem::Dependency
70
136
  name: vkill_gems_methods
71
- requirement: &68622290 !ruby/object:Gem::Requirement
137
+ requirement: &72449150 !ruby/object:Gem::Requirement
72
138
  none: false
73
139
  requirements:
74
140
  - - ~>
@@ -76,7 +142,7 @@ dependencies:
76
142
  version: 0.1.0
77
143
  type: :runtime
78
144
  prerelease: false
79
- version_requirements: *68622290
145
+ version_requirements: *72449150
80
146
  description: A generate model attributes I18n locale files plugin for Rails3.
81
147
  email:
82
148
  - vkill.net@gmail.com
@@ -93,6 +159,7 @@ files:
93
159
  - i18n_attributes.gemspec
94
160
  - lib/generators/i18n_attributes/install/USAGE
95
161
  - lib/generators/i18n_attributes/install/install_generator.rb
162
+ - lib/generators/i18n_attributes/install/templates/i18n_attributes.rb
96
163
  - lib/generators/i18n_attributes/model/USAGE
97
164
  - lib/generators/i18n_attributes/model/model_generator.rb
98
165
  - lib/generators/i18n_attributes/revise_model/USAGE
@@ -102,6 +169,54 @@ files:
102
169
  - lib/i18n_attributes/generator_helpers.rb
103
170
  - lib/i18n_attributes/railtie.rb
104
171
  - lib/i18n_attributes/version.rb
172
+ - spec/i18n_attributes/generator_helpers_spec.rb
173
+ - spec/i18n_attributes_spec.rb
174
+ - spec/rails3_0_app/.gitignore
175
+ - spec/rails3_0_app/Gemfile
176
+ - spec/rails3_0_app/Rakefile
177
+ - spec/rails3_0_app/app/controllers/application_controller.rb
178
+ - spec/rails3_0_app/app/helpers/application_helper.rb
179
+ - spec/rails3_0_app/app/models/user.rb
180
+ - spec/rails3_0_app/app/views/layouts/application.html.erb
181
+ - spec/rails3_0_app/config.ru
182
+ - spec/rails3_0_app/config/application.rb
183
+ - spec/rails3_0_app/config/boot.rb
184
+ - spec/rails3_0_app/config/database.yml
185
+ - spec/rails3_0_app/config/environment.rb
186
+ - spec/rails3_0_app/config/environments/development.rb
187
+ - spec/rails3_0_app/config/environments/production.rb
188
+ - spec/rails3_0_app/config/environments/test.rb
189
+ - spec/rails3_0_app/config/initializers/backtrace_silencers.rb
190
+ - spec/rails3_0_app/config/initializers/i18n_attributes.rb
191
+ - spec/rails3_0_app/config/initializers/inflections.rb
192
+ - spec/rails3_0_app/config/initializers/mime_types.rb
193
+ - spec/rails3_0_app/config/initializers/secret_token.rb
194
+ - spec/rails3_0_app/config/initializers/session_store.rb
195
+ - spec/rails3_0_app/config/initializers/youdao_fanyi.rb
196
+ - spec/rails3_0_app/config/locales/en.yml
197
+ - spec/rails3_0_app/config/locales/model_en/user.yml
198
+ - spec/rails3_0_app/config/locales/model_zh-CN/user.yml
199
+ - spec/rails3_0_app/config/routes.rb
200
+ - spec/rails3_0_app/config/youdao_fanyi_api_keys.yml
201
+ - spec/rails3_0_app/db/migrate/20111202073515_create_users.rb
202
+ - spec/rails3_0_app/db/schema.rb
203
+ - spec/rails3_0_app/db/seeds.rb
204
+ - spec/rails3_0_app/doc/README_FOR_APP
205
+ - spec/rails3_0_app/lib/tasks/.gitkeep
206
+ - spec/rails3_0_app/public/404.html
207
+ - spec/rails3_0_app/public/422.html
208
+ - spec/rails3_0_app/public/500.html
209
+ - spec/rails3_0_app/public/favicon.ico
210
+ - spec/rails3_0_app/public/images/rails.png
211
+ - spec/rails3_0_app/public/index.html
212
+ - spec/rails3_0_app/public/javascripts/.gitkeep
213
+ - spec/rails3_0_app/public/javascripts/application.js
214
+ - spec/rails3_0_app/public/robots.txt
215
+ - spec/rails3_0_app/public/stylesheets/.gitkeep
216
+ - spec/rails3_0_app/script/rails
217
+ - spec/rails3_0_app/test/fixtures/users.yml
218
+ - spec/rails3_0_app/test/unit/user_test.rb
219
+ - spec/rails3_0_app/vendor/plugins/.gitkeep
105
220
  - spec/spec_helper.rb
106
221
  homepage: ''
107
222
  licenses: []
@@ -128,5 +243,53 @@ signing_key:
128
243
  specification_version: 3
129
244
  summary: A generate model attributes I18n locale files plugin for Rails3.
130
245
  test_files:
246
+ - spec/i18n_attributes/generator_helpers_spec.rb
247
+ - spec/i18n_attributes_spec.rb
248
+ - spec/rails3_0_app/.gitignore
249
+ - spec/rails3_0_app/Gemfile
250
+ - spec/rails3_0_app/Rakefile
251
+ - spec/rails3_0_app/app/controllers/application_controller.rb
252
+ - spec/rails3_0_app/app/helpers/application_helper.rb
253
+ - spec/rails3_0_app/app/models/user.rb
254
+ - spec/rails3_0_app/app/views/layouts/application.html.erb
255
+ - spec/rails3_0_app/config.ru
256
+ - spec/rails3_0_app/config/application.rb
257
+ - spec/rails3_0_app/config/boot.rb
258
+ - spec/rails3_0_app/config/database.yml
259
+ - spec/rails3_0_app/config/environment.rb
260
+ - spec/rails3_0_app/config/environments/development.rb
261
+ - spec/rails3_0_app/config/environments/production.rb
262
+ - spec/rails3_0_app/config/environments/test.rb
263
+ - spec/rails3_0_app/config/initializers/backtrace_silencers.rb
264
+ - spec/rails3_0_app/config/initializers/i18n_attributes.rb
265
+ - spec/rails3_0_app/config/initializers/inflections.rb
266
+ - spec/rails3_0_app/config/initializers/mime_types.rb
267
+ - spec/rails3_0_app/config/initializers/secret_token.rb
268
+ - spec/rails3_0_app/config/initializers/session_store.rb
269
+ - spec/rails3_0_app/config/initializers/youdao_fanyi.rb
270
+ - spec/rails3_0_app/config/locales/en.yml
271
+ - spec/rails3_0_app/config/locales/model_en/user.yml
272
+ - spec/rails3_0_app/config/locales/model_zh-CN/user.yml
273
+ - spec/rails3_0_app/config/routes.rb
274
+ - spec/rails3_0_app/config/youdao_fanyi_api_keys.yml
275
+ - spec/rails3_0_app/db/migrate/20111202073515_create_users.rb
276
+ - spec/rails3_0_app/db/schema.rb
277
+ - spec/rails3_0_app/db/seeds.rb
278
+ - spec/rails3_0_app/doc/README_FOR_APP
279
+ - spec/rails3_0_app/lib/tasks/.gitkeep
280
+ - spec/rails3_0_app/public/404.html
281
+ - spec/rails3_0_app/public/422.html
282
+ - spec/rails3_0_app/public/500.html
283
+ - spec/rails3_0_app/public/favicon.ico
284
+ - spec/rails3_0_app/public/images/rails.png
285
+ - spec/rails3_0_app/public/index.html
286
+ - spec/rails3_0_app/public/javascripts/.gitkeep
287
+ - spec/rails3_0_app/public/javascripts/application.js
288
+ - spec/rails3_0_app/public/robots.txt
289
+ - spec/rails3_0_app/public/stylesheets/.gitkeep
290
+ - spec/rails3_0_app/script/rails
291
+ - spec/rails3_0_app/test/fixtures/users.yml
292
+ - spec/rails3_0_app/test/unit/user_test.rb
293
+ - spec/rails3_0_app/vendor/plugins/.gitkeep
131
294
  - spec/spec_helper.rb
132
295
  has_rdoc: