opal-spec 0.2.16 → 0.2.17

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.17 2013-06-16
2
+
3
+ * Use opal-sprockets as server for specs.
4
+
1
5
  ## 0.2.16 2013-06-09
2
6
 
3
7
  * Define matchers using OpalSpec.matcher() method.
data/Gemfile CHANGED
@@ -1,5 +1,2 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
  gemspec
3
-
4
- gem 'rake'
5
- gem 'opal', :github => 'opal/opal'
data/Rakefile CHANGED
@@ -2,6 +2,4 @@ require 'bundler'
2
2
  Bundler.require
3
3
 
4
4
  require 'opal/spec/rake_task'
5
- Opal::Spec::RakeTask.new(:default) do |s|
6
- # ..
7
- end
5
+ Opal::Spec::RakeTask.new(:default)
@@ -1,4 +1,5 @@
1
1
  require 'opal/spec'
2
+ require 'opal-sprockets'
2
3
 
3
4
  module Opal
4
5
  module Spec
@@ -16,7 +17,7 @@ module Opal
16
17
  require 'webrick'
17
18
 
18
19
  server = fork do
19
- s = Opal::Server.new { |s|
20
+ app = Opal::Server.new { |s|
20
21
  s.main = 'opal/spec/sprockets_runner'
21
22
  s.append_path 'spec'
22
23
  s.debug = false
@@ -24,7 +25,7 @@ module Opal
24
25
  block.call s if block
25
26
  }
26
27
 
27
- Rack::Server.start(:app => s, :Port => PORT, :AccessLog => [],
28
+ Rack::Server.start(:app => app, :Port => PORT, :AccessLog => [],
28
29
  :Logger => WEBrick::Log.new("/dev/null"))
29
30
  end
30
31
 
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module Spec
3
- VERSION = '0.2.16'
3
+ VERSION = '0.2.17'
4
4
  end
5
5
  end
@@ -65,9 +65,9 @@ module OpalSpec
65
65
  @groups_element = $global.document.createElement 'ul'
66
66
  @groups_element.className = 'example_groups'
67
67
 
68
- target = $global.document.getElementById 'opal-spec-output'
68
+ #target = $global.document.getElementById 'opal-spec-output'
69
69
 
70
- target ||= $global.document.body
70
+ target = $global.document.body unless target
71
71
 
72
72
  target.appendChild @summary_element
73
73
  target.appendChild @groups_element
data/opal-spec.gemspec CHANGED
@@ -12,4 +12,9 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = `git ls-files`.split("\n")
14
14
  s.require_paths = ['lib']
15
+
16
+ s.add_dependency 'opal', '~> 0.4.1'
17
+ s.add_dependency 'opal-sprockets', '~> 0.1.0'
18
+
19
+ s.add_development_dependency 'rake'
15
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.16
4
+ version: 0.2.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,56 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-09 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2013-06-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: opal
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 0.4.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.4.1
30
+ - !ruby/object:Gem::Dependency
31
+ name: opal-sprockets
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 0.1.0
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.1.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
14
62
  description: Opal compatible spec library
15
63
  email: adam.beynon@gmail.com
16
64
  executables: []