pivotal-screw-unit-server 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/CHANGES +2 -2
  2. data/Rakefile +1 -0
  3. data/VERSION.yml +1 -1
  4. data/standalone.ru +20 -0
  5. metadata +2 -1
data/CHANGES CHANGED
@@ -1,5 +1,5 @@
1
- 0.5.6
2
- - Fixed require thin issue in ScrewUnit::Server.start
1
+ 0.5.7
2
+ - Fixed Server runner
3
3
 
4
4
  0.5.5
5
5
  - Renamed ScrewUnit::ThinRunner to ScrewUnit::Server
data/Rakefile CHANGED
@@ -10,6 +10,7 @@ begin
10
10
  s.authors = ["Pivotal Labs", "Brian Takita"]
11
11
  s.files = Dir["[A-Z]*"] +
12
12
  Dir["*.rb"] +
13
+ Dir["*.ru"] +
13
14
  Dir["lib/**/*.rb"] +
14
15
  Dir["core/**/**"] +
15
16
  Dir["bin/**"] +
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 5
4
- :patch: 6
4
+ :patch: 7
data/standalone.ru ADDED
@@ -0,0 +1,20 @@
1
+ dir = File.dirname(__FILE__)
2
+ require "#{dir}/lib/screw_unit"
3
+ require "sinatra"
4
+
5
+ ScrewUnit.spec_root_path = ENV["SCREW_UNIT_SPEC_ROOT"] || File.expand_path("./spec/javascripts")
6
+ if File.directory?(ScrewUnit.spec_root_path)
7
+ puts "SCREW_UNIT_SPEC_ROOT is #{ScrewUnit.spec_root_path}"
8
+ else
9
+ raise "SCREW_UNIT_SPEC_ROOT #{ScrewUnit.spec_root_path} must be a directory"
10
+ end
11
+
12
+ ScrewUnit.public_path = ENV["SCREW_UNIT_PUBLIC"] || File.expand_path("./public")
13
+ if File.directory?(ScrewUnit.public_path)
14
+ puts "SCREW_UNIT_PUBLIC is #{ScrewUnit.public_path}"
15
+ else
16
+ raise "SCREW_UNIT_PUBLIC #{ScrewUnit.public_path} must be a directory"
17
+ end
18
+
19
+ use ScrewUnit::App
20
+ run Sinatra::Application
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal-screw-unit-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal Labs
@@ -93,6 +93,7 @@ files:
93
93
  - spec/functional_suite.rb
94
94
  - spec/spec_suite.rb
95
95
  - spec/unit_suite.rb
96
+ - standalone.ru
96
97
  - vendor/js-test-core/CHANGES
97
98
  - vendor/js-test-core/README
98
99
  - vendor/js-test-core/Rakefile