optimus_prime 1.0.2 → 1.1.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: 5705ce196f1ac30ab2d1f07e26a475d3782c07dc
4
- data.tar.gz: 9e1ea712f2e22989a1ceb76f5987b91b40f8ce96
3
+ metadata.gz: ca7a1700d4761d1d32247a3f77b1957b19b23ad8
4
+ data.tar.gz: b3f3246cb92d0e6ea767b2f5095614f137373a65
5
5
  SHA512:
6
- metadata.gz: bdfef60774dfa812a46b61cb3b9af6ebc5af335d50b7c177a52bdedd0b21b42f89db87d9140d9fe376439cf294fe89f128b007b3172440ca07596d6a8645c19d
7
- data.tar.gz: 09f49cd950021ed2c8958905c7cbd094e3cb38a20a1b064daad7d14df9d60584f9a2054bc9a899d0418aeda64cd1120e58750af4ac2d4aa58a60373edc3e63fe
6
+ metadata.gz: c4ef7ea8befd7aee9f93b45215b3fae78d66fecfa4ad4ab55e8240b89f4db4a4c1512131aba18888287abd61c919b5f9861624538fb957e27cb9eba25412a99b
7
+ data.tar.gz: 98739ef0b9849e864d085541e194d8ea22f7dcd19551939b6efd78537df149bef6b1171748b0436f75baf68d995f4bbfbb9ea3bbd31ef80ed61a60c6625e2053
data/README.md CHANGED
@@ -98,11 +98,24 @@ response = Faraday.get("http://localhost:7002/get/users")
98
98
  response.status #=> 200
