sandboxy 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +26 -36
  4. data/{examples/rails_example/app → app}/models/sandbox.rb +1 -1
  5. data/lib/generators/sandboxy_generator.rb +0 -4
  6. data/lib/generators/templates/initializer.rb +7 -7
  7. data/lib/generators/templates/migration.rb.erb +4 -9
  8. data/lib/sandboxy.rb +2 -9
  9. data/lib/sandboxy/configuration.rb +37 -10
  10. data/lib/sandboxy/engine.rb +6 -0
  11. data/lib/sandboxy/middleware.rb +3 -3
  12. data/lib/sandboxy/railtie.rb +7 -6
  13. data/lib/sandboxy/sandboxed.rb +69 -19
  14. data/lib/sandboxy/version.rb +1 -1
  15. metadata +5 -197
  16. data/.github/issue_template.md +0 -14
  17. data/.github/pull_request_template.md +0 -21
  18. data/.gitignore +0 -8
  19. data/.travis.yml +0 -3
  20. data/CODE_OF_CONDUCT.md +0 -46
  21. data/CONTRIBUTING.md +0 -1
  22. data/DEPRECATIONS.md +0 -5
  23. data/Gemfile +0 -9
  24. data/INSTALL.md +0 -3
  25. data/Rakefile +0 -15
  26. data/examples/rails_example/.gitignore +0 -23
  27. data/examples/rails_example/Gemfile +0 -54
  28. data/examples/rails_example/README.md +0 -24
  29. data/examples/rails_example/Rakefile +0 -6
  30. data/examples/rails_example/app/api/books/api.rb +0 -33
  31. data/examples/rails_example/app/assets/config/manifest.js +0 -3
  32. data/examples/rails_example/app/assets/images/.keep +0 -0
  33. data/examples/rails_example/app/assets/javascripts/application.js +0 -15
  34. data/examples/rails_example/app/assets/javascripts/applications.coffee +0 -3
  35. data/examples/rails_example/app/assets/javascripts/authors.coffee +0 -3
  36. data/examples/rails_example/app/assets/javascripts/books.coffee +0 -3
  37. data/examples/rails_example/app/assets/javascripts/cable.js +0 -13
  38. data/examples/rails_example/app/assets/javascripts/channels/.keep +0 -0
  39. data/examples/rails_example/app/assets/javascripts/libraries.coffee +0 -3
  40. data/examples/rails_example/app/assets/javascripts/sandbox.coffee +0 -3
  41. data/examples/rails_example/app/assets/stylesheets/application.css +0 -15
  42. data/examples/rails_example/app/assets/stylesheets/applications.scss +0 -3
  43. data/examples/rails_example/app/assets/stylesheets/authors.scss +0 -3
  44. data/examples/rails_example/app/assets/stylesheets/books.scss +0 -3
  45. data/examples/rails_example/app/assets/stylesheets/libraries.scss +0 -3
  46. data/examples/rails_example/app/assets/stylesheets/sandbox.scss +0 -3
  47. data/examples/rails_example/app/assets/stylesheets/scaffolds.scss +0 -84
  48. data/examples/rails_example/app/channels/application_cable/channel.rb +0 -4
  49. data/examples/rails_example/app/channels/application_cable/connection.rb +0 -4
  50. data/examples/rails_example/app/controllers/application_controller.rb +0 -7
  51. data/examples/rails_example/app/controllers/applications_controller.rb +0 -74
  52. data/examples/rails_example/app/controllers/authors_controller.rb +0 -77
  53. data/examples/rails_example/app/controllers/books_controller.rb +0 -77
  54. data/examples/rails_example/app/controllers/concerns/.keep +0 -0
  55. data/examples/rails_example/app/controllers/libraries_controller.rb +0 -77
  56. data/examples/rails_example/app/controllers/sandbox_controller.rb +0 -6
  57. data/examples/rails_example/app/helpers/application_helper.rb +0 -2
  58. data/examples/rails_example/app/helpers/applications_helper.rb +0 -2
  59. data/examples/rails_example/app/helpers/authors_helper.rb +0 -2
  60. data/examples/rails_example/app/helpers/books_helper.rb +0 -2
  61. data/examples/rails_example/app/helpers/libraries_helper.rb +0 -2
  62. data/examples/rails_example/app/helpers/sandbox_helper.rb +0 -2
  63. data/examples/rails_example/app/jobs/application_job.rb +0 -2
  64. data/examples/rails_example/app/mailers/application_mailer.rb +0 -4
  65. data/examples/rails_example/app/models/application.rb +0 -14
  66. data/examples/rails_example/app/models/application_record.rb +0 -3
  67. data/examples/rails_example/app/models/author.rb +0 -2
  68. data/examples/rails_example/app/models/book.rb +0 -2
  69. data/examples/rails_example/app/models/concerns/.keep +0 -0
  70. data/examples/rails_example/app/models/library.rb +0 -2
  71. data/examples/rails_example/app/views/applications/_application.json.jbuilder +0 -2
  72. data/examples/rails_example/app/views/applications/_form.html.erb +0 -19
  73. data/examples/rails_example/app/views/applications/edit.html.erb +0 -6
  74. data/examples/rails_example/app/views/applications/index.html.erb +0 -25
  75. data/examples/rails_example/app/views/applications/index.json.jbuilder +0 -1
  76. data/examples/rails_example/app/views/applications/new.html.erb +0 -5
  77. data/examples/rails_example/app/views/applications/show.html.erb +0 -7
  78. data/examples/rails_example/app/views/applications/show.json.jbuilder +0 -1
  79. data/examples/rails_example/app/views/authors/_author.json.jbuilder +0 -2
  80. data/examples/rails_example/app/views/authors/_form.html.erb +0 -19
  81. data/examples/rails_example/app/views/authors/edit.html.erb +0 -6
  82. data/examples/rails_example/app/views/authors/index.html.erb +0 -25
  83. data/examples/rails_example/app/views/authors/index.json.jbuilder +0 -1
  84. data/examples/rails_example/app/views/authors/new.html.erb +0 -5
  85. data/examples/rails_example/app/views/authors/show.html.erb +0 -4
  86. data/examples/rails_example/app/views/authors/show.json.jbuilder +0 -1
  87. data/examples/rails_example/app/views/books/_book.json.jbuilder +0 -2
  88. data/examples/rails_example/app/views/books/_form.html.erb +0 -19
  89. data/examples/rails_example/app/views/books/edit.html.erb +0 -6
  90. data/examples/rails_example/app/views/books/index.html.erb +0 -25
  91. data/examples/rails_example/app/views/books/index.json.jbuilder +0 -1
  92. data/examples/rails_example/app/views/books/new.html.erb +0 -5
  93. data/examples/rails_example/app/views/books/show.html.erb +0 -4
  94. data/examples/rails_example/app/views/books/show.json.jbuilder +0 -1
  95. data/examples/rails_example/app/views/layouts/application.html.erb +0 -14
  96. data/examples/rails_example/app/views/layouts/mailer.html.erb +0 -13
  97. data/examples/rails_example/app/views/layouts/mailer.text.erb +0 -1
  98. data/examples/rails_example/app/views/libraries/_form.html.erb +0 -19
  99. data/examples/rails_example/app/views/libraries/_library.json.jbuilder +0 -2
  100. data/examples/rails_example/app/views/libraries/edit.html.erb +0 -6
  101. data/examples/rails_example/app/views/libraries/index.html.erb +0 -25
  102. data/examples/rails_example/app/views/libraries/index.json.jbuilder +0 -1
  103. data/examples/rails_example/app/views/libraries/new.html.erb +0 -5
  104. data/examples/rails_example/app/views/libraries/show.html.erb +0 -4
  105. data/examples/rails_example/app/views/libraries/show.json.jbuilder +0 -1
  106. data/examples/rails_example/bin/bundle +0 -3
  107. data/examples/rails_example/bin/rails +0 -4
  108. data/examples/rails_example/bin/rake +0 -4
  109. data/examples/rails_example/bin/setup +0 -38
  110. data/examples/rails_example/bin/update +0 -29
  111. data/examples/rails_example/bin/yarn +0 -11
  112. data/examples/rails_example/config.ru +0 -5
  113. data/examples/rails_example/config/application.rb +0 -18
  114. data/examples/rails_example/config/boot.rb +0 -3
  115. data/examples/rails_example/config/cable.yml +0 -10
  116. data/examples/rails_example/config/database.yml +0 -25
  117. data/examples/rails_example/config/environment.rb +0 -5
  118. data/examples/rails_example/config/environments/development.rb +0 -54
  119. data/examples/rails_example/config/environments/production.rb +0 -91
  120. data/examples/rails_example/config/environments/test.rb +0 -42
  121. data/examples/rails_example/config/initializers/application_controller_renderer.rb +0 -6
  122. data/examples/rails_example/config/initializers/assets.rb +0 -14
  123. data/examples/rails_example/config/initializers/backtrace_silencers.rb +0 -7
  124. data/examples/rails_example/config/initializers/cookies_serializer.rb +0 -5
  125. data/examples/rails_example/config/initializers/filter_parameter_logging.rb +0 -4
  126. data/examples/rails_example/config/initializers/grape.rb +0 -2
  127. data/examples/rails_example/config/initializers/inflections.rb +0 -16
  128. data/examples/rails_example/config/initializers/mime_types.rb +0 -4
  129. data/examples/rails_example/config/initializers/sandboxy.rb +0 -13
  130. data/examples/rails_example/config/initializers/wrap_parameters.rb +0 -14
  131. data/examples/rails_example/config/locales/en.yml +0 -33
  132. data/examples/rails_example/config/puma.rb +0 -56
  133. data/examples/rails_example/config/routes.rb +0 -13
  134. data/examples/rails_example/config/secrets.yml +0 -32
  135. data/examples/rails_example/db/migrate/20170827184048_create_books.rb +0 -9
  136. data/examples/rails_example/db/migrate/20170827184054_create_authors.rb +0 -9
  137. data/examples/rails_example/db/migrate/20170827184106_create_libraries.rb +0 -9
  138. data/examples/rails_example/db/migrate/20170827184304_create_applications.rb +0 -11
  139. data/examples/rails_example/db/migrate/20170827190815_sandboxy_migration.rb +0 -14
  140. data/examples/rails_example/db/schema.rb +0 -50
  141. data/examples/rails_example/db/seeds.rb +0 -7
  142. data/examples/rails_example/lib/assets/.keep +0 -0
  143. data/examples/rails_example/lib/tasks/.keep +0 -0
  144. data/examples/rails_example/package.json +0 -5
  145. data/examples/rails_example/public/404.html +0 -67
  146. data/examples/rails_example/public/422.html +0 -67
  147. data/examples/rails_example/public/500.html +0 -66
  148. data/examples/rails_example/public/apple-touch-icon-precomposed.png +0 -0
  149. data/examples/rails_example/public/apple-touch-icon.png +0 -0
  150. data/examples/rails_example/public/favicon.ico +0 -0
  151. data/examples/rails_example/public/robots.txt +0 -1
  152. data/examples/rails_example/test/application_system_test_case.rb +0 -5
  153. data/examples/rails_example/test/controllers/.keep +0 -0
  154. data/examples/rails_example/test/controllers/applications_controller_test.rb +0 -48
  155. data/examples/rails_example/test/controllers/authors_controller_test.rb +0 -48
  156. data/examples/rails_example/test/controllers/books_controller_test.rb +0 -48
  157. data/examples/rails_example/test/controllers/libraries_controller_test.rb +0 -48
  158. data/examples/rails_example/test/controllers/sandbox_controller_test.rb +0 -7
  159. data/examples/rails_example/test/fixtures/.keep +0 -0
  160. data/examples/rails_example/test/fixtures/applications.yml +0 -11
  161. data/examples/rails_example/test/fixtures/authors.yml +0 -11
  162. data/examples/rails_example/test/fixtures/books.yml +0 -11
  163. data/examples/rails_example/test/fixtures/files/.keep +0 -0
  164. data/examples/rails_example/test/fixtures/libraries.yml +0 -11
  165. data/examples/rails_example/test/helpers/.keep +0 -0
  166. data/examples/rails_example/test/integration/.keep +0 -0
  167. data/examples/rails_example/test/mailers/.keep +0 -0
  168. data/examples/rails_example/test/models/.keep +0 -0
  169. data/examples/rails_example/test/models/application_test.rb +0 -7
  170. data/examples/rails_example/test/models/author_test.rb +0 -7
  171. data/examples/rails_example/test/models/book_test.rb +0 -7
  172. data/examples/rails_example/test/models/library_test.rb +0 -7
  173. data/examples/rails_example/test/system/.keep +0 -0
  174. data/examples/rails_example/test/system/applications_test.rb +0 -9
  175. data/examples/rails_example/test/system/authors_test.rb +0 -9
  176. data/examples/rails_example/test/system/books_test.rb +0 -9
  177. data/examples/rails_example/test/system/libraries_test.rb +0 -9
  178. data/examples/rails_example/test/test_helper.rb +0 -9
  179. data/examples/rails_example/tmp/.keep +0 -0
  180. data/examples/rails_example/vendor/.keep +0 -0
  181. data/init.rb +0 -1
  182. data/lib/generators/templates/model.rb +0 -7
  183. data/sandboxy.gemspec +0 -28
  184. data/test/dummy30/Gemfile +0 -1
  185. data/test/dummy30/Rakefile +0 -4
  186. data/test/dummy30/app/models/application_record.rb +0 -3
  187. data/test/dummy30/app/models/shared_sandbox.rb +0 -4
  188. data/test/dummy30/app/models/some.rb +0 -3
  189. data/test/dummy30/app/models/user.rb +0 -3
  190. data/test/dummy30/config.ru +0 -2
  191. data/test/dummy30/config/application.rb +0 -14
  192. data/test/dummy30/config/boot.rb +0 -10
  193. data/test/dummy30/config/database.yml +0 -6
  194. data/test/dummy30/config/environment.rb +0 -5
  195. data/test/dummy30/config/environments/development.rb +0 -7
  196. data/test/dummy30/config/environments/test.rb +0 -6
  197. data/test/dummy30/config/initializers/sandboxy.rb +0 -13
  198. data/test/dummy30/config/initializers/secret_token.rb +0 -1
  199. data/test/dummy30/config/initializers/session_store.rb +0 -1
  200. data/test/dummy30/config/locales/en.yml +0 -2
  201. data/test/dummy30/config/routes.rb +0 -2
  202. data/test/dummy30/config/sandboxy.yml +0 -1
  203. data/test/factories/somes.rb +0 -17
  204. data/test/factories/users.rb +0 -5
  205. data/test/sandbox_test.rb +0 -51
  206. data/test/sandboxed_test.rb +0 -58
  207. data/test/schema.rb +0 -18
  208. data/test/test_helper.rb +0 -20
