teaspoon 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 925c0d611aedd7f504a1a26196bf3c0bb1ce085e
4
- data.tar.gz: 3bbe87a54d66241b49eed717545ca8cbdeafda96
3
+ metadata.gz: baf9f6b71a048c4a8ca1490cc8ef46a05b993803
4
+ data.tar.gz: 2549ceb1312eb411c92f1592d5013263074093fc
5
5
  SHA512:
6
- metadata.gz: f22aa8556ac90c824184eae69afe1d3ae96699f0e19dbab6e8daee2e57c6e6357861cce003f89ee419db44379478e87720d0be4a69ec0f82f271406911aff620
7
- data.tar.gz: 3a28f2b2b9ce0663cfe8a6ae81f2890fc5d77e53ec208118530b38b2858a864bc1ab3f71b1653b60be6abcc3d6d2a823b251e696bd22ac369258616715895b5c
6
+ metadata.gz: a428ef8433d1bea881e3de18b3d1f87d6805c75fbd1e6ae604ed5da780ca14e447c26369a3887be8b7803768dffd6dfce99b5ad16048f84badf98c91062632db
7
+ data.tar.gz: e8bc26bd42a72786b80e461fce98fc254f587766049d59b602daa7ad05fccbd8b08a7d0ebf78f3b35eac03f87b6301e52a1dda1515ebc2ebcd3ac118a527aefc
@@ -2,6 +2,12 @@
2
2
 
3
3
  #### Bug Fixes
4
4
 
5
+ ### 1.1.3
6
+
7
+ #### Bug Fixes
8
+
9
+ * Fix for version check of ActionView, to expand the version checking for security/bug fix releases.
10
+
5
11
 
6
12
  ### 1.1.2
7
13
 
@@ -1,6 +1,10 @@
1
1
  class Teaspoon::SuiteController < ActionController::Base
2
- before_filter :check_env
3
- before_filter :prepend_fixture_paths
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
- render nothing: true
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
@@ -98,12 +98,12 @@ end
98
98
 
99
99
  begin
100
100
  require 'action_view'
101
- if ActionView::VERSION::STRING == '4.2.5'
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 = {
@@ -1,3 +1,3 @@
1
1
  module Teaspoon
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
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.2
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-09 00:00:00.000000000 Z
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: '5'
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: '5'
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: