rill 0.1.5 → 0.1.6

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.
Files changed (2) hide show
  1. data/lib/rill.rb +3 -3
  2. metadata +1 -1
data/lib/rill.rb CHANGED
@@ -35,7 +35,7 @@ class Rill
35
35
 
36
36
  mod = parse_module(mod)
37
37
  path = File.join(@base, "#{mod}.js")
38
- code = File.open(path).read.lstrip
38
+ code = File.open(path, 'r:bom|utf-8').read.lstrip
39
39
 
40
40
  unless code =~ /^define\(\s*(['"])[^'"]+\1/
41
41
  code = polish(mod, code)
@@ -59,7 +59,7 @@ class Rill
59
59
 
60
60
  def bundle
61
61
  @preloads.each do |file|
62
- code = File.open(File.join(@base, "#{file}.js")).read
62
+ code = File.open(File.join(@base, "#{file}.js"), 'r:bom|utf-8').read
63
63
  @codes.unshift(code)
64
64
  end
65
65
  @codes.join("\n")
@@ -75,7 +75,7 @@ class Rill
75
75
  end
76
76
 
77
77
  path = File.join(@base, "#{mod}.js")
78
- code = File.open(path).read.lstrip
78
+ code = File.open(path, 'r:bom|utf-8').read.lstrip
79
79
 
80
80
  unless code =~ /^define\(\s*(['"])[^'"]+\1/
81
81
  code = polish_code(mod, code)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: