discourse-qunit-rails 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -6
- data/discourse-qunit-rails.gemspec +1 -1
- data/lib/qunit/rails/engine.rb +14 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b29369ee658e5501d62afddc69a58096bf16d136
|
4
|
+
data.tar.gz: 90786240fabfdb71d0a684b602bcd1ccdf68f7c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31f792fb7e053bf1570b13dae0fd640494af3dd6afba5e8a6e8bf64314e5edd736fb9bf356af610424591f9e1100786439d769f95913c7d54745dd81e2e0ab56
|
7
|
+
data.tar.gz: 64302bd11b4d98ca78d0e91ecfd7c1ab2cdd89955a40dcbadd81d3c65238108929892996a403c3f2492d5d02984825488a12ecead846f7f269ec6f7ef5daed3f
|
data/README.md
CHANGED
@@ -1,8 +1,5 @@
|
|
1
|
-
QUnit on Rails
|
2
|
-
|
3
|
-
|
4
|
-
**Note: this version of qunit-rails was forked so that Discourse could upgrade to
|
5
|
-
the most recent version of qunit**
|
1
|
+
QUnit on Rails
|
2
|
+
==============
|
6
3
|
|
7
4
|
QUnit JavaScript Unit Testing framework for Rails.
|
8
5
|
|
@@ -13,7 +10,7 @@ QUnit on Rails works with Rails 3.2. You can add it to your Gemfile with:
|
|
13
10
|
|
14
11
|
```ruby
|
15
12
|
group :development, :test do
|
16
|
-
gem "
|
13
|
+
gem "qunit-rails"
|
17
14
|
end
|
18
15
|
```
|
19
16
|
|
data/lib/qunit/rails/engine.rb
CHANGED
@@ -7,6 +7,20 @@ module QUnit
|
|
7
7
|
config.qunit.tests_path = "test"
|
8
8
|
config.qunit.javascripts_path = "javascripts"
|
9
9
|
config.qunit.stylesheets_path = "stylesheets"
|
10
|
+
|
11
|
+
# https://github.com/rails/sprockets-rails/issues/299#issuecomment-167701012
|
12
|
+
# This doesn't really make sense since the assets are not going to be
|
13
|
+
# available in production.
|
14
|
+
config.after_initialize do
|
15
|
+
ActiveSupport.on_load(:action_view) do
|
16
|
+
default_checker = ActionView::Base.precompiled_asset_checker
|
17
|
+
|
18
|
+
ActionView::Base.precompiled_asset_checker = -> logical_path do
|
19
|
+
default_checker[logical_path] ||
|
20
|
+
%w{qunit.js qunit.css test_helper.css test_helper.js}.include?(logical_path)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
10
24
|
end
|
11
25
|
end
|
12
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discourse-qunit-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francesco Rodriguez
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-04-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -70,8 +70,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
72
|
rubyforge_project:
|
73
|
-
rubygems_version: 2.
|
73
|
+
rubygems_version: 2.5.1
|
74
74
|
signing_key:
|
75
75
|
specification_version: 4
|
76
76
|
summary: QUnit for Rails
|
77
77
|
test_files: []
|
78
|
+
has_rdoc:
|