teaspoon 1.1.3 → 1.1.4

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: baf9f6b71a048c4a8ca1490cc8ef46a05b993803
4
- data.tar.gz: 2549ceb1312eb411c92f1592d5013263074093fc
3
+ metadata.gz: d22fe9ea7896df90ee38c2c3bae949dbd4d8713d
4
+ data.tar.gz: af5535a099b6b026c16b528fbfa12a8c0f23ec5b
5
5
  SHA512:
6
- metadata.gz: a428ef8433d1bea881e3de18b3d1f87d6805c75fbd1e6ae604ed5da780ca14e447c26369a3887be8b7803768dffd6dfce99b5ad16048f84badf98c91062632db
7
- data.tar.gz: e8bc26bd42a72786b80e461fce98fc254f587766049d59b602daa7ad05fccbd8b08a7d0ebf78f3b35eac03f87b6301e52a1dda1515ebc2ebcd3ac118a527aefc
6
+ metadata.gz: b9df3ef6379a9bf4870d17cba90ec170d2948e16b0f3ed5f10151c3bfce8a780964b727a281f269d014ffcd5d46ae1328aae58b0810d7f8793ebfa93ce9d9950
7
+ data.tar.gz: 3d3f0e703a8ba0a4eabe4de8a6e11ebfd8c96f658ca25e77b67cb20db07f79cd4e49b624903c247ada5d143df1552f740933820a94e27de81def11e44fd7c8d4
@@ -2,11 +2,16 @@
2
2
 
3
3
  #### Bug Fixes
4
4
 
5
- ### 1.1.3
5
+ ### 1.1.4
6
6
 
7
7
  #### Bug Fixes
8
8
 
9
- * Fix for version check of ActionView, to expand the version checking for security/bug fix releases.
9
+ * Fixes an ActionView version related issue.
10
+
11
+
12
+ ### 1.1.3
13
+
14
+ This was an erroneous release, of the rails_5 branch. oops.
10
15
 
11
16
 
12
17
  ### 1.1.2
data/README.md CHANGED
@@ -17,12 +17,22 @@ Feedback, ideas and pull requests are always welcome, or you can hit us up on Tw
17
17
 
18
18
  [![Join the chat at https://gitter.im/modeset/teaspoon](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/modeset/teaspoon?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
19
19
 
20
- The goal of Teaspoon is to stay simple while also providing the most complete Javascript testing solution for Rails.
20
+ The goal of Teaspoon is to be simple to use while also providing the most complete Javascript testing solution for Rails.
21
21
 
22
22
  Teaspoon takes advantage of the Rails asset pipeline, and ships with support for Jasmine, Mocha, and QUnit.
23
23
 
24
24
  If you'd like to use Teaspoon with [Guard](https://github.com/guard/guard), check out the [guard-teaspoon](https://github.com/modeset/guard-teaspoon) project. Or, if you want to use the [Spring](https://github.com/rails/spring) preloader, try the unofficial [spring-commands-teaspoon](https://github.com/alejandrobabio/spring-commands-teaspoon).
25
25
 
26
+
27
+ ## Developer Note
28
+
29
+ We've added experimental Rails 5 support. If you're looking to use Teaspoon with Rails 5, please try out the rails_5 branch.
30
+
31
+ ```
32
+ gem "teaspoon-mocha", github: "modeset/teaspoon", branch: "rails_5"
33
+ ```
34
+
35
+
26
36
  ## Screenshots
27
37
 
28
38
  ### Running in the console
@@ -437,11 +447,11 @@ We encourage you to experiment and let us know. Feel free to create a wiki artic
437
447
 
438
448
  ## Alternative Projects
439
449
 
440
- [Konacha](https://github.com/jfirebaugh/konacha)
441
- [Jasminerice](https://github.com/bradphelan/jasminerice)
442
- [Evergreen](https://github.com/abepetrillo/evergreen)
443
- [jasmine-rails](https://github.com/searls/jasmine-rails)
444
- [guard-jasmine](https://github.com/netzpirat/guard-jasmine)
450
+ - [Konacha](https://github.com/jfirebaugh/konacha)
451
+ - [Jasminerice](https://github.com/bradphelan/jasminerice)
452
+ - [Evergreen](https://github.com/abepetrillo/evergreen)
453
+ - [jasmine-rails](https://github.com/searls/jasmine-rails)
454
+ - [guard-jasmine](https://github.com/netzpirat/guard-jasmine)
445
455
 
446
456
 
447
457
  ## License
@@ -1,10 +1,6 @@
1
1
  class Teaspoon::SuiteController < ActionController::Base
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
2
+ before_filter :check_env
3
+ before_filter :prepend_fixture_paths
8
4
 
9
5
  layout false
10
6
 
@@ -18,8 +14,8 @@ class Teaspoon::SuiteController < ActionController::Base
18
14
 
19
15
  def hook
20
16
  hooks = Teaspoon::Suite.new(params).hooks[params[:hook].to_s]
21
- hooks.each { |hook| hook.call(hook_params(params[:args])) }
22
- head(:success)
17
+ hooks.each { |hook| hook.call(params[:args]) }
18
+ render nothing: true
23
19
  end
24
20
 
25
21
  def fixtures
@@ -37,9 +33,4 @@ class Teaspoon::SuiteController < ActionController::Base
37
33
  prepend_view_path Teaspoon.configuration.root.join(path)
38
34
  end
39
35
  end
40
-
41
- def hook_params(params)
42
- return params.permit!.to_h if params.respond_to?(:permit!)
43
- params
44
- end
45
36
  end
@@ -34,7 +34,7 @@ module Teaspoon
34
34
  def run(*args, &block)
35
35
  IO.popen([executable, *args].join(" ")) { |io| io.each(&block) }
36
36
 
37
- unless $?.success?
37
+ unless $?.nil? || $?.success?
38
38
  raise Teaspoon::DependencyError.new("Failed to use phantomjs, which exited with status code: #{$?.exitstatus}")
39
39
  end
40
40
  end
@@ -98,12 +98,12 @@ end
98
98
 
99
99
  begin
100
100
  require 'action_view'
101
- if ActionView::VERSION::STRING == "4.2.5" || ActionView::VERSION::MAJOR >= 5
101
+ if ActionView::VERSION::STRING.start_with?('4.2.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', 'host').symbolize_keys
106
+ path_options = options.extract!('protocol', 'extname').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.3"
2
+ VERSION = "1.1.4"
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.3
4
+ version: 1.1.4
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-26 00:00:00.000000000 Z
14
+ date: 2016-01-27 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: '6'
25
+ version: '5'
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: '6'
35
+ version: '5'
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: