screw_server 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.run.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- screw_server (0.1.8)
5
- bundler (= 1.1.3)
4
+ screw_server (0.1.9)
5
+ bundler (~> 1.2.0)
6
6
  daemons (= 1.0.10)
7
7
  eventmachine (= 0.12.6)
8
8
  haml (= 3.0.13)
data/bin/screw_server CHANGED
@@ -15,6 +15,7 @@ gem "bundler", SCREW_SERVER_BUNDLER_VERSION
15
15
  require "bundler"
16
16
  ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile.run", __FILE__)
17
17
  Bundler.require
18
+ require 'yaml'
18
19
 
19
20
  options = {
20
21
  :port => 3210,
@@ -22,6 +23,13 @@ options = {
22
23
  :code_base_dir => "public"
23
24
  }
24
25
 
26
+ begin
27
+ YAML.load_file('.screw_server.yml').each do |key, value|
28
+ options[key.to_sym] = value
29
+ end
30
+ rescue Errno::ENOENT
31
+ end
32
+
25
33
  OptionParser.new do |opt|
26
34
  opt.on('--port -p ', Integer, 'port to start screw_server on (default is 3210)') do |port|
27
35
  options[:port] = port
@@ -40,6 +48,9 @@ OptionParser.new do |opt|
40
48
  end
41
49
  end.parse!
42
50
 
51
+ puts "Starting Screw Server on port #{options[:port]} " +
52
+ "with spec_base_dir '#{options[:spec_base_dir]}' and code_base_dir '#{options[:code_base_dir]}'"
53
+
43
54
  ScrewServer::Base.spec_base_dir = File.expand_path(options[:spec_base_dir])
44
55
  ScrewServer::Base.code_base_dir = File.expand_path(options[:code_base_dir])
45
56
  ScrewServer::App.run!(:host => 'localhost', :port => options[:port], :environment => "production")
data/bundler_version.rb CHANGED
@@ -1 +1 @@
1
- SCREW_SERVER_BUNDLER_VERSION = "1.1.3"
1
+ SCREW_SERVER_BUNDLER_VERSION = "~> 1.2.0"
data/screw_server.gemspec CHANGED
@@ -2,7 +2,7 @@ require File.expand_path("../bundler_version", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{screw_server}
5
- s.version = "0.1.8"
5
+ s.version = '0.1.9'
6
6
  s.authors = ["Kristian Hanekamp", "Infopark AG"]
7
7
  s.description = %q{Screw Server - easy javascript unit tests}
8
8
  s.email = %q{kristian.hanekamp@infopark.de}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: screw_server
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 9
10
+ version: 0.1.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kristian Hanekamp
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-05-24 00:00:00 +02:00
19
+ date: 2013-02-04 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -57,14 +57,14 @@ dependencies:
57
57
  requirement: &id003 !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements:
60
- - - "="
60
+ - - ~>
61
61
  - !ruby/object:Gem::Version
62
- hash: 21
62
+ hash: 31
63
63
  segments:
64
64
  - 1
65
- - 1
66
- - 3
67
- version: 1.1.3
65
+ - 2
66
+ - 0
67
+ version: 1.2.0
68
68
  type: :runtime
69
69
  version_requirements: *id003
70
70
  - !ruby/object:Gem::Dependency