@@ -1,5 +1,5 @@
1
1
  module Sandboxy
2
2
 
3
- VERSION = '2.0.0'
3
+ VERSION = '3.0.0'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sandboxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-21 00:00:00.000000000 Z
11
+ date: 2017-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -88,219 +88,27 @@ executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - ".github/issue_template.md"
92
- - ".github/pull_request_template.md"
93
- - ".gitignore"
94
- - ".travis.yml"
95
91
  - CHANGELOG.md
96
- - CODE_OF_CONDUCT.md
97
- - CONTRIBUTING.md
98
- - DEPRECATIONS.md
99
- - Gemfile
100
- - INSTALL.md
101
92
  - LICENSE
102
93
  - README.md
103
- - Rakefile
104
- - examples/rails_example/.gitignore
105
- - examples/rails_example/Gemfile
106
- - examples/rails_example/README.md
107
- - examples/rails_example/Rakefile
108
- - examples/rails_example/app/api/books/api.rb
109
- - examples/rails_example/app/assets/config/manifest.js
110
- - examples/rails_example/app/assets/images/.keep
111
- - examples/rails_example/app/assets/javascripts/application.js
112
- - examples/rails_example/app/assets/javascripts/applications.coffee
113
- - examples/rails_example/app/assets/javascripts/authors.coffee
114
- - examples/rails_example/app/assets/javascripts/books.coffee
115
- - examples/rails_example/app/assets/javascripts/cable.js
116
- - examples/rails_example/app/assets/javascripts/channels/.keep
117
- - examples/rails_example/app/assets/javascripts/libraries.coffee
118
- - examples/rails_example/app/assets/javascripts/sandbox.coffee
119
- - examples/rails_example/app/assets/stylesheets/application.css
120
- - examples/rails_example/app/assets/stylesheets/applications.scss
121
- - examples/rails_example/app/assets/stylesheets/authors.scss
122
- - examples/rails_example/app/assets/stylesheets/books.scss
123
- - examples/rails_example/app/assets/stylesheets/libraries.scss
124
- - examples/rails_example/app/assets/stylesheets/sandbox.scss
125
- - examples/rails_example/app/assets/stylesheets/scaffolds.scss
126
- - examples/rails_example/app/channels/application_cable/channel.rb
127
- - examples/rails_example/app/channels/application_cable/connection.rb
128
- - examples/rails_example/app/controllers/application_controller.rb
129
- - examples/rails_example/app/controllers/applications_controller.rb
130
- - examples/rails_example/app/controllers/authors_controller.rb
131
- - examples/rails_example/app/controllers/books_controller.rb
132
- - examples/rails_example/app/controllers/concerns/.keep
133
- - examples/rails_example/app/controllers/libraries_controller.rb
134
- - examples/rails_example/app/controllers/sandbox_controller.rb
135
- - examples/rails_example/app/helpers/application_helper.rb
136
- - examples/rails_example/app/helpers/applications_helper.rb
137
- - examples/rails_example/app/helpers/authors_helper.rb
138
- - examples/rails_example/app/helpers/books_helper.rb
139
- - examples/rails_example/app/helpers/libraries_helper.rb
140
- - examples/rails_example/app/helpers/sandbox_helper.rb
141
- - examples/rails_example/app/jobs/application_job.rb
142
- - examples/rails_example/app/mailers/application_mailer.rb
143
- - examples/rails_example/app/models/application.rb
144
- - examples/rails_example/app/models/application_record.rb
145
- - examples/rails_example/app/models/author.rb
146
- - examples/rails_example/app/models/book.rb
147
- - examples/rails_example/app/models/concerns/.keep
148
- - examples/rails_example/app/models/library.rb
149
- - examples/rails_example/app/models/sandbox.rb
150
- - examples/rails_example/app/views/applications/_application.json.jbuilder
151
- - examples/rails_example/app/views/applications/_form.html.erb
152
- - examples/rails_example/app/views/applications/edit.html.erb
153
- - examples/rails_example/app/views/applications/index.html.erb
154
- - examples/rails_example/app/views/applications/index.json.jbuilder
155
- - examples/rails_example/app/views/applications/new.html.erb
156
- - examples/rails_example/app/views/applications/show.html.erb
157
- - examples/rails_example/app/views/applications/show.json.jbuilder
158
- - examples/rails_example/app/views/authors/_author.json.jbuilder
159
- - examples/rails_example/app/views/authors/_form.html.erb
160
- - examples/rails_example/app/views/authors/edit.html.erb
161
- - examples/rails_example/app/views/authors/index.html.erb
162
- - examples/rails_example/app/views/authors/index.json.jbuilder
163
- - examples/rails_example/app/views/authors/new.html.erb
164
- - examples/rails_example/app/views/authors/show.html.erb
165
- - examples/rails_example/app/views/authors/show.json.jbuilder
166
- - examples/rails_example/app/views/books/_book.json.jbuilder
167
- - examples/rails_example/app/views/books/_form.html.erb
168
- - examples/rails_example/app/views/books/edit.html.erb
169
- - examples/rails_example/app/views/books/index.html.erb
170
- - examples/rails_example/app/views/books/index.json.jbuilder
171
- - examples/rails_example/app/views/books/new.html.erb
172
- - examples/rails_example/app/views/books/show.html.erb
173
- - examples/rails_example/app/views/books/show.json.jbuilder
174
- - examples/rails_example/app/views/layouts/application.html.erb
175
- - examples/rails_example/app/views/layouts/mailer.html.erb
176
- - examples/rails_example/app/views/layouts/mailer.text.erb
177
- - examples/rails_example/app/views/libraries/_form.html.erb
178
- - examples/rails_example/app/views/libraries/_library.json.jbuilder
179
- - examples/rails_example/app/views/libraries/edit.html.erb
180
- - examples/rails_example/app/views/libraries/index.html.erb
181
- - examples/rails_example/app/views/libraries/index.json.jbuilder
182
- - examples/rails_example/app/views/libraries/new.html.erb
183
- - examples/rails_example/app/views/libraries/show.html.erb
184
- - examples/rails_example/app/views/libraries/show.json.jbuilder
185
- - examples/rails_example/bin/bundle
186
- - examples/rails_example/bin/rails
187
- - examples/rails_example/bin/rake
188
- - examples/rails_example/bin/setup
189
- - examples/rails_example/bin/update
190
- - examples/rails_example/bin/yarn
191
- - examples/rails_example/config.ru
192
- - examples/rails_example/config/application.rb
193
- - examples/rails_example/config/boot.rb
194
- - examples/rails_example/config/cable.yml
195
- - examples/rails_example/config/database.yml
196
- - examples/rails_example/config/environment.rb
197
- - examples/rails_example/config/environments/development.rb
198
- - examples/rails_example/config/environments/production.rb
199
- - examples/rails_example/config/environments/test.rb
200
- - examples/rails_example/config/initializers/application_controller_renderer.rb
201
- - examples/rails_example/config/initializers/assets.rb
202
- - examples/rails_example/config/initializers/backtrace_silencers.rb
203
- - examples/rails_example/config/initializers/cookies_serializer.rb
204
- - examples/rails_example/config/initializers/filter_parameter_logging.rb
205
- - examples/rails_example/config/initializers/grape.rb
206
- - examples/rails_example/config/initializers/inflections.rb
207
- - examples/rails_example/config/initializers/mime_types.rb
208
- - examples/rails_example/config/initializers/sandboxy.rb
209
- - examples/rails_example/config/initializers/wrap_parameters.rb
210
- - examples/rails_example/config/locales/en.yml
211
- - examples/rails_example/config/puma.rb
212
- - examples/rails_example/config/routes.rb
213
- - examples/rails_example/config/secrets.yml
214
- - examples/rails_example/db/migrate/20170827184048_create_books.rb
215
- - examples/rails_example/db/migrate/20170827184054_create_authors.rb
216
- - examples/rails_example/db/migrate/20170827184106_create_libraries.rb
217
- - examples/rails_example/db/migrate/20170827184304_create_applications.rb
218
- - examples/rails_example/db/migrate/20170827190815_sandboxy_migration.rb
219
- - examples/rails_example/db/schema.rb
220
- - examples/rails_example/db/seeds.rb
221
- - examples/rails_example/lib/assets/.keep
222
- - examples/rails_example/lib/tasks/.keep
223
- - examples/rails_example/package.json
224
- - examples/rails_example/public/404.html
225
- - examples/rails_example/public/422.html
226
- - examples/rails_example/public/500.html
227
- - examples/rails_example/public/apple-touch-icon-precomposed.png
228
- - examples/rails_example/public/apple-touch-icon.png
229
- - examples/rails_example/public/favicon.ico
230
- - examples/rails_example/public/robots.txt
231
- - examples/rails_example/test/application_system_test_case.rb
232
- - examples/rails_example/test/controllers/.keep
233
- - examples/rails_example/test/controllers/applications_controller_test.rb
234
- - examples/rails_example/test/controllers/authors_controller_test.rb
235
- - examples/rails_example/test/controllers/books_controller_test.rb
236
- - examples/rails_example/test/controllers/libraries_controller_test.rb
237
- - examples/rails_example/test/controllers/sandbox_controller_test.rb
238
- - examples/rails_example/test/fixtures/.keep
239
- - examples/rails_example/test/fixtures/applications.yml
240
- - examples/rails_example/test/fixtures/authors.yml
241
- - examples/rails_example/test/fixtures/books.yml
242
- - examples/rails_example/test/fixtures/files/.keep
243
- - examples/rails_example/test/fixtures/libraries.yml
244
- - examples/rails_example/test/helpers/.keep
245
- - examples/rails_example/test/integration/.keep
246
- - examples/rails_example/test/mailers/.keep
247
- - examples/rails_example/test/models/.keep
248
- - examples/rails_example/test/models/application_test.rb
249
- - examples/rails_example/test/models/author_test.rb
250
- - examples/rails_example/test/models/book_test.rb
251
- - examples/rails_example/test/models/library_test.rb
252
- - examples/rails_example/test/system/.keep
253
- - examples/rails_example/test/system/applications_test.rb
254
- - examples/rails_example/test/system/authors_test.rb
255
- - examples/rails_example/test/system/books_test.rb
256
- - examples/rails_example/test/system/libraries_test.rb
257
- - examples/rails_example/test/test_helper.rb
258
- - examples/rails_example/tmp/.keep
259
- - examples/rails_example/vendor/.keep
260
- - init.rb
94
+ - app/models/sandbox.rb
261
95
  - lib/generators/sandboxy_generator.rb
