handcart 0.0.2

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 +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +247 -0
  4. data/Rakefile +37 -0
  5. data/app/assets/javascripts/handcart/application.js +16 -0
  6. data/app/assets/stylesheets/handcart/application.css +15 -0
  7. data/app/assets/stylesheets/handcart/layout.css.scss +21 -0
  8. data/app/controllers/handcart/application_controller.rb +4 -0
  9. data/app/controllers/handcart/ip_addresses_controller.rb +56 -0
  10. data/app/controllers/handcart/subdomains_controller.rb +55 -0
  11. data/app/helpers/handcart/application_helper.rb +14 -0
  12. data/app/helpers/handcart/url_helper.rb +16 -0
  13. data/app/models/handcart/concerns/handcarts.rb +30 -0
  14. data/app/models/handcart/domain_constraint.rb +20 -0
  15. data/app/models/handcart/ip_address.rb +18 -0
  16. data/app/models/handcart/setting_constraint.rb +26 -0
  17. data/app/models/handcart/subdomain.rb +36 -0
  18. data/app/views/handcart/ip_addresses/_form.html.haml +12 -0
  19. data/app/views/handcart/ip_addresses/edit.html.haml +3 -0
  20. data/app/views/handcart/ip_addresses/index.html.haml +36 -0
  21. data/app/views/handcart/ip_addresses/new.html.haml +3 -0
  22. data/app/views/handcart/ip_addresses/show.html.haml +20 -0
  23. data/app/views/handcart/subdomains/_form.html.haml +9 -0
  24. data/app/views/handcart/subdomains/edit.html.haml +3 -0
  25. data/app/views/handcart/subdomains/index.html.haml +31 -0
  26. data/app/views/handcart/subdomains/new.html.haml +3 -0
  27. data/app/views/handcart/subdomains/show.html.haml +20 -0
  28. data/app/views/layouts/handcart/_navbar.html.haml +15 -0
  29. data/app/views/layouts/handcart/application.html.haml +60 -0
  30. data/config/handcart.json +6 -0
  31. data/config/locales/en.yml +61 -0
  32. data/config/routes.rb +5 -0
  33. data/db/migrate/20131009165427_create_handcart_subdomains.rb +9 -0
  34. data/db/migrate/20131203000934_create_handcart_ip_addresses.rb +12 -0
  35. data/lib/handcart.rb +67 -0
  36. data/lib/handcart/acts_as_handcart.rb +16 -0
  37. data/lib/handcart/controller_additions.rb +152 -0
  38. data/lib/handcart/engine.rb +27 -0
  39. data/lib/handcart/ip_authorization.rb +27 -0
  40. data/lib/handcart/simple_form.rb +179 -0
  41. data/lib/handcart/strategies/base_ip_strategy.rb +21 -0
  42. data/lib/handcart/strategies/containment_strategy.rb +16 -0
  43. data/lib/handcart/strategies/inclusion_strategy.rb +17 -0
  44. data/lib/handcart/templates/rspec/controller/controller_spec.rb +17 -0
  45. data/lib/handcart/templates/rspec/scaffold/routing_spec.rb +40 -0
  46. data/lib/handcart/version.rb +3 -0
  47. data/spec/controllers/handcart/ip_addresses_controller_spec.rb +134 -0
  48. data/spec/controllers/handcart/subdomains_controller_spec.rb +138 -0
  49. data/spec/dummy/README.rdoc +28 -0
  50. data/spec/dummy/Rakefile +6 -0
  51. data/spec/dummy/app/assets/javascripts/application.js +16 -0
  52. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  53. data/spec/dummy/app/assets/stylesheets/layout.css.scss +4 -0
  54. data/spec/dummy/app/controllers/application_controller.rb +7 -0
  55. data/spec/dummy/app/controllers/custom_constraints_controller.rb +2 -0
  56. data/spec/dummy/app/controllers/ip_addresses_controller.rb +7 -0
  57. data/spec/dummy/app/controllers/master/companies_controller.rb +51 -0
  58. data/spec/dummy/app/controllers/master/dashboard_controller.rb +4 -0
  59. data/spec/dummy/app/controllers/master_controller.rb +2 -0
  60. data/spec/dummy/app/controllers/public_controller.rb +12 -0
  61. data/spec/dummy/app/controllers/subdomain_controller.rb +8 -0
  62. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  63. data/spec/dummy/app/models/company.rb +7 -0
  64. data/spec/dummy/app/views/ip_addresses/index.html.haml +12 -0
  65. data/spec/dummy/app/views/ip_addresses/show.html.haml +1 -0
  66. data/spec/dummy/app/views/layouts/_navbar.html.haml +11 -0
  67. data/spec/dummy/app/views/layouts/application.html.haml +53 -0
  68. data/spec/dummy/app/views/layouts/public.html.haml +41 -0
  69. data/spec/dummy/app/views/master/companies/_form.html.haml +19 -0
  70. data/spec/dummy/app/views/master/companies/edit.html.haml +7 -0
  71. data/spec/dummy/app/views/master/companies/index.html.haml +25 -0
  72. data/spec/dummy/app/views/master/companies/new.html.haml +5 -0
  73. data/spec/dummy/app/views/master/companies/show.html.haml +12 -0
  74. data/spec/dummy/app/views/master/dashboard/index.html.haml +2 -0
  75. data/spec/dummy/app/views/public/forbidden.html.haml +3 -0
  76. data/spec/dummy/app/views/public/index.html.haml +2 -0
  77. data/spec/dummy/app/views/subdomain/index.html.haml +2 -0
  78. data/spec/dummy/bin/bundle +3 -0
  79. data/spec/dummy/bin/rails +4 -0
  80. data/spec/dummy/bin/rake +4 -0
  81. data/spec/dummy/config.ru +4 -0
  82. data/spec/dummy/config/application.rb +40 -0
  83. data/spec/dummy/config/boot.rb +5 -0
  84. data/spec/dummy/config/database.yml +26 -0
  85. data/spec/dummy/config/environment.rb +5 -0
  86. data/spec/dummy/config/environments/development.rb +29 -0
  87. data/spec/dummy/config/environments/production.rb +80 -0
  88. data/spec/dummy/config/environments/test.rb +36 -0
  89. data/spec/dummy/config/handcart.json +6 -0
  90. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  91. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  92. data/spec/dummy/config/initializers/handcart.rb +16 -0
  93. data/spec/dummy/config/initializers/inflections.rb +16 -0
  94. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  95. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  96. data/spec/dummy/config/initializers/session_store.rb +3 -0
  97. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  98. data/spec/dummy/config/locales/en.yml +12 -0
  99. data/spec/dummy/config/routes.rb +23 -0
  100. data/spec/dummy/db/migrate/20131010194534_create_companies.rb +10 -0
  101. data/spec/dummy/db/migrate/20131016183624_add_active_to_companies.rb +5 -0
  102. data/spec/dummy/db/schema.rb +41 -0
  103. data/spec/dummy/log/development.log +14 -0
  104. data/spec/dummy/log/test.log +786 -0
  105. data/spec/dummy/public/404.html +58 -0
  106. data/spec/dummy/public/422.html +58 -0
  107. data/spec/dummy/public/500.html +57 -0
  108. data/spec/dummy/spec/models/company_spec.rb +36 -0
  109. data/spec/dummy/spec/routing/custom_constraints_routing_spec.rb +37 -0
  110. data/spec/dummy/tmp/cache/assets/development/sass/27d34b7cbcb5b92ab03220c4d4b91379cc64c2c0/layout.css.scssc +0 -0
  111. data/spec/dummy/tmp/cache/assets/development/sass/dc98e44780f42e6521ebbf14c4db22f6a78c41ef/layout.css.scssc +0 -0
  112. data/spec/dummy/tmp/cache/assets/development/sprockets/05974a1f812cf4a61bb242d48722fd19 +0 -0
  113. data/spec/dummy/tmp/cache/assets/development/sprockets/063a74a7c73c9501ee373ef00111f159 +0 -0
  114. data/spec/dummy/tmp/cache/assets/development/sprockets/073d2b13ed9366ce539940749eb3844d +0 -0
  115. data/spec/dummy/tmp/cache/assets/development/sprockets/0d76367ded60510a66afc3dea891e76a +0 -0
  116. data/spec/dummy/tmp/cache/assets/development/sprockets/106c3f4e1fc71e9dc70abae55d432886 +0 -0
  117. data/spec/dummy/tmp/cache/assets/development/sprockets/13ae4613233656a42188d4d3ddbb7fc1 +0 -0
  118. data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  119. data/spec/dummy/tmp/cache/assets/development/sprockets/18c826ba1d6dac1633cae2da25c0402a +0 -0
  120. data/spec/dummy/tmp/cache/assets/development/sprockets/247df6a90ce931f763db1ade5227d4b1 +0 -0
  121. data/spec/dummy/tmp/cache/assets/development/sprockets/2860df473a6cf4c483cd6f251fea3ae0 +0 -0
  122. data/spec/dummy/tmp/cache/assets/development/sprockets/2a99072e783dcef4637b38221531ea61 +0 -0
  123. data/spec/dummy/tmp/cache/assets/development/sprockets/2ab4b3177ab6c9d837c0905b61eedad5 +0 -0
  124. data/spec/dummy/tmp/cache/assets/development/sprockets/2b84c9cc30f71e24310dd1a4381caae8 +0 -0
  125. data/spec/dummy/tmp/cache/assets/development/sprockets/2bebf0981bc585e24939ca8ffe10081c +0 -0
  126. data/spec/dummy/tmp/cache/assets/development/sprockets/2c45a1517014fd239c930e48a71a93f0 +0 -0
  127. data/spec/dummy/tmp/cache/assets/development/sprockets/2d5147f4ea70131b4e330cab38aeb1a1 +0 -0
  128. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  129. data/spec/dummy/tmp/cache/assets/development/sprockets/3124588878c79981009129f32d5fe408 +0 -0
  130. data/spec/dummy/tmp/cache/assets/development/sprockets/33325c558d8db2071bf8a938517e5af2 +0 -0
  131. data/spec/dummy/tmp/cache/assets/development/sprockets/350c8c72b1dbd7a84f85424b5cd4def1 +0 -0
  132. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  133. data/spec/dummy/tmp/cache/assets/development/sprockets/3a3d69c38e3b3d20e94420ebebd05a69 +0 -0
  134. data/spec/dummy/tmp/cache/assets/development/sprockets/3b1656b46a35a6120c3407b930d468ba +0 -0
  135. data/spec/dummy/tmp/cache/assets/development/sprockets/3c0fc39d9b84afb4937545b620cd2d72 +0 -0
  136. data/spec/dummy/tmp/cache/assets/development/sprockets/3fa878a57cb0b42be266336564609b18 +0 -0
  137. data/spec/dummy/tmp/cache/assets/development/sprockets/40f26b5e75d0f747e691c0b38529fb59 +0 -0
  138. data/spec/dummy/tmp/cache/assets/development/sprockets/42aa8e53e39d8f5247f1b3e89cb00adc +0 -0
  139. data/spec/dummy/tmp/cache/assets/development/sprockets/42e1f4c72bf58cf112dd11eae8ee768b +0 -0
  140. data/spec/dummy/tmp/cache/assets/development/sprockets/433be3db83a4d9f93f5d1fa2ae3bde4e +0 -0
  141. data/spec/dummy/tmp/cache/assets/development/sprockets/4b6f9f46d7a2e230321d7f8df06ea470 +0 -0
  142. data/spec/dummy/tmp/cache/assets/development/sprockets/4c17c77b444339bb3ab293047da0ff0d +0 -0
  143. data/spec/dummy/tmp/cache/assets/development/sprockets/4ee93c096bb850d38032eb457afebf69 +0 -0
  144. data/spec/dummy/tmp/cache/assets/development/sprockets/4f25edc4354919ba67721f488ba10e12 +0 -0
  145. data/spec/dummy/tmp/cache/assets/development/sprockets/58fb821d4a4a44fdb2a89d4f487a8390 +0 -0
  146. data/spec/dummy/tmp/cache/assets/development/sprockets/5f97a76ac644497413f4c8dc547ddea6 +0 -0
  147. data/spec/dummy/tmp/cache/assets/development/sprockets/6076ab56e9c62fd04155d6f6c43e575e +0 -0
  148. data/spec/dummy/tmp/cache/assets/development/sprockets/60b75d9635ed84e08a0b9a245d8a3202 +0 -0
  149. data/spec/dummy/tmp/cache/assets/development/sprockets/64ad9f343408809fdfb1df851186853d +0 -0
  150. data/spec/dummy/tmp/cache/assets/development/sprockets/6e79870e51ea835a6847f8c65e23e14b +0 -0
  151. data/spec/dummy/tmp/cache/assets/development/sprockets/6e9d2e7aafa45c939731291fa453b8c2 +0 -0
  152. data/spec/dummy/tmp/cache/assets/development/sprockets/78f915513059378e161ceb6f2d14fbd9 +0 -0
  153. data/spec/dummy/tmp/cache/assets/development/sprockets/8102cf6724f489a310fe3a6b764bb2e9 +0 -0
  154. data/spec/dummy/tmp/cache/assets/development/sprockets/81108a1123b15b10c7f7f2e0d1207267 +0 -0
  155. data/spec/dummy/tmp/cache/assets/development/sprockets/81b3dcc0aa61577b08de13ba5633dbc4 +0 -0
  156. data/spec/dummy/tmp/cache/assets/development/sprockets/83e686634b5ac6d4b183677ed2edda8b +0 -0
  157. data/spec/dummy/tmp/cache/assets/development/sprockets/8581aae276f167a9b7b2158641b0bf87 +0 -0
  158. data/spec/dummy/tmp/cache/assets/development/sprockets/94cb3819408e525700729fbd473432c8 +0 -0
  159. data/spec/dummy/tmp/cache/assets/development/sprockets/99eb5e50b6d0e5d0d6b6c37cbde33864 +0 -0
  160. data/spec/dummy/tmp/cache/assets/development/sprockets/a7c86e9a777f7789dd1c78d26a662a87 +0 -0
  161. data/spec/dummy/tmp/cache/assets/development/sprockets/a9e19eb45005fa24bc8b90b6a374089f +0 -0
  162. data/spec/dummy/tmp/cache/assets/development/sprockets/ac4492393938e58cede2b6277afb0bc6 +0 -0
  163. data/spec/dummy/tmp/cache/assets/development/sprockets/ad1d96635f4dae7eb22d1984947d7440 +0 -0
  164. data/spec/dummy/tmp/cache/assets/development/sprockets/af718c632887ccb6c1c35c4b65c61293 +0 -0
  165. data/spec/dummy/tmp/cache/assets/development/sprockets/b2f45720a78d375468b99bb25f121c4e +0 -0
  166. data/spec/dummy/tmp/cache/assets/development/sprockets/b559f2694561fc6c44e3319f507de1e7 +0 -0
  167. data/spec/dummy/tmp/cache/assets/development/sprockets/b6e8c6ba59755a8fe132457f81065f96 +0 -0
  168. data/spec/dummy/tmp/cache/assets/development/sprockets/b796b57f310287a7a619afa9d5b99952 +0 -0
  169. data/spec/dummy/tmp/cache/assets/development/sprockets/b7c36a1c00d7804d9e827d704c0dd811 +0 -0
  170. data/spec/dummy/tmp/cache/assets/development/sprockets/bc28a210f3df576c74059aff8233eae3 +0 -0
  171. data/spec/dummy/tmp/cache/assets/development/sprockets/bc414fbd5123e40c4f5e69f4c294f489 +0 -0
  172. data/spec/dummy/tmp/cache/assets/development/sprockets/c0181c32e0ed10ec8fa3049f9a80f551 +0 -0
  173. data/spec/dummy/tmp/cache/assets/development/sprockets/c17130f66131c854d6f8c2196902b596 +0 -0
  174. data/spec/dummy/tmp/cache/assets/development/sprockets/c4c0e10aa5c21ece42c0bfe998a5d8c0 +0 -0
  175. data/spec/dummy/tmp/cache/assets/development/sprockets/c63bcc000975adbdf423db3ad43eb93f +0 -0
  176. data/spec/dummy/tmp/cache/assets/development/sprockets/c962f9220062a6407dfc7d9447565273 +0 -0
  177. data/spec/dummy/tmp/cache/assets/development/sprockets/cb8b538b6fce61b500edebe63156bf62 +0 -0
  178. data/spec/dummy/tmp/cache/assets/development/sprockets/cfcef2015b7df990ed90006632877389 +0 -0
  179. data/spec/dummy/tmp/cache/assets/development/sprockets/cff56d2d0a8b8a25d4b0388d242be9c8 +0 -0
  180. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  181. data/spec/dummy/tmp/cache/assets/development/sprockets/d32fc7356f764b22ecbcebbcb9b47ee1 +0 -0
  182. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  183. data/spec/dummy/tmp/cache/assets/development/sprockets/d776667bae72eb3d582da5803fc931ca +0 -0
  184. data/spec/dummy/tmp/cache/assets/development/sprockets/dfc307d14a0cf64cf8c3a4e94fdbcfb9 +0 -0
  185. data/spec/dummy/tmp/cache/assets/development/sprockets/e4b6570b82329477bc7043183b64b105 +0 -0
  186. data/spec/dummy/tmp/cache/assets/development/sprockets/eff1316ad12dd5b8f4cbf0ba9e448229 +0 -0
  187. data/spec/dummy/tmp/cache/assets/development/sprockets/f2348b747b81ca6e3a24d5bd0b7023c4 +0 -0
  188. data/spec/dummy/tmp/cache/assets/development/sprockets/f6f921309fcc78b6850abcf2418279fe +0 -0
  189. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  190. data/spec/dummy/tmp/cache/assets/development/sprockets/f7e1dbf50c19c9d439de52caa4296164 +0 -0
  191. data/spec/dummy/tmp/cache/assets/development/sprockets/ff2adfc3ed446b68ac2d0077e8af34e2 +0 -0
  192. data/spec/factories/companies.rb +7 -0
  193. data/spec/factories/handcart_ip_addresses.rb +8 -0
  194. data/spec/factories/handcart_subdomains.rb +5 -0
  195. data/spec/models/handcart/base_ip_strategy_spec.rb +23 -0
  196. data/spec/models/handcart/containment_strategy_spec.rb +23 -0
  197. data/spec/models/handcart/domain_constraint_spec.rb +38 -0
  198. data/spec/models/handcart/engine_spec.rb +14 -0
  199. data/spec/models/handcart/handcart_spec.rb +38 -0
  200. data/spec/models/handcart/inclusion_strategy_spec.rb +29 -0
  201. data/spec/models/handcart/ip_address_spec.rb +51 -0
  202. data/spec/models/handcart/ip_authorization_spec.rb +17 -0
  203. data/spec/models/handcart/subdomain_spec.rb +153 -0
  204. data/spec/routing/handcart/ip_addresses_routing_spec.rb +38 -0
  205. data/spec/routing/handcart/subdomains_routing_spec.rb +38 -0
  206. data/spec/spec_helper.rb +65 -0
  207. data/spec/support/subdomains.rb +26 -0
  208. metadata +565 -0
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the Rails application.
5
+ Dummy::Application.initialize!
@@ -0,0 +1,29 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
12
+ # Show full error reports and disable caching.
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send.
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger.
20
+ config.active_support.deprecation = :log
21
+
22
+ # Raise an error on page load if there are pending migrations
23
+ config.active_record.migration_error = :page_load
24
+
25
+ # Debug mode disables concatenation and preprocessing of assets.
26
+ # This option may cause significant delays in view rendering with a large
27
+ # number of complex assets.
28
+ config.assets.debug = true
29
+ end
@@ -0,0 +1,80 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # Code is not reloaded between requests.
5
+ config.cache_classes = true
6
+
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.
14
+ config.consider_all_requests_local = false
15
+ config.action_controller.perform_caching = true
16
+
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).
23
+ config.serve_static_assets = false
24
+
25
+ # Compress JavaScripts and CSS.
26
+ config.assets.js_compressor = :uglifier
27
+ # config.assets.css_compressor = :sass
28
+
29
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
30
+ config.assets.compile = false
31
+
32
+ # Generate digests for assets URLs.
33
+ config.assets.digest = true
34
+
35
+ # Version of your assets, change this if you want to expire all your assets.
36
+ config.assets.version = '1.0'
37
+
38
+ # Specifies the header that your server uses for sending files.
39
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
40
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
41
+
42
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43
+ # config.force_ssl = true
44
+
45
+ # Set to :debug to see everything in the log.
46
+ config.log_level = :info
47
+
48
+ # Prepend all log lines with the following tags.
49
+ # config.log_tags = [ :subdomain, :uuid ]
50
+
51
+ # Use a different logger for distributed setups.
52
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
53
+
54
+ # Use a different cache store in production.
55
+ # config.cache_store = :mem_cache_store
56
+
57
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
58
+ # config.action_controller.asset_host = "http://assets.example.com"
59
+
60
+ # Precompile additional assets.
61
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
62
+ # config.assets.precompile += %w( search.js )
63
+
64
+ # Ignore bad email addresses and do not raise email delivery errors.
65
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
66
+ # config.action_mailer.raise_delivery_errors = false
67
+
68
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
+ # the I18n.default_locale when a translation can not be found).
70
+ config.i18n.fallbacks = true
71
+
72
+ # Send deprecation notices to registered listeners.
73
+ config.active_support.deprecation = :notify
74
+
75
+ # Disable automatic flushing of the log to improve performance.
76
+ # config.autoflush_log = false
77
+
78
+ # Use default logging formatter so that PID and timestamp are not suppressed.
79
+ config.log_formatter = ::Logger::Formatter.new
80
+ end
@@ -0,0 +1,36 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
16
+ config.serve_static_assets = true
17
+ config.static_cache_control = "public, max-age=3600"
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Print deprecation notices to the stderr.
35
+ config.active_support.deprecation = :stderr
36
+ end
@@ -0,0 +1,6 @@
1
+ {
2
+ "development" : { "domain_constraint" : "lvh.me" },
3
+ "test" : { "domain_constraint" : "dummy.test" },
4
+ "staging" : { "domain_constraint" : "dummy.dev" },
5
+ "production" : { "domain_constraint" : "dummy.dev" }
6
+ }
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ Handcart.setup do |config|
2
+ # Set the name of the class which `acts_as_handcart`
3
+ config.handcart_class = "Company"
4
+
5
+ # Set this to change where the handcart show route is
6
+ # config.handcart_show_path = "companies"
7
+
8
+ # Set the strategy to use for IP Authorization
9
+ config.ip_authorization_strategy = :inclusion
10
+
11
+ # What Rails environments enable IP blocking and blacklisting
12
+ config.global_ip_blocking_enabled_environments = ["development", "production"]
13
+
14
+ # What Rails environments enable IP forwarding and forbidden redirects
15
+ config.global_ip_forwarding_enabled_environments = ["development", "staging", "production"]
16
+ end
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = '41bfa9bc1248cb9bbfcde74c97c181156e06293060015150f25c26882fdfbf28012183a4c0731b657330ee1f1e5bc0d70748158eae1d60987b94a3696d1373dd'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,12 @@
1
+ en:
2
+ layouts:
3
+ application:
4
+ navbar:
5
+ main_app: 'Dummy'
6
+ default_title: 'Dummy'
7
+ default_sub_title: ''
8
+ title: "Dummy : %{title}"
9
+ public:
10
+ default_title: 'Dummy'
11
+ default_sub_title: ''
12
+ title: "Dummy : %{title}"
@@ -0,0 +1,23 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount Handcart::Engine => "/handcart"
4
+
5
+ constraints(subdomain: /master/) do
6
+ scope module: 'master' do
7
+ resources :companies
8
+ match '/', to: 'dashboard#index', via: [:get], as: :master_root
9
+ end
10
+ end
11
+
12
+ constraints(Handcart::Subdomain) do
13
+ resources :custom_constraints, only: [:index], constraints: Handcart::SettingConstraint.new(:enables?, :custom_constraints)
14
+ resources :ip_addresses, only: [:index]
15
+ match '/', to: 'subdomain#index', via: [:get], as: :subdomain_root
16
+ end
17
+
18
+ constraints Handcart::DomainConstraint.default_constraint do
19
+ match '/forbidden', to: 'public#forbidden', as: :public_forbidden, via: [:get]
20
+ root to: 'public#index'
21
+ end
22
+
23
+ end
@@ -0,0 +1,10 @@
1
+ class CreateCompanies < ActiveRecord::Migration
2
+ def change
3
+ create_table :companies do |t|
4
+ t.string :name
5
+ t.integer :subdomain_id, index: true
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ class AddActiveToCompanies < ActiveRecord::Migration
2
+ def change
3
+ add_column :companies, :active, :boolean, default: false
4
+ end
5
+ end
@@ -0,0 +1,41 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20131203000934) do
15
+
16
+ create_table "companies", force: true do |t|
17
+ t.string "name"
18
+ t.integer "subdomain_id"
19
+ t.datetime "created_at"
20
+ t.datetime "updated_at"
21
+ t.boolean "active", default: false
22
+ end
23
+
24
+ create_table "handcart_ip_addresses", force: true do |t|
25
+ t.string "address"
26
+ t.string "subnet_mask"
27
+ t.integer "handcart_id"
28
+ t.boolean "blacklisted", default: false
29
+ t.datetime "created_at"
30
+ t.datetime "updated_at"
31
+ end
32
+
33
+ add_index "handcart_ip_addresses", ["handcart_id"], name: "index_handcart_ip_addresses_on_handcart_id", using: :btree
34
+
35
+ create_table "handcart_subdomains", force: true do |t|
36
+ t.string "name"
37
+ t.datetime "created_at"
38
+ t.datetime "updated_at"
39
+ end
40
+
41
+ end
@@ -0,0 +1,14 @@
1
+  (184.6ms) DROP DATABASE IF EXISTS `handcart_dummy_test`
2
+  (0.6ms) CREATE DATABASE `handcart_dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
3
+  (87.8ms) CREATE TABLE `companies` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `subdomain_id` int(11), `created_at` datetime, `updated_at` datetime, `active` tinyint(1) DEFAULT 0) ENGINE=InnoDB
4
+  (74.1ms) CREATE TABLE `handcart_ip_addresses` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `address` varchar(255), `subnet_mask` varchar(255), `handcart_id` int(11), `blacklisted` tinyint(1) DEFAULT 0, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
5
+  (142.0ms) CREATE INDEX `index_handcart_ip_addresses_on_handcart_id` USING btree ON `handcart_ip_addresses` (`handcart_id`) 
6
+  (71.5ms) CREATE TABLE `handcart_subdomains` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
7
+  (70.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
8
+  (174.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
9
+  (0.3ms) SELECT version FROM `schema_migrations`
10
+  (32.0ms) INSERT INTO `schema_migrations` (version) VALUES ('20131203000934')
11
+  (33.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20131010194534')
12
+  (33.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20131016183624')
13
+  (33.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20131009165427')
14
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT `schema_migrations`.* FROM `schema_migrations`
@@ -0,0 +1,786 @@
1
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2
+  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS
3
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
4
+  (0.2ms) SELECT DATABASE() as db
5
+  (0.6ms) select table_name from information_schema.views where table_schema = 'handcart_dummy_test'
6
+  (88.8ms) TRUNCATE TABLE `companies`;
7
+  (33.0ms) TRUNCATE TABLE `handcart_ip_addresses`;
8
+  (33.3ms) TRUNCATE TABLE `handcart_subdomains`;
9
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
10
+  (0.1ms) BEGIN
11
+  (0.1ms) COMMIT
12
+  (0.1ms) BEGIN
13
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'parker-1' LIMIT 1
14
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'parker-1', '2014-02-08 22:18:33')
15
+ SQL (0.2ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'MyString-1', 1, '2014-02-08 22:18:33')
16
+ Handcart::IpAddress Load (0.5ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`handcart_id` = 1
17
+ SQL (0.4ms) DELETE FROM `handcart_subdomains` WHERE `handcart_subdomains`.`id` = 1
18
+ SQL (0.4ms) DELETE FROM `companies` WHERE `companies`.`id` = 1
19
+ Handcart::Subdomain Load (0.5ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`id` = 1 LIMIT 1
20
+  (30.5ms) ROLLBACK
21
+  (0.2ms) BEGIN
22
+  (0.2ms) COMMIT
23
+  (0.3ms) BEGIN
24
+ Handcart::Subdomain Exists (0.7ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'kuvalis-2' LIMIT 1
25
+ SQL (0.5ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'kuvalis-2', '2014-02-08 22:18:33')
26
+  (35.5ms) ROLLBACK
27
+  (0.2ms) BEGIN
28
+  (0.2ms) COMMIT
29
+  (0.2ms) BEGIN
30
+  (0.2ms) ROLLBACK
31
+  (0.1ms) BEGIN
32
+  (0.3ms) COMMIT
33
+  (0.2ms) BEGIN
34
+  (0.2ms) ROLLBACK
35
+  (0.3ms) BEGIN
36
+  (0.2ms) COMMIT
37
+  (0.2ms) BEGIN
38
+ Handcart::Subdomain Exists (0.7ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'okunevasawayn-3' LIMIT 1
39
+ SQL (0.5ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'okunevasawayn-3', '2014-02-08 22:18:33')
40
+ SQL (0.5ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'MyString-3', 3, '2014-02-08 22:18:33')
41
+  (31.7ms) ROLLBACK
42
+  (0.1ms) BEGIN
43
+  (0.1ms) COMMIT
44
+  (0.1ms) BEGIN
45
+ Handcart::Subdomain Exists (0.4ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'johnswuckert-4' LIMIT 1
46
+ SQL (0.5ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'johnswuckert-4', '2014-02-08 22:18:33')
47
+ SQL (0.5ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'Planet Express', 4, '2014-02-08 22:18:33')
48
+ Handcart::IpAddress Exists (0.3ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '40.183.179.85' LIMIT 1
49
+ SQL (0.2ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `handcart_id`, `subnet_mask`, `updated_at`) VALUES ('40.183.179.85', '2014-02-08 22:18:33', 3, '255.255.255.0', '2014-02-08 22:18:33')
50
+  (37.7ms) ROLLBACK
51
+  (0.2ms) BEGIN
52
+  (0.2ms) COMMIT
53
+  (0.1ms) BEGIN
54
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'bailey-5' LIMIT 1
55
+ SQL (0.4ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'bailey-5', '2014-02-08 22:18:33')
56
+ SQL (0.4ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'MyString-4', 5, '2014-02-08 22:18:33')
57
+ Handcart::IpAddress Exists (0.5ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '10.10.9.1' LIMIT 1
58
+ SQL (0.4ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `handcart_id`, `subnet_mask`, `updated_at`) VALUES ('10.10.9.1', '2014-02-08 22:18:33', 4, '255.255.255.0', '2014-02-08 22:18:33')
59
+ Handcart::IpAddress Exists (0.4ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE (`handcart_ip_addresses`.`address` = '10.10.9.1' AND `handcart_ip_addresses`.`id` != 2) LIMIT 1
60
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'pouros-6' LIMIT 1
61
+ SQL (0.4ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'pouros-6', '2014-02-08 22:18:33')
62
+ SQL (0.5ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'MyString-5', 6, '2014-02-08 22:18:33')
63
+ Handcart::IpAddress Exists (0.5ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '10.10.9.1' LIMIT 1
64
+  (33.8ms) ROLLBACK
65
+  (0.3ms) BEGIN
66
+  (0.2ms) COMMIT
67
+  (0.2ms) BEGIN
68
+ Handcart::Subdomain Exists (0.6ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'kuvalishomenick-7' LIMIT 1
69
+ SQL (0.5ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'kuvalishomenick-7', '2014-02-08 22:18:33')
70
+ SQL (0.5ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'MyString-6', 7, '2014-02-08 22:18:33')
71
+ Handcart::IpAddress Exists (0.6ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` IS NULL LIMIT 1
72
+  (35.5ms) ROLLBACK
73
+  (0.2ms) BEGIN
74
+  (0.2ms) COMMIT
75
+  (0.2ms) BEGIN
76
+ Handcart::Subdomain Exists (0.4ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'planet' LIMIT 1
77
+ SQL (0.3ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'planet', '2014-02-08 22:18:33')
78
+ Handcart::Subdomain Exists (0.3ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'moms' LIMIT 1
79
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'moms', '2014-02-08 22:18:33')
80
+ SQL (0.4ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'Planet Express', 8, '2014-02-08 22:18:33')
81
+ SQL (0.3ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'Moms Friendly Robot Company', 9, '2014-02-08 22:18:33')
82
+ Handcart::IpAddress Exists (0.4ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '10.10.9.1' LIMIT 1
83
+ SQL (0.4ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `handcart_id`, `subnet_mask`, `updated_at`) VALUES ('10.10.9.1', '2014-02-08 22:18:33', 7, '255.255.255.128', '2014-02-08 22:18:33')
84
+ Handcart::IpAddress Exists (0.6ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE (`handcart_ip_addresses`.`address` = '10.10.9.1' AND `handcart_ip_addresses`.`id` != 3) LIMIT 1
85
+ Handcart::IpAddress Exists (0.4ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '10.10.9.1' LIMIT 1
86
+  (35.4ms) ROLLBACK
87
+  (0.3ms) BEGIN
88
+  (0.2ms) COMMIT
89
+  (0.2ms) BEGIN
90
+ Handcart::Subdomain Exists (0.7ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'erdman-8' LIMIT 1
91
+ SQL (0.5ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'erdman-8', '2014-02-08 22:18:33')
92
+ SQL (0.5ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'MyString-7', 10, '2014-02-08 22:18:33')
93
+ Handcart::IpAddress Exists (0.5ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '256.256.256.256' LIMIT 1
94
+  (37.4ms) ROLLBACK
95
+  (0.2ms) BEGIN
96
+  (0.1ms) COMMIT
97
+  (0.1ms) BEGIN
98
+ Handcart::Subdomain Exists (0.4ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'cremin-9' LIMIT 1
99
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'cremin-9', '2014-02-08 22:18:33')
100
+ SQL (0.1ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'MyString-8', 11, '2014-02-08 22:18:33')
101
+ Handcart::IpAddress Exists (0.2ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '57.191.46.173' LIMIT 1
102
+  (35.6ms) ROLLBACK
103
+  (0.1ms) BEGIN
104
+  (0.1ms) COMMIT
105
+  (0.0ms) BEGIN
106
+ Handcart::Subdomain Exists (0.4ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'konopelski-10' LIMIT 1
107
+ SQL (0.3ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'konopelski-10', '2014-02-08 22:18:33')
108
+ SQL (0.5ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'MyString-9', 12, '2014-02-08 22:18:33')
109
+ Handcart::IpAddress Exists (0.6ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '99.209.20.115' LIMIT 1
110
+  (32.3ms) ROLLBACK
111
+  (0.3ms) BEGIN
112
+  (0.2ms) COMMIT
113
+  (0.2ms) BEGIN
114
+ Handcart::Subdomain Exists (0.4ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'lubowitz-11' LIMIT 1
115
+ SQL (0.3ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'lubowitz-11', '2014-02-08 22:18:33')
116
+ SQL (0.5ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'MyString-10', 13, '2014-02-08 22:18:33')
117
+ Handcart::IpAddress Exists (0.6ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '238.86.78.252' LIMIT 1
118
+  (37.0ms) ROLLBACK
119
+  (0.1ms) BEGIN
120
+  (0.0ms) COMMIT
121
+  (0.0ms) BEGIN
122
+  (0.1ms) ROLLBACK
123
+  (0.1ms) BEGIN
124
+  (0.1ms) COMMIT
125
+  (0.0ms) BEGIN
126
+  (0.1ms) ROLLBACK
127
+  (0.3ms) BEGIN
128
+  (0.2ms) COMMIT
129
+  (0.2ms) BEGIN
130
+  (0.2ms) ROLLBACK
131
+  (0.3ms) BEGIN
132
+  (0.2ms) COMMIT
133
+  (0.2ms) BEGIN
134
+ Handcart::Subdomain Exists (0.7ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'boyer-12' LIMIT 1
135
+ SQL (0.4ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'boyer-12', '2014-02-08 22:18:33')
136
+ SQL (0.4ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'Planet Express', 14, '2014-02-08 22:18:33')
137
+ Handcart::IpAddress Exists (0.4ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '10.10.9.1' LIMIT 1
138
+ SQL (0.4ms) INSERT INTO `handcart_ip_addresses` (`address`, `blacklisted`, `created_at`, `handcart_id`, `subnet_mask`, `updated_at`) VALUES ('10.10.9.1', 1, '2014-02-08 22:18:33', 13, '255.255.255.128', '2014-02-08 22:18:33')
139
+ Handcart::IpAddress Load (0.5ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`handcart_id` = 13 AND (`handcart_ip_addresses`.`blacklisted` != 1)
140
+  (31.8ms) ROLLBACK
141
+  (0.1ms) BEGIN
142
+  (0.1ms) COMMIT
143
+  (0.1ms) BEGIN
144
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'cormierpaucek-13' LIMIT 1
145
+ SQL (0.5ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'cormierpaucek-13', '2014-02-08 22:18:33')
146
+ SQL (0.5ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'Planet Express', 15, '2014-02-08 22:18:33')
147
+ Handcart::IpAddress Exists (0.6ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '10.10.9.1' LIMIT 1
148
+ SQL (0.5ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `handcart_id`, `subnet_mask`, `updated_at`) VALUES ('10.10.9.1', '2014-02-08 22:18:33', 14, '255.255.255.128', '2014-02-08 22:18:33')
149
+ Handcart::IpAddress Load (0.7ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`handcart_id` = 14 AND (`handcart_ip_addresses`.`blacklisted` != 1)
150
+  (39.7ms) ROLLBACK
151
+  (0.2ms) BEGIN
152
+  (0.1ms) COMMIT
153
+  (0.1ms) BEGIN
154
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'lynchmacejkovic-14' LIMIT 1
155
+ SQL (0.4ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:33', 'lynchmacejkovic-14', '2014-02-08 22:18:33')
156
+ SQL (0.4ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:33', 'Planet Express', 16, '2014-02-08 22:18:33')
157
+ Handcart::IpAddress Exists (0.5ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '10.10.9.1' LIMIT 1
158
+ SQL (0.3ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `handcart_id`, `subnet_mask`, `updated_at`) VALUES ('10.10.9.1', '2014-02-08 22:18:33', 15, '255.255.255.128', '2014-02-08 22:18:33')
159
+ Handcart::IpAddress Load (0.4ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`handcart_id` = 15 AND (`handcart_ip_addresses`.`blacklisted` != 1)
160
+  (33.2ms) ROLLBACK
161
+  (0.3ms) BEGIN
162
+  (0.2ms) COMMIT
163
+  (0.2ms) BEGIN
164
+  (0.2ms) ROLLBACK
165
+  (0.2ms) BEGIN
166
+  (0.1ms) COMMIT
167
+  (0.3ms) BEGIN
168
+  (0.2ms) ROLLBACK
169
+  (0.2ms) BEGIN
170
+  (0.2ms) COMMIT
171
+  (0.2ms) BEGIN
172
+  (0.1ms) ROLLBACK
173
+  (0.2ms) BEGIN
174
+  (0.2ms) COMMIT
175
+  (0.2ms) BEGIN
176
+ Handcart::Subdomain Exists (0.4ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'heller-15' LIMIT 1
177
+ SQL (0.5ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'heller-15', '2014-02-08 22:18:34')
178
+ SQL (0.4ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:34', 'Planet Express', 17, '2014-02-08 22:18:34')
179
+ Handcart::IpAddress Exists (0.4ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '11.174.183.49' LIMIT 1
180
+ SQL (0.4ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `handcart_id`, `subnet_mask`, `updated_at`) VALUES ('11.174.183.49', '2014-02-08 22:18:34', 16, '255.255.255.0', '2014-02-08 22:18:34')
181
+ Handcart::IpAddress Exists (0.4ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '88.127.10.94' LIMIT 1
182
+ SQL (0.3ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `handcart_id`, `subnet_mask`, `updated_at`) VALUES ('88.127.10.94', '2014-02-08 22:18:34', 16, '255.255.255.0', '2014-02-08 22:18:34')
183
+ Handcart::IpAddress Load (0.5ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`handcart_id` = 16 AND (`handcart_ip_addresses`.`blacklisted` != 1)
184
+ Handcart::IpAddress Load (0.5ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`handcart_id` = 16 AND (`handcart_ip_addresses`.`blacklisted` != 1)
185
+ Handcart::IpAddress Load (0.6ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`handcart_id` = 16 AND (`handcart_ip_addresses`.`blacklisted` != 1)
186
+ Handcart::IpAddress Load (0.3ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`handcart_id` = 16 AND (`handcart_ip_addresses`.`blacklisted` != 1)
187
+  (33.1ms) ROLLBACK
188
+  (0.2ms) BEGIN
189
+  (0.2ms) COMMIT
190
+  (0.2ms) BEGIN
191
+  (0.2ms) ROLLBACK
192
+  (0.2ms) BEGIN
193
+  (0.3ms) COMMIT
194
+  (0.3ms) BEGIN
195
+  (0.2ms) ROLLBACK
196
+  (0.3ms) BEGIN
197
+  (0.2ms) COMMIT
198
+  (0.2ms) BEGIN
199
+  (0.2ms) ROLLBACK
200
+  (0.3ms) BEGIN
201
+  (0.2ms) COMMIT
202
+  (0.2ms) BEGIN
203
+  (0.2ms) ROLLBACK
204
+  (0.3ms) BEGIN
205
+  (0.3ms) COMMIT
206
+  (0.2ms) BEGIN
207
+  (0.3ms) ROLLBACK
208
+  (0.2ms) BEGIN
209
+  (0.2ms) COMMIT
210
+  (0.1ms) BEGIN
211
+ Handcart::Subdomain Exists (0.3ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'example' LIMIT 1
212
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'example', '2014-02-08 22:18:34')
213
+ SQL (0.2ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:34', 'MyString-11', 18, '2014-02-08 22:18:34')
214
+ Handcart::Subdomain Load (0.2ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'example' LIMIT 1
215
+ Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`subdomain_id` = 18 ORDER BY `companies`.`id` ASC LIMIT 1
216
+  (28.6ms) ROLLBACK
217
+  (0.2ms) BEGIN
218
+  (0.2ms) COMMIT
219
+  (0.2ms) BEGIN
220
+ Handcart::Subdomain Exists (0.4ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'example' LIMIT 1
221
+ SQL (0.3ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'example', '2014-02-08 22:18:34')
222
+ SQL (0.3ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:34', 'MyString-12', 19, '2014-02-08 22:18:34')
223
+ Handcart::Subdomain Load (0.5ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'example' LIMIT 1
224
+ Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`subdomain_id` = 19 ORDER BY `companies`.`id` ASC LIMIT 1
225
+  (36.8ms) ROLLBACK
226
+  (0.2ms) BEGIN
227
+  (0.2ms) COMMIT
228
+  (0.1ms) BEGIN
229
+ Handcart::Subdomain Exists (0.8ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'example' LIMIT 1
230
+ SQL (0.3ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'example', '2014-02-08 22:18:34')
231
+ SQL (0.5ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:34', 'MyString-13', 20, '2014-02-08 22:18:34')
232
+ Handcart::Subdomain Load (0.6ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'example' LIMIT 1
233
+ Company Load (0.6ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`subdomain_id` = 20 ORDER BY `companies`.`id` ASC LIMIT 1
234
+  (37.7ms) ROLLBACK
235
+  (0.3ms) BEGIN
236
+  (0.2ms) COMMIT
237
+  (0.2ms) BEGIN
238
+  (0.3ms) ROLLBACK
239
+  (0.2ms) BEGIN
240
+  (0.2ms) COMMIT
241
+  (0.2ms) BEGIN
242
+  (0.2ms) ROLLBACK
243
+  (0.2ms) BEGIN
244
+  (0.2ms) COMMIT
245
+  (0.2ms) BEGIN
246
+  (0.2ms) ROLLBACK
247
+  (0.2ms) BEGIN
248
+  (0.2ms) COMMIT
249
+  (0.2ms) BEGIN
250
+  (0.3ms) ROLLBACK
251
+  (0.3ms) BEGIN
252
+  (0.2ms) COMMIT
253
+  (0.2ms) BEGIN
254
+  (0.3ms) ROLLBACK
255
+  (0.3ms) BEGIN
256
+  (0.4ms) COMMIT
257
+  (0.2ms) BEGIN
258
+  (0.1ms) ROLLBACK
259
+  (0.1ms) BEGIN
260
+  (0.1ms) COMMIT
261
+  (0.0ms) BEGIN
262
+  (0.1ms) ROLLBACK
263
+  (0.2ms) BEGIN
264
+  (0.1ms) COMMIT
265
+  (0.1ms) BEGIN
266
+ Handcart::Subdomain Exists (0.3ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'disabled' LIMIT 1
267
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'disabled', '2014-02-08 22:18:34')
268
+ SQL (0.2ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:34', 'Disabled Company', 21, '2014-02-08 22:18:34')
269
+ Handcart::Subdomain Load (0.2ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'disabled' LIMIT 1
270
+ Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`subdomain_id` = 21 ORDER BY `companies`.`id` ASC LIMIT 1
271
+  (35.3ms) ROLLBACK
272
+  (0.3ms) BEGIN
273
+  (0.3ms) COMMIT
274
+  (0.2ms) BEGIN
275
+ Handcart::Subdomain Exists (0.7ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'enabled' LIMIT 1
276
+ SQL (0.5ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'enabled', '2014-02-08 22:18:34')
277
+ SQL (0.2ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:34', 'Enabled Company', 22, '2014-02-08 22:18:34')
278
+ Handcart::Subdomain Load (0.3ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'enabled' LIMIT 1
279
+ Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`subdomain_id` = 22 ORDER BY `companies`.`id` ASC LIMIT 1
280
+  (38.0ms) ROLLBACK
281
+  (0.1ms) BEGIN
282
+  (0.1ms) COMMIT
283
+  (0.1ms) BEGIN
284
+  (0.1ms) ROLLBACK
285
+  (0.2ms) BEGIN
286
+  (0.2ms) COMMIT
287
+  (0.2ms) BEGIN
288
+  (0.2ms) ROLLBACK
289
+  (0.2ms) BEGIN
290
+  (0.2ms) COMMIT
291
+  (0.2ms) BEGIN
292
+  (0.2ms) ROLLBACK
293
+  (0.2ms) BEGIN
294
+  (0.2ms) COMMIT
295
+  (0.2ms) BEGIN
296
+  (0.2ms) ROLLBACK
297
+  (0.2ms) BEGIN
298
+  (0.1ms) COMMIT
299
+  (0.1ms) BEGIN
300
+  (0.1ms) ROLLBACK
301
+  (0.1ms) BEGIN
302
+  (0.1ms) COMMIT
303
+  (0.1ms) BEGIN
304
+  (0.2ms) ROLLBACK
305
+  (0.2ms) BEGIN
306
+  (0.1ms) COMMIT
307
+  (0.1ms) BEGIN
308
+  (0.2ms) ROLLBACK
309
+  (0.2ms) BEGIN
310
+  (0.1ms) COMMIT
311
+  (0.1ms) BEGIN
312
+  (0.1ms) ROLLBACK
313
+  (0.2ms) BEGIN
314
+  (0.1ms) COMMIT
315
+  (0.1ms) BEGIN
316
+  (0.1ms) ROLLBACK
317
+  (0.1ms) BEGIN
318
+  (0.1ms) COMMIT
319
+  (0.1ms) BEGIN
320
+  (0.1ms) ROLLBACK
321
+  (0.1ms) BEGIN
322
+  (0.1ms) COMMIT
323
+  (0.1ms) BEGIN
324
+  (0.1ms) ROLLBACK
325
+  (0.1ms) BEGIN
326
+  (0.1ms) COMMIT
327
+  (0.1ms) BEGIN
328
+  (0.1ms) ROLLBACK
329
+  (0.1ms) BEGIN
330
+  (0.1ms) COMMIT
331
+  (0.1ms) BEGIN
332
+  (0.1ms) ROLLBACK
333
+  (0.1ms) BEGIN
334
+  (0.1ms) COMMIT
335
+  (0.1ms) BEGIN
336
+  (0.1ms) ROLLBACK
337
+  (0.1ms) BEGIN
338
+  (0.1ms) COMMIT
339
+  (0.1ms) BEGIN
340
+  (0.1ms) ROLLBACK
341
+  (0.1ms) BEGIN
342
+  (0.1ms) COMMIT
343
+  (0.1ms) BEGIN
344
+ Handcart::Subdomain Exists (0.3ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'mark' LIMIT 1
345
+  (0.1ms) ROLLBACK
346
+  (0.1ms) BEGIN
347
+  (0.1ms) COMMIT
348
+  (0.1ms) BEGIN
349
+ Handcart::Subdomain Exists (0.3ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'larkin-16' LIMIT 1
350
+  (0.2ms) ROLLBACK
351
+  (0.2ms) BEGIN
352
+  (0.1ms) COMMIT
353
+  (0.1ms) BEGIN
354
+  (0.2ms) ROLLBACK
355
+  (0.2ms) BEGIN
356
+  (0.1ms) COMMIT
357
+  (0.2ms) BEGIN
358
+  (0.1ms) ROLLBACK
359
+  (0.1ms) BEGIN
360
+  (0.2ms) COMMIT
361
+  (0.2ms) BEGIN
362
+ Handcart::Subdomain Exists (0.1ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'mark' LIMIT 1
363
+ SQL (0.4ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'mark', '2014-02-08 22:18:34')
364
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE (`handcart_subdomains`.`name` = 'mark' AND `handcart_subdomains`.`id` != 23) LIMIT 1
365
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'MARK' LIMIT 1
366
+  (41.9ms) ROLLBACK
367
+  (0.4ms) BEGIN
368
+  (0.2ms) COMMIT
369
+  (0.2ms) BEGIN
370
+ Handcart::Subdomain Exists (0.7ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'mark' LIMIT 1
371
+ SQL (0.3ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'mark', '2014-02-08 22:18:34')
372
+ Handcart::Subdomain Exists (0.4ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE (`handcart_subdomains`.`name` = 'mark' AND `handcart_subdomains`.`id` != 24) LIMIT 1
373
+ Handcart::Subdomain Exists (0.3ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'mark' LIMIT 1
374
+  (24.4ms) ROLLBACK
375
+  (0.1ms) BEGIN
376
+  (0.1ms) COMMIT
377
+  (0.1ms) BEGIN
378
+ Handcart::Subdomain Exists (0.2ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` IS NULL LIMIT 1
379
+  (0.1ms) ROLLBACK
380
+  (0.1ms) BEGIN
381
+  (0.0ms) COMMIT
382
+  (0.0ms) BEGIN
383
+ Handcart::Subdomain Exists (0.2ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'www' LIMIT 1
384
+ Handcart::Subdomain Exists (0.2ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'ftp' LIMIT 1
385
+ Handcart::Subdomain Exists (0.2ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'ssh' LIMIT 1
386
+ Handcart::Subdomain Exists (0.2ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'pop3' LIMIT 1
387
+ Handcart::Subdomain Exists (0.2ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'staging' LIMIT 1
388
+ Handcart::Subdomain Exists (0.2ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'master' LIMIT 1
389
+  (0.1ms) ROLLBACK
390
+  (0.2ms) BEGIN
391
+  (0.1ms) COMMIT
392
+  (0.1ms) BEGIN
393
+ Handcart::Subdomain Exists (0.2ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'mark' LIMIT 1
394
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'mark', '2014-02-08 22:18:34')
395
+ Handcart::Subdomain Exists (0.2ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'holmberg' LIMIT 1
396
+ SQL (0.1ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'holmberg', '2014-02-08 22:18:34')
397
+ SQL (0.1ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:34', 'MyString-14', 26, '2014-02-08 22:18:34')
398
+ Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`subdomain_id` = 25 ORDER BY `companies`.`id` ASC LIMIT 1
399
+ Company Load (0.2ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`subdomain_id` = 26 ORDER BY `companies`.`id` ASC LIMIT 1
400
+ SQL (0.3ms) SELECT `handcart_subdomains`.`id` AS t0_r0, `handcart_subdomains`.`name` AS t0_r1, `handcart_subdomains`.`created_at` AS t0_r2, `handcart_subdomains`.`updated_at` AS t0_r3, `companies`.`id` AS t1_r0, `companies`.`name` AS t1_r1, `companies`.`subdomain_id` AS t1_r2, `companies`.`created_at` AS t1_r3, `companies`.`updated_at` AS t1_r4, `companies`.`active` AS t1_r5 FROM `handcart_subdomains` LEFT OUTER JOIN `companies` ON `companies`.`subdomain_id` = `handcart_subdomains`.`id` WHERE (companies.subdomain_id IS NULL OR companies.subdomain_id IN (26))
401
+  (28.7ms) ROLLBACK
402
+  (0.2ms) BEGIN
403
+  (0.1ms) COMMIT
404
+  (0.1ms) BEGIN
405
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'mark' LIMIT 1
406
+ SQL (0.5ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'mark', '2014-02-08 22:18:34')
407
+ Company Load (0.4ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`subdomain_id` = 27 ORDER BY `companies`.`id` ASC LIMIT 1
408
+ SQL (0.6ms) SELECT `handcart_subdomains`.`id` AS t0_r0, `handcart_subdomains`.`name` AS t0_r1, `handcart_subdomains`.`created_at` AS t0_r2, `handcart_subdomains`.`updated_at` AS t0_r3, `companies`.`id` AS t1_r0, `companies`.`name` AS t1_r1, `companies`.`subdomain_id` AS t1_r2, `companies`.`created_at` AS t1_r3, `companies`.`updated_at` AS t1_r4, `companies`.`active` AS t1_r5 FROM `handcart_subdomains` LEFT OUTER JOIN `companies` ON `companies`.`subdomain_id` = `handcart_subdomains`.`id` WHERE (companies.subdomain_id IS NULL)
409
+  (26.9ms) ROLLBACK
410
+  (0.1ms) BEGIN
411
+  (0.2ms) COMMIT
412
+  (0.1ms) BEGIN
413
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'mark' LIMIT 1
414
+ SQL (0.4ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'mark', '2014-02-08 22:18:34')
415
+ SQL (0.4ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:34', 'MyString-15', 28, '2014-02-08 22:18:34')
416
+ SQL (0.6ms) SELECT `handcart_subdomains`.`id` AS t0_r0, `handcart_subdomains`.`name` AS t0_r1, `handcart_subdomains`.`created_at` AS t0_r2, `handcart_subdomains`.`updated_at` AS t0_r3, `companies`.`id` AS t1_r0, `companies`.`name` AS t1_r1, `companies`.`subdomain_id` AS t1_r2, `companies`.`created_at` AS t1_r3, `companies`.`updated_at` AS t1_r4, `companies`.`active` AS t1_r5 FROM `handcart_subdomains` LEFT OUTER JOIN `companies` ON `companies`.`subdomain_id` = `handcart_subdomains`.`id` WHERE (companies.subdomain_id IS NOT NULL)
417
+  (32.7ms) ROLLBACK
418
+  (0.1ms) BEGIN
419
+  (0.1ms) COMMIT
420
+  (0.0ms) BEGIN
421
+ Handcart::Subdomain Exists (0.3ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'this has a + in it' LIMIT 1
422
+ SQL (0.3ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'thishasainit', '2014-02-08 22:18:34')
423
+  (28.0ms) ROLLBACK
424
+  (0.1ms) BEGIN
425
+  (0.0ms) COMMIT
426
+  (0.0ms) BEGIN
427
+ Handcart::Subdomain Exists (0.2ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'this has spaces' LIMIT 1
428
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'thishasspaces', '2014-02-08 22:18:34')
429
+ Handcart::Subdomain Exists (0.2ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'this has s p aces' LIMIT 1
430
+ SQL (0.1ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'thishasspaces', '2014-02-08 22:18:34')
431
+  (26.7ms) ROLLBACK
432
+  (0.1ms) BEGIN
433
+  (0.1ms) COMMIT
434
+  (0.1ms) BEGIN
435
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'this has a = in it' LIMIT 1
436
+ SQL (0.5ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'thishasainit', '2014-02-08 22:18:34')
437
+  (27.7ms) ROLLBACK
438
+  (0.1ms) BEGIN
439
+  (0.1ms) COMMIT
440
+  (0.1ms) BEGIN
441
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'this has a ? in it' LIMIT 1
442
+ SQL (0.4ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'thishasainit', '2014-02-08 22:18:34')
443
+  (27.2ms) ROLLBACK
444
+  (0.1ms) BEGIN
445
+  (0.1ms) COMMIT
446
+  (0.2ms) BEGIN
447
+ Handcart::Subdomain Exists (0.7ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'this has a / in it' LIMIT 1
448
+ SQL (0.5ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'thishasainit', '2014-02-08 22:18:34')
449
+  (32.1ms) ROLLBACK
450
+  (0.2ms) BEGIN
451
+  (0.2ms) COMMIT
452
+  (0.2ms) BEGIN
453
+ Handcart::Subdomain Exists (0.2ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'mark' LIMIT 1
454
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'mark', '2014-02-08 22:18:34')
455
+ SQL (0.2ms) INSERT INTO `companies` (`active`, `created_at`, `name`, `subdomain_id`, `updated_at`) VALUES (1, '2014-02-08 22:18:34', 'MyString-16', 35, '2014-02-08 22:18:34')
456
+ Company Load (0.3ms) SELECT `companies`.* FROM `companies` WHERE `companies`.`subdomain_id` = 35 ORDER BY `companies`.`id` ASC LIMIT 1
457
+  (32.5ms) ROLLBACK
458
+  (0.2ms) BEGIN
459
+  (0.2ms) COMMIT
460
+  (0.2ms) BEGIN
461
+ Processing by Handcart::SubdomainsController#new as HTML
462
+ Rendered /home/mark/dev/handcart/app/views/handcart/subdomains/new.html.haml within layouts/handcart/application (0.3ms)
463
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms)
464
+  (0.1ms) ROLLBACK
465
+  (0.1ms) BEGIN
466
+  (0.1ms) COMMIT
467
+  (0.0ms) BEGIN
468
+ Handcart::Subdomain Exists (0.3ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'rutherford-17' LIMIT 1
469
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:34', 'rutherford-17', '2014-02-08 22:18:34')
470
+ Processing by Handcart::SubdomainsController#show as HTML
471
+ Parameters: {"id"=>"36"}
472
+ Handcart::Subdomain Load (0.3ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`id` = 36 LIMIT 1
473
+ Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)
474
+  (29.9ms) ROLLBACK
475
+  (0.1ms) BEGIN
476
+  (0.1ms) COMMIT
477
+  (0.0ms) BEGIN
478
+ Handcart::Subdomain Exists (0.3ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'stiedemannleannon-18' LIMIT 1
479
+ SQL (0.3ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:35', 'stiedemannleannon-18', '2014-02-08 22:18:35')
480
+ Processing by Handcart::SubdomainsController#destroy as HTML
481
+ Parameters: {"id"=>"37"}
482
+ Handcart::Subdomain Load (0.2ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`id` = 37 LIMIT 1
483
+ SQL (0.2ms) DELETE FROM `handcart_subdomains` WHERE `handcart_subdomains`.`id` = 37
484
+ Redirected to http://test.host/handcart/subdomains
485
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
486
+  (27.5ms) ROLLBACK
487
+  (0.3ms) BEGIN
488
+  (0.2ms) COMMIT
489
+  (0.2ms) BEGIN
490
+ Handcart::Subdomain Exists (0.6ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'heathcote-19' LIMIT 1
491
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:35', 'heathcote-19', '2014-02-08 22:18:35')
492
+  (0.2ms) SELECT COUNT(*) FROM `handcart_subdomains`
493
+ Processing by Handcart::SubdomainsController#destroy as HTML
494
+ Parameters: {"id"=>"38"}
495
+ Handcart::Subdomain Load (0.2ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`id` = 38 LIMIT 1
496
+ SQL (0.2ms) DELETE FROM `handcart_subdomains` WHERE `handcart_subdomains`.`id` = 38
497
+ Redirected to http://test.host/handcart/subdomains
498
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
499
+  (0.5ms) SELECT COUNT(*) FROM `handcart_subdomains`
500
+  (29.7ms) ROLLBACK
501
+  (0.3ms) BEGIN
502
+  (0.2ms) COMMIT
503
+  (0.2ms) BEGIN
504
+ Handcart::Subdomain Exists (0.6ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'ward-20' LIMIT 1
505
+ SQL (0.5ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:35', 'ward-20', '2014-02-08 22:18:35')
506
+ Processing by Handcart::SubdomainsController#edit as HTML
507
+ Parameters: {"id"=>"39"}
508
+ Handcart::Subdomain Load (0.6ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`id` = 39 LIMIT 1
509
+ Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.6ms)
510
+  (30.7ms) ROLLBACK
511
+  (0.3ms) BEGIN
512
+  (0.2ms) COMMIT
513
+  (0.2ms) BEGIN
514
+ Processing by Handcart::SubdomainsController#create as HTML
515
+ Parameters: {"subdomain"=>{"name"=>"invalid value"}}
516
+ Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.0ms)
517
+  (0.2ms) ROLLBACK
518
+  (0.1ms) BEGIN
519
+  (0.1ms) COMMIT
520
+  (0.0ms) BEGIN
521
+ Processing by Handcart::SubdomainsController#create as HTML
522
+ Parameters: {"subdomain"=>{"name"=>"invalid value"}}
523
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
524
+  (0.1ms) ROLLBACK
525
+  (0.1ms) BEGIN
526
+  (0.1ms) COMMIT
527
+  (0.1ms) BEGIN
528
+ Processing by Handcart::SubdomainsController#create as HTML
529
+ Parameters: {"subdomain"=>{"name"=>"rice-21"}}
530
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'rice-21' LIMIT 1
531
+ SQL (0.4ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:35', 'rice-21', '2014-02-08 22:18:35')
532
+ Redirected to http://test.host/handcart/subdomains
533
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
534
+  (27.0ms) ROLLBACK
535
+  (0.3ms) BEGIN
536
+  (0.2ms) COMMIT
537
+  (0.2ms) BEGIN
538
+ Processing by Handcart::SubdomainsController#create as HTML
539
+ Parameters: {"subdomain"=>{"name"=>"oconnell-22"}}
540
+ Handcart::Subdomain Exists (0.4ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'oconnell-22' LIMIT 1
541
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:35', 'oconnell-22', '2014-02-08 22:18:35')
542
+ Redirected to http://test.host/handcart/subdomains
543
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
544
+  (35.3ms) ROLLBACK
545
+  (0.1ms) BEGIN
546
+  (0.1ms) COMMIT
547
+  (0.1ms) BEGIN
548
+  (0.5ms) SELECT COUNT(*) FROM `handcart_subdomains`
549
+ Processing by Handcart::SubdomainsController#create as HTML
550
+ Parameters: {"subdomain"=>{"name"=>"schowalter-23"}}
551
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'schowalter-23' LIMIT 1
552
+ SQL (0.4ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:35', 'schowalter-23', '2014-02-08 22:18:35')
553
+ Redirected to http://test.host/handcart/subdomains
554
+ Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
555
+  (0.4ms) SELECT COUNT(*) FROM `handcart_subdomains`
556
+  (28.0ms) ROLLBACK
557
+  (0.3ms) BEGIN
558
+  (0.3ms) COMMIT
559
+  (0.2ms) BEGIN
560
+ Handcart::Subdomain Exists (0.6ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'kundelittel-24' LIMIT 1
561
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:35', 'kundelittel-24', '2014-02-08 22:18:35')
562
+ Processing by Handcart::SubdomainsController#update as HTML
563
+ Parameters: {"subdomain"=>{"name"=>"invalid value"}, "id"=>"43"}
564
+ Handcart::Subdomain Load (0.2ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`id` = 43 LIMIT 1
565
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.2ms)
566
+  (33.8ms) ROLLBACK
567
+  (0.2ms) BEGIN
568
+  (0.2ms) COMMIT
569
+  (0.2ms) BEGIN
570
+ Handcart::Subdomain Exists (0.3ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'jacobi-25' LIMIT 1
571
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:35', 'jacobi-25', '2014-02-08 22:18:35')
572
+ Processing by Handcart::SubdomainsController#update as HTML
573
+ Parameters: {"subdomain"=>{"name"=>"invalid value"}, "id"=>"44"}
574
+ Handcart::Subdomain Load (0.2ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`id` = 44 LIMIT 1
575
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
576
+  (32.5ms) ROLLBACK
577
+  (0.2ms) BEGIN
578
+  (0.2ms) COMMIT
579
+  (0.2ms) BEGIN
580
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'prosaccowelch-26' LIMIT 1
581
+ SQL (0.2ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:35', 'prosaccowelch-26', '2014-02-08 22:18:35')
582
+ Processing by Handcart::SubdomainsController#update as HTML
583
+ Parameters: {"subdomain"=>{"name"=>"prosaccowelch-26"}, "id"=>"45"}
584
+ Handcart::Subdomain Load (0.2ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`id` = 45 LIMIT 1
585
+ Handcart::Subdomain Exists (0.2ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE (`handcart_subdomains`.`name` = 'prosaccowelch-26' AND `handcart_subdomains`.`id` != 45) LIMIT 1
586
+ Redirected to http://test.host/handcart/subdomains
587
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
588
+  (33.5ms) ROLLBACK
589
+  (0.2ms) BEGIN
590
+  (0.2ms) COMMIT
591
+  (0.2ms) BEGIN
592
+ Handcart::Subdomain Exists (0.6ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'kemmermiller-27' LIMIT 1
593
+ SQL (0.5ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:35', 'kemmermiller-27', '2014-02-08 22:18:35')
594
+ Processing by Handcart::SubdomainsController#update as HTML
595
+ Parameters: {"subdomain"=>{"name"=>"kemmermiller-27"}, "id"=>"46"}
596
+ Handcart::Subdomain Load (0.6ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`id` = 46 LIMIT 1
597
+ Handcart::Subdomain Exists (0.6ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE (`handcart_subdomains`.`name` = 'kemmermiller-27' AND `handcart_subdomains`.`id` != 46) LIMIT 1
598
+ Redirected to http://test.host/handcart/subdomains
599
+ Completed 302 Found in 7ms (ActiveRecord: 1.2ms)
600
+  (34.6ms) ROLLBACK
601
+  (0.2ms) BEGIN
602
+  (0.2ms) COMMIT
603
+  (0.2ms) BEGIN
604
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'mayertheidenreich-28' LIMIT 1
605
+ SQL (0.4ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:35', 'mayertheidenreich-28', '2014-02-08 22:18:35')
606
+ Processing by Handcart::SubdomainsController#update as HTML
607
+ Parameters: {"subdomain"=>{"name"=>"MyString"}, "id"=>"47"}
608
+ Handcart::Subdomain Load (0.5ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains` WHERE `handcart_subdomains`.`id` = 47 LIMIT 1
609
+ Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.5ms)
610
+  (36.0ms) ROLLBACK
611
+  (0.3ms) BEGIN
612
+  (0.2ms) COMMIT
613
+  (0.1ms) BEGIN
614
+ Handcart::Subdomain Exists (0.5ms) SELECT 1 AS one FROM `handcart_subdomains` WHERE `handcart_subdomains`.`name` = 'kertzmann-29' LIMIT 1
615
+ SQL (0.4ms) INSERT INTO `handcart_subdomains` (`created_at`, `name`, `updated_at`) VALUES ('2014-02-08 22:18:35', 'kertzmann-29', '2014-02-08 22:18:35')
616
+ Processing by Handcart::SubdomainsController#index as HTML
617
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
618
+ Handcart::Subdomain Load (0.4ms) SELECT `handcart_subdomains`.* FROM `handcart_subdomains`
619
+  (36.1ms) ROLLBACK
620
+  (0.1ms) BEGIN
621
+  (0.1ms) COMMIT
622
+  (0.1ms) BEGIN
623
+ Processing by Handcart::IpAddressesController#new as HTML
624
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)
625
+  (0.2ms) ROLLBACK
626
+  (0.2ms) BEGIN
627
+  (0.1ms) COMMIT
628
+  (0.1ms) BEGIN
629
+ Handcart::IpAddress Exists (0.6ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '139.253.86.22' LIMIT 1
630
+ SQL (0.4ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `subnet_mask`, `updated_at`) VALUES ('139.253.86.22', '2014-02-08 22:18:35', '255.255.255.0', '2014-02-08 22:18:35')
631
+ Processing by Handcart::IpAddressesController#show as HTML
632
+ Parameters: {"id"=>"9"}
633
+ Handcart::IpAddress Load (0.5ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`id` = 9 LIMIT 1
634
+ Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.5ms)
635
+  (34.0ms) ROLLBACK
636
+  (0.2ms) BEGIN
637
+  (0.1ms) COMMIT
638
+  (0.1ms) BEGIN
639
+ Handcart::IpAddress Exists (0.3ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '106.184.164.121' LIMIT 1
640
+ SQL (0.3ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `subnet_mask`, `updated_at`) VALUES ('106.184.164.121', '2014-02-08 22:18:35', '255.255.255.0', '2014-02-08 22:18:35')
641
+ Processing by Handcart::IpAddressesController#destroy as HTML
642
+ Parameters: {"id"=>"10"}
643
+ Handcart::IpAddress Load (0.5ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`id` = 10 LIMIT 1
644
+ SQL (0.4ms) DELETE FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`id` = 10
645
+ Redirected to http://test.host/handcart/ip_addresses
646
+ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
647
+  (30.1ms) ROLLBACK
648
+  (0.1ms) BEGIN
649
+  (0.1ms) COMMIT
650
+  (0.1ms) BEGIN
651
+ Handcart::IpAddress Exists (0.3ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '130.33.33.112' LIMIT 1
652
+ SQL (0.2ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `subnet_mask`, `updated_at`) VALUES ('130.33.33.112', '2014-02-08 22:18:35', '255.255.255.0', '2014-02-08 22:18:35')
653
+  (0.3ms) SELECT COUNT(*) FROM `handcart_ip_addresses`
654
+ Processing by Handcart::IpAddressesController#destroy as HTML
655
+ Parameters: {"id"=>"11"}
656
+ Handcart::IpAddress Load (0.4ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`id` = 11 LIMIT 1
657
+ SQL (0.4ms) DELETE FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`id` = 11
658
+ Redirected to http://test.host/handcart/ip_addresses
659
+ Completed 302 Found in 2ms (ActiveRecord: 0.8ms)
660
+  (0.5ms) SELECT COUNT(*) FROM `handcart_ip_addresses`
661
+  (36.7ms) ROLLBACK
662
+  (0.4ms) BEGIN
663
+  (0.2ms) COMMIT
664
+  (0.2ms) BEGIN
665
+ Handcart::IpAddress Exists (0.5ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '74.239.215.64' LIMIT 1
666
+ SQL (0.3ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `subnet_mask`, `updated_at`) VALUES ('74.239.215.64', '2014-02-08 22:18:35', '255.255.255.0', '2014-02-08 22:18:35')
667
+ Processing by Handcart::IpAddressesController#edit as HTML
668
+ Parameters: {"id"=>"12"}
669
+ Handcart::IpAddress Load (0.2ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`id` = 12 LIMIT 1
670
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms)
671
+  (34.6ms) ROLLBACK
672
+  (0.2ms) BEGIN
673
+  (0.1ms) COMMIT
674
+  (0.2ms) BEGIN
675
+ Processing by Handcart::IpAddressesController#create as HTML
676
+ Parameters: {"ip_address"=>{"address"=>"invalid value"}}
677
+ Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.0ms)
678
+  (0.2ms) ROLLBACK
679
+  (0.1ms) BEGIN
680
+  (0.1ms) COMMIT
681
+  (0.0ms) BEGIN
682
+ Processing by Handcart::IpAddressesController#create as HTML
683
+ Parameters: {"ip_address"=>{"address"=>"invalid value"}}
684
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms)
685
+  (0.1ms) ROLLBACK
686
+  (0.1ms) BEGIN
687
+  (0.1ms) COMMIT
688
+  (0.1ms) BEGIN
689
+ Processing by Handcart::IpAddressesController#create as HTML
690
+ Parameters: {"ip_address"=>{"address"=>"187.181.235.143", "subnet_mask"=>"255.255.255.0", "handcart"=>nil, "blacklisted"=>false}}
691
+ Unpermitted parameters: handcart
692
+ Handcart::IpAddress Exists (0.3ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '187.181.235.143' LIMIT 1
693
+ SQL (0.2ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `subnet_mask`, `updated_at`) VALUES ('187.181.235.143', '2014-02-08 22:18:35', '255.255.255.0', '2014-02-08 22:18:35')
694
+ Redirected to http://test.host/handcart/ip_addresses/13
695
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
696
+ Handcart::IpAddress Load (0.2ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` ORDER BY `handcart_ip_addresses`.`id` DESC LIMIT 1
697
+  (35.0ms) ROLLBACK
698
+  (0.3ms) BEGIN
699
+  (0.2ms) COMMIT
700
+  (0.2ms) BEGIN
701
+ Processing by Handcart::IpAddressesController#create as HTML
702
+ Parameters: {"ip_address"=>{"address"=>"219.42.121.141", "subnet_mask"=>"255.255.255.0", "handcart"=>nil, "blacklisted"=>false}}
703
+ Unpermitted parameters: handcart
704
+ Handcart::IpAddress Exists (0.5ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '219.42.121.141' LIMIT 1
705
+ SQL (0.4ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `subnet_mask`, `updated_at`) VALUES ('219.42.121.141', '2014-02-08 22:18:35', '255.255.255.0', '2014-02-08 22:18:35')
706
+ Redirected to http://test.host/handcart/ip_addresses/14
707
+ Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
708
+  (31.3ms) ROLLBACK
709
+  (0.2ms) BEGIN
710
+  (0.2ms) COMMIT
711
+  (0.1ms) BEGIN
712
+  (0.5ms) SELECT COUNT(*) FROM `handcart_ip_addresses`
713
+ Processing by Handcart::IpAddressesController#create as HTML
714
+ Parameters: {"ip_address"=>{"address"=>"240.209.92.187", "subnet_mask"=>"255.255.255.0", "handcart"=>nil, "blacklisted"=>false}}
715
+ Unpermitted parameters: handcart
716
+ Handcart::IpAddress Exists (0.5ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '240.209.92.187' LIMIT 1
717
+ SQL (0.4ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `subnet_mask`, `updated_at`) VALUES ('240.209.92.187', '2014-02-08 22:18:36', '255.255.255.0', '2014-02-08 22:18:36')
718
+ Redirected to http://test.host/handcart/ip_addresses/15
719
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
720
+  (0.4ms) SELECT COUNT(*) FROM `handcart_ip_addresses`
721
+  (31.5ms) ROLLBACK
722
+  (0.1ms) BEGIN
723
+  (0.1ms) COMMIT
724
+  (0.1ms) BEGIN
725
+ Handcart::IpAddress Exists (0.5ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '220.161.96.60' LIMIT 1
726
+ SQL (0.4ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `subnet_mask`, `updated_at`) VALUES ('220.161.96.60', '2014-02-08 22:18:36', '255.255.255.0', '2014-02-08 22:18:36')
727
+ Processing by Handcart::IpAddressesController#update as HTML
728
+ Parameters: {"ip_address"=>{"address"=>"invalid value"}, "id"=>"16"}
729
+ Handcart::IpAddress Load (1.0ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`id` = 16 LIMIT 1
730
+ Completed 200 OK in 59ms (Views: 55.9ms | ActiveRecord: 1.0ms)
731
+  (38.5ms) ROLLBACK
732
+  (0.3ms) BEGIN
733
+  (0.2ms) COMMIT
734
+  (0.2ms) BEGIN
735
+ Handcart::IpAddress Exists (0.5ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '253.250.202.78' LIMIT 1
736
+ SQL (0.2ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `subnet_mask`, `updated_at`) VALUES ('253.250.202.78', '2014-02-08 22:18:36', '255.255.255.0', '2014-02-08 22:18:36')
737
+ Processing by Handcart::IpAddressesController#update as HTML
738
+ Parameters: {"ip_address"=>{"address"=>"invalid value"}, "id"=>"17"}
739
+ Handcart::IpAddress Load (0.2ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`id` = 17 LIMIT 1
740
+ Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.2ms)
741
+  (30.8ms) ROLLBACK
742
+  (0.3ms) BEGIN
743
+  (0.2ms) COMMIT
744
+  (0.2ms) BEGIN
745
+ Handcart::IpAddress Exists (0.3ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '169.253.141.219' LIMIT 1
746
+ SQL (0.4ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `subnet_mask`, `updated_at`) VALUES ('169.253.141.219', '2014-02-08 22:18:36', '255.255.255.0', '2014-02-08 22:18:36')
747
+ Processing by Handcart::IpAddressesController#update as HTML
748
+ Parameters: {"ip_address"=>{"address"=>"169.253.141.219", "subnet_mask"=>"255.255.255.0", "handcart"=>nil, "blacklisted"=>false}, "id"=>"18"}
749
+ Handcart::IpAddress Load (0.6ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`id` = 18 LIMIT 1
750
+ Unpermitted parameters: handcart
751
+ Handcart::IpAddress Exists (0.7ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE (`handcart_ip_addresses`.`address` = '169.253.141.219' AND `handcart_ip_addresses`.`id` != 18) LIMIT 1
752
+ Redirected to http://test.host/handcart/ip_addresses/18
753
+ Completed 302 Found in 13ms (ActiveRecord: 1.3ms)
754
+  (35.7ms) ROLLBACK
755
+  (0.2ms) BEGIN
756
+  (0.1ms) COMMIT
757
+  (0.1ms) BEGIN
758
+ Handcart::IpAddress Exists (0.4ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '92.237.90.155' LIMIT 1
759
+ SQL (0.6ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `subnet_mask`, `updated_at`) VALUES ('92.237.90.155', '2014-02-08 22:18:36', '255.255.255.0', '2014-02-08 22:18:36')
760
+ Processing by Handcart::IpAddressesController#update as HTML
761
+ Parameters: {"ip_address"=>{"address"=>"92.237.90.155", "subnet_mask"=>"255.255.255.0", "handcart"=>nil, "blacklisted"=>false}, "id"=>"19"}
762
+ Handcart::IpAddress Load (0.5ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`id` = 19 LIMIT 1
763
+ Unpermitted parameters: handcart
764
+ Handcart::IpAddress Exists (0.6ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE (`handcart_ip_addresses`.`address` = '92.237.90.155' AND `handcart_ip_addresses`.`id` != 19) LIMIT 1
765
+ Redirected to http://test.host/handcart/ip_addresses/19
766
+ Completed 302 Found in 8ms (ActiveRecord: 1.1ms)
767
+  (38.3ms) ROLLBACK
768
+  (0.1ms) BEGIN
769
+  (0.1ms) COMMIT
770
+  (0.2ms) BEGIN
771
+ Handcart::IpAddress Exists (0.2ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '6.95.176.27' LIMIT 1
772
+ SQL (0.2ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `subnet_mask`, `updated_at`) VALUES ('6.95.176.27', '2014-02-08 22:18:36', '255.255.255.0', '2014-02-08 22:18:36')
773
+ Processing by Handcart::IpAddressesController#update as HTML
774
+ Parameters: {"ip_address"=>{"address"=>"MyString"}, "id"=>"20"}
775
+ Handcart::IpAddress Load (0.2ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`id` = 20 LIMIT 1
776
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.2ms)
777
+  (36.7ms) ROLLBACK
778
+  (0.1ms) BEGIN
779
+  (0.1ms) COMMIT
780
+  (0.1ms) BEGIN
781
+ Handcart::IpAddress Exists (0.4ms) SELECT 1 AS one FROM `handcart_ip_addresses` WHERE `handcart_ip_addresses`.`address` = '136.167.82.228' LIMIT 1
782
+ SQL (0.4ms) INSERT INTO `handcart_ip_addresses` (`address`, `created_at`, `subnet_mask`, `updated_at`) VALUES ('136.167.82.228', '2014-02-08 22:18:36', '255.255.255.0', '2014-02-08 22:18:36')
783
+ Processing by Handcart::IpAddressesController#index as HTML
784
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
785
+ Handcart::IpAddress Load (0.4ms) SELECT `handcart_ip_addresses`.* FROM `handcart_ip_addresses`
786
+  (32.4ms) ROLLBACK