optimus_prime 1.0.0 → 1.0.1

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: 5af64dcf1d97cc72f361c73e99d6ca751cada381
4
- data.tar.gz: df394a539bce898a440faeba0fd8cad99578580a
3
+ metadata.gz: 70feae880e23b073da4ac911ca69534ab9b3498d
4
+ data.tar.gz: 5a74ff3f014ae0627ac32e5b7ab24e12256fba01
5
5
  SHA512:
6
- metadata.gz: aa7e5241638d58b0587b4d357bcf3154cc18344bf02f3ccb88ef0a43c7c7bf56a21802fdf30333cbd98f56eab55e1f71ea892be693f5e303defa4c4147ea81b7
7
- data.tar.gz: 18b6aaf213bc6faf2c8c1c806d63bec0844ea8d80c3c0e23a8bca0eb863fcf1c0be69ea426ad97a0514b9104857fcd07b26bf1cf503c6dedcd76ec0ba4b88374
6
+ metadata.gz: 1ff1674b24e1f18b9363d8d8d42f1d65d188e20bfeeaa63e22d813b639ce67b73173e0f7c18b689248103733f837f0fe4d4f6775b87c36272d814a9e396abe40
7
+ data.tar.gz: dd3f2866a919c0df1299b42e4800fe6d679998e7178b20465f226469abddd36bfc7315e938e42f1060ce60eb9a7ede8a54f47c50e3b9af0e7b915dff7c784904
@@ -12,7 +12,8 @@ module OptimusPrime
12
12
  end
13
13
 
14
14
  def self.start_server(options={})
15
- @@op_port = ENV["OP.ENV"] == "test" ? 7003 : options[:port]
15
+ @@op_port = 7003 if ENV["OP.ENV"] == "test"
16
+ @@op_port = options[:port] if options[:port]
16
17
 
17
18
  `mkdir -p ./tmp/pids`
18
19
  return `echo 'Optimus is already priming :)'` if system("ls ./tmp/pids/optimus_prime.pid")
@@ -50,7 +50,8 @@ module OptimusPrime
50
50
  end
51
51
 
52
52
  def get_path
53
- self.env["REQUEST_URI"].scan(/^\/get\/([\/\w+]+)(\/|\?|$)/).flatten[0]
53
+ # self.env["REQUEST_URI"].scan(/^\/get\/([\/\w+]+)(\/|\?|$)/).flatten[0]
54
+ self.env["REQUEST_URI"].sub("/get/", "")
54
55
  end
55
56
 
56
57
  get "/get/*" do
@@ -1,3 +1,3 @@
1
1
  module OptimusPrime
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -2755,3 +2755,102 @@ Thin web server (v1.6.2 codename Doc Brown)
2755
2755
  Debugging ON
2756
2756
  Maximum connections set to 1024
2757
2757
  Listening on 0.0.0.0:7003, CTRL+C to stop
2758
+ Exiting!
2759
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2760
+ Using rack adapter
2761
+ Thin web server (v1.6.2 codename Doc Brown)
2762
+ Debugging ON
2763
+ Maximum connections set to 1024
2764
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2765
+ Exiting!
2766
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2767
+ Using rack adapter
2768
+ Thin web server (v1.6.2 codename Doc Brown)
2769
+ Debugging ON
2770
+ Maximum connections set to 1024
2771
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2772
+ Exiting!
2773
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2774
+ Using rack adapter
2775
+ Thin web server (v1.6.2 codename Doc Brown)
2776
+ Debugging ON
2777
+ Maximum connections set to 1024
2778
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2779
+ Exiting!
2780
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2781
+ Using rack adapter
2782
+ Thin web server (v1.6.2 codename Doc Brown)
2783
+ Debugging ON
2784
+ Maximum connections set to 1024
2785
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2786
+ Exiting!
2787
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2788
+ Using rack adapter
2789
+ Thin web server (v1.6.2 codename Doc Brown)
2790
+ Debugging ON
2791
+ Maximum connections set to 1024
2792
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2793
+ Exiting!
2794
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2795
+ Using rack adapter
2796
+ Thin web server (v1.6.2 codename Doc Brown)
2797
+ Debugging ON
2798
+ Maximum connections set to 1024
2799
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2800
+ Exiting!
2801
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2802
+ Using rack adapter
2803
+ Thin web server (v1.6.2 codename Doc Brown)
2804
+ Debugging ON
2805
+ Maximum connections set to 1024
2806
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2807
+ Exiting!
2808
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2809
+ Using rack adapter
2810
+ Thin web server (v1.6.2 codename Doc Brown)
2811
+ Debugging ON
2812
+ Maximum connections set to 1024
2813
+ Listening on 0.0.0.0:7004, CTRL+C to stop
2814
+ Exiting!
2815
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2816
+ Using rack adapter
2817
+ Thin web server (v1.6.2 codename Doc Brown)
2818
+ Debugging ON
2819
+ Maximum connections set to 1024
2820
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2821
+ Exiting!
2822
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2823
+ Using rack adapter
2824
+ Thin web server (v1.6.2 codename Doc Brown)
2825
+ Debugging ON
2826
+ Maximum connections set to 1024
2827
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2828
+ Exiting!
2829
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2830
+ Using rack adapter
2831
+ Thin web server (v1.6.2 codename Doc Brown)
2832
+ Debugging ON
2833
+ Maximum connections set to 1024
2834
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2835
+ Exiting!
2836
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2837
+ Using rack adapter
2838
+ Thin web server (v1.6.2 codename Doc Brown)
2839
+ Debugging ON
2840
+ Maximum connections set to 1024
2841
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2842
+ Exiting!
2843
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2844
+ Using rack adapter
2845
+ Thin web server (v1.6.2 codename Doc Brown)
2846
+ Debugging ON
2847
+ Maximum connections set to 1024
2848
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2849
+ Waiting for 1 connection(s) to finish, can take up to 30 sec, CTRL+C to stop now
2850
+ Exiting!
2851
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2852
+ Using rack adapter
2853
+ Thin web server (v1.6.2 codename Doc Brown)
2854
+ Debugging ON
2855
+ Maximum connections set to 1024
2856
+ Listening on 0.0.0.0:7003, CTRL+C to stop
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.0
4
+ version: 1.0.1
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-26 00:00:00.000000000 Z
11
+ date: 2014-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler