rb-inotify 0.5.0 → 0.5.1

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.
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.0
1
+ 0.5.1
@@ -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; end
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
@@ -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.0"
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-01-18}
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.0
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-01-18 00:00:00 -08:00
12
+ date: 2010-02-06 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency