snowball 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/extconf.rb CHANGED
@@ -3,9 +3,7 @@ require 'open3'
3
3
 
4
4
  create_makefile("Dummy")
5
5
 
6
- ['npm install', 'npm shrinkwrap'].each do |cmd|
7
- puts "* Running #{cmd}"
8
- Open3.popen3(cmd) do |stdin, stdout, stderr, wait_thr|
9
- fail "Error running '#{cmd}': #{stderr.read}" unless wait_thr.value.success?
10
- end
11
- end
6
+ puts "* Running npm install"
7
+ Open3.popen3('npm install') do |stdin, stdout, stderr, wait_thr|
8
+ fail "Error running 'npm install': #{stderr.read}" unless wait_thr.value.success?
9
+ end
@@ -41,7 +41,7 @@ module Sinatra
41
41
  if File.extname(bundle) != '.js' or config[:source].any? { |glob_str| File.fnmatch(glob_str, entryfile) }
42
42
  send_file entryfile
43
43
  else
44
- raw = config[:raw].any? { |glob_str| File.fnmatch(glob_str, entryfile) }
44
+ raw = config[:raw].any? { |glob_str| File.fnmatch(glob_str, bundle) }
45
45
  content_type :js
46
46
  [200, ::Snowball::Roller.roll(*[entryfile, config.merge({:raw => raw})].compact)]
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module Snowball
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,13 @@
1
+ require 'open3'
2
+
3
+ unless File.exists?("./node_modules")
4
+ # Run npm install to make sure we get all needed node modules
5
+ puts "* Running npm install"
6
+ Open3.popen3('npm install') do |stdin, stdout, stderr, wait_thr|
7
+ fail "Error running 'npm install': #{stderr.read}" unless wait_thr.value.success?
8
+ end
9
+ end
10
+
1
11
  require 'bundler'
2
12
  require 'simplecov'
3
13
  require 'rack/test'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snowball
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: