genderize 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: afc7dc1238ac032292575d60a4c79adc808085c8
4
- data.tar.gz: 063d04610f846338044372cc9bfdbf4b27ba7ac3
3
+ metadata.gz: d13b5523ca109aff691a9d5565abf7bfde321b92
4
+ data.tar.gz: f7e9c526394deec2340064657182c0cbb0b6ea55
5
5
  SHA512:
6
- metadata.gz: 9aef209153896d7aea632cc1d05146f7c42cac3b1f792faa6bdd8d0dc370ff4a944a315cc57c9f5d3f03bfd99a0bd5d8dd6cb8870e45d14428fd61f35474db32
7
- data.tar.gz: 9f1f7ce7ac8ad56eb8c36edcf0fa7d410d3d86bfc2e3aec91e60c5b3146dff3dcdfae835fa0c003b29f63815d7c1ad07c729a665ac3a366c1137337c9a080c94
6
+ metadata.gz: 9c57723ffbf6167a98254bfe0322f76f8fdf228e257bb5a9c2986d29d49552d23d0a0515e3ea4088ac4d4d2e6e1576bf0e44e1d0ed777a02737e28f6396addf8
7
+ data.tar.gz: c99c74f731f9d8cfe52e2b22fb687fb297619274c496f080788d7fe07a757bb3769dd27d977003912805403fac07c330136d094da68302570b8df029504c3b3a
@@ -0,0 +1,23 @@
1
+ es:
2
+ genderize:
3
+ name:
4
+ masculine: "hombre"
5
+ feminine: "mujer"
6
+
7
+ # pronouns
8
+ subject:
9
+ masculine: 'él'
10
+ feminine: 'ella'
11
+
12
+ object:
13
+ masculine: 'él'
14
+ feminine: 'ella'
15
+
16
+ possessive:
17
+ masculine: 'suyo'
18
+ feminine: 'suya'
19
+
20
+ # Other forms
21
+ casual:
22
+ masculine: chico
23
+ feminine: chica
@@ -1,3 +1,3 @@
1
1
  module Genderize
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,37 +1,44 @@
1
1
  Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # In the development environment your application's code is reloaded on
5
5
  # every request. This slows down response time but is perfect for development
6
6
  # since you don't have to restart the web server when you make code changes.
7
7
  config.cache_classes = false
8
8
 
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
9
+ if Rails.version =~ /\A3/
10
+ # Log error messages when you accidentally call methods on nil.
11
+ config.whiny_nils = true
12
+
13
+ # Only use best-standards-support built into browsers
14
+ config.action_dispatch.best_standards_support = :builtin
15
+
16
+ # Do not compress assets
17
+ config.assets.compress = false
18
+ end
19
+
20
+ if Rails.version =~ /\A4/
21
+ config.eager_load = false
22
+
23
+ # Raise an error on page load if there are pending migrations
24
+ config.active_record.migration_error = :page_load
25
+ end
26
+
27
+ # Show full error reports and disable caching.
13
28
  config.consider_all_requests_local = true
14
29
  config.action_controller.perform_caching = false
15
30
 
16
- # Don't care if the mailer can't send
31
+ # Don't care if the mailer can't send.
17
32
  config.action_mailer.raise_delivery_errors = false
18
33
 
19
- # Print deprecation notices to the Rails logger
34
+ # Print deprecation notices to the Rails logger.
20
35
  config.active_support.deprecation = :log
21
36
 
22
- # Only use best-standards-support built into browsers
23
- config.action_dispatch.best_standards_support = :builtin
24
-
25
- # Raise exception on mass assignment protection for Active Record models
26
- config.active_record.mass_assignment_sanitizer = :strict
27
-
28
- # Log the query plan for queries taking more than this (works
29
- # with SQLite, MySQL, and PostgreSQL)
30
- config.active_record.auto_explain_threshold_in_seconds = 0.5
31
-
32
- # Do not compress assets
33
- config.assets.compress = false
37
+ # Raise an error on page load if there are pending migrations
38
+ config.active_record.migration_error = :page_load
34
39
 
35
- # Expands the lines which load the assets
40
+ # Debug mode disables concatenation and preprocessing of assets.
41
+ # This option may cause significant delays in view rendering with a large
42
+ # number of complex assets.
36
43
  config.assets.debug = true
37
44
  end
@@ -1,67 +1,84 @@
1
1
  Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
- # Code is not reloaded between requests
4
+ # Code is not reloaded between requests.
5
5
  config.cache_classes = true
