guard-stitch 0.0.1 → 0.0.2

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.
@@ -1,3 +1,3 @@
1
- guard 'stitch', :paths => ['app'], :dependencies => [], :destination => 'public/javascripts/app.stitched.js' do
1
+ guard 'stitch', :paths => ['app/assets/javascripts'], :dependencies => ['public/javascripts/vendor'], :destination => 'public/javascripts/app.stitched.js' do
2
2
  watch(%r{^.+\.(js|coffee)$})
3
3
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  class StitchVersion
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
data/lib/guard/stitch.rb CHANGED
@@ -8,6 +8,8 @@ module Guard
8
8
 
9
9
  def initialize(watchers = [], options = {})
10
10
  super(watchers, options)
11
+ @paths = options.delete(:paths)
12
+ @dependencies = options.delete(:dependencies)
11
13
  @output = options.delete(:output)
12
14
  end
13
15
 
@@ -30,7 +32,7 @@ module Guard
30
32
  private
31
33
  def stitch
32
34
  begin
33
- js = ::Stitch::Package.new(:paths => ["app"]).compile
35
+ js = ::Stitch::Package.new(:paths => @paths, :dependencies => @dependencies).compile
34
36
  open(@output, 'w') {|f| f << js}
35
37
  UI.info "Stitched #{@input} to #{@output}"
36
38
  Notifier.notify "Stitched #{@input} to #{@output}", :title => 'Stitch'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-stitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-08 00:00:00.000000000Z
12
+ date: 2011-10-09 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &70230872391340 !ruby/object:Gem::Requirement
16
+ requirement: &70107116459080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0.4'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70230872391340
24
+ version_requirements: *70107116459080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: stitch-rb
27
- requirement: &70230872390840 !ruby/object:Gem::Requirement
27
+ requirement: &70107116458580 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 0.0.4
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70230872390840
35
+ version_requirements: *70107116458580
36
36
  description: Run stitch-rb on your javascripts.
37
37
  email:
38
38
  - stereosteve@gmail.com