genderize 0.0.4 → 0.0.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.
- checksums.yaml +4 -4
- data/config/locales/genderize.es.yml +23 -0
- data/lib/genderize/version.rb +1 -1
- data/spec/dummy/config/environments/development.rb +27 -20
- data/spec/dummy/config/environments/production.rb +44 -27
- data/spec/dummy/config/environments/test.rb +14 -11
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +7 -7
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +254 -75
- metadata +6 -25
- data/spec/dummy/app/controllers/users_controller.rb +0 -83
- data/spec/dummy/log/development.log +0 -321
- data/spec/dummy/spec/controllers/users_controller_spec.rb +0 -160
- data/spec/dummy/spec/helpers/users_helper_spec.rb +0 -15
- data/spec/dummy/spec/requests/users_spec.rb +0 -11
- data/spec/dummy/spec/routing/users_routing_spec.rb +0 -35
- data/spec/dummy/spec/views/users/edit.html.erb_spec.rb +0 -22
- data/spec/dummy/spec/views/users/index.html.erb_spec.rb +0 -26
- data/spec/dummy/spec/views/users/new.html.erb_spec.rb +0 -22
- data/spec/dummy/spec/views/users/show.html.erb_spec.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d13b5523ca109aff691a9d5565abf7bfde321b92
|
4
|
+
data.tar.gz: f7e9c526394deec2340064657182c0cbb0b6ea55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/genderize/version.rb
CHANGED
@@ -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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
#
|
23
|
-
config.
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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.
|
25
|
+
# Compress JavaScripts and CSS.
|
26
|
+
config.assets.js_compressor = :uglifier
|
27
|
+
# config.assets.css_compressor = :sass
|
16
28
|
|
17
|
-
#
|
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
|
-
#
|
24
|
-
|
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
|
-
#
|
34
|
-
|
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
|
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
|
-
#
|
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
|
-
#
|
65
|
-
#
|
66
|
-
|
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
|
-
|
15
|
-
|
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
|
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
|
-
#
|
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
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -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
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:
|
14
|
+
ActiveRecord::Schema.define(version: 20130506080641) do
|
15
15
|
|
16
|
-
create_table "users", :
|
17
|
-
t.string "name", :
|
18
|
-
t.string "gender", :
|
19
|
-
t.datetime "created_at"
|
20
|
-
t.datetime "updated_at"
|
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
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -1,92 +1,271 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users"[0m
|
37
|
+
SQLite3::SQLException: no such table: users: SELECT "users".* FROM "users"
|
38
|
+
Completed 500 Internal Server Error in 8ms
|
39
|
+
[1m[36m (55.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
40
|
+
[1m[35m (3.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
41
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
42
|
+
Migrating to CreateUsers (20130506080641)
|
43
|
+
[1m[35m (0.1ms)[0m begin transaction
|
44
|
+
[1m[36m (0.5ms)[0m [1mCREATE 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) [0m
|
45
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130506080641"]]
|
46
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
47
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
48
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
49
|
+
|
50
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51
|
+
[1m[35mSQL (2.1ms)[0m 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
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
25
|
-
|
54
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
55
|
+
|
56
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
27
|
-
[1m[35mSQL (
|
28
|
-
SQLite3::ConstraintException: users.
|
65
|
+
[1m[35mSQL (0.3ms)[0m 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
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
30
|
-
|
68
|
+
[1m[35m (0.1ms)[0m 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
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32
|
-
[1m[35mSQL (
|
33
|
-
|
34
|
-
[1m[
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
74
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
40
|
-
[1m[35mSQL (
|
41
|
-
|
42
|
-
[1m[
|
43
|
-
|
92
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m begin transaction
|
109
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
112
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
113
|
+
|
44
114
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45
|
-
[1m[35mSQL (
|
46
|
-
|
47
|
-
[1m[
|
48
|
-
|
115
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
118
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
119
|
+
|
120
|
+
[1m[35m (0.1ms)[0m begin transaction
|
121
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
124
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
125
|
+
|
49
126
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
50
|
-
[1m[35mSQL (
|
51
|
-
|
52
|
-
[1m[
|
53
|
-
|
127
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
130
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
131
|
+
|
132
|
+
[1m[35m (0.0ms)[0m begin transaction
|
133
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
136
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
137
|
+
|
54
138
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55
|
-
[1m[35mSQL (
|
56
|
-
|
57
|
-
[1m[
|
58
|
-
|
139
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
142
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
143
|
+
|
144
|
+
[1m[35m (0.1ms)[0m begin transaction
|
145
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
59
148
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
60
|
-
[1m[35mSQL (
|
61
|
-
[1m[36m (
|
149
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (58.7ms)[0m [1mcommit transaction[0m
|
62
151
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|
63
|
-
|
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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
65
|
-
[1m[35mSQL (
|
66
|
-
|
67
|
-
[1m[
|
68
|
-
|
161
|
+
[1m[35mSQL (2.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
164
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
165
|
+
|
166
|
+
[1m[35m (0.1ms)[0m begin transaction
|
167
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70
|
-
[1m[35mSQL (
|
71
|
-
|
72
|
-
[1m[
|
73
|
-
|
175
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
178
|
+
[1m[35m (0.2ms)[0m 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
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
75
|
-
[1m[35mSQL (
|
76
|
-
|
77
|
-
[1m[
|
78
|
-
|
184
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m begin transaction
|
193
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
80
|
-
[1m[35mSQL (
|
81
|
-
|
82
|
-
[1m[
|
83
|
-
|
202
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m begin transaction
|
219
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
222
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
223
|
+
|
84
224
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
85
|
-
[1m[35mSQL (
|
86
|
-
|
87
|
-
[1m[
|
88
|
-
|
225
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
228
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
229
|
+
|
230
|
+
[1m[35m (0.1ms)[0m begin transaction
|
231
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
234
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
235
|
+
|
236
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
237
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
240
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
241
|
+
|
242
|
+
[1m[35m (0.1ms)[0m begin transaction
|
243
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
246
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
247
|
+
|
89
248
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
90
|
-
[1m[35mSQL (
|
91
|
-
|
249
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
252
|
+
WARNING: Can't mass-assign protected attributes for User: new
|
253
|
+
|
254
|
+
[1m[35m (0.1ms)[0m begin transaction
|
255
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
258
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
259
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (58.0ms)[0m [1mcommit transaction[0m
|
261
|
+
[1m[35mUser Load (0.3ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
269
|
+
[1m[35mSQL (2.2ms)[0m 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
|
+
[1m[36m (53.6ms)[0m [1mcommit transaction[0m
|
92
271
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
|