built_in_data 0.1.6 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/README.rdoc +8 -3
  3. data/Rakefile +6 -10
  4. data/lib/built_in_data/version.rb +1 -1
  5. data/lib/built_in_data.rb +7 -23
  6. data/test/built_in_data_test.rb +13 -16
  7. data/test/dummy/README.rdoc +15 -248
  8. data/test/dummy/Rakefile +1 -2
  9. data/test/dummy/app/assets/javascripts/application.js +3 -5
  10. data/test/dummy/app/assets/stylesheets/application.css +5 -3
  11. data/test/dummy/app/controllers/application_controller.rb +3 -1
  12. data/test/dummy/app/models/national_park.rb +0 -2
  13. data/test/dummy/app/views/layouts/application.html.erb +2 -2
  14. data/test/dummy/bin/bundle +3 -0
  15. data/test/dummy/bin/rails +4 -0
  16. data/test/dummy/bin/rake +4 -0
  17. data/test/dummy/config/application.rb +1 -37
  18. data/test/dummy/config/boot.rb +4 -9
  19. data/test/dummy/config/database.yml +8 -8
  20. data/test/dummy/config/environment.rb +3 -3
  21. data/test/dummy/config/environments/development.rb +19 -19
  22. data/test/dummy/config/environments/production.rb +41 -30
  23. data/test/dummy/config/environments/test.rb +17 -15
  24. data/test/dummy/config/initializers/assets.rb +8 -0
  25. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  26. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  27. data/test/dummy/config/initializers/inflections.rb +6 -5
  28. data/test/dummy/config/initializers/mime_types.rb +0 -1
  29. data/test/dummy/config/initializers/session_store.rb +1 -6
  30. data/test/dummy/config/initializers/wrap_parameters.rb +6 -6
  31. data/test/dummy/config/locales/en.yml +20 -2
  32. data/test/dummy/config/routes.rb +23 -25
  33. data/test/dummy/config/secrets.yml +22 -0
  34. data/test/dummy/config.ru +1 -1
  35. data/test/dummy/db/built_in_data/national_parks.yml +0 -2
  36. data/test/dummy/db/development.sqlite3 +0 -0
  37. data/test/dummy/db/migrate/20141111224715_remove_protected_attribute_column_from_national_parks.rb +5 -0
  38. data/test/dummy/db/schema.rb +5 -6
  39. data/test/dummy/db/test.sqlite3 +0 -0
  40. data/test/dummy/log/development.log +12 -184
  41. data/test/dummy/log/test.log +3167 -805
  42. data/test/dummy/public/404.html +54 -13
  43. data/test/dummy/public/422.html +54 -13
  44. data/test/dummy/public/500.html +53 -12
  45. metadata +43 -32
  46. data/test/dummy/config/initializers/secret_token.rb +0 -7
  47. data/test/dummy/script/rails +0 -6
@@ -2,25 +2,66 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
16
54
  </style>
17
55
  </head>
18
56
 
19
57
  <body>
20
58
  <!-- This file lives in public/404.html -->
21
59
  <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
24
65
  </div>
25
66
  </body>
26
67
  </html>
@@ -2,25 +2,66 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
16
54
  </style>
17
55
  </head>
18
56
 
19
57
  <body>
20
58
  <!-- This file lives in public/422.html -->
21
59
  <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
24
65
  </div>
25
66
  </body>
26
67
  </html>
@@ -2,24 +2,65 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
16
54
  </style>
17
55
  </head>
18
56
 
19
57
  <body>
20
58
  <!-- This file lives in public/500.html -->
21
59
  <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
23
64
  </div>
24
65
  </body>
25
66
  </html>
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: built_in_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Aaron Baldwin
@@ -11,40 +10,42 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-09-18 00:00:00.000000000 Z
13
+ date: 2014-11-12 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rails
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ! '>='
19
+ - - '='
22
20
  - !ruby/object:Gem::Version
23
- version: 3.2.13
21
+ version: 4.1.7
22
+ - - '>='
23
+ - !ruby/object:Gem::Version
24
+ version: 4.0.0
24
25
  type: :runtime
25
26
  prerelease: false
26
27
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
28
  requirements:
29
- - - ! '>='
29
+ - - '='
30
+ - !ruby/object:Gem::Version
31
+ version: 4.1.7
32
+ - - '>='
30
33
  - !ruby/object:Gem::Version
31
- version: 3.2.13
34
+ version: 4.0.0
32
35
  - !ruby/object:Gem::Dependency
33
36
  name: sqlite3
34
37
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
38
  requirements:
37
- - - ! '>='
39
+ - - ~>
38
40
  - !ruby/object:Gem::Version
39
- version: '0'
41
+ version: '1.3'
40
42
  type: :development
41
43
  prerelease: false
42
44
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
45
  requirements:
45
- - - ! '>='
46
+ - - ~>
46
47
  - !ruby/object:Gem::Version
47
- version: '0'
48
+ version: '1.3'
48
49
  description: BuiltInData is a simple tool for loading and updating data in a Rails
49
50
  application.
50
51
  email:
@@ -53,18 +54,24 @@ executables: []
53
54
  extensions: []
54
55
  extra_rdoc_files: []
55
56
  files:
56
- - lib/built_in_data/version.rb
57
- - lib/built_in_data.rb
58
57
  - MIT-LICENSE
59
- - Rakefile
60
58
  - README.rdoc
59
+ - Rakefile
60
+ - lib/built_in_data.rb
61
+ - lib/built_in_data/version.rb
61
62
  - test/built_in_data_test.rb
63
+ - test/dummy/README.rdoc
64
+ - test/dummy/Rakefile
62
65
  - test/dummy/app/assets/javascripts/application.js
63
66
  - test/dummy/app/assets/stylesheets/application.css
64
67
  - test/dummy/app/controllers/application_controller.rb
65
68
  - test/dummy/app/helpers/application_helper.rb
66
69
  - test/dummy/app/models/national_park.rb
67
70
  - test/dummy/app/views/layouts/application.html.erb
71
+ - test/dummy/bin/bundle
72
+ - test/dummy/bin/rails
73
+ - test/dummy/bin/rake
74
+ - test/dummy/config.ru
68
75
  - test/dummy/config/application.rb
69
76
  - test/dummy/config/boot.rb
70
77
  - test/dummy/config/database.yml
@@ -72,20 +79,23 @@ files:
72
79
  - test/dummy/config/environments/development.rb
73
80
  - test/dummy/config/environments/production.rb
74
81
  - test/dummy/config/environments/test.rb
82
+ - test/dummy/config/initializers/assets.rb
75
83
  - test/dummy/config/initializers/backtrace_silencers.rb
84
+ - test/dummy/config/initializers/cookies_serializer.rb
85
+ - test/dummy/config/initializers/filter_parameter_logging.rb
76
86
  - test/dummy/config/initializers/inflections.rb
77
87
  - test/dummy/config/initializers/mime_types.rb
78
- - test/dummy/config/initializers/secret_token.rb
79
88
  - test/dummy/config/initializers/session_store.rb
80
89
  - test/dummy/config/initializers/wrap_parameters.rb
81
90
  - test/dummy/config/locales/en.yml
82
91
  - test/dummy/config/routes.rb
83
- - test/dummy/config.ru
92
+ - test/dummy/config/secrets.yml
84
93
  - test/dummy/db/built_in_data/national_parks.yml
85
94
  - test/dummy/db/development.sqlite3
86
95
  - test/dummy/db/migrate/20121024195810_create_national_parks.rb
87
96
  - test/dummy/db/migrate/20121024201818_add_built_in_key_to_national_parks.rb
88
97
  - test/dummy/db/migrate/20121101224000_add_protected_attribute_column_to_national_parks.rb
98
+ - test/dummy/db/migrate/20141111224715_remove_protected_attribute_column_from_national_parks.rb
89
99
  - test/dummy/db/schema.rb
90
100
  - test/dummy/db/test.sqlite3
91
101
  - test/dummy/log/development.log
@@ -94,34 +104,30 @@ files:
94
104
  - test/dummy/public/422.html
95
105
  - test/dummy/public/500.html