6
6
 
7
- # Full error reports are disabled and caching is turned on
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both thread web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
8
14
  config.consider_all_requests_local = false
9
15
  config.action_controller.perform_caching = true
10
16
 
11
- # Disable Rails's static asset server (Apache or nginx will already do this)
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
+ # config.action_dispatch.rack_cache = true
21
+
22
+ # Disable Rails's static asset server (Apache or nginx will already do this).
12
23
  config.serve_static_assets = false
13
24
 
14
- # Compress JavaScripts and CSS
15
- config.assets.compress = true
25
+ # Compress JavaScripts and CSS.
26
+ config.assets.js_compressor = :uglifier
27
+ # config.assets.css_compressor = :sass
16
28
 
17
- # Don't fallback to assets pipeline if a precompiled asset is missed
29
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
18
30
  config.assets.compile = false
19
31
 
20
- # Generate digests for assets URLs
32
+ # Generate digests for assets URLs.
21
33
  config.assets.digest = true
22
34
 
23
- # Defaults to nil and saved in location specified by config.assets.prefix
24
- # config.assets.manifest = YOUR_PATH
35
+ # Version of your assets, change this if you want to expire all your assets.
36
+ config.assets.version = '1.0'
25
37
 
26
- # Specifies the header that your server uses for sending files
38
+ # Specifies the header that your server uses for sending files.
27
39
  # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
40
  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
41
 
42
+ if Rails.version =~ /\A4/
43
+ config.eager_load = true
44
+ end
45
+
30
46
  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
47
  # config.force_ssl = true
32
48
 
33
- # See everything in the log (default is :info)
34
- # config.log_level = :debug
49
+ # Set to :debug to see everything in the log.
50
+ config.log_level = :info
35
51
 
36
- # Prepend all log lines with the following tags
52
+ # Prepend all log lines with the following tags.
37
53
  # config.log_tags = [ :subdomain, :uuid ]
38
54
 
39
- # Use a different logger for distributed setups
55
+ # Use a different logger for distributed setups.
40
56
  # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
57
 
42
- # Use a different cache store in production
58
+ # Use a different cache store in production.
43
59
  # config.cache_store = :mem_cache_store
44
60
 
45
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
61
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
46
62
  # config.action_controller.asset_host = "http://assets.example.com"
47
63
 
48
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
64
+ # Precompile additional assets.
65
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
49
66
  # config.assets.precompile += %w( search.js )
50
67
 
51
- # Disable delivery errors, bad email addresses will be ignored
68
+ # Ignore bad email addresses and do not raise email delivery errors.
69
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
52
70
  # config.action_mailer.raise_delivery_errors = false
53
71
 
54
- # Enable threaded mode
55
- # config.threadsafe!
56
-
57
72
  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
- # the I18n.default_locale when a translation can not be found)
73
+ # the I18n.default_locale when a translation can not be found).
59
74
  config.i18n.fallbacks = true
60
75
 
61
- # Send deprecation notices to registered listeners
76
+ # Send deprecation notices to registered listeners.
62
77
  config.active_support.deprecation = :notify
63
78
 
64
- # Log the query plan for queries taking more than this (works
65
- # with SQLite, MySQL, and PostgreSQL)
66
- # config.active_record.auto_explain_threshold_in_seconds = 0.5
79
+ # Disable automatic flushing of the log to improve performance.
80
+ # config.autoflush_log = false
81
+
82
+ # Use default logging formatter so that PID and timestamp are not suppressed.
83
+ config.log_formatter = ::Logger::Formatter.new
67
84
  end
@@ -1,5 +1,5 @@
1
1
  Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # The test environment is used exclusively to run your application's
5
5
  # test suite. You never need to work with it otherwise. Remember that
@@ -10,28 +10,31 @@ Dummy::Application.configure do
10
10
  # Configure static asset server for tests with Cache-Control for performance
11
11
  config.serve_static_assets = true
12
12
  config.static_cache_control = "public, max-age=3600"
13
+
14
+ if Rails.version =~ /\A3/
15
+ # Log error messages when you accidentally call methods on nil
16
+ config.whiny_nils = true
17
+ end
13
18
 
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
19
+ if Rails.version =~ /\A4/
20
+ config.eager_load = false
21
+ end
16
22
 
17
- # Show full error reports and disable caching
23
+ # Show full error reports and disable caching.
18
24
  config.consider_all_requests_local = true
19
25
  config.action_controller.perform_caching = false
20
26
 
21
- # Raise exceptions instead of rendering exception templates
27
+ # Raise exceptions instead of rendering exception templates.
22
28
  config.action_dispatch.show_exceptions = false
23
29
 
24
- # Disable request forgery protection in test environment
25
- config.action_controller.allow_forgery_protection = false
30
+ # Disable request forgery protection in test environment.
31
+ config.action_controller.allow_forgery_protection = false
26
32
 
27
33
  # Tell Action Mailer not to deliver emails to the real world.
28
34
  # The :test delivery method accumulates sent emails in the
29
35
  # ActionMailer::Base.deliveries array.
30
36
  config.action_mailer.delivery_method = :test
31
37
 
32
- # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
34
-
35
- # Print deprecation notices to the stderr
38
+ # Print deprecation notices to the stderr.
36
39
  config.active_support.deprecation = :stderr
37
40
  end
Binary file
@@ -9,15 +9,15 @@
9
9
  # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
10
  # you'll amass, the slower it'll run and the greater likelihood for issues).
11
11
  #
12
- # It's strongly recommended to check this file into your version control system.
12
+ # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20130506080641) do
14
+ ActiveRecord::Schema.define(version: 20130506080641) do
15
15
 
16
- create_table "users", :force => true do |t|
17
- t.string "name", :limit => 20, :null => false
18
- t.string "gender", :limit => 1, :null => false
19
- t.datetime "created_at", :null => false
20
- t.datetime "updated_at", :null => false
16
+ create_table "users", force: true do |t|
17
+ t.string "name", limit: 20, null: false
18
+ t.string "gender", limit: 1, null: false
19
+ t.datetime "created_at"
20
+ t.datetime "updated_at"
21
21
  end
22
22
 
23
23
  end
Binary file
@@ -1,92 +1,271 @@
1
- Connecting to database specified by database.yml
2
- Connecting to database specified by database.yml
3
- Connecting to database specified by database.yml
4
- Connecting to database specified by database.yml
5
- Connecting to database specified by database.yml
6
- Connecting to database specified by database.yml
7
- Connecting to database specified by database.yml
8
- Connecting to database specified by database.yml
9
- Connecting to database specified by database.yml
10
- Connecting to database specified by database.yml
11
- Connecting to database specified by database.yml
12
- Connecting to database specified by database.yml
13
- Connecting to database specified by database.yml
14
- Connecting to database specified by database.yml
15
- Connecting to database specified by database.yml
16
- Connecting to database specified by database.yml
17
- Connecting to database specified by database.yml
18
- Connecting to database specified by database.yml
19
- Connecting to database specified by database.yml
20
- Connecting to database specified by database.yml
21
-  (0.1ms) begin transaction
22
- SQL (6.1ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 08:42:33 UTC +00:00], ["gender", nil], ["name", "f"], ["updated_at", Mon, 06 May 2013 08:42:33 UTC +00:00]]
23
- SQLite3::ConstraintException: users.gender may not be NULL: INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?)
1
+ Processing by UsersController#new as HTML
2
+ Completed 500 Internal Server Error in 0ms
3
+ Processing by UsersController#create as HTML
4
+ Parameters: {"user"=>{"new"=>"MyString"}}
5
+ Completed 500 Internal Server Error in 0ms
6
+ Processing by UsersController#create as HTML
7
+ Parameters: {"user"=>{"new"=>"MyString"}}
8
+ Completed 500 Internal Server Error in 0ms
9
+ Processing by UsersController#create as HTML
10
+ Parameters: {"user"=>{"new"=>"invalid value"}}
11
+ Completed 500 Internal Server Error in 0ms
12
+ Processing by UsersController#create as HTML
13
+ Parameters: {"user"=>{"new"=>"invalid value"}}
14
+ Completed 500 Internal Server Error in 0ms
15
+ Started GET "/users" for 127.0.0.1 at 2013-12-10 11:50:53 +0000
16
+ Processing by UsersController#index as HTML
17
+ User Load (0.3ms) SELECT "users".* FROM "users"
18
+ SQLite3::SQLException: no such table: users: SELECT "users".* FROM "users"
19
+ Completed 500 Internal Server Error in 9ms
20
+ Processing by UsersController#new as HTML
21
+ Completed 500 Internal Server Error in 0ms
22
+ Processing by UsersController#create as HTML
23
+ Parameters: {"user"=>{"new"=>"MyString"}}
24
+ Completed 500 Internal Server Error in 0ms
25
+ Processing by UsersController#create as HTML
26
+ Parameters: {"user"=>{"new"=>"MyString"}}
27
+ Completed 500 Internal Server Error in 0ms
28
+ Processing by UsersController#create as HTML
29
+ Parameters: {"user"=>{"new"=>"invalid value"}}
30
+ Completed 500 Internal Server Error in 0ms
31
+ Processing by UsersController#create as HTML
32
+ Parameters: {"user"=>{"new"=>"invalid value"}}
33
+ Completed 500 Internal Server Error in 0ms
34
+ Started GET "/users" for 127.0.0.1 at 2013-12-10 11:51:05 +0000
35
+ Processing by UsersController#index as HTML
36
+ User Load (0.3ms) SELECT "users".* FROM "users"
37
+ SQLite3::SQLException: no such table: users: SELECT "users".* FROM "users"
38
+ Completed 500 Internal Server Error in 8ms
39
+  (55.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
40
+  (3.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
41
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
42
+ Migrating to CreateUsers (20130506080641)
43
+  (0.1ms) begin transaction
44
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(20) NOT NULL, "gender" varchar(1) NOT NULL, "created_at" datetime, "updated_at" datetime) 
45
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130506080641"]]
46
+  (2.8ms) commit transaction
47
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
48
+ WARNING: Can't mass-assign protected attributes for User: new
49
+
50
+  (0.1ms) begin transaction
51
+ SQL (2.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
52
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
24
53
   (0.1ms) rollback transaction
25
- Connecting to database specified by database.yml
54
+ WARNING: Can't mass-assign protected attributes for User: new
55
+
56
+  (0.1ms) begin transaction
57
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
58
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
59
+  (0.0ms) rollback transaction
60
+ Processing by UsersController#new as HTML
61
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
62
+ WARNING: Can't mass-assign protected attributes for User: new
63
+
26
64
   (0.1ms) begin transaction
27
- SQL (3.0ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 08:43:51 UTC +00:00], ["gender", nil], ["name", "f"], ["updated_at", Mon, 06 May 2013 08:43:51 UTC +00:00]]
28
- SQLite3::ConstraintException: users.gender may not be NULL: INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?)
65
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
66
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
29
67
   (0.0ms) rollback transaction
