pivotal-screw-unit-server 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ 0.5.4
2
+ - Added ScrewUnit::ThinRunner.start
3
+
1
4
  0.5.0
2
5
  - Replaced thin-rest with Sinatra and Lucky Luciano as the server base.
3
6
  - The Screw Unit Server is now Rake middleware.
@@ -4,7 +4,7 @@ The Screw Unit ruby library is a server runner for the Screw Unit javascript lib
4
4
  # Installing Screw Unit
5
5
  You can use Screw Unit as a gem or as a Rails plugin.
6
6
  To install the gem, run:
7
- sudo gem install screw_unit
7
+ sudo gem install pivotal-screw-unit-server
8
8
 
9
9
  To install the plugin with Rails 2.1.0:
10
10
  script/plugin install git://github.com/pivotal/screw-unit-server.git
@@ -19,7 +19,12 @@ After installing screw unit server, run:
19
19
  The Rails plugin gives you generators when using Screw Unit in a Rails environment.
20
20
 
21
21
  # Running Screw Unit Server
22
- First you need to start your Screw Unit server.
22
+ You can run the Screw Unit Server from the command line or via a Rails script.
23
+ You can pass in the spec_file_path and public_path to the runner scripts,
24
+ or by setting the SCREW_UNIT_SPEC_ROOT and SCREW_UNIT_PUBLIC environment variables.
25
+
26
+ To run from the command line:
27
+ screw_unit_server [spec_file_path] [public_path]
23
28
 
24
29
  If you are using screw_unit_server as a Rails plugin, you can simply run:
25
30
  script/screw_unit_server
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 5
4
- :patch: 3
4
+ :patch: 4
@@ -13,8 +13,4 @@ unless ENV["SCREW_UNIT_PUBLIC"]
13
13
  ENV["SCREW_UNIT_PUBLIC"] = ARGV[1]
14
14
  end
15
15
 
16
- Thin::Runner.new([
17
- "--port", "8080",
18
- "--rackup", File.expand_path("#{dir}/../standalone.ru"),
19
- "start"]
20
- ).run!
16
+ ScrewUnit::ThinRunner.start
@@ -5,6 +5,7 @@ $:.unshift(File.expand_path("#{dir}/../vendor/js-test-core/lib"))
5
5
  require "js_test_core"
6
6
 
7
7
  require "#{dir}/screw_unit/representations"
8
+ require "#{dir}/screw_unit/thin_runner"
8
9
 
9
10
  JsTestCore.core_path = File.expand_path("#{dir}/../core/lib")
10
11
  JsTestCore::Resources::SpecFile.spec_representation_class = ScrewUnit::Representations::Spec
@@ -0,0 +1,11 @@
1
+ module ScrewUnit
2
+ class ThinRunner
3
+ def self.start
4
+ Thin::Runner.new([
5
+ "--port", "8080",
6
+ "--rackup", File.expand_path("#{File.dirname(__FILE__)}/../../standalone.ru"),
7
+ "start"]
8
+ ).run!
9
+ end
10
+ end
11
+ end
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.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal Labs
@@ -89,6 +89,7 @@ files:
89
89
  - lib/screw_unit.rb
90
90
  - lib/screw_unit/representations.rb
91
91
  - lib/screw_unit/representations/spec.html.rb
92
+ - lib/screw_unit/thin_runner.rb
92
93
  - spec/functional_suite.rb
93
94
  - spec/spec_suite.rb
94
95
  - spec/unit_suite.rb