96
106
  - test/dummy/public/favicon.ico
97
- - test/dummy/Rakefile
98
- - test/dummy/README.rdoc
99
- - test/dummy/script/rails
100
107
  - test/test_helper.rb
101
108
  homepage: https://github.com/wwidea/built_in_data
102
109
  licenses:
103
110
  - MIT
111
+ metadata: {}
104
112
  post_install_message:
105
113
  rdoc_options: []
106
114
  require_paths:
107
115
  - lib
108
116
  required_ruby_version: !ruby/object:Gem::Requirement
109
- none: false
110
117
  requirements:
111
- - - ! '>='
118
+ - - '>='
112
119
  - !ruby/object:Gem::Version
113
120
  version: '0'
114
121
  required_rubygems_version: !ruby/object:Gem::Requirement
115
- none: false
116
122
  requirements:
117
- - - ! '>='
123
+ - - '>='
118
124
  - !ruby/object:Gem::Version
119
125
  version: '0'
120
126
  requirements: []
121
127
  rubyforge_project:
122
- rubygems_version: 1.8.24
128
+ rubygems_version: 2.2.2
123
129
  signing_key:
124
- specification_version: 3
130
+ specification_version: 4
125
131
  summary: Data management for Rails models.
126
132
  test_files:
127
133
  - test/built_in_data_test.rb
@@ -131,6 +137,9 @@ test_files:
131
137
  - test/dummy/app/helpers/application_helper.rb
132
138
  - test/dummy/app/models/national_park.rb
133
139
  - test/dummy/app/views/layouts/application.html.erb
140
+ - test/dummy/bin/bundle
141
+ - test/dummy/bin/rails
142
+ - test/dummy/bin/rake
134
143
  - test/dummy/config/application.rb
135
144
  - test/dummy/config/boot.rb
136
145
  - test/dummy/config/database.yml
@@ -138,20 +147,24 @@ test_files:
138
147
  - test/dummy/config/environments/development.rb
139
148
  - test/dummy/config/environments/production.rb
140
149
  - test/dummy/config/environments/test.rb
150
+ - test/dummy/config/initializers/assets.rb
141
151
  - test/dummy/config/initializers/backtrace_silencers.rb
152
+ - test/dummy/config/initializers/cookies_serializer.rb
153
+ - test/dummy/config/initializers/filter_parameter_logging.rb
142
154
  - test/dummy/config/initializers/inflections.rb
143
155
  - test/dummy/config/initializers/mime_types.rb
144
- - test/dummy/config/initializers/secret_token.rb
145
156
  - test/dummy/config/initializers/session_store.rb
146
157
  - test/dummy/config/initializers/wrap_parameters.rb
147
158
  - test/dummy/config/locales/en.yml
148
159
  - test/dummy/config/routes.rb
160
+ - test/dummy/config/secrets.yml
149
161
  - test/dummy/config.ru
150
162
  - test/dummy/db/built_in_data/national_parks.yml
151
163
  - test/dummy/db/development.sqlite3
152
164
  - test/dummy/db/migrate/20121024195810_create_national_parks.rb
153
165
  - test/dummy/db/migrate/20121024201818_add_built_in_key_to_national_parks.rb
154
166
  - test/dummy/db/migrate/20121101224000_add_protected_attribute_column_to_national_parks.rb
167
+ - test/dummy/db/migrate/20141111224715_remove_protected_attribute_column_from_national_parks.rb
155
168
  - test/dummy/db/schema.rb
156
169
  - test/dummy/db/test.sqlite3
157
170
  - test/dummy/log/development.log
@@ -162,6 +175,4 @@ test_files:
162
175
  - test/dummy/public/favicon.ico
163
176
  - test/dummy/Rakefile
164
177
  - test/dummy/README.rdoc
165
- - test/dummy/script/rails
166
178
  - test/test_helper.rb
167
- has_rdoc:
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = '16beee0e1f242a32303273b8b5d27ebb693dc4fba0f04b5d80cd7634654223e98366d151b991d8ff86679eab3f87d5a460c8b041e61ef5ea4d4171fde43349fd'
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'