screw_server 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/bin/screw_server CHANGED
@@ -9,7 +9,7 @@ if Object.const_defined?("Bundler")
9
9
  end
10
10
 
11
11
  require "rubygems"
12
- gem "bundler", "= 1.0.7"
12
+ gem "bundler", "= 1.0.21"
13
13
  require "bundler"
14
14
  ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile.run", __FILE__)
15
15
  Bundler.require
@@ -1,4 +1,5 @@
1
1
  require 'sinatra/base'
2
+ require "json"
2
3
 
3
4
  require 'screw_server/jslint_suite'
4
5
  require "screw_server/spec_file"
@@ -126,7 +127,7 @@ module ScrewServer
126
127
 
127
128
  def screw_assets
128
129
  %w{
129
- vendor/fulljslint.js
130
+ vendor/jslint/jslint.js
130
131
  vendor/screw-unit/lib/jquery.fn.js
131
132
  vendor/screw-unit/lib/jquery.print.js
132
133
  vendor/screw-unit/lib/screw.builder.js
@@ -194,4 +195,4 @@ module ScrewServer
194
195
  haml template
195
196
  end
196
197
  end
197
- end
198
+ end
@@ -2,7 +2,6 @@ module ScrewServer
2
2
  class JslintSuite
3
3
 
4
4
  DEFAULT_OPTIONS = {
5
- # true
6
5
  "bitwise" => true,
7
6
  "browser" => true,
8
7
  "eqeqeq" => true,
@@ -11,13 +10,13 @@ module ScrewServer
11
10
  "nomen" => true,
12
11
  "regexp" => true,
13
12
  "undef" => true,
14
- # false
15
- "plusplus" => false,
16
- "indent" => false,
17
- "onevar" => false,
18
- "white" => false,
19
- "regexp" => false,
20
- "nomen" => false
13
+ "white" => true,
14
+ "sloppy" => true,
15
+ "vars" => true,
16
+ "nomen" => true,
17
+ "regexp" => true,
18
+ "plusplus" => true,
19
+ "indent" => true,
21
20
  }
22
21
 
23
22
  attr_accessor :name, :file_list, :options
@@ -48,4 +47,4 @@ module ScrewServer
48
47
  @suites << suite
49
48
  end
50
49
  end
51
- end
50
+ end
@@ -33,7 +33,8 @@ module ScrewServer
33
33
 
34
34
  def fixture_hash
35
35
  used_fixtures.inject({}) do |result, fixture|
36
- result.merge(fixture.name => File.read(fixture.filename))
36
+ fixture_content = File.read(fixture.filename) rescue ""
37
+ result.merge(fixture.name => fixture_content)
37
38
  end
38
39
  end
39
40
 
@@ -73,4 +74,4 @@ module ScrewServer
73
74
  files = files.map { |file| file.gsub("../../public", "") }
74
75
  end
75
76
  end
76
- end
77
+ end
data/screw_server.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{screw_server}
3
- s.version = "0.1.4"
3
+ s.version = "0.1.6"
4
4
  s.authors = ["Kristian Hanekamp", "Infopark AG"]
5
5
  s.description = %q{Screw Server - easy javascript unit tests}
6
6
  s.email = %q{kristian.hanekamp@infopark.de}
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
 
12
12
  s.add_dependency("json", "=1.4.3")
13
13
  s.add_dependency("haml", "= 3.0.13")
14
- s.add_dependency("bundler", "= 1.0.7")
14
+ s.add_dependency("bundler", "= 1.0.21")
15
15
 
16
16
  # sinatra and dependencies
17
17
  s.add_dependency("rack", "= 1.1.0")
@@ -25,4 +25,4 @@ Gem::Specification.new do |s|
25
25
  s.add_dependency("thin", "= 1.2.7")
26
26
 
27
27
  s.executables = ['screw_server']
28
- end
28
+ end
data/views/run_spec.haml CHANGED
@@ -1,3 +1,4 @@
1
+ !!! 5
1
2
  %html
2
3
  %head
3
4
  %link{:rel => "stylesheet", :href => url_for_screw_asset("screw.css"), :type => "text/css"}
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: 19
5
- prerelease: false
4
+ hash: 23
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 6
10
+ version: 0.1.6
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: 2011-02-23 00:00:00 +01:00
19
+ date: 2012-01-12 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -59,12 +59,12 @@ dependencies:
59
59
  requirements:
60
60
  - - "="
61
61
  - !ruby/object:Gem::Version
62
- hash: 25
62
+ hash: 61
63
63
  segments:
64
64
  - 1
65
65
  - 0
66
- - 7
67
- version: 1.0.7
66
+ - 21
67
+ version: 1.0.21
68
68
  type: :runtime
69
69
  version_requirements: *id003
70
70
  - !ruby/object:Gem::Dependency
@@ -164,7 +164,12 @@ files:
164
164
  - assets/screw-jslint.js
165
165
  - assets/screw-server.js
166
166
  - assets/screw.css
167
- - assets/vendor/fulljslint.js
167
+ - assets/vendor/jslint/init_ui.js
168
+ - assets/vendor/jslint/intercept.js
169
+ - assets/vendor/jslint/jslint.html
170
+ - assets/vendor/jslint/jslint.js
171
+ - assets/vendor/jslint/lint.html
172
+ - assets/vendor/jslint/README
168
173
  - assets/vendor/screw-unit/CHANGES
169
174
  - assets/vendor/screw-unit/example/models/cat.js
170
175
  - assets/vendor/screw-unit/example/models/man.js
@@ -249,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
254
  requirements: []
250
255
 
251
256
  rubyforge_project:
252
- rubygems_version: 1.3.7
257
+ rubygems_version: 1.6.2
253
258
  signing_key:
254
259
  specification_version: 3
255
260
  summary: Screw Server