rb-fsevent 0.9.6 → 0.9.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9be5c4ae13fb2cbb29cbe12c4b699134de3ce674
4
- data.tar.gz: b1c5cac61471cccc5ff7ba2c22eb2ba75c84a893
3
+ metadata.gz: 6ec2a04c1e09fcc2b15f66a283c02222b102fef8
4
+ data.tar.gz: 1a63e413a9d9cbf3fb71558322652d4d6ecc2f18
5
5
  SHA512:
6
- metadata.gz: 4f688b67b030dede85824f486ca368dfb43615f617241ca627ac789e57c96ac69ee2c9c88ed59867fafb0c86cccdb580de70ec4cd515196067b8dc38ba7fac6f
7
- data.tar.gz: 8f559f14279c140110aecc64796b3794abc21aea6853b84bb9def642addba0a9544ac6ffe7db61a9371dc76b1ce3e694239e54b018d513ca62aab667195ec867
6
+ metadata.gz: b9d7321a62fbd19b4b25464a19b5ca23adbd79f7e1adcb015b70512c58814d782969654c99dd6e8863a496e81a8a63b2c950f1fe93409591fc6904d190b5ad6e
7
+ data.tar.gz: 449890feca668e4827d2c679caf4b46a1ae11173b4a73064da0c09f8b267006adadd06029bea97a5ef85983d1641724209518e1179a27681d0330daff576229d
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  class FSEvent
4
- VERSION = '0.9.6'
4
+ VERSION = '0.9.7'
5
5
  end
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "rb-fsevent/version"
4
+ require 'rb-fsevent/version'
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'rb-fsevent'
@@ -13,12 +13,10 @@ Gem::Specification.new do |s|
13
13
  s.description = 'FSEvents API with Signals catching (without RubyCocoa)'
14
14
  s.license = 'MIT'
15
15
 
16
- s.files = `git ls-files`.split($/)
17
- s.test_files = s.files.grep(%r{^spec/})
16
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^spec/}) }
18
17
  s.require_path = 'lib'
19
18
 
20
- s.add_development_dependency 'bundler', '~> 1.0'
21
- s.add_development_dependency 'rspec', '~> 2.11'
22
- s.add_development_dependency 'guard-rspec', '~> 4.2'
19
+ s.add_development_dependency 'bundler', '~> 1.0'
20
+ s.add_development_dependency 'rspec', '~> 2.11'
21
+ s.add_development_dependency 'guard-rspec', '~> 4.2'
23
22
  end
24
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb-fsevent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibaud Guillaume-Gentil
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-02 00:00:00.000000000 Z
12
+ date: 2015-12-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -85,11 +85,6 @@ files:
85
85
  - lib/rb-fsevent/fsevent.rb
86
86
  - lib/rb-fsevent/version.rb
87
87
  - rb-fsevent.gemspec
88
- - spec/fixtures/custom 'path/.gitignore
89
- - spec/fixtures/folder1/file1.txt
90
- - spec/fixtures/folder1/folder2/file2.txt
91
- - spec/rb-fsevent/fsevent_spec.rb
92
- - spec/spec_helper.rb
93
88
  homepage: http://rubygems.org/gems/rb-fsevent
94
89
  licenses:
95
90
  - MIT
@@ -110,14 +105,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
105
  version: '0'
111
106
  requirements: []
112
107
  rubyforge_project:
113
- rubygems_version: 2.4.5.1
108
+ rubygems_version: 2.5.1
114
109
  signing_key:
115
110
  specification_version: 4
116
111
  summary: Very simple & usable FSEvents API
117
- test_files:
118
- - spec/fixtures/custom 'path/.gitignore
119
- - spec/fixtures/folder1/file1.txt
120
- - spec/fixtures/folder1/folder2/file2.txt
121
- - spec/rb-fsevent/fsevent_spec.rb
122
- - spec/spec_helper.rb
123
- has_rdoc:
112
+ test_files: []
File without changes
File without changes
@@ -1,88 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe FSEvent do
4
-
5
- before(:each) do
6
- @results = []
7
- @fsevent = FSEvent.new
8
- @fsevent.watch @fixture_path.to_s, {:latency => 0.5} do |paths|
9
- @results += paths
10
- end
11
- end
12
-
13
- it "shouldn't pass anything to watch when instantiated without a path" do
14
- fsevent = FSEvent.new
15
- fsevent.paths.should be_nil
16
- fsevent.callback.should be_nil
17
- end
18
-
19
- it "should pass path and block to watch when instantiated with them" do
20
- blk = proc { }
21
- fsevent = FSEvent.new(@fixture_path, &blk)
22
- fsevent.paths.should == [@fixture_path]
23
- fsevent.callback.should == blk
24
- end
25
-
26
- it "should have a watcher_path that resolves to an executable file" do
27
- File.exists?(FSEvent.watcher_path).should be_true
28
- File.executable?(FSEvent.watcher_path).should be_true
29
- end
30
-
31
- it "should work with path with an apostrophe" do
32
- custom_path = @fixture_path.join("custom 'path")
33
- file = custom_path.join("newfile.rb").to_s
34
- File.delete file if File.exists? file
35
- @fsevent.watch custom_path.to_s do |paths|
36
- @results += paths
37
- end
38
- @fsevent.paths.should == ["#{custom_path}"]
39
- run
40
- FileUtils.touch file
41
- stop
42
- File.delete file
43
- @results.should == [custom_path.to_s + '/']
44
- end
45
-
46
- it "should catch new file" do
47
- file = @fixture_path.join("newfile.rb")
48
- File.delete file if File.exists? file
49
- run
50
- FileUtils.touch file
51
- stop
52
- File.delete file
53
- @results.should == [@fixture_path.to_s + '/']
54
- end
55
-
56
- it "should catch file update" do
57
- file = @fixture_path.join("folder1/file1.txt")
58
- File.exists?(file).should be_true
59
- run
60
- FileUtils.touch file
61
- stop
62
- @results.should == [@fixture_path.join("folder1/").to_s]
63
- end
64
-
65
- it "should catch files update" do
66
- file1 = @fixture_path.join("folder1/file1.txt")
67
- file2 = @fixture_path.join("folder1/folder2/file2.txt")
68
- File.exists?(file1).should be_true
69
- File.exists?(file2).should be_true
70
- run
71
- FileUtils.touch file1
72
- FileUtils.touch file2
73
- stop
74
- @results.should == [@fixture_path.join("folder1/").to_s, @fixture_path.join("folder1/folder2/").to_s]
75
- end
76
-
77
- def run
78
- sleep 1
79
- Thread.new { @fsevent.run }
80
- sleep 1
81
- end
82
-
83
- def stop
84
- sleep 1
85
- @fsevent.stop
86
- end
87
-
88
- end
@@ -1,23 +0,0 @@
1
- require 'rspec'
2
- require 'rb-fsevent'
3
-
4
- RSpec.configure do |config|
5
- config.color_enabled = true
6
- config.filter_run :focus => true
7
- config.run_all_when_everything_filtered = true
8
-
9
- config.before(:each) do
10
- @fixture_path = Pathname.new(File.expand_path('../fixtures/', __FILE__))
11
- end
12
-
13
- config.before(:all) do
14
- system "cd ext; rake"
15
- puts "fsevent_watch compiled"
16
- end
17
-
18
- config.after(:all) do
19
- gem_root = Pathname.new(File.expand_path('../../', __FILE__))
20
- system "rm -rf #{gem_root.join('bin')}"
21
- end
22
-
23
- end