30
- Connecting to database specified by database.yml
68
+  (0.1ms) SELECT COUNT(*) FROM "users"
69
+ Processing by UsersController#create as HTML
70
+ Parameters: {"user"=>{"new"=>"MyString"}}
71
+ WARNING: Can't mass-assign protected attributes for User: new
72
+ app/controllers/users_controller.rb:43:in `create'
31
73
   (0.1ms) begin transaction
32
- SQL (3.2ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 08:45:07 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Mon, 06 May 2013 08:45:07 UTC +00:00]]
33
-  (54.4ms) commit transaction
34
- User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
35
- Connecting to database specified by database.yml
36
- Connecting to database specified by database.yml
37
- Connecting to database specified by database.yml
38
- Connecting to database specified by database.yml
74
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
75
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
76
+  (0.1ms) rollback transaction
77
+ Completed 500 Internal Server Error in 3ms
78
+ Processing by UsersController#create as HTML
79
+ Parameters: {"user"=>{"new"=>"MyString"}}
80
+ WARNING: Can't mass-assign protected attributes for User: new
81
+ app/controllers/users_controller.rb:43:in `create'
82
+  (0.1ms) begin transaction
83
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
84
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
85
+  (0.1ms) rollback transaction
86
+ Completed 500 Internal Server Error in 3ms
87
+ Processing by UsersController#create as HTML
88
+ Parameters: {"user"=>{"new"=>"MyString"}}
89
+ WARNING: Can't mass-assign protected attributes for User: new
90
+ app/controllers/users_controller.rb:43:in `create'
39
91
   (0.1ms) begin transaction
40
- SQL (35.2ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 14:54:57 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Mon, 06 May 2013 14:54:57 UTC +00:00]]
41
-  (4.5ms) commit transaction
42
- User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
43
- Connecting to database specified by database.yml
92
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
93
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
94
+  (0.0ms) rollback transaction
95
+ Completed 500 Internal Server Error in 4ms
96
+ Processing by UsersController#create as HTML
97
+ Parameters: {"user"=>{"new"=>"invalid value"}}
98
+ WARNING: Can't mass-assign protected attributes for User: new
99
+ app/controllers/users_controller.rb:43:in `create'
100
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)
101
+ Processing by UsersController#create as HTML
102
+ Parameters: {"user"=>{"new"=>"invalid value"}}
103
+ WARNING: Can't mass-assign protected attributes for User: new
104
+ app/controllers/users_controller.rb:43:in `create'
105
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms)
106
+ WARNING: Can't mass-assign protected attributes for User: new
107
+
108
+  (0.1ms) begin transaction
109
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
110
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
111
+  (0.0ms) rollback transaction
112
+ WARNING: Can't mass-assign protected attributes for User: new
113
+
44
114
   (0.1ms) begin transaction
45
- SQL (3.0ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 14:55:10 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Mon, 06 May 2013 14:55:10 UTC +00:00]]
46
-  (53.6ms) commit transaction
47
- User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
48
- Connecting to database specified by database.yml
115
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
116
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
117
+  (0.1ms) rollback transaction
118
+ WARNING: Can't mass-assign protected attributes for User: new
119
+
120
+  (0.1ms) begin transaction
121
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
122
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
123
+  (0.1ms) rollback transaction
124
+ WARNING: Can't mass-assign protected attributes for User: new
125
+
49
126
   (0.1ms) begin transaction
50
- SQL (3.0ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 14:55:52 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Mon, 06 May 2013 14:55:52 UTC +00:00]]
51
-  (58.9ms) commit transaction
52
- User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
53
- Connecting to database specified by database.yml
127
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
128
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
129
+  (0.0ms) rollback transaction
130
+ WARNING: Can't mass-assign protected attributes for User: new
131
+
132
+  (0.0ms) begin transaction
133
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
134
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
135
+  (0.0ms) rollback transaction
136
+ WARNING: Can't mass-assign protected attributes for User: new
137
+
54
138
   (0.1ms) begin transaction
55
- SQL (3.1ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 14:57:23 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Mon, 06 May 2013 14:57:23 UTC +00:00]]
56
-  (56.5ms) commit transaction
57
- User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
58
- Connecting to database specified by database.yml
139
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
140
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
141
+  (0.0ms) rollback transaction
142
+ WARNING: Can't mass-assign protected attributes for User: new
143
+
144
+  (0.1ms) begin transaction
145
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
146
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
147
+  (0.0ms) rollback transaction
59
148
   (0.1ms) begin transaction
60
- SQL (3.0ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 14:57:33 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Mon, 06 May 2013 14:57:33 UTC +00:00]]
61
-  (54.0ms) commit transaction
149
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Tue, 10 Dec 2013 11:51:38 UTC +00:00]]
150
+  (58.7ms) commit transaction
62
151
  User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
63
- Connecting to database specified by database.yml
152
+ Started GET "/users" for 127.0.0.1 at 2013-12-10 11:51:38 +0000
153
+ Processing by UsersController#index as HTML
154
+ User Load (0.1ms) SELECT "users".* FROM "users"
155
+ Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms)
156
+ Rendered users/_form.html.erb (5.5ms)
157
+ Rendered users/_form.html.erb (1.6ms)
158
+ WARNING: Can't mass-assign protected attributes for User: new
159
+
64
160
   (0.1ms) begin transaction
65
- SQL (3.1ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 14:58:24 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Mon, 06 May 2013 14:58:24 UTC +00:00]]
66
-  (4.0ms) commit transaction
67
- User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
68
- Connecting to database specified by database.yml
161
+ SQL (2.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
162
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
163
+  (0.1ms) rollback transaction
164
+ WARNING: Can't mass-assign protected attributes for User: new
165
+
166
+  (0.1ms) begin transaction
167
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
168
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
169
+  (0.0ms) rollback transaction
170
+ Processing by UsersController#new as HTML
171
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
172
+ WARNING: Can't mass-assign protected attributes for User: new
173
+
69
174
   (0.1ms) begin transaction
70
- SQL (3.2ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 14:58:57 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Mon, 06 May 2013 14:58:57 UTC +00:00]]
71
-  (59.5ms) commit transaction
72
- User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
73
- Connecting to database specified by database.yml
175
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
176
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
177
+  (0.1ms) rollback transaction
178
+  (0.2ms) SELECT COUNT(*) FROM "users"
179
+ Processing by UsersController#create as HTML
180
+ Parameters: {"user"=>{"new"=>"MyString"}}
181
+ WARNING: Can't mass-assign protected attributes for User: new
182
+ app/controllers/users_controller.rb:43:in `create'
74
183
   (0.1ms) begin transaction
