tidings 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/COPYING +18 -0
  3. data/README.rdoc +27 -0
  4. data/ext/extconf.rb +10 -0
  5. metadata +77 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cbe1831ad74b02894406f9969fca0ceb6240ca90
4
+ data.tar.gz: 025784c85abf46654519579b0b70075c25ad6994
5
+ SHA512:
6
+ metadata.gz: 34d4541a3abf171a7cafee93930dd477a3341e033b1289cf51cba6500f2d1ac0c511a9c0df48788f8ce9d5ecaecf6cda613ab2aaf63743fd0495096c41fe2d67
7
+ data.tar.gz: df256ad3c8678154cc39a057d397740a45f9ac86283d27f454d0533d38cce2081fb40fede9ea85d543bcde4e6a33cb5de62d89357f71b1cc5975b8f9bf82819a
data/COPYING ADDED
@@ -0,0 +1,18 @@
1
+ Copyright (c) Manfred Stienstra, Fingertips <manfred@fngtps.com>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7
+ the Software, and to permit persons to whom the Software is furnished to do so,
8
+ subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,27 @@
1
+ = Tidings
2
+
3
+ A platform optimized file-change watcher.
4
+
5
+ == Installation
6
+
7
+ $ gem install tidings
8
+
9
+ == Short example
10
+
11
+ Tidings.watch('/Users/janice/Code') do |file_or_path, flags|
12
+ if flags.include(:dir)
13
+ puts "Change to directory: #{file_or_path}"
14
+ else
15
+ puts "Change to file: #{file_or_path}"
16
+ end
17
+ end
18
+
19
+ == Long example
20
+
21
+ module MyFileWatcher
22
+ def self.call(file_or_path, flags)
23
+ puts "#{file_or_path.inspect}:#{flags.inspect}"
24
+ end
25
+ end
26
+
27
+ Tidings.watch('/Users/janice/Code', MyFileWatcher)
data/ext/extconf.rb ADDED
@@ -0,0 +1,10 @@
1
+ require 'mkmf'
2
+
3
+ case RUBY_PLATFORM
4
+ when /darwin/
5
+ with_ldflags("-framework CoreServices") do
6
+ create_makefile("fs_event/fs_event", "fs_event")
7
+ end
8
+ when /linux/
9
+ create_makefile("inotify/inotify", "inotify")
10
+ end
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tidings
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Manfred Stienstra
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: peck
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: fakefs
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Tidings lets you watch filesystem changes and act on them.
42
+ email:
43
+ - manfred@fngtpspec.com
44
+ executables: []
45
+ extensions:
46
+ - ext/extconf.rb
47
+ extra_rdoc_files:
48
+ - README.rdoc
49
+ - COPYING
50
+ files:
51
+ - README.rdoc
52
+ - COPYING
53
+ - ext/extconf.rb
54
+ homepage: http://github.com/Manfred/tidings
55
+ licenses: []
56
+ metadata: {}
57
+ post_install_message:
58
+ rdoc_options: []
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubyforge_project:
73
+ rubygems_version: 2.0.3
74
+ signing_key:
75
+ specification_version: 4
76
+ summary: A platform optimized file-change watcher.
77
+ test_files: []