optimus_prime 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5212ed00147c75ab907e18c084c46c02b7194319
4
- data.tar.gz: b2bc00431fbfce9a8a17529b9381a67e85f11400
3
+ metadata.gz: bdd27d6721366df4f6f2c710b51f08b7847fc1f8
4
+ data.tar.gz: 599c943ee812dd2447fa66959c2f679f7913e3eb
5
5
  SHA512:
6
- metadata.gz: a5bed6b8578befbbe021100c5976383d264de9b8308ae9de642a98daf9fc6a6eb2157a24171f11bb8a373ec1af5931e38a2780df2a6f0101b47ec92cdd1888fc
7
- data.tar.gz: 3b3021fe4ed8ffe564ae2d8bb08ce7a0322b6cffae79343397d0b0670f2bc684bc57580750febcd3a52398701d78ae2a6edc39c3d8575765d62a18b9480b4ef5
6
+ metadata.gz: 9941c1b2330309f9f953cefc556629fc8e6324fc3bb28e99aac4799da04c32fd3631dcfd2cdc8bbe8d8fce6e2866cc425044261851b439aa106051fc93d77d9e
7
+ data.tar.gz: 6a0f72a8ae43a2dd1935e632bb88164622e0fffc34816bf6c07080a99f663d1598ba9ca23669e906c7c01c439675d7e09b7c9678be3d72168723d81e7f4aca0c
data/README.md CHANGED
@@ -119,16 +119,20 @@ get/i-am-not-primed: {
119
119
  ```
120
120
 
121
121
  ## Get the requests made to an endpoint
122
+ You will have to pass how long to wait_for, as requests might be in process that is why we need to wait for it.
123
+ By default OptimusPrime sets <code>wait_for</code> flag to 3 seconds.
122
124
  ```ruby
125
+ op = OptimusPrime.new(wait_for: 5)
126
+
123
127
  # GET Requests
124
128
  op.prime('your/endpoint')
125
129
  Faraday.get("http://localhost:7002/get/your/endpoint")
126
- op.count('your/endpoint') #=> ["method" => "GET", "body" => ""]
130
+ op.requests('your/endpoint') #=> ["method" => "GET", "body" => ""]
127
131
 
128
132
  # POST Requests
129
133
  op.prime('your/endpoint')
130
134
  Faraday.post("http://localhost:7002/get/your/endpoint", {some: "data"})
131
- op.count('your/endpoint') #=> ["method" => "GET", "body" => "some=data"]
135
+ op.requests('your/endpoint') #=> ["method" => "GET", "body" => "some=data", "headers" => { "content_type": "", accept: [] } ]
132
136
  ```
133
137
 
134
138
  ## TODO
data/lib/optimus_prime.rb CHANGED
@@ -42,6 +42,12 @@ module OptimusPrime
42
42
 
43
43
  class Base
44
44
 
45
+ attr_reader :wait_for
46
+
47
+ def initialize(opts={})
48
+ @wait_for = opts[:wait_for] || 3
49
+ end
50
+
45
51
  def prime(path_name, response="", options={})
46
52
  ::Faraday.post("http://localhost:#{OptimusPrime.op_port}/prime", { path_name: path_name, response: response }.merge!(options))
47
53
  end
@@ -55,9 +61,16 @@ module OptimusPrime
55
61
  JSON.parse(requests)["count"]
56
62
  end
57
63
 
58
- def requests(path_name)
59
- requests = ::Faraday.get("http://localhost:#{OptimusPrime.op_port}/requests/#{path_name}").body
60
- JSON.parse(requests)["requests"]
64
+ def last_request_for(path_name)
65
+ seconds = 0
66
+ while :waiting
67
+ seconds += 0.3
68
+ requests = ::Faraday.get("http://localhost:#{OptimusPrime.op_port}/requests/#{path_name}").body
69
+ last_request = JSON.parse(requests)["last_request"]
70
+ return last_request if !last_request.nil? && !last_request.empty?
71
+ return {} if seconds.to_i == wait_for
72
+ sleep(0.3)
73
+ end
61
74
  end
62
75
 
63
76
  end
@@ -76,7 +76,8 @@ module OptimusPrime
76
76
  def record_request(path)
77
77
  requests[path][:count] += 1
78
78
  request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
79
- requests[path][:requests].push(request_made)
79
+ requests[path][:last_request] = request_made
80
+ require 'pry'; binding.pry
80
81
  end
81
82
 
82
83
  def get_path
@@ -105,7 +106,7 @@ module OptimusPrime
105
106
  post "/prime" do
106
107
  path = params["path_name"]
107
108
  responses[path] = { content_type: (params["content_type"] || :html), body: params["response"], status_code: (params["status_code"] || 200), requested_with: (params["requested_with"] || false), sleep: (params["sleep"] || false), persisted: (params["persisted"] || false) }
108
- requests[path] = { count: 0, requests: [] }
109
+ requests[path] = { count: 0, last_request: nil }
109
110
  201
110
111
  end
111
112
 
@@ -1,3 +1,3 @@
1
1
  module OptimusPrime
2
- VERSION = "1.4.0"
2
+ VERSION = "1.5.0"
3
3
  end
data/optimus_prime.log CHANGED
@@ -5416,3 +5416,1481 @@ Exiting!
5416
5416
  from /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `<main>'
5417
5417
  from /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
5418
5418
  from /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
5419
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5420
+ Using rack adapter
5421
+ Thin web server (v1.6.2 codename Doc Brown)
5422
+ Debugging ON
5423
+ Maximum connections set to 1024
5424
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5425
+ Exiting!
5426
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5427
+ Using rack adapter
5428
+ Thin web server (v1.6.2 codename Doc Brown)
5429
+ Debugging ON
5430
+ Maximum connections set to 1024
5431
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5432
+
5433
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5434
+
5435
+ 76: def record_request(path)
5436
+ 77: requests[path][:count] += 1
5437
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5438
+ 79: requests[path][:last_request] = request_made
5439
+ => 80: require 'pry'; binding.pry
5440
+ 81: end
5441
+
5442
+ [?1034h[1] pry(#<OptimusPrime::Server>)>
5443
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5444
+
5445
+ 76: def record_request(path)
5446
+ 77: requests[path][:count] += 1
5447
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5448
+ 79: requests[path][:last_request] = request_made
5449
+ => 80: require 'pry'; binding.pry
5450
+ 81: end
5451
+
5452
+ [1] pry(#<OptimusPrime::Server>)>
5453
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5454
+
5455
+ 76: def record_request(path)
5456
+ 77: requests[path][:count] += 1
5457
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5458
+ 79: requests[path][:last_request] = request_made
5459
+ => 80: require 'pry'; binding.pry
5460
+ 81: end
5461
+
5462
+ [1] pry(#<OptimusPrime::Server>)>
5463
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5464
+
5465
+ 76: def record_request(path)
5466
+ 77: requests[path][:count] += 1
5467
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5468
+ 79: requests[path][:last_request] = request_made
5469
+ => 80: require 'pry'; binding.pry
5470
+ 81: end
5471
+
5472
+ [1] pry(#<OptimusPrime::Server>)> Exiting!
5473
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5474
+ Using rack adapter
5475
+ Thin web server (v1.6.2 codename Doc Brown)
5476
+ Debugging ON
5477
+ Maximum connections set to 1024
5478
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5479
+
5480
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5481
+
5482
+ 76: def record_request(path)
5483
+ 77: requests[path][:count] += 1
5484
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5485
+ 79: requests[path][:last_request] = request_made
5486
+ => 80: require 'pry'; binding.pry
5487
+ 81: end
5488
+
5489
+ [?1034h[1] pry(#<OptimusPrime::Server>)> Exiting!
5490
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5491
+ Using rack adapter
5492
+ Thin web server (v1.6.2 codename Doc Brown)
5493
+ Debugging ON
5494
+ Maximum connections set to 1024
5495
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5496
+
5497
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5498
+
5499
+ 76: def record_request(path)
5500
+ 77: requests[path][:count] += 1
5501
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5502
+ 79: requests[path][:last_request] = request_made
5503
+ => 80: require 'pry'; binding.pry
5504
+ 81: end
5505
+
5506
+ [?1034h[1] pry(#<OptimusPrime::Server>)>
5507
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5508
+
5509
+ 76: def record_request(path)
5510
+ 77: requests[path][:count] += 1
5511
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5512
+ 79: requests[path][:last_request] = request_made
5513
+ => 80: require 'pry'; binding.pry
5514
+ 81: end
5515
+
5516
+ [1] pry(#<OptimusPrime::Server>)>
5517
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5518
+
5519
+ 76: def record_request(path)
5520
+ 77: requests[path][:count] += 1
5521
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5522
+ 79: requests[path][:last_request] = request_made
5523
+ => 80: require 'pry'; binding.pry
5524
+ 81: end
5525
+
5526
+ [1] pry(#<OptimusPrime::Server>)>
5527
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5528
+
5529
+ 76: def record_request(path)
5530
+ 77: requests[path][:count] += 1
5531
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5532
+ 79: requests[path][:last_request] = request_made
5533
+ => 80: require 'pry'; binding.pry
5534
+ 81: end
5535
+
5536
+ [1] pry(#<OptimusPrime::Server>)>
5537
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5538
+
5539
+ 76: def record_request(path)
5540
+ 77: requests[path][:count] += 1
5541
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5542
+ 79: requests[path][:last_request] = request_made
5543
+ => 80: require 'pry'; binding.pry
5544
+ 81: end
5545
+
5546
+ [1] pry(#<OptimusPrime::Server>)>
5547
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5548
+
5549
+ 76: def record_request(path)
5550
+ 77: requests[path][:count] += 1
5551
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5552
+ 79: requests[path][:last_request] = request_made
5553
+ => 80: require 'pry'; binding.pry
5554
+ 81: end
5555
+
5556
+ [1] pry(#<OptimusPrime::Server>)>
5557
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5558
+
5559
+ 76: def record_request(path)
5560
+ 77: requests[path][:count] += 1
5561
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5562
+ 79: requests[path][:last_request] = request_made
5563
+ => 80: require 'pry'; binding.pry
5564
+ 81: end
5565
+
5566
+ [1] pry(#<OptimusPrime::Server>)>
5567
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5568
+
5569
+ 76: def record_request(path)
5570
+ 77: requests[path][:count] += 1
5571
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5572
+ 79: requests[path][:last_request] = request_made
5573
+ => 80: require 'pry'; binding.pry
5574
+ 81: end
5575
+
5576
+ [1] pry(#<OptimusPrime::Server>)>
5577
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5578
+
5579
+ 76: def record_request(path)
5580
+ 77: requests[path][:count] += 1
5581
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5582
+ 79: requests[path][:last_request] = request_made
5583
+ => 80: require 'pry'; binding.pry
5584
+ 81: end
5585
+
5586
+ [1] pry(#<OptimusPrime::Server>)>
5587
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5588
+
5589
+ 76: def record_request(path)
5590
+ 77: requests[path][:count] += 1
5591
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5592
+ 79: requests[path][:last_request] = request_made
5593
+ => 80: require 'pry'; binding.pry
5594
+ 81: end
5595
+
5596
+ [1] pry(#<OptimusPrime::Server>)>
5597
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5598
+
5599
+ 76: def record_request(path)
5600
+ 77: requests[path][:count] += 1
5601
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5602
+ 79: requests[path][:last_request] = request_made
5603
+ => 80: require 'pry'; binding.pry
5604
+ 81: end
5605
+
5606
+ [1] pry(#<OptimusPrime::Server>)>
5607
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5608
+
5609
+ 76: def record_request(path)
5610
+ 77: requests[path][:count] += 1
5611
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5612
+ 79: requests[path][:last_request] = request_made
5613
+ => 80: require 'pry'; binding.pry
5614
+ 81: end
5615
+
5616
+ [1] pry(#<OptimusPrime::Server>)>
5617
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5618
+
5619
+ 76: def record_request(path)
5620
+ 77: requests[path][:count] += 1
5621
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5622
+ 79: requests[path][:last_request] = request_made
5623
+ => 80: require 'pry'; binding.pry
5624
+ 81: end
5625
+
5626
+ [1] pry(#<OptimusPrime::Server>)>
5627
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5628
+
5629
+ 76: def record_request(path)
5630
+ 77: requests[path][:count] += 1
5631
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5632
+ 79: requests[path][:last_request] = request_made
5633
+ => 80: require 'pry'; binding.pry
5634
+ 81: end
5635
+
5636
+ [1] pry(#<OptimusPrime::Server>)>
5637
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5638
+
5639
+ 76: def record_request(path)
5640
+ 77: requests[path][:count] += 1
5641
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5642
+ 79: requests[path][:last_request] = request_made
5643
+ => 80: require 'pry'; binding.pry
5644
+ 81: end
5645
+
5646
+ [1] pry(#<OptimusPrime::Server>)>
5647
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5648
+
5649
+ 76: def record_request(path)
5650
+ 77: requests[path][:count] += 1
5651
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5652
+ 79: requests[path][:last_request] = request_made
5653
+ => 80: require 'pry'; binding.pry
5654
+ 81: end
5655
+
5656
+ [1] pry(#<OptimusPrime::Server>)> Exiting!
5657
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5658
+ Using rack adapter
5659
+ Thin web server (v1.6.2 codename Doc Brown)
5660
+ Debugging ON
5661
+ Maximum connections set to 1024
5662
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5663
+ Exiting!
5664
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5665
+ Using rack adapter
5666
+ Thin web server (v1.6.2 codename Doc Brown)
5667
+ Debugging ON
5668
+ Maximum connections set to 1024
5669
+ Listening on 0.0.0.0:7004, CTRL+C to stop
5670
+ Exiting!
5671
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5672
+ Using rack adapter
5673
+ Thin web server (v1.6.2 codename Doc Brown)
5674
+ Debugging ON
5675
+ Maximum connections set to 1024
5676
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5677
+ Exiting!
5678
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5679
+ Using rack adapter
5680
+ Thin web server (v1.6.2 codename Doc Brown)
5681
+ Debugging ON
5682
+ Maximum connections set to 1024
5683
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5684
+ Exiting!
5685
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5686
+ Using rack adapter
5687
+ Thin web server (v1.6.2 codename Doc Brown)
5688
+ Debugging ON
5689
+ Maximum connections set to 1024
5690
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5691
+ Exiting!
5692
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5693
+ Using rack adapter
5694
+ Thin web server (v1.6.2 codename Doc Brown)
5695
+ Debugging ON
5696
+ Maximum connections set to 1024
5697
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5698
+
5699
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5700
+
5701
+ 76: def record_request(path)
5702
+ 77: requests[path][:count] += 1
5703
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5704
+ 79: requests[path][:last_request] = request_made
5705
+ => 80: require 'pry'; binding.pry
5706
+ 81: end
5707
+
5708
+ [?1034h[1] pry(#<OptimusPrime::Server>)> Exiting!
5709
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5710
+ Using rack adapter
5711
+ Thin web server (v1.6.2 codename Doc Brown)
5712
+ Debugging ON
5713
+ Maximum connections set to 1024
5714
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5715
+
5716
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5717
+
5718
+ 76: def record_request(path)
5719
+ 77: requests[path][:count] += 1
5720
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5721
+ 79: requests[path][:last_request] = request_made
5722
+ => 80: require 'pry'; binding.pry
5723
+ 81: end
5724
+
5725
+ [?1034h[1] pry(#<OptimusPrime::Server>)>
5726
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5727
+
5728
+ 76: def record_request(path)
5729
+ 77: requests[path][:count] += 1
5730
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5731
+ 79: requests[path][:last_request] = request_made
5732
+ => 80: require 'pry'; binding.pry
5733
+ 81: end
5734
+
5735
+ [1] pry(#<OptimusPrime::Server>)>
5736
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5737
+
5738
+ 76: def record_request(path)
5739
+ 77: requests[path][:count] += 1
5740
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5741
+ 79: requests[path][:last_request] = request_made
5742
+ => 80: require 'pry'; binding.pry
5743
+ 81: end
5744
+
5745
+ [1] pry(#<OptimusPrime::Server>)>
5746
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5747
+
5748
+ 76: def record_request(path)
5749
+ 77: requests[path][:count] += 1
5750
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5751
+ 79: requests[path][:last_request] = request_made
5752
+ => 80: require 'pry'; binding.pry
5753
+ 81: end
5754
+
5755
+ [1] pry(#<OptimusPrime::Server>)> Exiting!
5756
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5757
+ Using rack adapter
5758
+ Thin web server (v1.6.2 codename Doc Brown)
5759
+ Debugging ON
5760
+ Maximum connections set to 1024
5761
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5762
+
5763
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5764
+
5765
+ 76: def record_request(path)
5766
+ 77: requests[path][:count] += 1
5767
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5768
+ 79: requests[path][:last_request] = request_made
5769
+ => 80: require 'pry'; binding.pry
5770
+ 81: end
5771
+
5772
+ [?1034h[1] pry(#<OptimusPrime::Server>)>
5773
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5774
+
5775
+ 76: def record_request(path)
5776
+ 77: requests[path][:count] += 1
5777
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5778
+ 79: requests[path][:last_request] = request_made
5779
+ => 80: require 'pry'; binding.pry
5780
+ 81: end
5781
+
5782
+ [1] pry(#<OptimusPrime::Server>)>
5783
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5784
+
5785
+ 76: def record_request(path)
5786
+ 77: requests[path][:count] += 1
5787
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5788
+ 79: requests[path][:last_request] = request_made
5789
+ => 80: require 'pry'; binding.pry
5790
+ 81: end
5791
+
5792
+ [1] pry(#<OptimusPrime::Server>)>
5793
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5794
+
5795
+ 76: def record_request(path)
5796
+ 77: requests[path][:count] += 1
5797
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5798
+ 79: requests[path][:last_request] = request_made
5799
+ => 80: require 'pry'; binding.pry
5800
+ 81: end
5801
+
5802
+ [1] pry(#<OptimusPrime::Server>)> Exiting!
5803
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5804
+ Using rack adapter
5805
+ Thin web server (v1.6.2 codename Doc Brown)
5806
+ Debugging ON
5807
+ Maximum connections set to 1024
5808
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5809
+
5810
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5811
+
5812
+ 76: def record_request(path)
5813
+ 77: requests[path][:count] += 1
5814
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5815
+ 79: requests[path][:last_request] = request_made
5816
+ => 80: require 'pry'; binding.pry
5817
+ 81: end
5818
+
5819
+ [?1034h[1] pry(#<OptimusPrime::Server>)> Exiting!
5820
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5821
+ Using rack adapter
5822
+ Thin web server (v1.6.2 codename Doc Brown)
5823
+ Debugging ON
5824
+ Maximum connections set to 1024
5825
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5826
+
5827
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5828
+
5829
+ 76: def record_request(path)
5830
+ 77: requests[path][:count] += 1
5831
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5832
+ 79: requests[path][:last_request] = request_made
5833
+ => 80: require 'pry'; binding.pry
5834
+ 81: end
5835
+
5836
+ [?1034h[1] pry(#<OptimusPrime::Server>)>
5837
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5838
+
5839
+ 76: def record_request(path)
5840
+ 77: requests[path][:count] += 1
5841
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5842
+ 79: requests[path][:last_request] = request_made
5843
+ => 80: require 'pry'; binding.pry
5844
+ 81: end
5845
+
5846
+ [1] pry(#<OptimusPrime::Server>)>
5847
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5848
+
5849
+ 76: def record_request(path)
5850
+ 77: requests[path][:count] += 1
5851
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5852
+ 79: requests[path][:last_request] = request_made
5853
+ => 80: require 'pry'; binding.pry
5854
+ 81: end
5855
+
5856
+ [1] pry(#<OptimusPrime::Server>)> Exiting!
5857
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5858
+ Using rack adapter
5859
+ Thin web server (v1.6.2 codename Doc Brown)
5860
+ Debugging ON
5861
+ Maximum connections set to 1024
5862
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5863
+
5864
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5865
+
5866
+ 76: def record_request(path)
5867
+ 77: requests[path][:count] += 1
5868
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5869
+ 79: requests[path][:last_request] = request_made
5870
+ => 80: require 'pry'; binding.pry
5871
+ 81: end
5872
+
5873
+ [?1034h[1] pry(#<OptimusPrime::Server>)>
5874
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5875
+
5876
+ 76: def record_request(path)
5877
+ 77: requests[path][:count] += 1
5878
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5879
+ 79: requests[path][:last_request] = request_made
5880
+ => 80: require 'pry'; binding.pry
5881
+ 81: end
5882
+
5883
+ [1] pry(#<OptimusPrime::Server>)>
5884
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5885
+
5886
+ 76: def record_request(path)
5887
+ 77: requests[path][:count] += 1
5888
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5889
+ 79: requests[path][:last_request] = request_made
5890
+ => 80: require 'pry'; binding.pry
5891
+ 81: end
5892
+
5893
+ [1] pry(#<OptimusPrime::Server>)> Exiting!
5894
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5895
+ Using rack adapter
5896
+ Thin web server (v1.6.2 codename Doc Brown)
5897
+ Debugging ON
5898
+ Maximum connections set to 1024
5899
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5900
+ Exiting!
5901
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5902
+ Using rack adapter
5903
+ Thin web server (v1.6.2 codename Doc Brown)
5904
+ Debugging ON
5905
+ Maximum connections set to 1024
5906
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5907
+ Exiting!
5908
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5909
+ Using rack adapter
5910
+ Thin web server (v1.6.2 codename Doc Brown)
5911
+ Debugging ON
5912
+ Maximum connections set to 1024
5913
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5914
+
5915
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5916
+
5917
+ 76: def record_request(path)
5918
+ 77: requests[path][:count] += 1
5919
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5920
+ 79: requests[path][:last_request] = request_made
5921
+ => 80: require 'pry'; binding.pry
5922
+ 81: end
5923
+
5924
+ [?1034h[1] pry(#<OptimusPrime::Server>)> Exiting!
5925
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5926
+ Using rack adapter
5927
+ Thin web server (v1.6.2 codename Doc Brown)
5928
+ Debugging ON
5929
+ Maximum connections set to 1024
5930
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5931
+
5932
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5933
+
5934
+ 76: def record_request(path)
5935
+ 77: requests[path][:count] += 1
5936
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5937
+ 79: requests[path][:last_request] = request_made
5938
+ => 80: require 'pry'; binding.pry
5939
+ 81: end
5940
+
5941
+ [?1034h[1] pry(#<OptimusPrime::Server>)> Exiting!
5942
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5943
+ Using rack adapter
5944
+ Thin web server (v1.6.2 codename Doc Brown)
5945
+ Debugging ON
5946
+ Maximum connections set to 1024
5947
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5948
+
5949
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5950
+
5951
+ 76: def record_request(path)
5952
+ 77: requests[path][:count] += 1
5953
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5954
+ 79: requests[path][:last_request] = request_made
5955
+ => 80: require 'pry'; binding.pry
5956
+ 81: end
5957
+
5958
+ [?1034h[1] pry(#<OptimusPrime::Server>)> Exiting!
5959
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5960
+ Using rack adapter
5961
+ Thin web server (v1.6.2 codename Doc Brown)
5962
+ Debugging ON
5963
+ Maximum connections set to 1024
5964
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5965
+
5966
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
5967
+
5968
+ 76: def record_request(path)
5969
+ 77: requests[path][:count] += 1
5970
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
5971
+ 79: requests[path][:last_request] = request_made
5972
+ => 80: require 'pry'; binding.pry
5973
+ 81: end
5974
+
5975
+ [?1034h[1] pry(#<OptimusPrime::Server>)> Exiting!
5976
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5977
+ Using rack adapter
5978
+ Thin web server (v1.6.2 codename Doc Brown)
5979
+ Debugging ON
5980
+ Maximum connections set to 1024
5981
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5982
+ Exiting!
5983
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5984
+ Using rack adapter
5985
+ Thin web server (v1.6.2 codename Doc Brown)
5986
+ Debugging ON
5987
+ Maximum connections set to 1024
5988
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5989
+ Exiting!
5990
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5991
+ Using rack adapter
5992
+ Thin web server (v1.6.2 codename Doc Brown)
5993
+ Debugging ON
5994
+ Maximum connections set to 1024
5995
+ Listening on 0.0.0.0:7003, CTRL+C to stop
5996
+ Exiting!
5997
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
5998
+ Using rack adapter
5999
+ Thin web server (v1.6.2 codename Doc Brown)
6000
+ Debugging ON
6001
+ Maximum connections set to 1024
6002
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6003
+ Exiting!
6004
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6005
+ Using rack adapter
6006
+ Thin web server (v1.6.2 codename Doc Brown)
6007
+ Debugging ON
6008
+ Maximum connections set to 1024
6009
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6010
+ Exiting!
6011
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6012
+ Using rack adapter
6013
+ Thin web server (v1.6.2 codename Doc Brown)
6014
+ Debugging ON
6015
+ Maximum connections set to 1024
6016
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6017
+ Exiting!
6018
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6019
+ Using rack adapter
6020
+ Thin web server (v1.6.2 codename Doc Brown)
6021
+ Debugging ON
6022
+ Maximum connections set to 1024
6023
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6024
+
6025
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6026
+
6027
+ 76: def record_request(path)
6028
+ 77: requests[path][:count] += 1
6029
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6030
+ 79: requests[path][:last_request] = request_made
6031
+ => 80: require 'pry'; binding.pry
6032
+ 81: end
6033
+
6034
+ [?1034h[1] pry(#<OptimusPrime::Server>)> Exiting!
6035
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6036
+ Using rack adapter
6037
+ Thin web server (v1.6.2 codename Doc Brown)
6038
+ Debugging ON
6039
+ Maximum connections set to 1024
6040
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6041
+ Exiting!
6042
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6043
+ Using rack adapter
6044
+ Thin web server (v1.6.2 codename Doc Brown)
6045
+ Debugging ON
6046
+ Maximum connections set to 1024
6047
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6048
+
6049
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6050
+
6051
+ 76: def record_request(path)
6052
+ 77: requests[path][:count] += 1
6053
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6054
+ 79: requests[path][:last_request] = request_made
6055
+ => 80: require 'pry'; binding.pry
6056
+ 81: end
6057
+
6058
+ [?1034h[1] pry(#<OptimusPrime::Server>)> Exiting!
6059
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6060
+ Using rack adapter
6061
+ Thin web server (v1.6.2 codename Doc Brown)
6062
+ Debugging ON
6063
+ Maximum connections set to 1024
6064
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6065
+
6066
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6067
+
6068
+ 76: def record_request(path)
6069
+ 77: requests[path][:count] += 1
6070
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6071
+ 79: requests[path][:last_request] = request_made
6072
+ => 80: require 'pry'; binding.pry
6073
+ 81: end
6074
+
6075
+ [?1034h[1] pry(#<OptimusPrime::Server>)> Exiting!
6076
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6077
+ Using rack adapter
6078
+ Thin web server (v1.6.2 codename Doc Brown)
6079
+ Debugging ON
6080
+ Maximum connections set to 1024
6081
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6082
+
6083
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6084
+
6085
+ 76: def record_request(path)
6086
+ 77: requests[path][:count] += 1
6087
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6088
+ 79: requests[path][:last_request] = request_made
6089
+ => 80: require 'pry'; binding.pry
6090
+ 81: end
6091
+
6092
+ [?1034h[1] pry(#<OptimusPrime::Server>)> Exiting!
6093
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6094
+ Using rack adapter
6095
+ Thin web server (v1.6.2 codename Doc Brown)
6096
+ Debugging ON
6097
+ Maximum connections set to 1024
6098
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6099
+
6100
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6101
+
6102
+ 76: def record_request(path)
6103
+ 77: requests[path][:count] += 1
6104
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6105
+ 79: requests[path][:last_request] = request_made
6106
+ => 80: require 'pry'; binding.pry
6107
+ 81: end
6108
+
6109
+ [?1034h[1] pry(#<OptimusPrime::Server>)> Exiting!
6110
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6111
+ Using rack adapter
6112
+ Thin web server (v1.6.2 codename Doc Brown)
6113
+ Debugging ON
6114
+ Maximum connections set to 1024
6115
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6116
+
6117
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6118
+
6119
+ 76: def record_request(path)
6120
+ 77: requests[path][:count] += 1
6121
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6122
+ 79: requests[path][:last_request] = request_made
6123
+ => 80: require 'pry'; binding.pry
6124
+ 81: end
6125
+
6126
+ [?1034h[1] pry(#<OptimusPrime::Server>)> Exiting!
6127
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6128
+ Using rack adapter
6129
+ Thin web server (v1.6.2 codename Doc Brown)
6130
+ Debugging ON
6131
+ Maximum connections set to 1024
6132
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6133
+ Exiting!
6134
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6135
+ Using rack adapter
6136
+ Thin web server (v1.6.2 codename Doc Brown)
6137
+ Debugging ON
6138
+ Maximum connections set to 1024
6139
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6140
+ Exiting!
6141
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6142
+ Using rack adapter
6143
+ Thin web server (v1.6.2 codename Doc Brown)
6144
+ Debugging ON
6145
+ Maximum connections set to 1024
6146
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6147
+ Exiting!
6148
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6149
+ Using rack adapter
6150
+ Thin web server (v1.6.2 codename Doc Brown)
6151
+ Debugging ON
6152
+ Maximum connections set to 1024
6153
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6154
+
6155
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6156
+
6157
+ 76: def record_request(path)
6158
+ 77: requests[path][:count] += 1
6159
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6160
+ 79: requests[path][:last_request] = request_made
6161
+ => 80: require 'pry'; binding.pry
6162
+ 81: end
6163
+
6164
+ [?1034h[1] pry(#<OptimusPrime::Server>)>
6165
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6166
+
6167
+ 76: def record_request(path)
6168
+ 77: requests[path][:count] += 1
6169
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6170
+ 79: requests[path][:last_request] = request_made
6171
+ => 80: require 'pry'; binding.pry
6172
+ 81: end
6173
+
6174
+ [1] pry(#<OptimusPrime::Server>)>
6175
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6176
+
6177
+ 76: def record_request(path)
6178
+ 77: requests[path][:count] += 1
6179
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6180
+ 79: requests[path][:last_request] = request_made
6181
+ => 80: require 'pry'; binding.pry
6182
+ 81: end
6183
+
6184
+ [1] pry(#<OptimusPrime::Server>)>
6185
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6186
+
6187
+ 76: def record_request(path)
6188
+ 77: requests[path][:count] += 1
6189
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6190
+ 79: requests[path][:last_request] = request_made
6191
+ => 80: require 'pry'; binding.pry
6192
+ 81: end
6193
+
6194
+ [1] pry(#<OptimusPrime::Server>)>
6195
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6196
+
6197
+ 76: def record_request(path)
6198
+ 77: requests[path][:count] += 1
6199
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6200
+ 79: requests[path][:last_request] = request_made
6201
+ => 80: require 'pry'; binding.pry
6202
+ 81: end
6203
+
6204
+ [1] pry(#<OptimusPrime::Server>)>
6205
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6206
+
6207
+ 76: def record_request(path)
6208
+ 77: requests[path][:count] += 1
6209
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6210
+ 79: requests[path][:last_request] = request_made
6211
+ => 80: require 'pry'; binding.pry
6212
+ 81: end
6213
+
6214
+ [1] pry(#<OptimusPrime::Server>)>
6215
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6216
+
6217
+ 76: def record_request(path)
6218
+ 77: requests[path][:count] += 1
6219
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6220
+ 79: requests[path][:last_request] = request_made
6221
+ => 80: require 'pry'; binding.pry
6222
+ 81: end
6223
+
6224
+ [1] pry(#<OptimusPrime::Server>)>
6225
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6226
+
6227
+ 76: def record_request(path)
6228
+ 77: requests[path][:count] += 1
6229
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6230
+ 79: requests[path][:last_request] = request_made
6231
+ => 80: require 'pry'; binding.pry
6232
+ 81: end
6233
+
6234
+ [1] pry(#<OptimusPrime::Server>)>
6235
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6236
+
6237
+ 76: def record_request(path)
6238
+ 77: requests[path][:count] += 1
6239
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6240
+ 79: requests[path][:last_request] = request_made
6241
+ => 80: require 'pry'; binding.pry
6242
+ 81: end
6243
+
6244
+ [1] pry(#<OptimusPrime::Server>)>
6245
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6246
+
6247
+ 76: def record_request(path)
6248
+ 77: requests[path][:count] += 1
6249
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6250
+ 79: requests[path][:last_request] = request_made
6251
+ => 80: require 'pry'; binding.pry
6252
+ 81: end
6253
+
6254
+ [1] pry(#<OptimusPrime::Server>)>
6255
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6256
+
6257
+ 76: def record_request(path)
6258
+ 77: requests[path][:count] += 1
6259
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6260
+ 79: requests[path][:last_request] = request_made
6261
+ => 80: require 'pry'; binding.pry
6262
+ 81: end
6263
+
6264
+ [1] pry(#<OptimusPrime::Server>)>
6265
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6266
+
6267
+ 76: def record_request(path)
6268
+ 77: requests[path][:count] += 1
6269
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6270
+ 79: requests[path][:last_request] = request_made
6271
+ => 80: require 'pry'; binding.pry
6272
+ 81: end
6273
+
6274
+ [1] pry(#<OptimusPrime::Server>)>
6275
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6276
+
6277
+ 76: def record_request(path)
6278
+ 77: requests[path][:count] += 1
6279
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6280
+ 79: requests[path][:last_request] = request_made
6281
+ => 80: require 'pry'; binding.pry
6282
+ 81: end
6283
+
6284
+ [1] pry(#<OptimusPrime::Server>)>
6285
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6286
+
6287
+ 76: def record_request(path)
6288
+ 77: requests[path][:count] += 1
6289
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6290
+ 79: requests[path][:last_request] = request_made
6291
+ => 80: require 'pry'; binding.pry
6292
+ 81: end
6293
+
6294
+ [1] pry(#<OptimusPrime::Server>)>
6295
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6296
+
6297
+ 76: def record_request(path)
6298
+ 77: requests[path][:count] += 1
6299
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6300
+ 79: requests[path][:last_request] = request_made
6301
+ => 80: require 'pry'; binding.pry
6302
+ 81: end
6303
+
6304
+ [1] pry(#<OptimusPrime::Server>)>
6305
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6306
+
6307
+ 76: def record_request(path)
6308
+ 77: requests[path][:count] += 1
6309
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6310
+ 79: requests[path][:last_request] = request_made
6311
+ => 80: require 'pry'; binding.pry
6312
+ 81: end
6313
+
6314
+ [1] pry(#<OptimusPrime::Server>)>
6315
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6316
+
6317
+ 76: def record_request(path)
6318
+ 77: requests[path][:count] += 1
6319
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6320
+ 79: requests[path][:last_request] = request_made
6321
+ => 80: require 'pry'; binding.pry
6322
+ 81: end
6323
+
6324
+ [1] pry(#<OptimusPrime::Server>)>
6325
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6326
+
6327
+ 76: def record_request(path)
6328
+ 77: requests[path][:count] += 1
6329
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6330
+ 79: requests[path][:last_request] = request_made
6331
+ => 80: require 'pry'; binding.pry
6332
+ 81: end
6333
+
6334
+ [1] pry(#<OptimusPrime::Server>)> Exiting!
6335
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6336
+ Using rack adapter
6337
+ Thin web server (v1.6.2 codename Doc Brown)
6338
+ Debugging ON
6339
+ Maximum connections set to 1024
6340
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6341
+
6342
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6343
+
6344
+ 76: def record_request(path)
6345
+ 77: requests[path][:count] += 1
6346
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6347
+ 79: requests[path][:last_request] = request_made
6348
+ => 80: require 'pry'; binding.pry
6349
+ 81: end
6350
+
6351
+ [?1034h[1] pry(#<OptimusPrime::Server>)>
6352
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6353
+
6354
+ 76: def record_request(path)
6355
+ 77: requests[path][:count] += 1
6356
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6357
+ 79: requests[path][:last_request] = request_made
6358
+ => 80: require 'pry'; binding.pry
6359
+ 81: end
6360
+
6361
+ [1] pry(#<OptimusPrime::Server>)>
6362
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6363
+
6364
+ 76: def record_request(path)
6365
+ 77: requests[path][:count] += 1
6366
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6367
+ 79: requests[path][:last_request] = request_made
6368
+ => 80: require 'pry'; binding.pry
6369
+ 81: end
6370
+
6371
+ [1] pry(#<OptimusPrime::Server>)>
6372
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6373
+
6374
+ 76: def record_request(path)
6375
+ 77: requests[path][:count] += 1
6376
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6377
+ 79: requests[path][:last_request] = request_made
6378
+ => 80: require 'pry'; binding.pry
6379
+ 81: end
6380
+
6381
+ [1] pry(#<OptimusPrime::Server>)>
6382
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6383
+
6384
+ 76: def record_request(path)
6385
+ 77: requests[path][:count] += 1
6386
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6387
+ 79: requests[path][:last_request] = request_made
6388
+ => 80: require 'pry'; binding.pry
6389
+ 81: end
6390
+
6391
+ [1] pry(#<OptimusPrime::Server>)>
6392
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6393
+
6394
+ 76: def record_request(path)
6395
+ 77: requests[path][:count] += 1
6396
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6397
+ 79: requests[path][:last_request] = request_made
6398
+ => 80: require 'pry'; binding.pry
6399
+ 81: end
6400
+
6401
+ [1] pry(#<OptimusPrime::Server>)>
6402
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6403
+
6404
+ 76: def record_request(path)
6405
+ 77: requests[path][:count] += 1
6406
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6407
+ 79: requests[path][:last_request] = request_made
6408
+ => 80: require 'pry'; binding.pry
6409
+ 81: end
6410
+
6411
+ [1] pry(#<OptimusPrime::Server>)>
6412
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6413
+
6414
+ 76: def record_request(path)
6415
+ 77: requests[path][:count] += 1
6416
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6417
+ 79: requests[path][:last_request] = request_made
6418
+ => 80: require 'pry'; binding.pry
6419
+ 81: end
6420
+
6421
+ [1] pry(#<OptimusPrime::Server>)>
6422
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6423
+
6424
+ 76: def record_request(path)
6425
+ 77: requests[path][:count] += 1
6426
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6427
+ 79: requests[path][:last_request] = request_made
6428
+ => 80: require 'pry'; binding.pry
6429
+ 81: end
6430
+
6431
+ [1] pry(#<OptimusPrime::Server>)>
6432
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6433
+
6434
+ 76: def record_request(path)
6435
+ 77: requests[path][:count] += 1
6436
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6437
+ 79: requests[path][:last_request] = request_made
6438
+ => 80: require 'pry'; binding.pry
6439
+ 81: end
6440
+
6441
+ [1] pry(#<OptimusPrime::Server>)>
6442
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6443
+
6444
+ 76: def record_request(path)
6445
+ 77: requests[path][:count] += 1
6446
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6447
+ 79: requests[path][:last_request] = request_made
6448
+ => 80: require 'pry'; binding.pry
6449
+ 81: end
6450
+
6451
+ [1] pry(#<OptimusPrime::Server>)>
6452
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6453
+
6454
+ 76: def record_request(path)
6455
+ 77: requests[path][:count] += 1
6456
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6457
+ 79: requests[path][:last_request] = request_made
6458
+ => 80: require 'pry'; binding.pry
6459
+ 81: end
6460
+
6461
+ [1] pry(#<OptimusPrime::Server>)>
6462
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6463
+
6464
+ 76: def record_request(path)
6465
+ 77: requests[path][:count] += 1
6466
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6467
+ 79: requests[path][:last_request] = request_made
6468
+ => 80: require 'pry'; binding.pry
6469
+ 81: end
6470
+
6471
+ [1] pry(#<OptimusPrime::Server>)>
6472
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6473
+
6474
+ 76: def record_request(path)
6475
+ 77: requests[path][:count] += 1
6476
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6477
+ 79: requests[path][:last_request] = request_made
6478
+ => 80: require 'pry'; binding.pry
6479
+ 81: end
6480
+
6481
+ [1] pry(#<OptimusPrime::Server>)>
6482
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6483
+
6484
+ 76: def record_request(path)
6485
+ 77: requests[path][:count] += 1
6486
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6487
+ 79: requests[path][:last_request] = request_made
6488
+ => 80: require 'pry'; binding.pry
6489
+ 81: end
6490
+
6491
+ [1] pry(#<OptimusPrime::Server>)>
6492
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6493
+
6494
+ 76: def record_request(path)
6495
+ 77: requests[path][:count] += 1
6496
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6497
+ 79: requests[path][:last_request] = request_made
6498
+ => 80: require 'pry'; binding.pry
6499
+ 81: end
6500
+
6501
+ [1] pry(#<OptimusPrime::Server>)>
6502
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6503
+
6504
+ 76: def record_request(path)
6505
+ 77: requests[path][:count] += 1
6506
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6507
+ 79: requests[path][:last_request] = request_made
6508
+ => 80: require 'pry'; binding.pry
6509
+ 81: end
6510
+
6511
+ [1] pry(#<OptimusPrime::Server>)>
6512
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6513
+
6514
+ 76: def record_request(path)
6515
+ 77: requests[path][:count] += 1
6516
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6517
+ 79: requests[path][:last_request] = request_made
6518
+ => 80: require 'pry'; binding.pry
6519
+ 81: end
6520
+
6521
+ [1] pry(#<OptimusPrime::Server>)> Exiting!
6522
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6523
+ Using rack adapter
6524
+ Thin web server (v1.6.2 codename Doc Brown)
6525
+ Debugging ON
6526
+ Maximum connections set to 1024
6527
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6528
+
6529
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6530
+
6531
+ 76: def record_request(path)
6532
+ 77: requests[path][:count] += 1
6533
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6534
+ 79: requests[path][:last_request] = request_made
6535
+ => 80: require 'pry'; binding.pry
6536
+ 81: end
6537
+
6538
+ [?1034h[1] pry(#<OptimusPrime::Server>)>
6539
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6540
+
6541
+ 76: def record_request(path)
6542
+ 77: requests[path][:count] += 1
6543
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6544
+ 79: requests[path][:last_request] = request_made
6545
+ => 80: require 'pry'; binding.pry
6546
+ 81: end
6547
+
6548
+ [1] pry(#<OptimusPrime::Server>)>
6549
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6550
+
6551
+ 76: def record_request(path)
6552
+ 77: requests[path][:count] += 1
6553
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6554
+ 79: requests[path][:last_request] = request_made
6555
+ => 80: require 'pry'; binding.pry
6556
+ 81: end
6557
+
6558
+ [1] pry(#<OptimusPrime::Server>)>
6559
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6560
+
6561
+ 76: def record_request(path)
6562
+ 77: requests[path][:count] += 1
6563
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6564
+ 79: requests[path][:last_request] = request_made
6565
+ => 80: require 'pry'; binding.pry
6566
+ 81: end
6567
+
6568
+ [1] pry(#<OptimusPrime::Server>)>
6569
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6570
+
6571
+ 76: def record_request(path)
6572
+ 77: requests[path][:count] += 1
6573
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6574
+ 79: requests[path][:last_request] = request_made
6575
+ => 80: require 'pry'; binding.pry
6576
+ 81: end
6577
+
6578
+ [1] pry(#<OptimusPrime::Server>)>
6579
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6580
+
6581
+ 76: def record_request(path)
6582
+ 77: requests[path][:count] += 1
6583
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6584
+ 79: requests[path][:last_request] = request_made
6585
+ => 80: require 'pry'; binding.pry
6586
+ 81: end
6587
+
6588
+ [1] pry(#<OptimusPrime::Server>)>
6589
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6590
+
6591
+ 76: def record_request(path)
6592
+ 77: requests[path][:count] += 1
6593
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6594
+ 79: requests[path][:last_request] = request_made
6595
+ => 80: require 'pry'; binding.pry
6596
+ 81: end
6597
+
6598
+ [1] pry(#<OptimusPrime::Server>)>
6599
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6600
+
6601
+ 76: def record_request(path)
6602
+ 77: requests[path][:count] += 1
6603
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6604
+ 79: requests[path][:last_request] = request_made
6605
+ => 80: require 'pry'; binding.pry
6606
+ 81: end
6607
+
6608
+ [1] pry(#<OptimusPrime::Server>)>
6609
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6610
+
6611
+ 76: def record_request(path)
6612
+ 77: requests[path][:count] += 1
6613
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6614
+ 79: requests[path][:last_request] = request_made
6615
+ => 80: require 'pry'; binding.pry
6616
+ 81: end
6617
+
6618
+ [1] pry(#<OptimusPrime::Server>)>
6619
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6620
+
6621
+ 76: def record_request(path)
6622
+ 77: requests[path][:count] += 1
6623
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6624
+ 79: requests[path][:last_request] = request_made
6625
+ => 80: require 'pry'; binding.pry
6626
+ 81: end
6627
+
6628
+ [1] pry(#<OptimusPrime::Server>)>
6629
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6630
+
6631
+ 76: def record_request(path)
6632
+ 77: requests[path][:count] += 1
6633
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6634
+ 79: requests[path][:last_request] = request_made
6635
+ => 80: require 'pry'; binding.pry
6636
+ 81: end
6637
+
6638
+ [1] pry(#<OptimusPrime::Server>)>
6639
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6640
+
6641
+ 76: def record_request(path)
6642
+ 77: requests[path][:count] += 1
6643
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6644
+ 79: requests[path][:last_request] = request_made
6645
+ => 80: require 'pry'; binding.pry
6646
+ 81: end
6647
+
6648
+ [1] pry(#<OptimusPrime::Server>)>
6649
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6650
+
6651
+ 76: def record_request(path)
6652
+ 77: requests[path][:count] += 1
6653
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6654
+ 79: requests[path][:last_request] = request_made
6655
+ => 80: require 'pry'; binding.pry
6656
+ 81: end
6657
+
6658
+ [1] pry(#<OptimusPrime::Server>)>
6659
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6660
+
6661
+ 76: def record_request(path)
6662
+ 77: requests[path][:count] += 1
6663
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6664
+ 79: requests[path][:last_request] = request_made
6665
+ => 80: require 'pry'; binding.pry
6666
+ 81: end
6667
+
6668
+ [1] pry(#<OptimusPrime::Server>)>
6669
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6670
+
6671
+ 76: def record_request(path)
6672
+ 77: requests[path][:count] += 1
6673
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6674
+ 79: requests[path][:last_request] = request_made
6675
+ => 80: require 'pry'; binding.pry
6676
+ 81: end
6677
+
6678
+ [1] pry(#<OptimusPrime::Server>)>
6679
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6680
+
6681
+ 76: def record_request(path)
6682
+ 77: requests[path][:count] += 1
6683
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6684
+ 79: requests[path][:last_request] = request_made
6685
+ => 80: require 'pry'; binding.pry
6686
+ 81: end
6687
+
6688
+ [1] pry(#<OptimusPrime::Server>)>
6689
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6690
+
6691
+ 76: def record_request(path)
6692
+ 77: requests[path][:count] += 1
6693
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6694
+ 79: requests[path][:last_request] = request_made
6695
+ => 80: require 'pry'; binding.pry
6696
+ 81: end
6697
+
6698
+ [1] pry(#<OptimusPrime::Server>)> Exiting!
6699
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6700
+ Using rack adapter
6701
+ Thin web server (v1.6.2 codename Doc Brown)
6702
+ Debugging ON
6703
+ Maximum connections set to 1024
6704
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6705
+ Exiting!
6706
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6707
+ Using rack adapter
6708
+ Thin web server (v1.6.2 codename Doc Brown)
6709
+ Debugging ON
6710
+ Maximum connections set to 1024
6711
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6712
+ Exiting!
6713
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6714
+ Using rack adapter
6715
+ Thin web server (v1.6.2 codename Doc Brown)
6716
+ Debugging ON
6717
+ Maximum connections set to 1024
6718
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6719
+ Exiting!
6720
+ Writing PID to /Users/mars/dev/optimus_prime/tmp/pids/optimus_prime.pid
6721
+ Using rack adapter
6722
+ Thin web server (v1.6.2 codename Doc Brown)
6723
+ Debugging ON
6724
+ Maximum connections set to 1024
6725
+ Listening on 0.0.0.0:7003, CTRL+C to stop
6726
+
6727
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6728
+
6729
+ 76: def record_request(path)
6730
+ 77: requests[path][:count] += 1
6731
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6732
+ 79: requests[path][:last_request] = request_made
6733
+ => 80: require 'pry'; binding.pry
6734
+ 81: end
6735
+
6736
+ [?1034h[1] pry(#<OptimusPrime::Server>)>
6737
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6738
+
6739
+ 76: def record_request(path)
6740
+ 77: requests[path][:count] += 1
6741
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6742
+ 79: requests[path][:last_request] = request_made
6743
+ => 80: require 'pry'; binding.pry
6744
+ 81: end
6745
+
6746
+ [1] pry(#<OptimusPrime::Server>)>
6747
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6748
+
6749
+ 76: def record_request(path)
6750
+ 77: requests[path][:count] += 1
6751
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6752
+ 79: requests[path][:last_request] = request_made
6753
+ => 80: require 'pry'; binding.pry
6754
+ 81: end
6755
+
6756
+ [1] pry(#<OptimusPrime::Server>)>
6757
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6758
+
6759
+ 76: def record_request(path)
6760
+ 77: requests[path][:count] += 1
6761
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6762
+ 79: requests[path][:last_request] = request_made
6763
+ => 80: require 'pry'; binding.pry
6764
+ 81: end
6765
+
6766
+ [1] pry(#<OptimusPrime::Server>)>
6767
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6768
+
6769
+ 76: def record_request(path)
6770
+ 77: requests[path][:count] += 1
6771
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6772
+ 79: requests[path][:last_request] = request_made
6773
+ => 80: require 'pry'; binding.pry
6774
+ 81: end
6775
+
6776
+ [1] pry(#<OptimusPrime::Server>)>
6777
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6778
+
6779
+ 76: def record_request(path)
6780
+ 77: requests[path][:count] += 1
6781
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6782
+ 79: requests[path][:last_request] = request_made
6783
+ => 80: require 'pry'; binding.pry
6784
+ 81: end
6785
+
6786
+ [1] pry(#<OptimusPrime::Server>)>
6787
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6788
+
6789
+ 76: def record_request(path)
6790
+ 77: requests[path][:count] += 1
6791
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6792
+ 79: requests[path][:last_request] = request_made
6793
+ => 80: require 'pry'; binding.pry
6794
+ 81: end
6795
+
6796
+ [1] pry(#<OptimusPrime::Server>)>
6797
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6798
+
6799
+ 76: def record_request(path)
6800
+ 77: requests[path][:count] += 1
6801
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6802
+ 79: requests[path][:last_request] = request_made
6803
+ => 80: require 'pry'; binding.pry
6804
+ 81: end
6805
+
6806
+ [1] pry(#<OptimusPrime::Server>)>
6807
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6808
+
6809
+ 76: def record_request(path)
6810
+ 77: requests[path][:count] += 1
6811
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6812
+ 79: requests[path][:last_request] = request_made
6813
+ => 80: require 'pry'; binding.pry
6814
+ 81: end
6815
+
6816
+ [1] pry(#<OptimusPrime::Server>)>
6817
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6818
+
6819
+ 76: def record_request(path)
6820
+ 77: requests[path][:count] += 1
6821
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6822
+ 79: requests[path][:last_request] = request_made
6823
+ => 80: require 'pry'; binding.pry
6824
+ 81: end
6825
+
6826
+ [1] pry(#<OptimusPrime::Server>)>
6827
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6828
+
6829
+ 76: def record_request(path)
6830
+ 77: requests[path][:count] += 1
6831
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6832
+ 79: requests[path][:last_request] = request_made
6833
+ => 80: require 'pry'; binding.pry
6834
+ 81: end
6835
+
6836
+ [1] pry(#<OptimusPrime::Server>)>
6837
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6838
+
6839
+ 76: def record_request(path)
6840
+ 77: requests[path][:count] += 1
6841
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6842
+ 79: requests[path][:last_request] = request_made
6843
+ => 80: require 'pry'; binding.pry
6844
+ 81: end
6845
+
6846
+ [1] pry(#<OptimusPrime::Server>)>
6847
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6848
+
6849
+ 76: def record_request(path)
6850
+ 77: requests[path][:count] += 1
6851
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6852
+ 79: requests[path][:last_request] = request_made
6853
+ => 80: require 'pry'; binding.pry
6854
+ 81: end
6855
+
6856
+ [1] pry(#<OptimusPrime::Server>)>
6857
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6858
+
6859
+ 76: def record_request(path)
6860
+ 77: requests[path][:count] += 1
6861
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6862
+ 79: requests[path][:last_request] = request_made
6863
+ => 80: require 'pry'; binding.pry
6864
+ 81: end
6865
+
6866
+ [1] pry(#<OptimusPrime::Server>)>
6867
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6868
+
6869
+ 76: def record_request(path)
6870
+ 77: requests[path][:count] += 1
6871
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6872
+ 79: requests[path][:last_request] = request_made
6873
+ => 80: require 'pry'; binding.pry
6874
+ 81: end
6875
+
6876
+ [1] pry(#<OptimusPrime::Server>)>
6877
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6878
+
6879
+ 76: def record_request(path)
6880
+ 77: requests[path][:count] += 1
6881
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6882
+ 79: requests[path][:last_request] = request_made
6883
+ => 80: require 'pry'; binding.pry
6884
+ 81: end
6885
+
6886
+ [1] pry(#<OptimusPrime::Server>)>
6887
+ From: /Users/mars/dev/optimus_prime/lib/optimus_prime/server.rb @ line 80 OptimusPrime::Server#record_request:
6888
+
6889
+ 76: def record_request(path)
6890
+ 77: requests[path][:count] += 1
6891
+ 78: request_made = {method: self.env["REQUEST_METHOD"], body: request.params, headers: { content_type: request.content_type, accept: request.accept } }
6892
+ 79: requests[path][:last_request] = request_made
6893
+ => 80: require 'pry'; binding.pry
6894
+ 81: end
6895
+
6896
+ [1] pry(#<OptimusPrime::Server>)>