75
- SQL (3.2ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 14:59:21 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Mon, 06 May 2013 14:59:21 UTC +00:00]]
76
-  (57.2ms) commit transaction
77
- User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
78
- Connecting to database specified by database.yml
184
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
185
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
186
+  (0.1ms) rollback transaction
187
+ Completed 500 Internal Server Error in 3ms
188
+ Processing by UsersController#create as HTML
189
+ Parameters: {"user"=>{"new"=>"MyString"}}
190
+ WARNING: Can't mass-assign protected attributes for User: new
191
+ app/controllers/users_controller.rb:43:in `create'
192
+  (0.1ms) begin transaction
193
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
194
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
195
+  (0.1ms) rollback transaction
196
+ Completed 500 Internal Server Error in 3ms
197
+ Processing by UsersController#create as HTML
198
+ Parameters: {"user"=>{"new"=>"MyString"}}
199
+ WARNING: Can't mass-assign protected attributes for User: new
200
+ app/controllers/users_controller.rb:43:in `create'
79
201
   (0.1ms) begin transaction
80
- SQL (3.1ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 15:00:22 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Mon, 06 May 2013 15:00:22 UTC +00:00]]
81
-  (55.7ms) commit transaction
82
- User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
83
- Connecting to database specified by database.yml
202
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
203
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
204
+  (0.1ms) rollback transaction
205
+ Completed 500 Internal Server Error in 3ms
206
+ Processing by UsersController#create as HTML
207
+ Parameters: {"user"=>{"new"=>"invalid value"}}
208
+ WARNING: Can't mass-assign protected attributes for User: new
209
+ app/controllers/users_controller.rb:43:in `create'
210
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms)
211
+ Processing by UsersController#create as HTML
212
+ Parameters: {"user"=>{"new"=>"invalid value"}}
213
+ WARNING: Can't mass-assign protected attributes for User: new
214
+ app/controllers/users_controller.rb:43:in `create'
215
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)
216
+ WARNING: Can't mass-assign protected attributes for User: new
217
+
218
+  (0.1ms) begin transaction
219
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
220
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
221
+  (0.0ms) rollback transaction
222
+ WARNING: Can't mass-assign protected attributes for User: new
223
+
84
224
   (0.1ms) begin transaction
85
- SQL (3.3ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 15:00:58 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Mon, 06 May 2013 15:00:58 UTC +00:00]]
86
-  (131.4ms) commit transaction
87
- User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
88
- Connecting to database specified by database.yml
225
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
226
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
227
+  (0.0ms) rollback transaction
228
+ WARNING: Can't mass-assign protected attributes for User: new
229
+
230
+  (0.1ms) begin transaction
231
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
232
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
233
+  (0.0ms) rollback transaction
234
+ WARNING: Can't mass-assign protected attributes for User: new
235
+
236
+  (0.1ms) begin transaction
237
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
238
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
239
+  (0.0ms) rollback transaction
240
+ WARNING: Can't mass-assign protected attributes for User: new
241
+
242
+  (0.1ms) begin transaction
243
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
244
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
245
+  (0.0ms) rollback transaction
246
+ WARNING: Can't mass-assign protected attributes for User: new
247
+
89
248
   (0.1ms) begin transaction
90
- SQL (3.1ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 15:01:20 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Mon, 06 May 2013 15:01:20 UTC +00:00]]
91
-  (57.0ms) commit transaction
249
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
250
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
251
+  (0.1ms) rollback transaction
252
+ WARNING: Can't mass-assign protected attributes for User: new
253
+
254
+  (0.1ms) begin transaction
255
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
256
+ SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)
257
+  (0.1ms) rollback transaction
258
+  (0.1ms) begin transaction
259
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Tue, 10 Dec 2013 11:52:11 UTC +00:00]]
260
+  (58.0ms) commit transaction
261
+ User Load (0.3ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
262
+ Started GET "/users" for 127.0.0.1 at 2013-12-10 11:52:11 +0000
263
+ Processing by UsersController#index as HTML
264
+ User Load (0.2ms) SELECT "users".* FROM "users"
265
+ Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.2ms)
266
+ Rendered users/_form.html.erb (4.8ms)
267
+ Rendered users/_form.html.erb (1.8ms)
268
+  (0.1ms) begin transaction
269
+ SQL (2.2ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Dec 2013 11:54:20 UTC +00:00], ["gender", "f"], ["name", "f"], ["updated_at", Tue, 10 Dec 2013 11:54:20 UTC +00:00]]
270
+  (53.6ms) commit transaction
92
271
  User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1