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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31ebe70ddfc6d84de6bfd0f4e564fcdc1b581a1d
4
- data.tar.gz: ce8bdb0517e9666a155bb8165464dec2510caf52
3
+ metadata.gz: b29369ee658e5501d62afddc69a58096bf16d136
4
+ data.tar.gz: 90786240fabfdb71d0a684b602bcd1ccdf68f7c7
5
5
  SHA512:
6
- metadata.gz: e5d7c101b7c0955312be18f0f84285645ed76eedb19b5e7c4bc8a88ca3c64d389630d0245a26c4b46b7ba0623713eb93eebf9ec1623ff4296fffc5542d41afbc
7
- data.tar.gz: 68e8563b32c48d8c8cc85ade45f4f83b418ec0ffcd21873bc04f0695f15b37b6017a153a1e1df6d975757166c35fc6df314a4f03e73ced014f0b010bd8950dfc
6
+ metadata.gz: 31f792fb7e053bf1570b13dae0fd640494af3dd6afba5e8a6e8bf64314e5edd736fb9bf356af610424591f9e1100786439d769f95913c7d54745dd81e2e0ab56
7
+ data.tar.gz: 64302bd11b4d98ca78d0e91ecfd7c1ab2cdd89955a40dcbadd81d3c65238108929892996a403c3f2492d5d02984825488a12ecead846f7f269ec6f7ef5daed3f
data/README.md CHANGED
@@ -1,8 +1,5 @@
1
- QUnit on Rails (Discourse edition)
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 "discourse-qunit-rails"
13
+ gem "qunit-rails"
17
14
  end
18
15
  ```
19
16
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "discourse-qunit-rails"
3
- s.version = "0.0.8"
3
+ s.version = "0.0.9"
4
4
  s.authors = ["Francesco Rodriguez", "Robin Ward"]
5
5
  s.email = ["robin.ward@gmail.com"]
6
6
  s.homepage = "https://github.com/discourse/discourse-qunit-rails"
@@ -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.8
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: 2015-05-13 00:00:00.000000000 Z
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.4.6
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: