fssm 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -11,7 +11,6 @@ begin
11
11
  gem.homepage = "http://github.com/ttilley/fssm"
12
12
  gem.authors = ["Travis Tilley"]
13
13
  gem.add_development_dependency "rspec"
14
- gem.add_development_dependency "yard"
15
14
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
15
  end
17
16
  rescue LoadError
@@ -58,12 +57,3 @@ rescue LoadError
58
57
  end
59
58
 
60
59
  task :default => :spec
61
-
62
- begin
63
- require 'yard'
64
- YARD::Rake::YardocTask.new
65
- rescue LoadError
66
- task :yardoc do
67
- abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
68
- end
69
- end
@@ -1,4 +1,5 @@
1
1
  ---
2
- :minor: 0
3
- :patch: 8
4
2
  :major: 0
3
+ :minor: 0
4
+ :patch: 9
5
+ :build:
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fssm}
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Travis Tilley"]
12
- s.date = %q{2009-09-08}
12
+ s.date = %q{2009-12-13}
13
13
  s.description = %q{file system state monitor}
14
14
  s.email = %q{ttilley@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -55,8 +55,8 @@ Gem::Specification.new do |s|
55
55
  s.summary = %q{file system state monitor}
56
56
  s.test_files = [
57
57
  "spec/path_spec.rb",
58
- "spec/root/file.rb",
59
- "spec/spec_helper.rb"
58
+ "spec/spec_helper.rb",
59
+ "spec/root/file.rb"
60
60
  ]
61
61
 
62
62
  if s.respond_to? :specification_version then
@@ -65,13 +65,11 @@ Gem::Specification.new do |s|
65
65
 
66
66
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
67
67
  s.add_development_dependency(%q<rspec>, [">= 0"])
68
- s.add_development_dependency(%q<yard>, [">= 0"])
69
68
  else
70
69
  s.add_dependency(%q<rspec>, [">= 0"])
71
- s.add_dependency(%q<yard>, [">= 0"])
72
70
  end
73
71
  else
74
72
  s.add_dependency(%q<rspec>, [">= 0"])
75
- s.add_dependency(%q<yard>, [">= 0"])
76
73
  end
77
74
  end
75
+
@@ -46,7 +46,7 @@ class FSSM::State
46
46
  end
47
47
 
48
48
  def add_glob(base, glob)
49
- FSSM::Pathname.glob(base.join(glob)).each do |fn|
49
+ FSSM::Pathname.glob(base.join(glob).to_s).each do |fn|
50
50
  @cache.set(fn)
51
51
  end
52
52
  end
@@ -36,7 +36,7 @@ module FSSM::Tree
36
36
  cprefix = prefix ?
37
37
  FSSM::Pathname.for(prefix).join(segment) :
38
38
  FSSM::Pathname.for(segment)
39
- block.call(cprefix, node)
39
+ block.call([cprefix, node])
40
40
  node.each(cprefix, &block)
41
41
  end
42
42
  end
@@ -165,8 +165,7 @@ module FSSM::Tree
165
165
  private
166
166
 
167
167
  def ftype(ft)
168
- inject({}) do |hash, entry|
169
- path, node = entry
168
+ inject({}) do |hash, (path, node)|
170
169
  hash["#{path}"] = node.mtime if node.ftype == ft
171
170
  hash
172
171
  end
metadata CHANGED
@@ -1,37 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fssm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
- - Travis Tilley
7
+ - Travis Tilley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-08 00:00:00 -04:00
12
+ date: 2009-12-13 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: rspec
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: yard
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
34
- version:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
35
25
  description: file system state monitor
36
26
  email: ttilley@gmail.com
37
27
  executables: []
@@ -39,59 +29,59 @@ executables: []
39
29
  extensions: []
40
30
 
41
31
  extra_rdoc_files:
42
- - LICENSE
43
- - README.markdown
32
+ - LICENSE
33
+ - README.markdown
44
34
  files:
45
- - .document
46
- - .gitignore
47
- - LICENSE
48
- - README.markdown
49
- - Rakefile
50
- - VERSION.yml
51
- - example.rb
52
- - fssm.gemspec
53
- - lib/fssm.rb
54
- - lib/fssm/backends/fsevents.rb
55
- - lib/fssm/backends/polling.rb
56
- - lib/fssm/fsevents.rb
57
- - lib/fssm/monitor.rb
58
- - lib/fssm/path.rb
59
- - lib/fssm/pathname.rb
60
- - lib/fssm/state.rb
61
- - lib/fssm/support.rb
62
- - lib/fssm/tree.rb
63
- - profile/prof-cache.rb
64
- - profile/prof-fssm-pathname.html
65
- - profile/prof-pathname.rb
66
- - profile/prof-plain-pathname.html
67
- - profile/prof.html
68
- - spec/path_spec.rb
69
- - spec/root/duck/quack.txt
70
- - spec/root/file.css
71
- - spec/root/file.rb
72
- - spec/root/file.yml
73
- - spec/root/moo/cow.txt
74
- - spec/spec_helper.rb
35
+ - .document
36
+ - .gitignore
37
+ - LICENSE
38
+ - README.markdown
39
+ - Rakefile
40
+ - VERSION.yml
41
+ - example.rb
42
+ - fssm.gemspec
43
+ - lib/fssm.rb
44
+ - lib/fssm/backends/fsevents.rb
45
+ - lib/fssm/backends/polling.rb
46
+ - lib/fssm/fsevents.rb
47
+ - lib/fssm/monitor.rb
48
+ - lib/fssm/path.rb
49
+ - lib/fssm/pathname.rb
50
+ - lib/fssm/state.rb
51
+ - lib/fssm/support.rb
52
+ - lib/fssm/tree.rb
53
+ - profile/prof-cache.rb
54
+ - profile/prof-fssm-pathname.html
55
+ - profile/prof-pathname.rb
56
+ - profile/prof-plain-pathname.html
57
+ - profile/prof.html
58
+ - spec/path_spec.rb
59
+ - spec/root/duck/quack.txt
60
+ - spec/root/file.css
61
+ - spec/root/file.rb
62
+ - spec/root/file.yml
63
+ - spec/root/moo/cow.txt
64
+ - spec/spec_helper.rb
75
65
  has_rdoc: true
76
66
  homepage: http://github.com/ttilley/fssm
77
67
  licenses: []
78
68
 
79
69
  post_install_message:
80
70
  rdoc_options:
81
- - --charset=UTF-8
71
+ - --charset=UTF-8
82
72
  require_paths:
83
- - lib
73
+ - lib
84
74
  required_ruby_version: !ruby/object:Gem::Requirement
85
75
  requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: "0"
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: "0"
89
79
  version:
90
80
  required_rubygems_version: !ruby/object:Gem::Requirement
91
81
  requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- version: "0"
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: "0"
95
85
  version:
96
86
  requirements: []
97
87
 
@@ -101,6 +91,6 @@ signing_key:
101
91
  specification_version: 3
102
92
  summary: file system state monitor
103
93
  test_files:
104
- - spec/path_spec.rb
105
- - spec/root/file.rb
106
- - spec/spec_helper.rb
94
+ - spec/path_spec.rb
95
+ - spec/spec_helper.rb
96
+ - spec/root/file.rb