has_defaults 0.4.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/test.yml +102 -0
  3. data/.gitignore +2 -1
  4. data/.ruby-version +1 -0
  5. data/CHANGELOG.md +23 -0
  6. data/Gemfile +1 -0
  7. data/Gemfile.3.2.mysql2 +16 -0
  8. data/Gemfile.3.2.mysql2.lock +75 -0
  9. data/Gemfile.4.2.mysql2 +15 -0
  10. data/Gemfile.4.2.mysql2.lock +73 -0
  11. data/Gemfile.4.2.pg +15 -0
  12. data/Gemfile.4.2.pg.lock +73 -0
  13. data/Gemfile.5.2.mysql2 +15 -0
  14. data/Gemfile.5.2.mysql2.lock +71 -0
  15. data/Gemfile.5.2.pg +16 -0
  16. data/Gemfile.5.2.pg.lock +77 -0
  17. data/Gemfile.6.1.pg +15 -0
  18. data/Gemfile.6.1.pg.lock +75 -0
  19. data/Gemfile.lock +1 -0
  20. data/{MIT-LICENSE → LICENSE} +1 -1
  21. data/README.md +70 -0
  22. data/Rakefile +5 -29
  23. data/has_defaults.gemspec +24 -14
  24. data/lib/has_defaults/active_record_ext.rb +27 -6
  25. data/lib/has_defaults/version.rb +1 -1
  26. data/lib/has_defaults.rb +1 -3
  27. metadata +57 -132
  28. data/README +0 -74
  29. data/pkg/has_defaults-0.3.0.gem +0 -0
  30. data/spec/app_root/log/in_memory.log +0 -147
  31. data/spec/rails-2.3/Gemfile +0 -8
  32. data/spec/rails-2.3/Gemfile.lock +0 -51
  33. data/spec/rails-2.3/Rakefile +0 -11
  34. data/spec/rails-2.3/app_root/config/boot.rb +0 -129
  35. data/spec/rails-2.3/app_root/config/database.yml +0 -4
  36. data/spec/rails-2.3/app_root/config/environment.rb +0 -14
  37. data/spec/rails-2.3/app_root/config/environments/test.rb +0 -28
  38. data/spec/rails-2.3/app_root/config/preinitializer.rb +0 -20
  39. data/spec/rails-2.3/app_root/config/routes.rb +0 -4
  40. data/spec/rails-2.3/app_root/lib/console_with_fixtures.rb +0 -4
  41. data/spec/rails-2.3/app_root/log/.gitignore +0 -1
  42. data/spec/rails-2.3/app_root/script/console +0 -7
  43. data/spec/rails-2.3/rcov.opts +0 -2
  44. data/spec/rails-2.3/spec.opts +0 -4
  45. data/spec/rails-2.3/spec_helper.rb +0 -24
  46. data/spec/rails-3.0/.rspec +0 -2
  47. data/spec/rails-3.0/Gemfile +0 -9
  48. data/spec/rails-3.0/Gemfile.lock +0 -101
  49. data/spec/rails-3.0/Rakefile +0 -10
  50. data/spec/rails-3.0/app_root/.gitignore +0 -4
  51. data/spec/rails-3.0/app_root/config/application.rb +0 -32
  52. data/spec/rails-3.0/app_root/config/boot.rb +0 -13
  53. data/spec/rails-3.0/app_root/config/database.yml +0 -4
  54. data/spec/rails-3.0/app_root/config/environment.rb +0 -5
  55. data/spec/rails-3.0/app_root/config/environments/test.rb +0 -35
  56. data/spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb +0 -7
  57. data/spec/rails-3.0/app_root/config/initializers/inflections.rb +0 -10
  58. data/spec/rails-3.0/app_root/config/initializers/mime_types.rb +0 -5
  59. data/spec/rails-3.0/app_root/config/initializers/secret_token.rb +0 -7
  60. data/spec/rails-3.0/app_root/config/initializers/session_store.rb +0 -8
  61. data/spec/rails-3.0/app_root/config/locales/en.yml +0 -5
  62. data/spec/rails-3.0/app_root/config/routes.rb +0 -58
  63. data/spec/rails-3.0/app_root/lib/tasks/.gitkeep +0 -0
  64. data/spec/rails-3.0/app_root/log/.gitkeep +0 -0
  65. data/spec/rails-3.0/app_root/script/rails +0 -6
  66. data/spec/rails-3.0/log/in_memory.log +0 -33
  67. data/spec/rails-3.0/rcov.opts +0 -2
  68. data/spec/rails-3.0/spec_helper.rb +0 -25
  69. data/spec/rails-3.2/.rspec +0 -2
  70. data/spec/rails-3.2/Gemfile +0 -9
  71. data/spec/rails-3.2/Gemfile.lock +0 -120
  72. data/spec/rails-3.2/Rakefile +0 -10
  73. data/spec/rails-3.2/app_root/.gitignore +0 -4
  74. data/spec/rails-3.2/app_root/config/application.rb +0 -32
  75. data/spec/rails-3.2/app_root/config/boot.rb +0 -13
  76. data/spec/rails-3.2/app_root/config/database.yml +0 -4
  77. data/spec/rails-3.2/app_root/config/environment.rb +0 -5
  78. data/spec/rails-3.2/app_root/config/environments/test.rb +0 -35
  79. data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +0 -7
  80. data/spec/rails-3.2/app_root/config/initializers/inflections.rb +0 -10
  81. data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +0 -5
  82. data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +0 -7
  83. data/spec/rails-3.2/app_root/config/initializers/session_store.rb +0 -8
  84. data/spec/rails-3.2/app_root/config/locales/en.yml +0 -5
  85. data/spec/rails-3.2/app_root/config/routes.rb +0 -58
  86. data/spec/rails-3.2/app_root/lib/tasks/.gitkeep +0 -0
  87. data/spec/rails-3.2/app_root/log/.gitkeep +0 -0
  88. data/spec/rails-3.2/app_root/script/rails +0 -6
  89. data/spec/rails-3.2/log/in_memory.log +0 -33
  90. data/spec/rails-3.2/rcov.opts +0 -2
  91. data/spec/rails-3.2/spec_helper.rb +0 -25
  92. data/spec/shared/app_root/app/controllers/application_controller.rb +0 -2
  93. data/spec/shared/app_root/app/models/donut.rb +0 -21
  94. data/spec/shared/app_root/app/models/model_without_defaults.rb +0 -2
  95. data/spec/shared/app_root/app/models/pastry.rb +0 -6
  96. data/spec/shared/app_root/db/migrate/001_create_pastries.rb +0 -18
  97. data/spec/shared/app_root/db/migrate/002_create_model_without_defaults.rb +0 -12
  98. data/spec/shared/has_defaults/active_record_ext_spec.rb +0 -84
data/lib/has_defaults.rb CHANGED
@@ -1,4 +1,2 @@
1
+ require 'active_record'
1
2
  require 'has_defaults/active_record_ext'
2
-
3
- ActiveRecord::Base.__send__(:extend, HasDefaults::ActiveRecordExt::ClassMethods)
4
-
metadata CHANGED
@@ -1,157 +1,82 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: has_defaults
3
- version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 4
9
- - 0
10
- version: 0.4.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Henning Koch
14
8
  autorequire:
15
- bindir: bin
9
+ bindir: exe
16
10
  cert_chain: []
17
-
18
- date: 2012-06-29 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2021-08-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: activerecord
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
27
17
  - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
33
20
  type: :runtime
34
- version_requirements: *id001
35
- description: Default values for ActiveRecord models.
36
- email: henning.koch@makandra.de
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Default values for ActiveRecord models
28
+ email:
29
+ - henning.koch@makandra.de
37
30
  executables: []
38
-
39
31
  extensions: []
40
-
41
32
  extra_rdoc_files: []
42
-
43
- files:
44
- - .gitignore
45
- - MIT-LICENSE
46
- - README
33
+ files:
34
+ - ".github/workflows/test.yml"
35
+ - ".gitignore"
36
+ - ".ruby-version"
37
+ - CHANGELOG.md
38
+ - Gemfile
39
+ - Gemfile.3.2.mysql2
40
+ - Gemfile.3.2.mysql2.lock
41
+ - Gemfile.4.2.mysql2
42
+ - Gemfile.4.2.mysql2.lock
43
+ - Gemfile.4.2.pg
44
+ - Gemfile.4.2.pg.lock
45
+ - Gemfile.5.2.mysql2
46
+ - Gemfile.5.2.mysql2.lock
47
+ - Gemfile.5.2.pg
48
+ - Gemfile.5.2.pg.lock
49
+ - Gemfile.6.1.pg
50
+ - Gemfile.6.1.pg.lock
51
+ - Gemfile.lock
52
+ - LICENSE
53
+ - README.md
47
54
  - Rakefile
48
55
  - has_defaults.gemspec
49
56
  - lib/has_defaults.rb
50
57
  - lib/has_defaults/active_record_ext.rb
51
58
  - lib/has_defaults/version.rb
52
- - pkg/has_defaults-0.3.0.gem
53
- - spec/app_root/log/in_memory.log
54
- - spec/rails-2.3/Gemfile
55
- - spec/rails-2.3/Gemfile.lock
56
- - spec/rails-2.3/Rakefile
57
- - spec/rails-2.3/app_root/config/boot.rb
58
- - spec/rails-2.3/app_root/config/database.yml
59
- - spec/rails-2.3/app_root/config/environment.rb
60
- - spec/rails-2.3/app_root/config/environments/test.rb
61
- - spec/rails-2.3/app_root/config/preinitializer.rb
62
- - spec/rails-2.3/app_root/config/routes.rb
63
- - spec/rails-2.3/app_root/lib/console_with_fixtures.rb
64
- - spec/rails-2.3/app_root/log/.gitignore
65
- - spec/rails-2.3/app_root/script/console
66
- - spec/rails-2.3/rcov.opts
67
- - spec/rails-2.3/spec.opts
68
- - spec/rails-2.3/spec_helper.rb
69
- - spec/rails-3.0/.rspec
70
- - spec/rails-3.0/Gemfile
71
- - spec/rails-3.0/Gemfile.lock
72
- - spec/rails-3.0/Rakefile
73
- - spec/rails-3.0/app_root/.gitignore
74
- - spec/rails-3.0/app_root/config/application.rb
75
- - spec/rails-3.0/app_root/config/boot.rb
76
- - spec/rails-3.0/app_root/config/database.yml
77
- - spec/rails-3.0/app_root/config/environment.rb
78
- - spec/rails-3.0/app_root/config/environments/test.rb
79
- - spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb
80
- - spec/rails-3.0/app_root/config/initializers/inflections.rb
81
- - spec/rails-3.0/app_root/config/initializers/mime_types.rb
82
- - spec/rails-3.0/app_root/config/initializers/secret_token.rb
83
- - spec/rails-3.0/app_root/config/initializers/session_store.rb
84
- - spec/rails-3.0/app_root/config/locales/en.yml
85
- - spec/rails-3.0/app_root/config/routes.rb
86
- - spec/rails-3.0/app_root/lib/tasks/.gitkeep
87
- - spec/rails-3.0/app_root/log/.gitkeep
88
- - spec/rails-3.0/app_root/script/rails
89
- - spec/rails-3.0/log/in_memory.log
90
- - spec/rails-3.0/rcov.opts
91
- - spec/rails-3.0/spec_helper.rb
92
- - spec/rails-3.2/.rspec
93
- - spec/rails-3.2/Gemfile
94
- - spec/rails-3.2/Gemfile.lock
95
- - spec/rails-3.2/Rakefile
96
- - spec/rails-3.2/app_root/.gitignore
97
- - spec/rails-3.2/app_root/config/application.rb
98
- - spec/rails-3.2/app_root/config/boot.rb
99
- - spec/rails-3.2/app_root/config/database.yml
100
- - spec/rails-3.2/app_root/config/environment.rb
101
- - spec/rails-3.2/app_root/config/environments/test.rb
102
- - spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb
103
- - spec/rails-3.2/app_root/config/initializers/inflections.rb
104
- - spec/rails-3.2/app_root/config/initializers/mime_types.rb
105
- - spec/rails-3.2/app_root/config/initializers/secret_token.rb
106
- - spec/rails-3.2/app_root/config/initializers/session_store.rb
107
- - spec/rails-3.2/app_root/config/locales/en.yml
108
- - spec/rails-3.2/app_root/config/routes.rb
109
- - spec/rails-3.2/app_root/lib/tasks/.gitkeep
110
- - spec/rails-3.2/app_root/log/.gitkeep
111
- - spec/rails-3.2/app_root/script/rails
112
- - spec/rails-3.2/log/in_memory.log
113
- - spec/rails-3.2/rcov.opts
114
- - spec/rails-3.2/spec_helper.rb
115
- - spec/shared/app_root/app/controllers/application_controller.rb
116
- - spec/shared/app_root/app/models/donut.rb
117
- - spec/shared/app_root/app/models/model_without_defaults.rb
118
- - spec/shared/app_root/app/models/pastry.rb
119
- - spec/shared/app_root/db/migrate/001_create_pastries.rb
120
- - spec/shared/app_root/db/migrate/002_create_model_without_defaults.rb
121
- - spec/shared/has_defaults/active_record_ext_spec.rb
122
- has_rdoc: true
123
59
  homepage: https://github.com/makandra/has_defaults
124
- licenses: []
125
-
60
+ licenses:
61
+ - MIT
62
+ metadata: {}
126
63
  post_install_message:
127
64
  rdoc_options: []
128
-
129
- require_paths:
65
+ require_paths:
130
66
  - lib
131
- required_ruby_version: !ruby/object:Gem::Requirement
132
- none: false
133
- requirements:
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
134
69
  - - ">="
135
- - !ruby/object:Gem::Version
136
- hash: 3
137
- segments:
138
- - 0
139
- version: "0"
140
- required_rubygems_version: !ruby/object:Gem::Requirement
141
- none: false
142
- requirements:
70
+ - !ruby/object:Gem::Version
71
+ version: 2.3.0
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
143
74
  - - ">="
144
- - !ruby/object:Gem::Version
145
- hash: 3
146
- segments:
147
- - 0
148
- version: "0"
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
149
77
  requirements: []
150
-
151
- rubyforge_project:
152
- rubygems_version: 1.3.7
78
+ rubygems_version: 3.2.26
153
79
  signing_key:
154
- specification_version: 3
155
- summary: Default values for ActiveRecord models.
80
+ specification_version: 4
81
+ summary: Default values for ActiveRecord models
156
82
  test_files: []
157
-
data/README DELETED
@@ -1,74 +0,0 @@
1
- has_defaults
2
- ============
3
-
4
- Default values for ActiveRecord models.
5
-
6
- INSTALLATION
7
- ------------
8
-
9
- In your `Gemfile`
10
-
11
- gem 'has_defaults'
12
-
13
- Now run
14
-
15
- bundle install
16
-
17
-
18
- USAGE
19
- -----
20
-
21
- Add the method call `has_defaults` to your model.
22
-
23
- class Page < ActiveRecord::Base
24
- has_defaults :title => "New page", :body => "Put your text here"
25
- end
26
-
27
- Attributes will be set only if it's a new record and the attribute is blank.
28
-
29
- Retrieve the default attribute with the `default_for` instance method:
30
-
31
- @page.default_for(:title)
32
-
33
- You can pass Proc as attribute:
34
-
35
- has_defaults :expires_at => proc { Time.now }
36
-
37
- You can override the default attributes as follow:
38
-
39
- Page.has_defaults_options = {:title => "Here's your new page", :body => "Write your page text"}
40
-
41
- NOTE
42
- ----
43
-
44
- Is **Ruby 1.9** ready!
45
-
46
- MAINTAINER
47
- ----------
48
-
49
- * Original version by Nando Vieira (<http://simplesideias.com.br>)
50
- * Patches in this fork by Henning Koch (<http://www.makandra.de/>)
51
-
52
- LICENSE:
53
- --------
54
-
55
- (The MIT License)
56
-
57
- Permission is hereby granted, free of charge, to any person obtaining
58
- a copy of this software and associated documentation files (the
59
- 'Software'), to deal in the Software without restriction, including
60
- without limitation the rights to use, copy, modify, merge, publish,
61
- distribute, sublicense, and/or sell copies of the Software, and to
62
- permit persons to whom the Software is furnished to do so, subject to
63
- the following conditions:
64
-
65
- The above copyright notice and this permission notice shall be
66
- included in all copies or substantial portions of the Software.
67
-
68
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
69
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
70
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
71
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
72
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
73
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
74
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Binary file
@@ -1,147 +0,0 @@
1
- # Logfile created on Mon Mar 22 10:14:11 +0100 2010 SQL (0.5ms)  SELECT name
2
- FROM sqlite_master
3
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4
- 
5
- SQL (0.2ms) select sqlite_version(*)
6
- SQL (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7
- SQL (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8
- SQL (0.2ms)  SELECT name
9
- FROM sqlite_master
10
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
11
- 
12
- SQL (0.1ms) SELECT version FROM schema_migrations
13
- Migrating to CreatePastries (1)
14
- SQL (0.2ms) CREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) 
15
- SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('1')
16
- Migrating to CreateModelWithoutDefaults (2)
17
- SQL (0.2ms) CREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
18
- SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('2')
19
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')
20
- Donut Load (0.3ms) SELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1
21
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')
22
- SQL (0.3ms)  SELECT name
23
- FROM sqlite_master
24
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
25
- 
26
- SQL (0.2ms) select sqlite_version(*)
27
- SQL (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
28
- SQL (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
29
- SQL (0.2ms)  SELECT name
30
- FROM sqlite_master
31
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
32
- 
33
- SQL (0.1ms) SELECT version FROM schema_migrations
34
- Migrating to CreatePastries (1)
35
- SQL (0.2ms) CREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) 
36
- SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('1')
37
- Migrating to CreateModelWithoutDefaults (2)
38
- SQL (0.1ms) CREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
39
- SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('2')
40
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')
41
- Donut Load (0.3ms) SELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1
42
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')
43
- SQL (0.3ms)  SELECT name
44
- FROM sqlite_master
45
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
46
- 
47
- SQL (0.2ms) select sqlite_version(*)
48
- SQL (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
49
- SQL (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
50
- SQL (0.2ms)  SELECT name
51
- FROM sqlite_master
52
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
53
- 
54
- SQL (0.1ms) SELECT version FROM schema_migrations
55
- Migrating to CreatePastries (1)
56
- SQL (0.2ms) CREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) 
57
- SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('1')
58
- Migrating to CreateModelWithoutDefaults (2)
59
- SQL (0.2ms) CREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
60
- SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('2')
61
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')
62
- Donut Load (0.3ms) SELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1
63
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')
64
- SQL (0.3ms)  SELECT name
65
- FROM sqlite_master
66
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
67
- 
68
- SQL (0.2ms) select sqlite_version(*)
69
- SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
70
- SQL (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
71
- SQL (0.2ms)  SELECT name
72
- FROM sqlite_master
73
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
74
- 
75
- SQL (0.1ms) SELECT version FROM schema_migrations
76
- Migrating to CreatePastries (1)
77
- SQL (0.2ms) CREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) 
78
- SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('1')
79
- Migrating to CreateModelWithoutDefaults (2)
80
- SQL (0.1ms) CREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
81
- SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('2')
82
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')
83
- Donut Load (0.3ms) SELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1
84
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')
85
- SQL (0.3ms)  SELECT name
86
- FROM sqlite_master
87
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
88
- 
89
- SQL (0.7ms) select sqlite_version(*)
90
- SQL (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
91
- SQL (0.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
92
- SQL (0.6ms)  SELECT name
93
- FROM sqlite_master
94
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
95
- 
96
- SQL (0.3ms) SELECT version FROM schema_migrations
97
- Migrating to CreatePastries (1)
98
- SQL (0.9ms) CREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) 
99
- SQL (0.3ms) INSERT INTO schema_migrations (version) VALUES ('1')
100
- Migrating to CreateModelWithoutDefaults (2)
101
- SQL (0.6ms) CREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
102
- SQL (0.3ms) INSERT INTO schema_migrations (version) VALUES ('2')
103
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')
104
- Donut Load (0.3ms) SELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1
105
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')
106
- SQL (0.3ms)  SELECT name
107
- FROM sqlite_master
108
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
109
- 
110
- SQL (0.2ms) select sqlite_version(*)
111
- SQL (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
112
- SQL (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
113
- SQL (0.2ms)  SELECT name
114
- FROM sqlite_master
115
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
116
- 
117
- SQL (0.1ms) SELECT version FROM schema_migrations
118
- Migrating to CreatePastries (1)
119
- SQL (0.3ms) CREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) 
120
- SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('1')
121
- Migrating to CreateModelWithoutDefaults (2)
122
- SQL (0.2ms) CREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
123
- SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('2')
124
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')
125
- Donut Load (0.3ms) SELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1
126
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')
127
- SQL (0.3ms)  SELECT name
128
- FROM sqlite_master
129
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
130
- 
131
- SQL (0.2ms) select sqlite_version(*)
132
- SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
133
- SQL (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
134
- SQL (0.2ms)  SELECT name
135
- FROM sqlite_master
136
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
137
- 
138
- SQL (0.1ms) SELECT version FROM schema_migrations
139
- Migrating to CreatePastries (1)
140
- SQL (0.3ms) CREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) 
141
- SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('1')
142
- Migrating to CreateModelWithoutDefaults (2)
143
- SQL (0.2ms) CREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
144
- SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('2')
145
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')
146
- Donut Load (0.3ms) SELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1
147
- Donut Create (0.1ms) INSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')
@@ -1,8 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- gem 'sqlite3'
4
- gem 'rails', '=2.3.10'
5
- gem 'rspec', '<2'
6
- gem 'rspec-rails', '<2'
7
- gem 'ruby-debug'
8
- gem 'has_defaults', :path => '../..'