99
99
  ```
100
100
 
101
+ ## Requests not primed
102
+ ```ruby
103
+ ::Faraday.get("http://localhost:7002/get/i-am-not-primed")
104
+
105
+ ```
106
+ Now go to http://localhost:7002/not-primed
107
+ ```json
108
+ get/i-am-not-primed: {
109
+ time: "2014-09-07 18:50:57 +0100",
110
+ HTTP_METHOD: "GET"
111
+ }
112
+ ```
113
+
101
114
 
102
115
  ## TODO
103
116
  * Move server initialisation into rake task in order to prevent it from initialising
104
117
  from its directory.
105
- * Support DELETE, HEAD, PUT http methods
118
+ * Support DELETE, HEAD http methods
106
119
  * Support REGEX as a path
107
120
  * Support html templates
108
121
 
@@ -8,11 +8,17 @@ module OptimusPrime
8
8
 
9
9
  set :public_folder, __dir__ + "/server/public"
10
10
 
11
+ @@responses ||= {}
12
+ @@not_primed ||= {}
13
+
11
14
  put "/get/*" do
12
15
  path = get_path
13
16
  response = responses[path]
14
17
 
15
- return 404 if response.nil?
18
+ if response.nil?
19
+ @@not_primed[path] = { time: Time.now.to_s, HTTP_METHOD: env["REQUEST_METHOD"] }
20
+ return 404
21
+ end
16
22
 
17
23
  if response[:requested_with]
18
24
  return 404 unless eval("request.body.string.include?('#{response[:requested_with]}')")
@@ -31,7 +37,11 @@ module OptimusPrime
31
37
  post "/get/*" do
32
38
  path = get_path
33
39
  response = responses[path]
34
- return 404 if response.nil?
40
+
41
+ if response.nil?
42
+ @@not_primed[path] = { time: Time.now.to_s, HTTP_METHOD: env["REQUEST_METHOD"] }
43
+ return 404
44
+ end
35
45
 
36
46
  if response[:requested_with]
37
47
  return 404 unless eval("request.body.string.include?('#{response[:requested_with]}')")
@@ -59,7 +69,12 @@ module OptimusPrime
59
69
  get "/get/*" do
60
70
  path = get_path
61
71
  response = responses[path]
62
- return 404 if response.nil?
72
+
73
+ if response.nil?
74
+ @@not_primed[path] = { time: Time.now.to_s, HTTP_METHOD: env["REQUEST_METHOD"] }
75
+ return 404
76
+ end
77
+
63
78
  sleep(response[:sleep].to_f) if response[:sleep]
64
79
 
65
80
  content_type(response[:content_type])
@@ -82,10 +97,15 @@ module OptimusPrime
82
97
  @@responses = {}
83
98
  end
84
99
 
100
+ get "/not-primed" do
101
+ content_type :json
102
+ @@not_primed.to_json
103
+ end
104
+
85
105
  private
86
106
 
87
107
  def responses
88
- @@responses ||= {}
108
+ @@responses
89
109
  end
90
110
 
91
111
  def get_boolean(boolean)
@@ -1,3 +1,3 @@
1
1
  module OptimusPrime
2
- VERSION = "1.0.2"
2
+ VERSION = "1.1.0"
3
3
  end
data/optimus_prime.log CHANGED
@@ -2889,3 +2889,524 @@ Thin web server (v1.6.2 codename Doc Brown)
2889
2889
  Debugging ON
2890
2890
  Maximum connections set to 1024
2891
2891
  Listening on 0.0.0.0:7003, CTRL+C to stop
2892
+ Writing PID to /Users/acnalesso/dev/optimus_prime/tmp/pids/optimus_prime.pid
2893
+ Using rack adapter
2894
+ Thin web server (v1.6.2 codename Doc Brown)
2895
+ Debugging ON
2896
+ Maximum connections set to 1024
2897
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2898
+ Exiting!
2899
+ Writing PID to /Users/acnalesso/dev/optimus_prime/tmp/pids/optimus_prime.pid
2900
+ Using rack adapter
2901
+ Thin web server (v1.6.2 codename Doc Brown)
2902
+ Debugging ON
2903
+ Maximum connections set to 1024
2904
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2905
+ NameError - uninitialized class variable @@not_primed in OptimusPrime::Server:
2906
+ /Users/acnalesso/dev/optimus_prime/lib/optimus_prime/server.rb:64:in `block in <class:Server>'
2907
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `call'
2908
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `block in compile!'
2909
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `[]'
2910
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (3 levels) in route!'
2911
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:985:in `route_eval'
2912
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (2 levels) in route!'
2913
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1006:in `block in process_route'
2914
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `catch'
2915
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `process_route'
2916
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:964:in `block in route!'
2917
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `each'
2918
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `route!'
2919
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1076:in `block in dispatch!'
2920
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
2921
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
2922
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
2923
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1073:in `dispatch!'
2924
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `block in call!'
2925
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
2926
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
2927
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
2928
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `call!'
2929
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:886:in `call'
2930
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
2931
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
2932
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
2933
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
2934
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
2935
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
2936
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
2937
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
2938
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/show_exceptions.rb:21:in `call'
2939
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:180:in `call'
2940
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:2014:in `call'
2941
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `block in call'
2942
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1788:in `synchronize'
2943
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `call'
2944
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
2945
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
2946
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
2947
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:53:in `process'
2948
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
2949
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
2950
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
2951
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
2952
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
2953
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/controllers/controller.rb:87:in `start'
2954
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
2955
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
2956
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
2957
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `load'
2958
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `<main>'
2959
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
2960
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
2961
+ NameError - uninitialized class variable @@not_primed in OptimusPrime::Server:
2962
+ /Users/acnalesso/dev/optimus_prime/lib/optimus_prime/server.rb:92:in `block in <class:Server>'
2963
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `call'
2964
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `block in compile!'
2965
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `[]'
2966
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (3 levels) in route!'
2967
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:985:in `route_eval'
2968
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (2 levels) in route!'
2969
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1006:in `block in process_route'
2970
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `catch'
2971
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `process_route'
2972
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:964:in `block in route!'
2973
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `each'
2974
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `route!'
2975
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1076:in `block in dispatch!'
2976
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
2977
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
2978
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
2979
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1073:in `dispatch!'
2980
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `block in call!'
2981
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
2982
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
2983
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
2984
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `call!'
2985
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:886:in `call'
2986
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
2987
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
2988
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
2989
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
2990
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
2991
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
2992
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
2993
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
2994
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/show_exceptions.rb:21:in `call'
2995
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:180:in `call'
2996
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:2014:in `call'
2997
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `block in call'
2998
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1788:in `synchronize'
2999
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `call'
3000
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
3001
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
3002
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
3003
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:53:in `process'
3004
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
3005
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
3006
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
3007
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
3008
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
3009
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/controllers/controller.rb:87:in `start'
3010
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
3011
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
3012
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
3013
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `load'
3014
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `<main>'
3015
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
3016
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
3017
+ NameError - uninitialized class variable @@not_primed in OptimusPrime::Server:
3018
+ /Users/acnalesso/dev/optimus_prime/lib/optimus_prime/server.rb:92:in `block in <class:Server>'
3019
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `call'
3020
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `block in compile!'
3021
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `[]'
3022
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (3 levels) in route!'
3023
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:985:in `route_eval'
3024
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (2 levels) in route!'
3025
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1006:in `block in process_route'
3026
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `catch'
3027
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `process_route'
3028
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:964:in `block in route!'
3029
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `each'
3030
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `route!'
3031
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1076:in `block in dispatch!'
3032
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
3033
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
3034
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
3035
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1073:in `dispatch!'
3036
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `block in call!'
3037
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
3038
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
3039
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
3040
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `call!'
3041
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:886:in `call'
3042
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
3043
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
3044
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
3045
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
3046
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
3047
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
3048
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
3049
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
3050
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/show_exceptions.rb:21:in `call'
3051
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:180:in `call'
3052
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:2014:in `call'
3053
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `block in call'
3054
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1788:in `synchronize'
3055
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `call'
3056
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
3057
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
3058
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
3059
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:53:in `process'
3060
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
3061
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
3062
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
3063
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
3064
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
3065
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/controllers/controller.rb:87:in `start'
3066
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
3067
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
3068
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
3069
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `load'
3070
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `<main>'
3071
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
3072
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
3073
+ NameError - uninitialized class variable @@not_primed in OptimusPrime::Server:
3074
+ /Users/acnalesso/dev/optimus_prime/lib/optimus_prime/server.rb:64:in `block in <class:Server>'
3075
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `call'
3076
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `block in compile!'
3077
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `[]'
3078
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (3 levels) in route!'
3079
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:985:in `route_eval'
3080
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (2 levels) in route!'
3081
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1006:in `block in process_route'
3082
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `catch'
3083
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `process_route'
3084
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:964:in `block in route!'
3085
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `each'
3086
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `route!'
3087
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1076:in `block in dispatch!'
3088
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
3089
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
3090
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
3091
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1073:in `dispatch!'
3092
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `block in call!'
3093
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
3094
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
3095
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
3096
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `call!'
3097
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:886:in `call'
3098
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
3099
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
3100
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
3101
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
3102
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
3103
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
3104
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
3105
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
3106
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/show_exceptions.rb:21:in `call'
3107
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:180:in `call'
3108
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:2014:in `call'
3109
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `block in call'
3110
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1788:in `synchronize'
3111
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `call'
3112
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
3113
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
3114
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
3115
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:53:in `process'
3116
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
3117
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
3118
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
3119
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
3120
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
3121
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/controllers/controller.rb:87:in `start'
3122
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
3123
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
3124
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
3125
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `load'
3126
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `<main>'
3127
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
3128
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
3129
+ NameError - uninitialized class variable @@not_primed in OptimusPrime::Server:
3130
+ /Users/acnalesso/dev/optimus_prime/lib/optimus_prime/server.rb:92:in `block in <class:Server>'
3131
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `call'
3132
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `block in compile!'
3133
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `[]'
3134
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (3 levels) in route!'
3135
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:985:in `route_eval'
3136
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (2 levels) in route!'
3137
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1006:in `block in process_route'
3138
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `catch'
3139
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `process_route'
3140
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:964:in `block in route!'
3141
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `each'
3142
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `route!'
3143
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1076:in `block in dispatch!'
3144
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
3145
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
3146
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
3147
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1073:in `dispatch!'
3148
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `block in call!'
3149
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
3150
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
3151
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
3152
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `call!'
3153
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:886:in `call'
3154
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
3155
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
3156
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
3157
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
3158
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
3159
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
3160
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
3161
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
3162
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/show_exceptions.rb:21:in `call'
3163
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:180:in `call'
3164
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:2014:in `call'
3165
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `block in call'
3166
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1788:in `synchronize'
3167
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `call'
3168
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
3169
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
3170
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
3171
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:53:in `process'
3172
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
3173
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
3174
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
3175
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
3176
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
3177
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/controllers/controller.rb:87:in `start'
3178
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
3179
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
3180
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
3181
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `load'
3182
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `<main>'
3183
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
3184
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
3185
+ NameError - uninitialized class variable @@not_primed in OptimusPrime::Server:
3186
+ /Users/acnalesso/dev/optimus_prime/lib/optimus_prime/server.rb:92:in `block in <class:Server>'
3187
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `call'
3188
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `block in compile!'
3189
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `[]'
3190
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (3 levels) in route!'
3191
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:985:in `route_eval'
3192
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (2 levels) in route!'
3193
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1006:in `block in process_route'
3194
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `catch'
3195
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `process_route'
3196
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:964:in `block in route!'
3197
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `each'
3198
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `route!'
3199
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1076:in `block in dispatch!'
3200
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
3201
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
3202
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
3203
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1073:in `dispatch!'
3204
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `block in call!'
3205
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
3206
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
3207
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
3208
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `call!'
3209
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:886:in `call'
3210
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
3211
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
3212
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
3213
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
3214
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
3215
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
3216
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
3217
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
3218
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/show_exceptions.rb:21:in `call'
3219
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:180:in `call'
3220
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:2014:in `call'
3221
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `block in call'
3222
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1788:in `synchronize'
3223
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `call'
3224
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
3225
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
3226
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
3227
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:53:in `process'
3228
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
3229
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
3230
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
3231
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
3232
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
3233
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/controllers/controller.rb:87:in `start'
3234
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
3235
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
3236
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
3237
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `load'
3238
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `<main>'
3239
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
3240
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
3241
+ Waiting for 2 connection(s) to finish, can take up to 30 sec, CTRL+C to stop now
3242
+ Exiting!
3243
+ Writing PID to /Users/acnalesso/dev/optimus_prime/tmp/pids/optimus_prime.pid
3244
+ Using rack adapter
3245
+ Thin web server (v1.6.2 codename Doc Brown)
3246
+ Debugging ON
3247
+ Maximum connections set to 1024
3248
+ Listening on 0.0.0.0:7003, CTRL+C to stop
3249
+ Exiting!
3250
+ Writing PID to /Users/acnalesso/dev/optimus_prime/tmp/pids/optimus_prime.pid
3251
+ Using rack adapter
3252
+ Thin web server (v1.6.2 codename Doc Brown)
3253
+ Debugging ON
3254
+ Maximum connections set to 1024
3255
+ Listening on 0.0.0.0:7003, CTRL+C to stop
3256
+ ArgumentError - wrong number of arguments (0 for 1):
3257
+ /Users/acnalesso/dev/optimus_prime/lib/optimus_prime/server.rb:67:in `method'
3258
+ /Users/acnalesso/dev/optimus_prime/lib/optimus_prime/server.rb:67:in `block in <class:Server>'
3259
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `call'
3260
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `block in compile!'
3261
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `[]'
3262
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (3 levels) in route!'
3263
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:985:in `route_eval'
3264
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (2 levels) in route!'
3265
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1006:in `block in process_route'
3266
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `catch'
3267
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `process_route'
3268
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:964:in `block in route!'
3269
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `each'
3270
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `route!'
3271
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1076:in `block in dispatch!'
3272
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
3273
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
3274
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
3275
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1073:in `dispatch!'
3276
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `block in call!'
3277
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
3278
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
3279
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
3280
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `call!'
3281
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:886:in `call'
3282
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
3283
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
3284
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
3285
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
3286
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
3287
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
3288
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
3289
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
3290
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/show_exceptions.rb:21:in `call'
3291
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:180:in `call'
3292
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:2014:in `call'
3293
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `block in call'
3294
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1788:in `synchronize'
3295
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `call'
3296
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
3297
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
3298
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
3299
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:53:in `process'
3300
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
3301
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
3302
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
3303
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
3304
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
3305
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/controllers/controller.rb:87:in `start'
3306
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
3307
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
3308
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
3309
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `load'
3310
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `<main>'
3311
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
3312
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
3313
+ Waiting for 1 connection(s) to finish, can take up to 30 sec, CTRL+C to stop now
3314
+ Exiting!
3315
+ Writing PID to /Users/acnalesso/dev/optimus_prime/tmp/pids/optimus_prime.pid
3316
+ Using rack adapter
3317
+ Thin web server (v1.6.2 codename Doc Brown)
3318
+ Debugging ON
3319
+ Maximum connections set to 1024
3320
+ Listening on 0.0.0.0:7003, CTRL+C to stop
3321
+ ArgumentError - wrong number of arguments (0 for 1):
3322
+ /Users/acnalesso/dev/optimus_prime/lib/optimus_prime/server.rb:67:in `method'
3323
+ /Users/acnalesso/dev/optimus_prime/lib/optimus_prime/server.rb:67:in `block in <class:Server>'
3324
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `call'
3325
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `block in compile!'
3326
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `[]'
3327
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (3 levels) in route!'
3328
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:985:in `route_eval'
3329
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (2 levels) in route!'
3330
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1006:in `block in process_route'
3331
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `catch'
3332
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `process_route'
3333
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:964:in `block in route!'
3334
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `each'
3335
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `route!'
3336
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1076:in `block in dispatch!'
3337
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
3338
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
3339
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
3340
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1073:in `dispatch!'
3341
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `block in call!'
3342
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
3343
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
3344
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
3345
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `call!'
3346
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:886:in `call'
3347
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
3348
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
3349
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
3350
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
3351
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
3352
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
3353
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
3354
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
3355
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/show_exceptions.rb:21:in `call'
3356
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:180:in `call'
3357
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:2014:in `call'
3358
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `block in call'
3359
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1788:in `synchronize'
3360
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `call'
3361
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
3362
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
3363
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
3364
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:53:in `process'
3365
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
3366
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
3367
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
3368
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
3369
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
3370
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/controllers/controller.rb:87:in `start'
3371
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
3372
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
3373
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
3374
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `load'
3375
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/thin:23:in `<main>'
3376
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
3377
+ /Users/acnalesso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
3378
+ Exiting!
3379
+ Writing PID to /Users/acnalesso/dev/optimus_prime/tmp/pids/optimus_prime.pid
3380
+ Using rack adapter
3381
+ Thin web server (v1.6.2 codename Doc Brown)
3382
+ Debugging ON
3383
+ Maximum connections set to 1024
3384
+ Listening on 0.0.0.0:7003, CTRL+C to stop
3385
+ Exiting!
3386
+ Writing PID to /Users/acnalesso/dev/optimus_prime/tmp/pids/optimus_prime.pid
3387
+ Using rack adapter
3388
+ Thin web server (v1.6.2 codename Doc Brown)
3389
+ Debugging ON
3390
+ Maximum connections set to 1024
3391
+ Listening on 0.0.0.0:7003, CTRL+C to stop
3392
+ Exiting!
3393
+ Writing PID to /Users/acnalesso/dev/optimus_prime/tmp/pids/optimus_prime.pid
3394
+ Using rack adapter
3395
+ Thin web server (v1.6.2 codename Doc Brown)
3396
+ Debugging ON
3397
+ Maximum connections set to 1024
3398
+ Listening on 0.0.0.0:7003, CTRL+C to stop
3399
+ Exiting!
3400
+ Writing PID to /Users/acnalesso/dev/optimus_prime/tmp/pids/optimus_prime.pid
3401
+ Using rack adapter
3402
+ Thin web server (v1.6.2 codename Doc Brown)
3403
+ Debugging ON
3404
+ Maximum connections set to 1024
3405
+ Listening on 0.0.0.0:7003, CTRL+C to stop
3406
+ Exiting!
3407
+ Writing PID to /Users/acnalesso/dev/optimus_prime/tmp/pids/optimus_prime.pid
3408
+ Using rack adapter
3409
+ Thin web server (v1.6.2 codename Doc Brown)
3410
+ Debugging ON
3411
+ Maximum connections set to 1024
3412
+ Listening on 0.0.0.0:7003, CTRL+C to stop
@@ -102,14 +102,6 @@ describe OptimusPrime do
102
102
 
103
103
  end
104
104
 
105
- it "#POST creates a record for with default params" do
106
- op.prime("posts/1", {}, content_type: :json)
107
-
108
- ::Faraday.post("http://localhost:7003/get/posts/1", { text: "I have been created", age: 21, category: "user" })
109
-
110
- expect( JSON.parse(::Faraday.get("http://localhost:7003/get/posts/1").body, symbolize_names: true) ).to eq({:age=>"21", :category=>"user", :text=>"I have been created"})
111
- end
112
-
113
105
  context "#PUT" do
114
106
  it "persists a request when told so" do
115
107
  op.prime("persisted", { text: "" }.to_json, persisted: true, content_type: :json)
@@ -123,4 +115,26 @@ describe OptimusPrime do
123
115
 
124
116
  end
125
117
 
118
+ context "Requests not primed" do
119
+
120
+ it "GET", "tracks requests that have not been primed" do
121
+ ::Faraday.get("http://localhost:7003/get/get/i-am-not-primed")
122
+ expect( ::Faraday.get("http://localhost:7003/not-primed").body ).to include('i-am-not-primed')
123
+ expect( ::Faraday.get("http://localhost:7003/not-primed").body ).to include('GET')
124
+ end
125
+
126
+ it "POST", "tracks requests that have not been primed" do
127
+ ::Faraday.post("http://localhost:7003/get/post/i-am-not-primed")
128
+ expect( ::Faraday.get("http://localhost:7003/not-primed").body ).to include('i-am-not-primed')
129
+ expect( ::Faraday.get("http://localhost:7003/not-primed").body ).to include('POST')
130
+ end
131
+
132
+ it "PUT", "tracks requests that have not been primed" do
133
+ ::Faraday.put("http://localhost:7003/get/put/i-am-not-primed", "")
134
+ expect( ::Faraday.get("http://localhost:7003/not-primed").body ).to include('i-am-not-primed')
135
+ expect( ::Faraday.get("http://localhost:7003/not-primed").body ).to include('PUT')
136
+ end
137
+
138
+ end
139
+
126
140
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optimus_prime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonio Nalesso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-29 00:00:00.000000000 Z
11
+ date: 2014-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler