teaspoon-bundle 0.1.2 → 0.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: 7d267e4a24b5e424ec35977474beee7d4ddcc037
4
- data.tar.gz: 1cb6966eb2b60850bb57b68118f2d8da0ca0d74c
3
+ metadata.gz: c742b48e44f49df6b1e95fec4aa840b1aafc72e7
4
+ data.tar.gz: 8a164ebac88e367499aed535e102703688b7e5d0
5
5
  SHA512:
6
- metadata.gz: 1a722739c9e2b3643e3a241b3b6a394bad7c0cbcc56565d458f4bff91498f50d4a1228bee4f12649a81ee7ae56c5bb3cd5ec4daf9e5fc4f827c62c1ae8cdbb51
7
- data.tar.gz: 043d2c2f178250eb169cd11569566baca6c00fffa5c186480ff03a105827e69f5235f4d462e3bc04815a3f118e86de0dfae4f425688160588fa3e2263460084a
6
+ metadata.gz: 886a95183f802e5f2db1037e176c23f9a6d16dc1140ae5c4ada2f6c5405080f9dab64314dc819697581563c5a880e0958d4baa5c7645bdc14a2fbf89120e6ae9
7
+ data.tar.gz: b1906b2c042d1104409750ce1ffca5f2266182bc53445b326f667e6328bfa9624760b9580cdb0f4848c22e7399941f0b7ee3ce015c1e6bb17263f77d0f229a83
data/README.md CHANGED
@@ -6,3 +6,7 @@ A Teaspoon boot partial and controller that serves up all the test assets into a
6
6
 
7
7
  1. Add `teaspoon-bundle` to your `Gemfile` and run `bundle install`.
8
8
  2. Add `suite.boot_partial = "bundle_boot"` to your `teaspoon_env.rb`.
9
+
10
+ ## Known Issues
11
+
12
+ `teaspoon-bundle` is known to break code coverage provided by teaspoon.
@@ -1,4 +1,6 @@
1
- <%= content_tag(:script, "", src: "/teaspoon_bundle/#{@suite.name}?#{params.slice(:file).to_query}") %>
1
+ <% params.permit! %>
2
+ <% query = params.to_h.slice('file').to_query %>
3
+ <%= content_tag(:script, "", src: "/teaspoon_bundle/#{@suite.name}?#{query}") %>
2
4
 
3
5
  <script type="text/javascript">
4
6
  Teaspoon.onWindowLoad(Teaspoon.execute);
data/bin/setup CHANGED
@@ -2,8 +2,13 @@
2
2
  set -euo pipefail
3
3
  IFS=$'\n\t'
4
4
 
5
+ gem install bundler --version '1.11.2'
5
6
  bundle install
6
7
 
7
8
  pushd test/demo > /dev/null
8
9
  bundle install
9
10
  popd > /dev/null
11
+
12
+ pushd test/demo_rails5 > /dev/null
13
+ bundle install
14
+ popd > /dev/null
data/bin/test CHANGED
@@ -1,5 +1,38 @@
1
1
  #!/bin/bash
2
2
  set -e
3
+
3
4
  pushd test/demo>/dev/null
4
- bundle exec rake teaspoon
5
+ output=$(bundle exec rake teaspoon)
6
+ echo $output
7
+ if [[ $output != *"2 examples, 0 failures"* ]]
8
+ then
9
+ echo "expected '2 examples, 0 failures'"
10
+ exit 1
11
+ fi
12
+
13
+ output=$(bundle exec rake teaspoon files=spec/javascripts/whatever_spec.js)
14
+ echo $output
15
+ if [[ $output != *"1 example, 0 failures"* ]]
16
+ then
17
+ echo "expected '1 example, 0 failures'"
18
+ exit 1
19
+ fi
20
+ popd>/dev/null
21
+
22
+ pushd test/demo_rails5>/dev/null
23
+ output=$(bundle exec rake teaspoon)
24
+ echo $output
25
+ if [[ $output != *"2 examples, 0 failures"* ]]
26
+ then
27
+ echo "expected '2 examples, 0 failures'"
28
+ exit 1
29
+ fi
30
+
31
+ output=$(bundle exec rake teaspoon files=spec/javascripts/whatever_spec.js)
32
+ echo $output
33
+ if [[ $output != *"1 example, 0 failures"* ]]
34
+ then
35
+ echo "expected '1 example, 0 failures'"
36
+ exit 1
37
+ fi
5
38
  popd>/dev/null
@@ -0,0 +1,11 @@
1
+ machine:
2
+ ruby:
3
+ version: 2.3.0
4
+
5
+ test:
6
+ override:
7
+ - bin/test
8
+
9
+ dependencies:
10
+ override:
11
+ - bin/setup
@@ -1,5 +1,5 @@
1
1
  module Teaspoon
2
2
  module Bundle
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teaspoon-bundle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bouke van der Bijl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-18 00:00:00.000000000 Z
11
+ date: 2016-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: teaspoon
@@ -83,6 +83,7 @@ files:
83
83
  - app/views/teaspoon/suite/_bundle_boot.html.erb
84
84
  - bin/setup
85
85
  - bin/test
86
+ - circle.yml
86
87
  - lib/teaspoon-bundle.rb
87
88
  - lib/teaspoon/bundle.rb
88
89
  - lib/teaspoon/bundle/engine.rb
@@ -109,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
110
  version: '0'
110
111
  requirements: []
111
112
  rubyforge_project:
112
- rubygems_version: 2.5.1
113
+ rubygems_version: 2.4.5.1
113
114
  signing_key:
114
115
  specification_version: 4
115
116
  summary: Dynamically create a test bundle for Teaspoon that contains all the files