rb-inotify 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +23 -0
- data/VERSION +1 -1
- data/lib/rb-inotify.rb +6 -1
- data/rb-inotify.gemspec +2 -2
- metadata +2 -2
data/Rakefile
CHANGED
@@ -18,6 +18,29 @@ rescue LoadError
|
|
18
18
|
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
19
19
|
end
|
20
20
|
|
21
|
+
module Jeweler::VersionHelper::PlaintextExtension
|
22
|
+
def write_with_inotify
|
23
|
+
write_without_inotify
|
24
|
+
filename = File.join(File.dirname(__FILE__), "lib/rb-inotify.rb")
|
25
|
+
text = File.read(filename)
|
26
|
+
File.open(filename, 'w') do |f|
|
27
|
+
f.write text.gsub(/^( VERSION = ).*/, '\1' + [major, minor, patch].inspect)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
alias_method :write_without_inotify, :write
|
31
|
+
alias_method :write, :write_with_inotify
|
32
|
+
end
|
33
|
+
|
34
|
+
class Jeweler::Commands::Version::Base
|
35
|
+
def commit_version_with_inotify
|
36
|
+
return unless self.repo
|
37
|
+
self.repo.add(File.join(File.dirname(__FILE__), "lib/rb-inotify.rb"))
|
38
|
+
commit_version_without_inotify
|
39
|
+
end
|
40
|
+
alias_method :commit_version_without_inotify, :commit_version
|
41
|
+
alias_method :commit_version, :commit_version_with_inotify
|
42
|
+
end
|
43
|
+
|
21
44
|
begin
|
22
45
|
require 'yard'
|
23
46
|
YARD::Rake::YardocTask.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
data/lib/rb-inotify.rb
CHANGED
@@ -9,4 +9,9 @@ require 'rb-inotify/event'
|
|
9
9
|
# * {Notifier} -- The main class, where the notifications are set up
|
10
10
|
# * {Watcher} -- A watcher for a single file or directory
|
11
11
|
# * {Event} -- An filesystem event notification
|
12
|
-
module INotify
|
12
|
+
module INotify
|
13
|
+
# An array containing the version number of rb-inotify.
|
14
|
+
# The numbers in the array are the major, minor, and patch versions,
|
15
|
+
# respectively.
|
16
|
+
VERSION = [0, 5, 1]
|
17
|
+
end
|
data/rb-inotify.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rb-inotify}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Nathan Weizenbaum"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-02-06}
|
13
13
|
s.description = %q{A Ruby wrapper for Linux's inotify, using FFI}
|
14
14
|
s.email = %q{nex342@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rb-inotify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Weizenbaum
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-02-06 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|