262
96
  - lib/generators/templates/README.md
263
97
  - lib/generators/templates/initializer.rb
264
98
  - lib/generators/templates/migration.rb.erb
265
- - lib/generators/templates/model.rb
266
99
  - lib/sandboxy.rb
267
100
  - lib/sandboxy/configuration.rb
101
+ - lib/sandboxy/engine.rb
268
102
  - lib/sandboxy/middleware.rb
269
103
  - lib/sandboxy/railtie.rb
270
104
  - lib/sandboxy/sandboxed.rb
271
105
  - lib/sandboxy/version.rb
272
- - sandboxy.gemspec
273
- - test/dummy30/Gemfile
274
- - test/dummy30/Rakefile
275
- - test/dummy30/app/models/application_record.rb
276
- - test/dummy30/app/models/shared_sandbox.rb
277
- - test/dummy30/app/models/some.rb
278
- - test/dummy30/app/models/user.rb
279
- - test/dummy30/config.ru
280
- - test/dummy30/config/application.rb
281
- - test/dummy30/config/boot.rb
282
- - test/dummy30/config/database.yml
283
- - test/dummy30/config/environment.rb
284
- - test/dummy30/config/environments/development.rb
285
- - test/dummy30/config/environments/test.rb
286
- - test/dummy30/config/initializers/sandboxy.rb
287
- - test/dummy30/config/initializers/secret_token.rb
288
- - test/dummy30/config/initializers/session_store.rb
289
- - test/dummy30/config/locales/en.yml
290
- - test/dummy30/config/routes.rb
291
- - test/dummy30/config/sandboxy.yml
292
- - test/factories/somes.rb
293
- - test/factories/users.rb
294
- - test/sandbox_test.rb
295
- - test/sandboxed_test.rb
296
- - test/schema.rb
297
- - test/test_helper.rb
298
106
  homepage: https://github.com/jonhue/sandboxy
