rscript 0.2.1 → 0.2.2

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: 850ed30f17d56af6afc6764985d00df46eba39e8
4
- data.tar.gz: 0f0745c14b7180868946e8a0b008e8b841ce4727
3
+ metadata.gz: 85499beaf8d024ecdb086bb4dd070f81f91b485a
4
+ data.tar.gz: 5e9fcdcd242c20dca80c9277be5136ec0ea743f5
5
5
  SHA512:
6
- metadata.gz: 910769f6b9bbe73c96c03924a2e1c92f8313ac00aa690cba25db71841b4b2b8192a37c920f2711b1f327da09d9091a73d6022acaff7937f2a42f2dc9556c4cc2
7
- data.tar.gz: 3e58f18e8abd323944c6f32c135f8214e7f3facf3c571a1cadd97e2b49de014f2f27687a95cfc6975489c0471d6bf781759dd3cead19c12f76ec3e80bc08c0f9
6
+ metadata.gz: 20e45654ab3efda5e766914fafbb9e069d21bb0ca13df2d4de705cf1dbf0e58d2d68e9deb601834f2c4cd8408cce16bc691a3bc3ee659c297caf02641d1d690e
7
+ data.tar.gz: 9d735160d60cbfe35ff812ad6b75ec10feed8aac59bfb0bcc71e9e6bc51269e6570bd24076be33c7f4fbd90e6353b9050386386cd09c3590f0bd432f4777681c
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rscript_base.rb CHANGED
@@ -19,16 +19,15 @@ class RScriptBase
19
19
 
20
20
  def read_script(script)
21
21
  out_buffer = ''
22
-
22
+
23
23
  src = script.attributes[:src]
24
24
 
25
- if src then
26
-
27
- out_buffer = read_sourcecode(script.attributes[:src].to_s)
25
+ out_buffer = if src then
26
+ read_sourcecode(script.attributes[:src].to_s)
28
27
  else
29
- code = script.text.strip.length > 0 ? script.text : script.cdatas.join.strip
30
- out_buffer = code
28
+ script.texts.join("\n")
31
29
  end
30
+
32
31
  out_buffer
33
32
  end
34
33
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  pTl90ccAo96Myith2+5jI2p1BAoSjDRNTv+Uz21Zp7x1b0lFfXtaZ4FK5hu/B+DM
32
32
  B4M/dUmu40qQLg==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-01-29 00:00:00.000000000 Z
34
+ date: 2015-01-30 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: hashcache
metadata.gz.sig CHANGED
Binary file