jruby-notify 0.0.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/README.md +33 -30
- data/lib/jnotify/jnotify-0.94.jar +0 -0
- data/lib/jnotify/shared/jnotify.dll +0 -0
- data/lib/jnotify/shared/jnotify_64bit.dll +0 -0
- data/lib/jnotify/shared/{libjnotify.dylib → libjnotify.jnilib} +0 -0
- data/lib/jnotify/shared/libjnotify.so +0 -0
- data/lib/jruby-notify.rb +2 -2
- data/lib/jruby-notify/notify.rb +2 -2
- metadata +62 -74
- data/lib/jnotify/jnotify-0.93.jar +0 -0
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# JNotify for JRuby
|
1
|
+
# JNotify for JRuby [![Build Status](https://travis-ci.org/vongruenigen/jruby-notify.png)](https://travis-ci.org/vongruenigen/jruby-notify)
|
2
2
|
|
3
3
|
jruby-notify is a thin wrapper around the [JNotify](http://jnotify.sourceforge.net/) library, a java library that allow
|
4
4
|
java application to listen to file system events, such as:
|
@@ -33,44 +33,47 @@ Please have a look at the platform specific notes on the [JNotify](http://jnotif
|
|
33
33
|
|
34
34
|
notify.run
|
35
35
|
|
36
|
-
## Forecast
|
37
|
-
|
38
|
-
With the upcoming release of Java 7 there will be a more robust solution to this problem with the
|
39
|
-
[WatchService API](http://java.sun.com/developer/technicalArticles/javase/nio/#6). This gem will
|
40
|
-
make use of this API when it'll be released.
|
41
|
-
|
42
36
|
## Other solutions
|
43
37
|
|
44
38
|
There are other gems that provides almost the same functionality for MRI:
|
45
39
|
|
46
|
-
* [rb-fsevent](https://github.com/thibaudgg/rb-fsevent) for Mac OS X
|
47
|
-
* [rb-inotify](https://github.com/nex3/rb-inotify) for Linux
|
40
|
+
* [rb-fsevent](https://github.com/thibaudgg/rb-fsevent) for Mac OS X
|
41
|
+
* [rb-inotify](https://github.com/nex3/rb-inotify) for Linux
|
42
|
+
* [rb-fchange](https://github.com/stereobooster/rb-fchange) for Windows
|
43
|
+
* [wdm](https://github.com/Maher4Ever/wdm) for Windows
|
48
44
|
|
49
|
-
##
|
45
|
+
## Author
|
50
46
|
|
51
|
-
|
47
|
+
Developed by Michael Kessler, [mksoft.ch](https://mksoft.ch).
|
52
48
|
|
53
|
-
|
49
|
+
If you like Haml Coffee Assets, you can watch the repository at [GitHub](https://github.com/netzpirat/haml_coffee_assets) and
|
50
|
+
follow [@netzpirat](https://twitter.com/#!/netzpirat) on Twitter for project updates.
|
51
|
+
|
52
|
+
## Development
|
53
|
+
|
54
|
+
* Issues and feature request hosted at [GitHub Issues](https://github.com/netzpirat/jruby-notify/issues).
|
55
|
+
* Documentation hosted at [RubyDoc](http://rubydoc.info/github/netzpirat/jruby-notify/master/frames).
|
56
|
+
* Source hosted at [GitHub](https://github.com/netzpirat/jruby-notify).
|
54
57
|
|
55
|
-
|
58
|
+
Pull requests are very welcome! Please try to follow these simple rules if applicable:
|
56
59
|
|
57
|
-
|
60
|
+
* Please create a topic branch for every separate change you make.
|
61
|
+
* Make sure your patches are well tested. All specs must pass.
|
62
|
+
* Update the [Yard](http://yardoc.org/) documentation.
|
63
|
+
* Update the README.
|
64
|
+
* Update the CHANGELOG for noteworthy changes.
|
65
|
+
* Please **do not change** the version number.
|
58
66
|
|
59
|
-
|
60
|
-
a copy of this software and associated documentation files (the
|
61
|
-
'Software'), to deal in the Software without restriction, including
|
62
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
63
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
64
|
-
permit persons to whom the Software is furnished to do so, subject to
|
65
|
-
the following conditions:
|
67
|
+
## Contributors
|
66
68
|
|
67
|
-
|
68
|
-
|
69
|
+
See the [CHANGELOG](https://github.com/netzpirat/jruby-notify/blob/master/CHANGELOG.md) and the GitHub list of
|
70
|
+
[contributors](https://github.com/netzpirat/jruby-notify/contributors).
|
71
|
+
|
72
|
+
## Acknowledgement
|
73
|
+
|
74
|
+
Omry Yadan for writting the JNotify library and Matthew Donoughe for providing the Mac OS X support.
|
75
|
+
|
76
|
+
## License
|
69
77
|
|
70
|
-
|
71
|
-
|
72
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
73
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
74
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
75
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
76
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
78
|
+
This Ruby gem is released under the [MIT](https://github.com/netzpirat/jruby-notify/blob/master/LICENSE) license.
|
79
|
+
The JNotify library is released under the [LPGL](https://github.com/netzpirat/jruby-notify/blob/master/lib/jnotify/LPGL) license.
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/jruby-notify.rb
CHANGED
data/lib/jruby-notify/notify.rb
CHANGED
@@ -3,10 +3,11 @@ module JRubyNotify
|
|
3
3
|
|
4
4
|
def initialize
|
5
5
|
JRubyNotify.define_library_path
|
6
|
+
@watches = []
|
6
7
|
end
|
7
8
|
|
8
9
|
def watch(paths, mask = JRubyNotify::FILE_ANY, subtree = true, &callback)
|
9
|
-
@paths = paths
|
10
|
+
@paths = Array(paths)
|
10
11
|
@callback = callback
|
11
12
|
@mask = mask
|
12
13
|
@subtree = subtree
|
@@ -21,6 +22,5 @@ module JRubyNotify
|
|
21
22
|
def stop
|
22
23
|
@watches.each { |watch| Java::NetContentobjectsJNotify::JNotify.removeWatch(watch) }
|
23
24
|
end
|
24
|
-
|
25
25
|
end
|
26
26
|
end
|
metadata
CHANGED
@@ -1,116 +1,104 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: jruby-notify
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 3
|
9
|
-
version: 0.0.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Michael Kessler
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-01-27 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rake
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 0
|
30
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
31
22
|
type: :development
|
32
|
-
version_requirements: *id001
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: bundler
|
35
23
|
prerelease: false
|
36
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: bundler
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
37
33
|
none: false
|
38
|
-
requirements:
|
39
|
-
- -
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
- 1
|
43
|
-
- 0
|
44
|
-
- 10
|
45
|
-
version: 1.0.10
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
46
38
|
type: :development
|
47
|
-
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: rspec
|
50
39
|
prerelease: false
|
51
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
52
49
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
- 2
|
58
|
-
- 5
|
59
|
-
- 0
|
60
|
-
version: 2.5.0
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
61
54
|
type: :development
|
62
|
-
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
63
62
|
description: JRuby-Notify is an thin wrapper around the JNotify library.
|
64
63
|
email: michi@netzpiraten.ch
|
65
64
|
executables: []
|
66
|
-
|
67
65
|
extensions: []
|
68
|
-
|
69
66
|
extra_rdoc_files: []
|
70
|
-
|
71
|
-
|
72
|
-
- lib/jnotify/jnotify-0.93.jar
|
67
|
+
files:
|
68
|
+
- lib/jnotify/jnotify-0.94.jar
|
73
69
|
- lib/jnotify/LPGL
|
74
70
|
- lib/jnotify/shared/jnotify.dll
|
75
71
|
- lib/jnotify/shared/jnotify_64bit.dll
|
76
|
-
- lib/jnotify/shared/libjnotify.
|
72
|
+
- lib/jnotify/shared/libjnotify.jnilib
|
77
73
|
- lib/jnotify/shared/libjnotify.so
|
78
74
|
- lib/jruby-notify/listener.rb
|
79
75
|
- lib/jruby-notify/notify.rb
|
80
76
|
- lib/jruby-notify.rb
|
81
77
|
- LICENSE
|
82
78
|
- README.md
|
83
|
-
has_rdoc: true
|
84
79
|
homepage: https://github.com/netzpirat/jruby-notify
|
85
80
|
licenses: []
|
86
|
-
|
87
81
|
post_install_message:
|
88
82
|
rdoc_options: []
|
89
|
-
|
90
|
-
require_paths:
|
83
|
+
require_paths:
|
91
84
|
- lib
|
92
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
93
86
|
none: false
|
94
|
-
requirements:
|
95
|
-
- -
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
|
98
|
-
|
99
|
-
version: "0"
|
100
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ! '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
92
|
none: false
|
102
|
-
requirements:
|
103
|
-
- -
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
|
106
|
-
- 0
|
107
|
-
version: "0"
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
108
97
|
requirements: []
|
109
|
-
|
110
98
|
rubyforge_project:
|
111
|
-
rubygems_version: 1.
|
99
|
+
rubygems_version: 1.8.24
|
112
100
|
signing_key:
|
113
101
|
specification_version: 3
|
114
102
|
summary: JNotify for JRuby
|
115
103
|
test_files: []
|
116
|
-
|
104
|
+
has_rdoc:
|
Binary file
|