rspec-web 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.rvmrc +1 -0
- data/Gemfile +7 -0
- data/LICENSE +20 -0
- data/README.md +41 -0
- data/Rakefile +27 -0
- data/VERSION +1 -1
- data/lib/rspec_web/web_application.rb +1 -1
- data/rspec-web.gemspec +48 -0
- metadata +73 -22
- data/Gemfile.lock +0 -45
data/.gitignore
ADDED
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm use --create ruby-1.9.2-p318@rspec-web
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011-2012 Ryan Scott Lewis
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# rspec-web
|
2
|
+
|
3
|
+
A web front-end for RSpec tests.
|
4
|
+
|
5
|
+
## Install
|
6
|
+
|
7
|
+
### Bundler
|
8
|
+
|
9
|
+
Add the following to your `Gemfile`:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
group :development do
|
13
|
+
gem 'rspec-web'
|
14
|
+
end
|
15
|
+
```
|
16
|
+
|
17
|
+
then run `bundle install`.
|
18
|
+
|
19
|
+
### RubyGems
|
20
|
+
|
21
|
+
`gem install rspec-web`
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
### Basic Usage
|
26
|
+
|
27
|
+
1. Start up a `rspec-web` server (which actually consists of two servers; an HTTP server and a Web Socket server)
|
28
|
+
2. Open web browser with URL `http://localhost:4567/`
|
29
|
+
3. Run your specs with the formatter by using `rspec spec -f RspecWeb::Formatter`
|
30
|
+
|
31
|
+
### Guard Usage
|
32
|
+
|
33
|
+
If you use [`guard-rspec`](https://github.com/guard/guard-rspec), you should checkout [`guard-rspec-web`](https://github.com/c00lryguy/guard-rspec-web) for [`guard`](https://github.com/guard/guard) integration
|
34
|
+
|
35
|
+
## License
|
36
|
+
|
37
|
+
RspecWeb is released under the MIT license:
|
38
|
+
|
39
|
+
www.opensource.org/licenses/MIT
|
40
|
+
|
41
|
+
See [`LICENSE`](https://github.com/c00lryguy/rspec-web/blob/master/LICENSE) for more details.
|
data/Rakefile
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rake/version_task'
|
2
|
+
|
3
|
+
spec = Gem::Specification.new do |s|
|
4
|
+
s.name = 'rspec-web'
|
5
|
+
s.author = 'Ryan Scott Lewis'
|
6
|
+
s.homepage = 'http://github.com/c00lryguy/rspec-web'
|
7
|
+
s.description = 'A web front-end for RSpec tests.'
|
8
|
+
s.summary = 'Run and view Rspec tests from the browser.'
|
9
|
+
s.email = 'ryan@rynet.us'
|
10
|
+
|
11
|
+
s.require_path = 'lib'
|
12
|
+
s.files = `git ls-files`.lines.collect { |line| line.strip }
|
13
|
+
s.executables = Dir['bin/*'].find_all { |file| File.executable?(file) }.collect { |file| File.basename(file) }
|
14
|
+
|
15
|
+
s.add_dependency('em-websocket', '~> 0.3')
|
16
|
+
s.add_dependency('haml', '~> 3.1')
|
17
|
+
s.add_dependency('sass', '~> 3.1')
|
18
|
+
s.add_dependency('sinatra', '~> 1.3')
|
19
|
+
s.add_dependency('rspec', '~> 2.0')
|
20
|
+
s.add_dependency('web-socket-ruby', '~> 0.1')
|
21
|
+
s.add_dependency('version', '~> 1.0')
|
22
|
+
end
|
23
|
+
|
24
|
+
Rake::VersionTask.new do |task|
|
25
|
+
task.with_git_tag = true
|
26
|
+
task.with_gemspec = spec
|
27
|
+
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.12
|
data/rspec-web.gemspec
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = "rspec-web"
|
5
|
+
s.version = "0.1.12"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Ryan Scott Lewis"]
|
9
|
+
s.date = "2012-10-06"
|
10
|
+
s.description = "A web front-end for RSpec tests."
|
11
|
+
s.email = "ryan@rynet.us"
|
12
|
+
s.executables = ["rspec-web"]
|
13
|
+
s.files = [".gitignore", ".rvmrc", "Gemfile", "LICENSE", "README.md", "Rakefile", "VERSION", "bin/rspec-web", "lib/rspec_web.rb", "lib/rspec_web/formatter.rb", "lib/rspec_web/web_application.rb", "lib/rspec_web/web_application/public/css/bootstrap.bottombar.css", "lib/rspec_web/web_application/public/css/bootstrap.css", "lib/rspec_web/web_application/public/css/bootstrap.responsive.css", "lib/rspec_web/web_application/public/img/bootstrap.png", "lib/rspec_web/web_application/public/img/glyphicons-halflings-white.png", "lib/rspec_web/web_application/public/img/glyphicons-halflings.png", "lib/rspec_web/web_application/public/img/rails.png", "lib/rspec_web/web_application/public/img/traffic.png", "lib/rspec_web/web_application/public/js/lib/backbone.js", "lib/rspec_web/web_application/public/js/lib/bootstrap.js", "lib/rspec_web/web_application/public/js/lib/date.js", "lib/rspec_web/web_application/public/js/lib/jquery.cookie.js", "lib/rspec_web/web_application/public/js/lib/jquery.gracefulWebSocket.js", "lib/rspec_web/web_application/public/js/lib/jquery.js", "lib/rspec_web/web_application/public/js/lib/jquery.json.js", "lib/rspec_web/web_application/public/js/lib/underscore.js", "lib/rspec_web/web_application/public/js/models/example.js", "lib/rspec_web/web_application/public/js/models/exampleCollection.js", "lib/rspec_web/web_application/public/js/models/iteration.js", "lib/rspec_web/web_application/public/js/models/iterationCollection.js", "lib/rspec_web/web_application/public/js/models/project.js", "lib/rspec_web/web_application/public/js/models/viewContainer.js", "lib/rspec_web/web_application/public/js/models/webSocketContainer.js", "lib/rspec_web/web_application/public/js/rspecWebFrontend.js", "lib/rspec_web/web_application/public/js/script.js", "lib/rspec_web/web_application/views/index.haml", "lib/rspec_web/web_application/views/partials/example_entry.haml", "lib/rspec_web/web_application/views/partials/iteration_entry.haml", "lib/rspec_web/web_application/views/partials/iteration_list_entry.haml", "lib/rspec_web/web_application/views/style.scss", "lib/rspec_web/web_socket_server.rb", "rspec-web.gemspec"]
|
14
|
+
s.homepage = "http://github.com/c00lryguy/rspec-web"
|
15
|
+
s.require_paths = ["lib"]
|
16
|
+
s.rubygems_version = "1.8.24"
|
17
|
+
s.summary = "Run and view Rspec tests from the browser."
|
18
|
+
|
19
|
+
if s.respond_to? :specification_version then
|
20
|
+
s.specification_version = 3
|
21
|
+
|
22
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
23
|
+
s.add_runtime_dependency(%q<em-websocket>, ["~> 0.3"])
|
24
|
+
s.add_runtime_dependency(%q<haml>, ["~> 3.1"])
|
25
|
+
s.add_runtime_dependency(%q<sass>, ["~> 3.1"])
|
26
|
+
s.add_runtime_dependency(%q<sinatra>, ["~> 1.3"])
|
27
|
+
s.add_runtime_dependency(%q<rspec>, ["~> 2.0"])
|
28
|
+
s.add_runtime_dependency(%q<web-socket-ruby>, ["~> 0.1"])
|
29
|
+
s.add_runtime_dependency(%q<version>, ["~> 1.0"])
|
30
|
+
else
|
31
|
+
s.add_dependency(%q<em-websocket>, ["~> 0.3"])
|
32
|
+
s.add_dependency(%q<haml>, ["~> 3.1"])
|
33
|
+
s.add_dependency(%q<sass>, ["~> 3.1"])
|
34
|
+
s.add_dependency(%q<sinatra>, ["~> 1.3"])
|
35
|
+
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
36
|
+
s.add_dependency(%q<web-socket-ruby>, ["~> 0.1"])
|
37
|
+
s.add_dependency(%q<version>, ["~> 1.0"])
|
38
|
+
end
|
39
|
+
else
|
40
|
+
s.add_dependency(%q<em-websocket>, ["~> 0.3"])
|
41
|
+
s.add_dependency(%q<haml>, ["~> 3.1"])
|
42
|
+
s.add_dependency(%q<sass>, ["~> 3.1"])
|
43
|
+
s.add_dependency(%q<sinatra>, ["~> 1.3"])
|
44
|
+
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
45
|
+
s.add_dependency(%q<web-socket-ruby>, ["~> 0.1"])
|
46
|
+
s.add_dependency(%q<version>, ["~> 1.0"])
|
47
|
+
end
|
48
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: em-websocket
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '0.3'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.3'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: haml
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '3.1'
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.1'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: sass
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ~>
|
@@ -43,10 +53,15 @@ dependencies:
|
|
43
53
|
version: '3.1'
|
44
54
|
type: :runtime
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.1'
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: sinatra
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ~>
|
@@ -54,21 +69,31 @@ dependencies:
|
|
54
69
|
version: '1.3'
|
55
70
|
type: :runtime
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '1.3'
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: rspec
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
83
|
- - ~>
|
64
84
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
85
|
+
version: '2.0'
|
66
86
|
type: :runtime
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '2.0'
|
69
94
|
- !ruby/object:Gem::Dependency
|
70
95
|
name: web-socket-ruby
|
71
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
72
97
|
none: false
|
73
98
|
requirements:
|
74
99
|
- - ~>
|
@@ -76,19 +101,46 @@ dependencies:
|
|
76
101
|
version: '0.1'
|
77
102
|
type: :runtime
|
78
103
|
prerelease: false
|
79
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0.1'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: version
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '1.0'
|
80
126
|
description: A web front-end for RSpec tests.
|
81
|
-
email:
|
127
|
+
email: ryan@rynet.us
|
82
128
|
executables:
|
83
129
|
- rspec-web
|
84
130
|
extensions: []
|
85
|
-
extra_rdoc_files:
|
86
|
-
- VERSION
|
131
|
+
extra_rdoc_files: []
|
87
132
|
files:
|
133
|
+
- .gitignore
|
134
|
+
- .rvmrc
|
135
|
+
- Gemfile
|
136
|
+
- LICENSE
|
137
|
+
- README.md
|
138
|
+
- Rakefile
|
88
139
|
- VERSION
|
89
|
-
- Gemfile.lock
|
90
140
|
- bin/rspec-web
|
141
|
+
- lib/rspec_web.rb
|
91
142
|
- lib/rspec_web/formatter.rb
|
143
|
+
- lib/rspec_web/web_application.rb
|
92
144
|
- lib/rspec_web/web_application/public/css/bootstrap.bottombar.css
|
93
145
|
- lib/rspec_web/web_application/public/css/bootstrap.css
|
94
146
|
- lib/rspec_web/web_application/public/css/bootstrap.responsive.css
|
@@ -119,9 +171,8 @@ files:
|
|
119
171
|
- lib/rspec_web/web_application/views/partials/iteration_entry.haml
|
120
172
|
- lib/rspec_web/web_application/views/partials/iteration_list_entry.haml
|
121
173
|
- lib/rspec_web/web_application/views/style.scss
|
122
|
-
- lib/rspec_web/web_application.rb
|
123
174
|
- lib/rspec_web/web_socket_server.rb
|
124
|
-
-
|
175
|
+
- rspec-web.gemspec
|
125
176
|
homepage: http://github.com/c00lryguy/rspec-web
|
126
177
|
licenses: []
|
127
178
|
post_install_message:
|
@@ -142,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
193
|
version: '0'
|
143
194
|
requirements: []
|
144
195
|
rubyforge_project:
|
145
|
-
rubygems_version: 1.8.
|
196
|
+
rubygems_version: 1.8.24
|
146
197
|
signing_key:
|
147
198
|
specification_version: 3
|
148
199
|
summary: Run and view Rspec tests from the browser.
|
data/Gemfile.lock
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
rspec-web (0.1.9)
|
5
|
-
em-websocket (~> 0.3.6)
|
6
|
-
haml (~> 3.1.4)
|
7
|
-
rspec (~> 2.8.0)
|
8
|
-
sass (~> 3.1.14)
|
9
|
-
sinatra (~> 1.3.2)
|
10
|
-
web-socket-ruby (~> 0.1.0)
|
11
|
-
|
12
|
-
GEM
|
13
|
-
remote: http://rubygems.org/
|
14
|
-
specs:
|
15
|
-
addressable (2.2.7)
|
16
|
-
diff-lcs (1.1.3)
|
17
|
-
em-websocket (0.3.6)
|
18
|
-
addressable (>= 2.1.1)
|
19
|
-
eventmachine (>= 0.12.9)
|
20
|
-
eventmachine (0.12.10)
|
21
|
-
haml (3.1.4)
|
22
|
-
rack (1.4.1)
|
23
|
-
rack-protection (1.2.0)
|
24
|
-
rack
|
25
|
-
rspec (2.8.0)
|
26
|
-
rspec-core (~> 2.8.0)
|
27
|
-
rspec-expectations (~> 2.8.0)
|
28
|
-
rspec-mocks (~> 2.8.0)
|
29
|
-
rspec-core (2.8.0)
|
30
|
-
rspec-expectations (2.8.0)
|
31
|
-
diff-lcs (~> 1.1.2)
|
32
|
-
rspec-mocks (2.8.0)
|
33
|
-
sass (3.1.15)
|
34
|
-
sinatra (1.3.2)
|
35
|
-
rack (~> 1.3, >= 1.3.6)
|
36
|
-
rack-protection (~> 1.2)
|
37
|
-
tilt (~> 1.3, >= 1.3.3)
|
38
|
-
tilt (1.3.3)
|
39
|
-
web-socket-ruby (0.1.0)
|
40
|
-
|
41
|
-
PLATFORMS
|
42
|
-
ruby
|
43
|
-
|
44
|
-
DEPENDENCIES
|
45
|
-
rspec-web!
|