299
107
  licenses:
300
108
  - MIT
301
109
  metadata: {}
302
110
  post_install_message: |
303
- **Thank you for installing sandboxy!**
111
+ **Thank you for installing Sandboxy!**
304
112
  Get started by running `rails g sandboxy`.
305
113
  Learn more at https://github.com/jonhue/sandboxy.
306
114
  rdoc_options: []
@@ -1,14 +0,0 @@
1
- ### Expected behavior
2
- Tell us what should happen
3
-
4
- ### Actual behavior
5
- Tell us what happens instead
6
-
7
- ### Steps to reproduce
8
- Show a way to reproduce
9
-
10
- ### System configuration
11
-
12
- **Ruby version**:
13
-
14
- **Rails version**:
@@ -1,21 +0,0 @@
1
- ### Summary
2
-
3
- Provide a general description of the code changes in your pull
4
- request... were there any bugs you had fixed? If so, mention them. If
5
- these bugs have open GitHub issues, be sure to tag them here as well,
6
- to keep the conversation linked together.
7
-
8
- ### Other Information
9
-
10
- If there's anything else that's important and relevant to your pull
11
- request, mention that information here. This could include
12
- benchmarks, or other information.
13
-
14
- If you are updating any of the CHANGELOG files or are asked to update the
15
- CHANGELOG files by reviewers, please add the CHANGELOG entry at the top of the file.
16
-
17
- Finally, if your pull request affects documentation or any non-code
18
- changes, guidelines for those changes are [available
19
- here](https://github.com/jonhue/sandboxy/blob/master/CONTRIBUTING.md)
20
-
21
- Thanks for contributing to Sandboxy!
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- test/debug.log
2
- coverage
3
- rdoc
4
- memory
5
- *.gem
6
- .rvmrc
7
- Gemfile.lock
8
- log
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.3
@@ -1,46 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- ## Our Standards
8
-
9
- Examples of behavior that contributes to creating a positive environment include:
10
-
11
- * Using welcoming and inclusive language
12
- * Being respectful of differing viewpoints and experiences
13
- * Gracefully accepting constructive criticism
14
- * Focusing on what is best for the community
15
- * Showing empathy towards other community members
16
-
17
- Examples of unacceptable behavior by participants include:
18
-
19
- * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
- * Trolling, insulting/derogatory comments, and personal or political attacks
21
- * Public or private harassment
22
- * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
- * Other conduct which could reasonably be considered inappropriate in a professional setting
24
-
25
- ## Our Responsibilities
26
-
27
- Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
-
29
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
-
31
- ## Scope
32
-
33
- This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
-
35
- ## Enforcement
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at jonas.huebotter@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
-
39
- Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
-
41
- ## Attribution
42
-
43
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44
-
45
- [homepage]: http://contributor-covenant.org
46
- [version]: http://contributor-covenant.org/version/1/4/
@@ -1 +0,0 @@
1
- # Contributing
@@ -1,5 +0,0 @@
1
- # Deprecations
2
-
3
- ### 2.0.0 - 2017-12-21
4
-
5
- * `config/sandboxy.yml` file replaced by initializer
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
-
6
- gem 'activesupport', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
7
-
8
- # # Test Coverage
9
- # gem 'simplecov', require: false, group: :test
data/INSTALL.md DELETED
@@ -1,3 +0,0 @@
1
- **Thank you for installing sandboxy!**
2
- Get started by running `rails g sandboxy`.
3
- Learn more at https://github.com/jonhue/sandboxy.
data/Rakefile DELETED
@@ -1,15 +0,0 @@
1
- require 'bundler'
2
- Bundler::GemHelper.install_tasks
3
-
4
- require 'rake'
5
- require 'rake/testtask'
6
-
7
- desc 'Default: run unit tests.'
8
- task default: :test
9
-
10
- desc 'Test sandboxy gem.'
11
- Rake::TestTask.new(:test) do |t|
12
- t.libs << 'lib'
13
- t.pattern = 'test/**/*_test.rb'
14
- t.verbose = true
15
- end
@@ -1,23 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
- /db/*.sqlite3-journal
13
-
14
- # Ignore all logfiles and tempfiles.
15
- /log/*
16
- /tmp/*
17
- !/log/.keep
18
- !/tmp/.keep
19
-
20
- /node_modules
21
- /yarn-error.log
22
-
23
- .byebug_history
@@ -1,54 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- git_source(:github) do |repo_name|
4
- repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
5
- "https://github.com/#{repo_name}.git"
6
- end
7
-
8
-
9
- gem 'sandboxy'
10
- gem 'grape'
11
-
12
-
13
- # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
14
- gem 'rails', '~> 5.1.3'
15
- # Use sqlite3 as the database for Active Record
16
- gem 'sqlite3'
17
- # Use Puma as the app server
18
- gem 'puma', '~> 3.7'
19
- # Use SCSS for stylesheets
20
- gem 'sass-rails', '~> 5.0'
21
- # Use Uglifier as compressor for JavaScript assets
22
- gem 'uglifier', '>= 1.3.0'
23
- # See https://github.com/rails/execjs#readme for more supported runtimes
24
- # gem 'therubyracer', platforms: :ruby
25
-
26
- # Use CoffeeScript for .coffee assets and views
27
- gem 'coffee-rails', '~> 4.2'
28
- # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
29
- gem 'turbolinks', '~> 5'
30
- # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
31
- gem 'jbuilder', '~> 2.5'
32
- # Use Redis adapter to run Action Cable in production
33
- # gem 'redis', '~> 3.0'
34
- # Use ActiveModel has_secure_password
35
- # gem 'bcrypt', '~> 3.1.7'
36
-
37
- # Use Capistrano for deployment
38
- # gem 'capistrano-rails', group: :development
39
-
40
- group :development, :test do
41
- # Call 'byebug' anywhere in the code to stop execution and get a debugger console
42
- gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
43
- # Adds support for Capybara system testing and selenium driver
44
- gem 'capybara', '~> 2.13'
45
- gem 'selenium-webdriver'
46
- end
47
-
48
- group :development do
49
- # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
50
- gem 'web-console', '>= 3.3.0'
51
- end
52
-
53
- # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
54
- gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]