teaspoon 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/controllers/teaspoon/suite_controller.rb +13 -4
- data/lib/teaspoon/engine.rb +2 -2
- data/lib/teaspoon/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: baf9f6b71a048c4a8ca1490cc8ef46a05b993803
|
4
|
+
data.tar.gz: 2549ceb1312eb411c92f1592d5013263074093fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a428ef8433d1bea881e3de18b3d1f87d6805c75fbd1e6ae604ed5da780ca14e447c26369a3887be8b7803768dffd6dfce99b5ad16048f84badf98c91062632db
|
7
|
+
data.tar.gz: e8bc26bd42a72786b80e461fce98fc254f587766049d59b602daa7ad05fccbd8b08a7d0ebf78f3b35eac03f87b6301e52a1dda1515ebc2ebcd3ac118a527aefc
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
class Teaspoon::SuiteController < ActionController::Base
|
2
|
-
|
3
|
-
|
2
|
+
def self.before(*args)
|
3
|
+
respond_to?(:before_action) ? before_action(*args) : before_filter(*args)
|
4
|
+
end
|
5
|
+
|
6
|
+
before :check_env
|
7
|
+
before :prepend_fixture_paths
|
4
8
|
|
5
9
|
layout false
|
6
10
|
|
@@ -14,8 +18,8 @@ class Teaspoon::SuiteController < ActionController::Base
|
|
14
18
|
|
15
19
|
def hook
|
16
20
|
hooks = Teaspoon::Suite.new(params).hooks[params[:hook].to_s]
|
17
|
-
hooks.each { |hook| hook.call(params[:args]) }
|
18
|
-
|
21
|
+
hooks.each { |hook| hook.call(hook_params(params[:args])) }
|
22
|
+
head(:success)
|
19
23
|
end
|
20
24
|
|
21
25
|
def fixtures
|
@@ -33,4 +37,9 @@ class Teaspoon::SuiteController < ActionController::Base
|
|
33
37
|
prepend_view_path Teaspoon.configuration.root.join(path)
|
34
38
|
end
|
35
39
|
end
|
40
|
+
|
41
|
+
def hook_params(params)
|
42
|
+
return params.permit!.to_h if params.respond_to?(:permit!)
|
43
|
+
params
|
44
|
+
end
|
36
45
|
end
|
data/lib/teaspoon/engine.rb
CHANGED
@@ -98,12 +98,12 @@ end
|
|
98
98
|
|
99
99
|
begin
|
100
100
|
require 'action_view'
|
101
|
-
if ActionView::VERSION::STRING ==
|
101
|
+
if ActionView::VERSION::STRING == "4.2.5" || ActionView::VERSION::MAJOR >= 5
|
102
102
|
require 'action_view/helpers/asset_tag_helper'
|
103
103
|
module ActionView::Helpers::AssetTagHelper
|
104
104
|
def javascript_include_tag(*sources)
|
105
105
|
options = sources.extract_options!.stringify_keys
|
106
|
-
path_options = options.extract!('protocol', 'extname').symbolize_keys
|
106
|
+
path_options = options.extract!('protocol', 'extname', 'host').symbolize_keys
|
107
107
|
path_options[:debug] = options['allow_non_precompiled']
|
108
108
|
sources.uniq.map { |source|
|
109
109
|
tag_options = {
|
data/lib/teaspoon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teaspoon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jejacks0n
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-01-
|
14
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: railties
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: 3.2.5
|
23
23
|
- - "<"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: '
|
25
|
+
version: '6'
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
28
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 3.2.5
|
33
33
|
- - "<"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
35
|
+
version: '6'
|
36
36
|
description: Run Javascript tests using Jasmine, Mocha or QUnit in the browser or
|
37
37
|
headless using PhantomJS, Selenium Webdriver, or Capybara Webkit
|
38
38
|
email:
|