raygun 0.0.31 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.md +5 -0
- data/lib/raygun/version.rb +1 -1
- data/rails_32/lib/tasks/spec.rake +0 -1
- data/rails_40/Gemfile +4 -4
- data/rails_40/Guardfile +9 -8
- data/rails_40/lib/tasks/spec.rake +36 -1
- data/rails_40/spec/javascripts/example_spec.js.coffee +20 -0
- data/rails_40/spec/javascripts/spec.css +3 -0
- data/rails_40/spec/javascripts/spec.js.coffee +2 -0
- metadata +5 -2
data/CHANGES.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.32 [2013-06-18]
|
4
|
+
|
5
|
+
* Rails 4: enable guard-livereload with a tweak to support .less files.
|
6
|
+
* Rails 4: enable guard-jasmine (with a sample spec).
|
7
|
+
|
3
8
|
## 0.0.31 [2013-06-16]
|
4
9
|
|
5
10
|
* For Heroku, default to serving static assets and the logger is synchronous by default (we don't have to set it) (#103).
|
data/lib/raygun/version.rb
CHANGED
data/rails_40/Gemfile
CHANGED
@@ -31,7 +31,7 @@ group :test, :development do
|
|
31
31
|
gem 'factory_girl_rails'
|
32
32
|
gem 'database_cleaner'
|
33
33
|
gem 'fuubar'
|
34
|
-
|
34
|
+
gem 'jasminerice', github: 'bradphelan/jasminerice' # Latest release still depends on haml.
|
35
35
|
#gem 'timecop'
|
36
36
|
gem 'simplecov'
|
37
37
|
#gem 'cane'
|
@@ -41,13 +41,13 @@ end
|
|
41
41
|
|
42
42
|
group :development do
|
43
43
|
gem 'foreman'
|
44
|
-
|
44
|
+
gem 'launchy'
|
45
45
|
gem 'better_errors'
|
46
46
|
gem 'binding_of_caller'
|
47
47
|
gem 'guard'
|
48
48
|
gem 'guard-rspec'
|
49
|
-
|
50
|
-
|
49
|
+
gem 'guard-jasmine'
|
50
|
+
gem 'guard-livereload'
|
51
51
|
gem 'rb-fsevent'
|
52
52
|
gem 'growl'
|
53
53
|
end
|
data/rails_40/Guardfile
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
# More info at https://github.com/guard/guard#readme
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
#
|
10
|
-
|
3
|
+
guard :livereload do
|
4
|
+
watch(%r{app/views/.+\.slim$})
|
5
|
+
watch(%r{app/helpers/.+\.rb})
|
6
|
+
watch(%r{public/.+\.(css|js|html)})
|
7
|
+
watch(%r{conf ig/locales/.+\.yml})
|
8
|
+
|
9
|
+
# Rails Assets Pipeline
|
10
|
+
watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|less|js|html))).*}) { |m| "/assets/#{m[3]}" }
|
11
|
+
end
|
11
12
|
|
12
13
|
guard :rspec do
|
13
14
|
watch(%r{^spec/.+_spec\.rb$})
|
@@ -16,8 +16,43 @@ rescue LoadError
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
+
begin
|
20
|
+
require 'guard/jasmine/task'
|
21
|
+
|
22
|
+
namespace :spec do
|
23
|
+
desc "Run all javascript specs"
|
24
|
+
task :javascripts do
|
25
|
+
begin
|
26
|
+
::Guard::Jasmine::CLI.start([])
|
27
|
+
|
28
|
+
rescue SystemExit => e
|
29
|
+
case e.status
|
30
|
+
when 1
|
31
|
+
fail "Some specs have failed."
|
32
|
+
when 2
|
33
|
+
fail "The spec couldn't be run: #{e.message}."
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
desc 'Runs specs with coverage and cane checks'
|
39
|
+
task cane: ['spec:enable_coverage', 'spec:coverage', 'quality']
|
40
|
+
end
|
41
|
+
|
42
|
+
Rake::Task['spec'].enhance do
|
43
|
+
Rake::Task['spec:javascripts'].invoke
|
44
|
+
end
|
45
|
+
|
46
|
+
rescue LoadError
|
47
|
+
namespace :spec do
|
48
|
+
task :javascripts do
|
49
|
+
puts "Guard is not available in this environment: #{Rails.env}."
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
19
54
|
|
20
55
|
Rake::Task['spec'].clear_actions
|
21
56
|
|
22
57
|
desc 'Runs all specs'
|
23
|
-
task spec: ['spec:without_features', 'spec:features']
|
58
|
+
task spec: ['spec:without_features', 'spec:features', 'spec:javascripts']
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# This is an example spec, delete when there are some real specs.
|
2
|
+
|
3
|
+
class Foo
|
4
|
+
bar: ->
|
5
|
+
false
|
6
|
+
|
7
|
+
class Bar
|
8
|
+
foo: ->
|
9
|
+
false
|
10
|
+
|
11
|
+
|
12
|
+
describe "Foo", ->
|
13
|
+
it "it is not bar", ->
|
14
|
+
v = new Foo()
|
15
|
+
expect(v.bar()).toEqual(false)
|
16
|
+
|
17
|
+
describe "Bar", ->
|
18
|
+
it "it is not foo", ->
|
19
|
+
v = new Bar()
|
20
|
+
expect(v.foo()).toEqual(false)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raygun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.32
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-06-
|
14
|
+
date: 2013-06-18 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: Carbon Five Rails application generator
|
17
17
|
email:
|
@@ -242,6 +242,9 @@ files:
|
|
242
242
|
- rails_40/public/robots.txt
|
243
243
|
- rails_40/spec/controllers/pages_controller_spec.rb
|
244
244
|
- rails_40/spec/features/pages_spec.rb
|
245
|
+
- rails_40/spec/javascripts/example_spec.js.coffee
|
246
|
+
- rails_40/spec/javascripts/spec.css
|
247
|
+
- rails_40/spec/javascripts/spec.js.coffee
|
245
248
|
- rails_40/spec/spec_helper.rb
|
246
249
|
- rails_40/spec/support/database_cleaner.rb
|
247
250
|
- rails_40/spec/support/factory_girl.rb
|