robot_catcher 0.0.6 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +17 -2
- data/lib/robot_catcher/helpers.rb +10 -3
- data/lib/robot_catcher/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +424 -0
- data/test/dummy/log/localdev.log +1 -0
- metadata +2 -4
- data/test/dummy/tmp/pids/server.pid +0 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2U2MGE3NDRjZDYyNjIxNzI0MzE4ZDQxZWJlOTM5NWE0NzA5ZDgyNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjdlNzg4NjFjNTQxZWUzM2MwODZkNDZlZWJmNmMzMDVlMzVhNjczZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzBhYzQxOGExYjk0OTY1NDVjYzBlMmM3NWUxN2U2M2NhNGM0YTc3OGZiOTdj
|
10
|
+
NTkyNjk2ZDM2YzgwMjkzZjE2NGIzYmViYzI2NzM3ZTg3NGQxM2NmYzY1NDlj
|
11
|
+
OTU0MGI2OTAyODdhNjJhN2M1ZDk2NDU3NmUxOTdiZjY5YzVmYmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGNkZWViMzJlYzI2YTM0MTUyNGRhOGY5NzBmYWIxODYwZWQ1MTc3YWZmMjk1
|
14
|
+
YmUzMDE3Njk1OWJjZGI4YzZiNzY5MzRkMGUyMzY1MDIzN2M5MzJhYjQyNDg3
|
15
|
+
ZjI3NDM5NmQ5ZTBkZTMxZDg3YjQ1NzNiMmM3YTE0NDdhZDJlMzI=
|
data/README.md
CHANGED
@@ -13,14 +13,17 @@ Installation is simple! Add this line to your application's Gemfile:
|
|
13
13
|
|
14
14
|
gem 'robot_catcher'
|
15
15
|
|
16
|
-
Or in your gem specification file:
|
16
|
+
Or in your gem specification (gemspec) file:
|
17
17
|
|
18
18
|
Gem::Specification.new do |s|
|
19
19
|
...
|
20
20
|
s.add_dependency 'robot_catcher'
|
21
21
|
|
22
22
|
After running `bundle install`, RobotCatcher's functionality will be available in your
|
23
|
-
project.
|
23
|
+
project.
|
24
|
+
|
25
|
+
NB: Remember to `require 'robot_catcher` manually in case RobotCatcher is a
|
26
|
+
depedency of your engine, or `require` it in the library file of your engine.
|
24
27
|
|
25
28
|
## DESCRIPTION
|
26
29
|
|
@@ -59,6 +62,18 @@ Idem dito in case you want to use `form_tag` or anyother field `*_tag`:
|
|
59
62
|
NB: In case of tags, only use tags helper methods on fields (i.e. not on
|
60
63
|
labels or submit).
|
61
64
|
|
65
|
+
In special cases, especially when mixing html and erb, you might want to
|
66
|
+
generate a hash input manually. Important: the label in `rc_hash_tag` should
|
67
|
+
correspond to the `name` attribute's value in the following input tag:
|
68
|
+
|
69
|
+
<%= rc_form_tag('/articles', ip: request.remote_ip) do %>
|
70
|
+
<label for="title">Title</label>
|
71
|
+
<%= rc_hash_tag 'title' %>
|
72
|
+
<input id="title" type="text" name="title"></input>
|
73
|
+
|
74
|
+
...
|
75
|
+
<% end %>
|
76
|
+
|
62
77
|
### Back-end
|
63
78
|
|
64
79
|
#### In the model
|
@@ -1,5 +1,8 @@
|
|
1
1
|
module RobotCatcher
|
2
2
|
module Helpers
|
3
|
+
class SpinnerError < StandardError
|
4
|
+
end
|
5
|
+
|
3
6
|
class FormBuilder < ActionView::Helpers::FormBuilder
|
4
7
|
def initialize(object_name, object, template, options)
|
5
8
|
@spinner = options[:spinner]
|
@@ -36,11 +39,15 @@ module RobotCatcher
|
|
36
39
|
:rc_datetime_local_field_tag, :rc_month_field_tag, :rc_week_field_tag,
|
37
40
|
:rc_url_field_tag, :rc_email_field_tag, :rc_number_field_tag]
|
38
41
|
|
42
|
+
def rc_hash_tag(label)
|
43
|
+
raise(SpinnerError.new, "Form has not been initialized properly! (use rc_form_tag)") if @spinner.nil?
|
44
|
+
hash_tag = Digest::MD5.hexdigest(label.to_s + @spinner + "robotcatcher")
|
45
|
+
text_field_tag(hash_tag, nil, :style=>"display:none")
|
46
|
+
end
|
47
|
+
|
39
48
|
def self.create_tagged_field_tag(method_name, parent_method)
|
40
49
|
define_method(method_name) do |label, *args|
|
41
|
-
|
42
|
-
text_field_tag(hash_tag, nil, :style=>"display:none") +
|
43
|
-
self.send(parent_method, label, *args)
|
50
|
+
rc_hash_tag(label) + self.send(parent_method, label, *args)
|
44
51
|
end
|
45
52
|
end
|
46
53
|
|
Binary file
|
@@ -2296,3 +2296,427 @@ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
|
2296
2296
|
|
2297
2297
|
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-11-11 14:50:43 +0100
|
2298
2298
|
Served asset /application.js - 304 Not Modified (0ms)
|
2299
|
+
Connecting to database specified by database.yml
|
2300
|
+
|
2301
|
+
|
2302
|
+
Started GET "/assets/rails.png" for 127.0.0.1 at 2015-11-13 10:36:44 +0100
|
2303
|
+
Served asset /rails.png - 404 Not Found (0ms)
|
2304
|
+
|
2305
|
+
ActionController::RoutingError (No route matches [GET] "/assets/rails.png"):
|
2306
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
2307
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
2308
|
+
railties (3.2.22) lib/rails/rack/logger.rb:32:in `call_app'
|
2309
|
+
railties (3.2.22) lib/rails/rack/logger.rb:16:in `block in call'
|
2310
|
+
activesupport (3.2.22) lib/active_support/tagged_logging.rb:22:in `tagged'
|
2311
|
+
railties (3.2.22) lib/rails/rack/logger.rb:16:in `call'
|
2312
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
2313
|
+
rack (1.4.7) lib/rack/methodoverride.rb:21:in `call'
|
2314
|
+
rack (1.4.7) lib/rack/runtime.rb:17:in `call'
|
2315
|
+
activesupport (3.2.22) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
2316
|
+
rack (1.4.7) lib/rack/lock.rb:15:in `call'
|
2317
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/static.rb:83:in `call'
|
2318
|
+
railties (3.2.22) lib/rails/engine.rb:484:in `call'
|
2319
|
+
railties (3.2.22) lib/rails/application.rb:231:in `call'
|
2320
|
+
rack (1.4.7) lib/rack/content_length.rb:14:in `call'
|
2321
|
+
railties (3.2.22) lib/rails/rack/log_tailer.rb:17:in `call'
|
2322
|
+
rack (1.4.7) lib/rack/handler/webrick.rb:59:in `service'
|
2323
|
+
/home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
|
2324
|
+
/home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
|
2325
|
+
/home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
|
2326
|
+
|
2327
|
+
|
2328
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (13.5ms)
|
2329
|
+
|
2330
|
+
|
2331
|
+
Started GET "/assets/rails.png" for 127.0.0.1 at 2015-11-13 10:36:47 +0100
|
2332
|
+
Served asset /rails.png - 404 Not Found (0ms)
|
2333
|
+
|
2334
|
+
ActionController::RoutingError (No route matches [GET] "/assets/rails.png"):
|
2335
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
2336
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
2337
|
+
railties (3.2.22) lib/rails/rack/logger.rb:32:in `call_app'
|
2338
|
+
railties (3.2.22) lib/rails/rack/logger.rb:16:in `block in call'
|
2339
|
+
activesupport (3.2.22) lib/active_support/tagged_logging.rb:22:in `tagged'
|
2340
|
+
railties (3.2.22) lib/rails/rack/logger.rb:16:in `call'
|
2341
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
2342
|
+
rack (1.4.7) lib/rack/methodoverride.rb:21:in `call'
|
2343
|
+
rack (1.4.7) lib/rack/runtime.rb:17:in `call'
|
2344
|
+
activesupport (3.2.22) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
2345
|
+
rack (1.4.7) lib/rack/lock.rb:15:in `call'
|
2346
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/static.rb:83:in `call'
|
2347
|
+
railties (3.2.22) lib/rails/engine.rb:484:in `call'
|
2348
|
+
railties (3.2.22) lib/rails/application.rb:231:in `call'
|
2349
|
+
rack (1.4.7) lib/rack/content_length.rb:14:in `call'
|
2350
|
+
railties (3.2.22) lib/rails/rack/log_tailer.rb:17:in `call'
|
2351
|
+
rack (1.4.7) lib/rack/handler/webrick.rb:59:in `service'
|
2352
|
+
/home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
|
2353
|
+
/home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
|
2354
|
+
/home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
|
2355
|
+
|
2356
|
+
|
2357
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.4ms)
|
2358
|
+
Connecting to database specified by database.yml
|
2359
|
+
|
2360
|
+
|
2361
|
+
Started GET "/articles" for 127.0.0.1 at 2015-11-13 10:38:06 +0100
|
2362
|
+
Processing by ArticlesController#index as HTML
|
2363
|
+
[1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" [0m
|
2364
|
+
Rendered articles/index.html.erb within layouts/application (2.6ms)
|
2365
|
+
Completed 200 OK in 52.2ms (Views: 27.9ms | ActiveRecord: 1.0ms)
|
2366
|
+
|
2367
|
+
|
2368
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-11-13 10:38:06 +0100
|
2369
|
+
Served asset /application.css - 200 OK (1ms)
|
2370
|
+
|
2371
|
+
|
2372
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:06 +0100
|
2373
|
+
Served asset /jquery.js - 200 OK (1ms)
|
2374
|
+
|
2375
|
+
|
2376
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:06 +0100
|
2377
|
+
Served asset /jquery_ujs.js - 200 OK (0ms)
|
2378
|
+
|
2379
|
+
|
2380
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:06 +0100
|
2381
|
+
Served asset /application.js - 200 OK (2ms)
|
2382
|
+
|
2383
|
+
|
2384
|
+
Started GET "/articles" for 127.0.0.1 at 2015-11-13 10:38:18 +0100
|
2385
|
+
Processing by ArticlesController#index as HTML
|
2386
|
+
[1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles"
|
2387
|
+
Rendered articles/index.html.erb within layouts/application (1.4ms)
|
2388
|
+
Completed 200 OK in 5.1ms (Views: 4.1ms | ActiveRecord: 0.1ms)
|
2389
|
+
|
2390
|
+
|
2391
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-11-13 10:38:18 +0100
|
2392
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
2393
|
+
|
2394
|
+
|
2395
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:18 +0100
|
2396
|
+
Served asset /jquery.js - 304 Not Modified (2ms)
|
2397
|
+
|
2398
|
+
|
2399
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:18 +0100
|
2400
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
2401
|
+
|
2402
|
+
|
2403
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:18 +0100
|
2404
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
2405
|
+
|
2406
|
+
|
2407
|
+
Started GET "/articles/new" for 127.0.0.1 at 2015-11-13 10:38:24 +0100
|
2408
|
+
Processing by ArticlesController#new as HTML
|
2409
|
+
Rendered articles/_form.html.erb (0.9ms)
|
2410
|
+
Rendered articles/new.html.erb within layouts/application (15.7ms)
|
2411
|
+
Completed 200 OK in 19.0ms (Views: 18.5ms | ActiveRecord: 0.0ms)
|
2412
|
+
|
2413
|
+
|
2414
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-11-13 10:38:24 +0100
|
2415
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
2416
|
+
|
2417
|
+
|
2418
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:24 +0100
|
2419
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
2420
|
+
|
2421
|
+
|
2422
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:24 +0100
|
2423
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
2424
|
+
|
2425
|
+
|
2426
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:24 +0100
|
2427
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
2428
|
+
|
2429
|
+
|
2430
|
+
Started POST "/articles" for 127.0.0.1 at 2015-11-13 10:38:40 +0100
|
2431
|
+
Processing by ArticlesController#create as HTML
|
2432
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"eW0IwW2F1bbnS/zyh8H9+5pMwj+eYBfMJ9hV8E004y8=", "timestamp"=>"1447407504", "spinner"=>"43275b4af47d5a74a00c9f359394023f", "da1969ba6fe08e9d700f9c5640a5e1af"=>"", "title"=>"Det går så bra", "d1c8c534513adbf2d555d039ee1f505c"=>"", "text"=>"Jepp det gkør det selvfølgelig", "commit"=>"Save changes"}
|
2433
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2434
|
+
[1m[35mSQL (5.7ms)[0m INSERT INTO "articles" ("created_at", "text", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 13 Nov 2015 09:38:40 UTC +00:00], ["text", "Jepp det gkør det selvfølgelig"], ["title", "Det går så bra"], ["updated_at", Fri, 13 Nov 2015 09:38:40 UTC +00:00]]
|
2435
|
+
[1m[36m (10.3ms)[0m [1mcommit transaction[0m
|
2436
|
+
Redirected to http://localhost:3000/articles/10
|
2437
|
+
Completed 302 Found in 18.7ms (ActiveRecord: 16.0ms)
|
2438
|
+
|
2439
|
+
|
2440
|
+
Started GET "/articles/10" for 127.0.0.1 at 2015-11-13 10:38:40 +0100
|
2441
|
+
Processing by ArticlesController#show as HTML
|
2442
|
+
Parameters: {"id"=>"10"}
|
2443
|
+
[1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "10"]]
|
2444
|
+
Rendered articles/show.html.erb within layouts/application (0.7ms)
|
2445
|
+
Completed 200 OK in 4.8ms (Views: 3.3ms | ActiveRecord: 0.1ms)
|
2446
|
+
|
2447
|
+
|
2448
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-11-13 10:38:40 +0100
|
2449
|
+
Served asset /application.css - 304 Not Modified (1ms)
|
2450
|
+
|
2451
|
+
|
2452
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:40 +0100
|
2453
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
2454
|
+
|
2455
|
+
|
2456
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:40 +0100
|
2457
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
2458
|
+
|
2459
|
+
|
2460
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:40 +0100
|
2461
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
2462
|
+
|
2463
|
+
|
2464
|
+
Started GET "/articles" for 127.0.0.1 at 2015-11-13 10:38:42 +0100
|
2465
|
+
Processing by ArticlesController#index as HTML
|
2466
|
+
[1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" [0m
|
2467
|
+
Rendered articles/index.html.erb within layouts/application (1.2ms)
|
2468
|
+
Completed 200 OK in 3.9ms (Views: 3.2ms | ActiveRecord: 0.1ms)
|
2469
|
+
|
2470
|
+
|
2471
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-11-13 10:38:42 +0100
|
2472
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
2473
|
+
|
2474
|
+
|
2475
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:42 +0100
|
2476
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
2477
|
+
|
2478
|
+
|
2479
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:42 +0100
|
2480
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
2481
|
+
|
2482
|
+
|
2483
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-11-13 10:38:42 +0100
|
2484
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
2485
|
+
|
2486
|
+
|
2487
|
+
Started GET "/articles" for 127.0.0.1 at 2015-11-13 10:39:18 +0100
|
2488
|
+
Processing by ArticlesController#index as HTML
|
2489
|
+
[1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles"
|
2490
|
+
Rendered articles/index.html.erb within layouts/application (1.3ms)
|
2491
|
+
Completed 200 OK in 4.0ms (Views: 3.4ms | ActiveRecord: 0.1ms)
|
2492
|
+
|
2493
|
+
|
2494
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-11-13 10:39:18 +0100
|
2495
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
2496
|
+
|
2497
|
+
|
2498
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-11-13 10:39:18 +0100
|
2499
|
+
Served asset /jquery.js - 304 Not Modified (1ms)
|
2500
|
+
|
2501
|
+
|
2502
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-11-13 10:39:18 +0100
|
2503
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
2504
|
+
|
2505
|
+
|
2506
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-11-13 10:39:18 +0100
|
2507
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
2508
|
+
|
2509
|
+
|
2510
|
+
Started GET "/articles" for 127.0.0.1 at 2015-11-13 10:39:19 +0100
|
2511
|
+
Processing by ArticlesController#index as HTML
|
2512
|
+
[1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" [0m
|
2513
|
+
Rendered articles/index.html.erb within layouts/application (1.4ms)
|
2514
|
+
Completed 200 OK in 4.4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
|
2515
|
+
|
2516
|
+
|
2517
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-11-13 10:39:19 +0100
|
2518
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
2519
|
+
|
2520
|
+
|
2521
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-11-13 10:39:19 +0100
|
2522
|
+
Served asset /jquery.js - 304 Not Modified (2ms)
|
2523
|
+
|
2524
|
+
|
2525
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-11-13 10:39:19 +0100
|
2526
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
2527
|
+
|
2528
|
+
|
2529
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-11-13 10:39:19 +0100
|
2530
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
2531
|
+
|
2532
|
+
|
2533
|
+
Started GET "/articles/new" for 127.0.0.1 at 2015-11-13 10:39:21 +0100
|
2534
|
+
Processing by ArticlesController#new as HTML
|
2535
|
+
Rendered articles/_form.html.erb (2.8ms)
|
2536
|
+
Rendered articles/new.html.erb within layouts/application (3.1ms)
|
2537
|
+
Completed 500 Internal Server Error in 3.9ms
|
2538
|
+
|
2539
|
+
ActionView::Template::Error (Spinner is not initialized!):
|
2540
|
+
1: <%= rc_text_field_tag 'title' %>
|
2541
|
+
2:
|
2542
|
+
3: <%= rc_form_tag('/articles', ip: request.remote_ip) do |f| %>
|
2543
|
+
4: <% if @article.errors.any? %>
|
2544
|
+
app/views/articles/_form.html.erb:1:in `_app_views_articles__form_html_erb__3470080839496884443_69848888768240'
|
2545
|
+
app/views/articles/new.html.erb:3:in `_app_views_articles_new_html_erb___2497236748857333980_69848852512920'
|
2546
|
+
app/controllers/articles_controller.rb:29:in `new'
|
2547
|
+
|
2548
|
+
|
2549
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.6ms)
|
2550
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.5ms)
|
2551
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (3.7ms)
|
2552
|
+
|
2553
|
+
|
2554
|
+
Started GET "/articles/new" for 127.0.0.1 at 2015-11-13 10:40:37 +0100
|
2555
|
+
Processing by ArticlesController#new as HTML
|
2556
|
+
Rendered articles/_form.html.erb (0.3ms)
|
2557
|
+
Rendered articles/new.html.erb within layouts/application (0.6ms)
|
2558
|
+
Completed 500 Internal Server Error in 1.5ms
|
2559
|
+
|
2560
|
+
ActionView::Template::Error (Spinner is not initialized!):
|
2561
|
+
1: <%= rc_text_field_tag 'title' %>
|
2562
|
+
2:
|
2563
|
+
3: <%= rc_form_tag('/articles', ip: request.remote_ip) do |f| %>
|
2564
|
+
4: <% if @article.errors.any? %>
|
2565
|
+
app/views/articles/_form.html.erb:1:in `_app_views_articles__form_html_erb__3470080839496884443_69848888768240'
|
2566
|
+
app/views/articles/new.html.erb:3:in `_app_views_articles_new_html_erb___2497236748857333980_69848852512920'
|
2567
|
+
app/controllers/articles_controller.rb:29:in `new'
|
2568
|
+
|
2569
|
+
|
2570
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.7ms)
|
2571
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.5ms)
|
2572
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.2ms)
|
2573
|
+
Connecting to database specified by database.yml
|
2574
|
+
|
2575
|
+
|
2576
|
+
Started GET "/articles/new" for 127.0.0.1 at 2015-11-13 10:40:44 +0100
|
2577
|
+
Processing by ArticlesController#new as HTML
|
2578
|
+
Rendered articles/_form.html.erb (14.2ms)
|
2579
|
+
Rendered articles/new.html.erb within layouts/application (16.8ms)
|
2580
|
+
Completed 500 Internal Server Error in 56.7ms
|
2581
|
+
|
2582
|
+
ActionView::Template::Error (Form has no start! (use rc_form_tag)):
|
2583
|
+
1: <%= rc_text_field_tag 'title' %>
|
2584
|
+
2:
|
2585
|
+
3: <%= rc_form_tag('/articles', ip: request.remote_ip) do |f| %>
|
2586
|
+
4: <% if @article.errors.any? %>
|
2587
|
+
app/views/articles/_form.html.erb:1:in `_app_views_articles__form_html_erb___3314963864237826812_69849356201000'
|
2588
|
+
app/views/articles/new.html.erb:3:in `_app_views_articles_new_html_erb___3685632013457168614_34935400'
|
2589
|
+
app/controllers/articles_controller.rb:29:in `new'
|
2590
|
+
|
2591
|
+
|
2592
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.6ms)
|
2593
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.4ms)
|
2594
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (3.7ms)
|
2595
|
+
|
2596
|
+
|
2597
|
+
Started GET "/articles/new%5C" for 127.0.0.1 at 2015-11-13 10:41:02 +0100
|
2598
|
+
Processing by ArticlesController#show as HTML
|
2599
|
+
Parameters: {"id"=>"new\\"}
|
2600
|
+
[1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", "new\\"]]
|
2601
|
+
Completed 404 Not Found in 1.6ms
|
2602
|
+
|
2603
|
+
ActiveRecord::RecordNotFound (Couldn't find Article with id=new\):
|
2604
|
+
app/controllers/articles_controller.rb:16:in `show'
|
2605
|
+
|
2606
|
+
|
2607
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.6ms)
|
2608
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.5ms)
|
2609
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (3.8ms)
|
2610
|
+
Connecting to database specified by database.yml
|
2611
|
+
|
2612
|
+
|
2613
|
+
Started GET "/articles/new" for 127.0.0.1 at 2015-11-13 10:41:07 +0100
|
2614
|
+
Processing by ArticlesController#new as HTML
|
2615
|
+
Rendered articles/_form.html.erb (14.8ms)
|
2616
|
+
Rendered articles/new.html.erb within layouts/application (17.5ms)
|
2617
|
+
Completed 500 Internal Server Error in 56.2ms
|
2618
|
+
|
2619
|
+
ActionView::Template::Error (Form has not been initialized properly! (use rc_form_tag)):
|
2620
|
+
1: <%= rc_text_field_tag 'title' %>
|
2621
|
+
2:
|
2622
|
+
3: <%= rc_form_tag('/articles', ip: request.remote_ip) do |f| %>
|
2623
|
+
4: <% if @article.errors.any? %>
|
2624
|
+
app/views/articles/_form.html.erb:1:in `_app_views_articles__form_html_erb__2476902136958297025_70143460797280'
|
2625
|
+
app/views/articles/new.html.erb:3:in `_app_views_articles_new_html_erb__620378877406669547_26794960'
|
2626
|
+
app/controllers/articles_controller.rb:29:in `new'
|
2627
|
+
|
2628
|
+
|
2629
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.6ms)
|
2630
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.4ms)
|
2631
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (3.7ms)
|
2632
|
+
|
2633
|
+
|
2634
|
+
Started GET "/articles/new" for 127.0.0.1 at 2015-11-13 10:45:05 +0100
|
2635
|
+
Processing by ArticlesController#new as HTML
|
2636
|
+
Rendered articles/_form.html.erb (0.9ms)
|
2637
|
+
Rendered articles/new.html.erb within layouts/application (1.5ms)
|
2638
|
+
Completed 200 OK in 7.6ms (Views: 7.4ms | ActiveRecord: 0.0ms)
|
2639
|
+
|
2640
|
+
|
2641
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-11-13 10:45:05 +0100
|
2642
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
2643
|
+
|
2644
|
+
|
2645
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-11-13 10:45:05 +0100
|
2646
|
+
Served asset /jquery.js - 304 Not Modified (3ms)
|
2647
|
+
|
2648
|
+
|
2649
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-11-13 10:45:05 +0100
|
2650
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
2651
|
+
|
2652
|
+
|
2653
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-11-13 10:45:05 +0100
|
2654
|
+
Served asset /application.js - 304 Not Modified (3ms)
|
2655
|
+
Connecting to database specified by database.yml
|
2656
|
+
|
2657
|
+
|
2658
|
+
Started GET "/articles/new" for 127.0.0.1 at 2015-11-13 10:45:21 +0100
|
2659
|
+
Processing by ArticlesController#new as HTML
|
2660
|
+
Rendered articles/_form.html.erb (0.9ms)
|
2661
|
+
Rendered articles/new.html.erb within layouts/application (3.9ms)
|
2662
|
+
Completed 200 OK in 60.9ms (Views: 37.7ms | ActiveRecord: 0.9ms)
|
2663
|
+
|
2664
|
+
|
2665
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-11-13 10:45:22 +0100
|
2666
|
+
Served asset /application.css - 304 Not Modified (1ms)
|
2667
|
+
|
2668
|
+
|
2669
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-11-13 10:45:22 +0100
|
2670
|
+
Served asset /jquery.js - 304 Not Modified (3ms)
|
2671
|
+
|
2672
|
+
|
2673
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-11-13 10:45:22 +0100
|
2674
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
2675
|
+
|
2676
|
+
|
2677
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-11-13 10:45:22 +0100
|
2678
|
+
Served asset /application.js - 304 Not Modified (2ms)
|
2679
|
+
|
2680
|
+
|
2681
|
+
Started GET "/articles/new" for 127.0.0.1 at 2015-11-13 10:45:55 +0100
|
2682
|
+
Processing by ArticlesController#new as HTML
|
2683
|
+
Rendered articles/_form.html.erb (3.6ms)
|
2684
|
+
Rendered articles/new.html.erb within layouts/application (4.0ms)
|
2685
|
+
Completed 500 Internal Server Error in 4.9ms
|
2686
|
+
|
2687
|
+
ActionView::Template::Error (Form has not been initialized properly! (use rc_form_tag)):
|
2688
|
+
1: <%= rc_hash_tag(:test) %>
|
2689
|
+
2:
|
2690
|
+
3: <%= rc_form_tag('/articles', ip: request.remote_ip) do |f| %>
|
2691
|
+
4: <%= rc_hash_tag(:test) %>
|
2692
|
+
app/views/articles/_form.html.erb:1:in `_app_views_articles__form_html_erb__2321002298422042751_70125542163820'
|
2693
|
+
app/views/articles/new.html.erb:3:in `_app_views_articles_new_html_erb__161863085645621876_35845780'
|
2694
|
+
app/controllers/articles_controller.rb:29:in `new'
|
2695
|
+
|
2696
|
+
|
2697
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.7ms)
|
2698
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.5ms)
|
2699
|
+
Rendered /home/mike/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.0ms)
|
2700
|
+
|
2701
|
+
|
2702
|
+
Started GET "/articles/new" for 127.0.0.1 at 2015-11-13 10:46:00 +0100
|
2703
|
+
Processing by ArticlesController#new as HTML
|
2704
|
+
Rendered articles/_form.html.erb (1.0ms)
|
2705
|
+
Rendered articles/new.html.erb within layouts/application (1.6ms)
|
2706
|
+
Completed 200 OK in 4.0ms (Views: 3.7ms | ActiveRecord: 0.0ms)
|
2707
|
+
|
2708
|
+
|
2709
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-11-13 10:46:00 +0100
|
2710
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
2711
|
+
|
2712
|
+
|
2713
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-11-13 10:46:00 +0100
|
2714
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
2715
|
+
|
2716
|
+
|
2717
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-11-13 10:46:00 +0100
|
2718
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
2719
|
+
|
2720
|
+
|
2721
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-11-13 10:46:00 +0100
|
2722
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
data/test/dummy/log/localdev.log
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: robot_catcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Voets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -106,7 +106,6 @@ files:
|
|
106
106
|
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
107
107
|
- test/dummy/tmp/cache/assets/E01/2C0/sprockets%2Fb0070cf61ab50c99ce9ddbf2f293d9fe
|
108
108
|
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
109
|
-
- test/dummy/tmp/pids/server.pid
|
110
109
|
- test/robot_catcher_test.rb
|
111
110
|
- test/test_helper.rb
|
112
111
|
homepage:
|
@@ -183,7 +182,6 @@ test_files:
|
|
183
182
|
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
184
183
|
- test/dummy/tmp/cache/assets/CEE/3C0/sprockets%2F39dfc00887914e7b8e1c73859aed2540
|
185
184
|
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
186
|
-
- test/dummy/tmp/pids/server.pid
|
187
185
|
- test/dummy/config.ru
|
188
186
|
- test/dummy/public/404.html
|
189
187
|
- test/dummy/public/500.html
|
@@ -1 +0,0 @@
|
|
1
|
-
4784
|