gusto 1.0.0.beta7 → 1.0.0.beta8

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: 9cb89e7f84fe3fb0a47e43723a10af344c7ca402
4
- data.tar.gz: 8074d16248b2502e1e9956075e96bae3f627d8c6
3
+ metadata.gz: 4d17eea0ab54967209a74af0bc7e018cd4131be5
4
+ data.tar.gz: 5528ecb8ec2a199eecec326defd2466b56be529b
5
5
  SHA512:
6
- metadata.gz: b4fd7211078f026578acd2e6ad06e9bd05bf81bdc324ef92485ba130e75b619ef9885de44b0eaafea3f4ee473101381aea9ca915a6db2667061188d0245ce1ad
7
- data.tar.gz: 60a926b02d75a4027b3215323ad51ccd18f926c0bd5956e6a45354f67160c35a7cd6931db782d1be9d4497cb28da488c01f1a96754cab28387a86f33e6ec477d
6
+ metadata.gz: 679de6ad1176a1b96a8719797e512447404be443423e567df9a3626cb6e7ba441c40bb939dc7cc3b47f0de9b4b7f4d4bb28c1af4b920a05b3489a1619831b861
7
+ data.tar.gz: 0938a1f216db53bcffbff44addc396d6a4a54af8a302c747d6691689dc8dac23da44076686db917c45954872eae4ffc5bb62a1dc606477b47a62a258d7ab016e
data/lib/gusto/server.rb CHANGED
@@ -49,10 +49,16 @@ module Gusto
49
49
  @scripts = []
50
50
  Gusto::Configuration.spec_paths.each do |path|
51
51
  Dir["#{Gusto.project_root}/#{path}/**/*spec.coffee"].each do |file|
52
- @scripts << $1 if file.match Regexp.new("^#{Regexp.escape Gusto.project_root}\\/#{Regexp.escape path}\\/(.*).coffee$")
52
+ if file.match Regexp.new("^#{Regexp.escape Gusto.project_root}\\/#{Regexp.escape path}\\/(.*).coffee$")
53
+ @scripts << $1
54
+ else
55
+ raise "Scripts file detected with unexpected path: #{file}"
56
+ end
53
57
  end
54
58
  end
55
-
59
+ if params[:filter]
60
+ @scripts = @scripts.select{|file| file.downcase.include? params[:filter].downcase}
61
+ end
56
62
  render :slim, :index
57
63
  end
58
64
  end
data/lib/gusto/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gusto
2
- VERSION = "1.0.0.beta7"
2
+ VERSION = "1.0.0.beta8"
3
3
  end