active_tools 0.0.31 → 0.0.32

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: a8200d064481d3edb93fc4f7dd3d00fa71d1b1e3
4
- data.tar.gz: 9d581748281af71a8996909ca4517887dac77144
3
+ metadata.gz: ea1ea6a23ddd129765c1d64cd3259eb71d0be0aa
4
+ data.tar.gz: 4b89f241732976185566dae94b63ff99619d7bef
5
5
  SHA512:
6
- metadata.gz: e7e758826238d4aca85073de06f3a658d74864e9e42be5fc0a2ba94824cf9455a7220779c592652113ad5bfa511fb95b0510a8ff0eedae5dae83c0b69fcfc457
7
- data.tar.gz: 3c68dbd79ff0a6a5cade2f9119b646999b36abac5b2160bab76257c9beb8bbecdfa38854e105e8a368aa5475ad24233c742ad566525096da5c1ff5875a82a89b
6
+ metadata.gz: 5fc19a89807ab1fcbfcbd698d5239b14b21ba2c7378c1b776462e6e3b899553e1b193d447a04b9d1ad8346a37a74f9a8b9153747d35331d159f6e6c754fd760c
7
+ data.tar.gz: 75db7d645961ad42f32ba3c52ca8fb3af75f15727455f3cdfc99dd911b1edcd0e2a0223c6aa0b6e68d701185e5dcaf79f53b7654966e94a0a606cb8b6bf1fb69
@@ -42,8 +42,12 @@ module ActiveTools
42
42
 
43
43
  def script_for(identifier, *args, &block)
44
44
  options = args.extract_options!
45
- content_for(identifier) do
46
- script(args, options.merge(:volume => identifier), &block)
45
+ if block_given?
46
+ content_for(identifier) do
47
+ script(args, options.merge(:volume => identifier), &block)
48
+ end
49
+ else
50
+ content_for(identifier, (script(args, options.merge(:volume => identifier)).join("\n") << "\n").html_safe)
47
51
  end
48
52
  end
49
53
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveTools
2
- VERSION = "0.0.31"
2
+ VERSION = "0.0.32"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.31
4
+ version: 0.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valery Kvon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-25 00:00:00.000000000 Z
11
+ date: 2015-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails