when-files-change 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'optparse'
3
- require File.dirname(__FILE__) + '/../lib/change_listener'
3
+ require_relative '../lib/when_files_change'
4
4
 
5
5
  # Default Options
6
6
  ignored_paths = nil
@@ -27,7 +27,7 @@ unless command
27
27
  exit 1
28
28
  end
29
29
 
30
- listener = ChangeListener.new(command, *ARGV)
30
+ listener = WhenFilesChange.new(command, *ARGV)
31
31
  listener.ignore_paths(ignored_paths) if ignored_paths
32
32
  listener.verbose = verbose
33
33
  listener.start
@@ -1,7 +1,7 @@
1
1
  require 'listen'
2
2
  require 'file_glob'
3
3
 
4
- class ChangeListener
4
+ class WhenFilesChange
5
5
  attr_reader :listener
6
6
  attr_reader :command
7
7
  attr_reader :arguments
metadata CHANGED
@@ -1,81 +1,72 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: when-files-change
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 2
9
- version: 0.2.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.3
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Adam Sanderson
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2013-05-09 00:00:00 -07:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2013-07-15 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: listen
16
+ requirement: &2319488420 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '0.7'
22
+ type: :runtime
22
23
  prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
+ version_requirements: *2319488420
25
+ - !ruby/object:Gem::Dependency
26
+ name: file_glob
27
+ requirement: &2319487960 !ruby/object:Gem::Requirement
24
28
  none: false
25
- requirements:
29
+ requirements:
26
30
  - - ~>
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 7
31
- version: "0.7"
31
+ - !ruby/object:Gem::Version
32
+ version: '0.0'
32
33
  type: :runtime
33
- version_requirements: *id001
34
- description: Whenever files in your working directory change, execute a command, such as "rake test".
35
- email:
34
+ prerelease: false
35
+ version_requirements: *2319487960
36
+ description: Whenever files in your working directory change, execute a command, such
37
+ as "rake test".
38
+ email:
36
39
  - netghost@gmail.com
37
- executables:
40
+ executables:
38
41
  - when-files-change
39
42
  extensions: []
40
-
41
43
  extra_rdoc_files: []
42
-
43
- files:
44
+ files:
44
45
  - bin/when-files-change
45
- - lib/change_listener.rb
46
- - lib/file_glob.rb
46
+ - lib/when_files_change.rb
47
47
  - README.markdown
48
- has_rdoc: true
49
48
  homepage: https://github.com/adamsanderson/when-files-change
50
49
  licenses: []
51
-
52
50
  post_install_message:
53
51
  rdoc_options: []
54
-
55
- require_paths:
52
+ require_paths:
56
53
  - lib
57
- required_ruby_version: !ruby/object:Gem::Requirement
54
+ required_ruby_version: !ruby/object:Gem::Requirement
58
55
  none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- segments:
63
- - 0
64
- version: "0"
65
- required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
61
  none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- segments:
71
- - 0
72
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
73
66
  requirements: []
74
-
75
67
  rubyforge_project:
76
- rubygems_version: 1.3.7
68
+ rubygems_version: 1.8.11
77
69
  signing_key:
78
70
  specification_version: 3
79
71
  summary: When files change, do something.
80
72
  test_files: []
81
-
@@ -1,19 +0,0 @@
1
- class FileGlob
2
- attr_reader :pattern
3
-
4
- def initialize(pattern)
5
- @pattern = pattern
6
- end
7
-
8
- def =~ path
9
- File.fnmatch?(pattern, path)
10
- end
11
-
12
- def to_s
13
- pattern
14
- end
15
-
16
- def inspect
17
- "<#FileGlob #{pattern}>"
18
- end
19
- end