teaspoon-bundle 0.1.4 → 0.1.5

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: d7ea93a0dc6f316a8cee6be654398c6ddddefd64
4
- data.tar.gz: 1b18866f6b2d5a9eced070cc99c4ea79cb88c7f5
3
+ metadata.gz: 8739f4e97e89442f33f6ba2043fab2799d5ad691
4
+ data.tar.gz: b38ac59ac90b77a0b771d217ad373b6f6baf7e98
5
5
  SHA512:
6
- metadata.gz: 8dbe4feffab2919f2d266c559b437658662c7bdc5ef52043a2f1c67fc6e1376d2004b9c3c6a6dc2956b15b8a5fc799a6b108375733dcafaa0ea83beda44894f3
7
- data.tar.gz: 3ec7934ddd72103d1571f654004d4ca6c135d0e6d41ef2a210ae7c0702b86a83c6b532ba74ee820703e75d3071b59fd87c47d29eb63a7feac910e86b1d701219
6
+ metadata.gz: f75a09d45e1e6dd64d531c97efc2aba2ddbf03e698007ad897eed1a648d0169805bf4442e53c432e08d58c1514e6e7af7a331f9f583fa083cc443a8dc4d83c36
7
+ data.tar.gz: ae801742334d99a71555f8e63df3e6374e4d9a9a1b9d593057cdb529446998936c7dd926e018d5d599cb9dd8d3d3d8f4cff9d73ad5943f4849c0ab55cbbd2d81
data/.gitignore CHANGED
@@ -1,6 +1,6 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
3
+ Gemfile.lock
4
4
  /_yardoc/
5
5
  /coverage/
6
6
  /doc/
@@ -3,9 +3,12 @@ module Teaspoon::Bundle
3
3
  def serve
4
4
  file = File.join(Teaspoon::Bundle.dir, "teaspoon_bundle_#{params[:suite]}.js.erb")
5
5
  File.write(file, contents)
6
-
7
- asset = Rails.application.assets.find_asset(file)
8
- render js: asset.to_s
6
+ begin
7
+ asset = Rails.application.assets.find_asset(file)
8
+ render js: asset.to_s
9
+ ensure
10
+ File.delete(file)
11
+ end
9
12
  end
10
13
 
11
14
  private
@@ -1,5 +1,5 @@
1
1
  module Teaspoon
2
2
  module Bundle
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
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.4
4
+ version: 0.1.5
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-06-02 00:00:00.000000000 Z
11
+ date: 2016-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: teaspoon
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.5.1
113
+ rubygems_version: 2.4.5.1
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Dynamically create a test bundle for Teaspoon that contains all the files