guard 1.0.0 → 1.0.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.
Files changed (37) hide show
  1. data/CHANGELOG.md +17 -0
  2. data/README.md +50 -30
  3. data/bin/fsevent_watch_guard_guard +0 -0
  4. data/lib/guard.rb +44 -26
  5. data/lib/guard/cli.rb +23 -6
  6. data/lib/guard/dsl.rb +33 -15
  7. data/lib/guard/listener.rb +1 -1
  8. data/lib/guard/listeners/darwin.rb +1 -1
  9. data/lib/guard/notifier.rb +3 -1
  10. data/lib/guard/notifiers/notifysend.rb +81 -0
  11. data/lib/guard/version.rb +1 -1
  12. data/lib/guard/version.rbc +180 -0
  13. data/lib/vendor/darwin/README.rdoc +3 -2
  14. data/lib/vendor/darwin/bin/fsevent_watch +0 -0
  15. data/lib/vendor/darwin/ext/fsevent_watch/Info.plist +38 -0
  16. data/lib/vendor/darwin/ext/fsevent_watch/LICENSE +21 -0
  17. data/lib/vendor/darwin/ext/fsevent_watch/fsevent_watch.xcodeproj/project.pbxproj +254 -0
  18. data/lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/TSICTString.c +394 -0
  19. data/lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/TSICTString.h +74 -0
  20. data/lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/cli.c +160 -0
  21. data/lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/cli.h +45 -0
  22. data/lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/common.h +34 -0
  23. data/lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/compat.c +20 -0
  24. data/lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/compat.h +40 -0
  25. data/lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/main.c +509 -0
  26. data/lib/vendor/darwin/ext/fsevent_watch/xcconfig/Common.xcconfig +82 -0
  27. data/lib/vendor/darwin/ext/fsevent_watch/xcconfig/Debug.xcconfig +19 -0
  28. data/lib/vendor/darwin/ext/fsevent_watch/xcconfig/Release.xcconfig +23 -0
  29. data/lib/vendor/darwin/ext/fsevent_watch/xcconfig/fsevent_watch.xcconfig +17 -0
  30. data/lib/vendor/darwin/ext/rakefile.rb +47 -0
  31. data/lib/vendor/darwin/ext/rb-fsevent.xcconfig +33 -0
  32. data/lib/vendor/darwin/lib/rb-fsevent/version.rb +1 -1
  33. data/lib/vendor/darwin/rb-fsevent.gemspec +3 -2
  34. data/lib/vendor/darwin/spec/spec_helper.rb +1 -2
  35. metadata +40 -25
  36. data/lib/vendor/darwin/ext/extconf.rb +0 -64
  37. data/lib/vendor/darwin/ext/fsevent/fsevent_watch.c +0 -226
@@ -0,0 +1,82 @@
1
+ // local defines
2
+ COMMON_CFLAGS = -pipe
3
+ COMMON_GCC_PREPROCESSOR_DEFINITIONS = NS_BUILD_32_LIKE_64 NS_BLOCK_ASSERTIONS
4
+
5
+
6
+ // architectures
7
+ ARCHS = $(ARCHS_STANDARD_32_64_BIT)
8
+ VALID_ARCHS = i386 x86_64
9
+ SDKROOT = macosx
10
+ SUPPORTED_PLATFORMS = macosx
11
+ ONLY_ACTIVE_ARCH = NO
12
+
13
+
14
+ // build options
15
+ DEBUG_INFORMATION_FORMAT = dwarf
16
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0
17
+ RUN_CLANG_STATIC_ANALYZER = YES
18
+
19
+
20
+ // deployment
21
+ MACOSX_DEPLOYMENT_TARGET = 10.6
22
+
23
+
24
+ // linking
25
+ DEAD_CODE_STRIPPING = YES
26
+ PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES
27
+ LINK_WITH_STANDARD_LIBRARIES = YES
28
+
29
+
30
+ // search paths
31
+ FRAMEWORK_SEARCH_PATHS = $(value) $(SYSTEM_LIBRARY_DIR)/Frameworks $(LOCAL_LIBRARY_DIR)/Frameworks
32
+
33
+
34
+ // code generation
35
+ GCC_DYNAMIC_NO_PIC = NO
36
+ GCC_FAST_OBJC_DISPATCH = YES
37
+ GCC_GENERATE_DEBUGGING_SYMBOLS = YES
38
+ GCC_STRICT_ALIASING = YES
39
+ LLVM_LTO = YES
40
+
41
+
42
+ // language
43
+ GCC_C_LANGUAGE_STANDARD = gnu99
44
+ OTHER_CFLAGS = $(COMMON_CFLAGS)
45
+
46
+
47
+ // preprocessing
48
+ GCC_PREPROCESSOR_DEFINITIONS = $(COMMON_GCC_PREPROCESSOR_DEFINITIONS)
49
+
50
+
51
+ // warnings
52
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES
53
+ CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES
54
+ CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES
55
+ CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES
56
+ GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES
57
+ GCC_TREAT_WARNINGS_AS_ERRORS = NO
58
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES
59
+ GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES
60
+ GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = YES
61
+ GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES
62
+ GCC_WARN_ABOUT_MISSING_NEWLINE = YES
63
+ GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO
64
+ GCC_WARN_ABOUT_POINTER_SIGNEDNESS = YES
65
+ GCC_WARN_ABOUT_RETURN_TYPE = YES
66
+ GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = YES
67
+ GCC_WARN_CHECK_SWITCH_STATEMENTS = YES
68
+ GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO
69
+ GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES
70
+ GCC_WARN_MISSING_PARENTHESES = YES
71
+ GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = NO
72
+ GCC_WARN_SHADOW = YES
73
+ GCC_WARN_SIGN_COMPARE = YES
74
+ GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES
75
+ GCC_WARN_UNINITIALIZED_AUTOS = YES
76
+ GCC_WARN_UNKNOWN_PRAGMAS = YES
77
+ GCC_WARN_UNUSED_FUNCTION = YES
78
+ GCC_WARN_UNUSED_LABEL = YES
79
+ GCC_WARN_UNUSED_PARAMETER = NO
80
+ GCC_WARN_UNUSED_VALUE = YES
81
+ GCC_WARN_UNUSED_VARIABLE = YES
82
+ WARNING_CFLAGS = -Wall -Wextra -Wpointer-arith -Wformat=2 -Wfloat-equal -Wstrict-overflow=4 -Wbad-function-cast -Winline -Wconversion -Wstrict-aliasing -Wno-unused-parameter -Wno-arc-performSelector-leaks
@@ -0,0 +1,19 @@
1
+ #include "Common.xcconfig"
2
+
3
+
4
+ // deployment
5
+ COPY_PHASE_STRIP = NO
6
+ STRIP_INSTALLED_PRODUCT = NO
7
+
8
+
9
+ // code generation
10
+ GCC_OPTIMIZATION_LEVEL = 0
11
+ GCC_GENERATE_DEBUGGING_SYMBOLS = YES
12
+
13
+
14
+ // language
15
+ OTHER_CFLAGS = $(COMMON_CFLAGS) -fcatch-undefined-behavior -ftrapv -fverbose-asm
16
+
17
+
18
+ // preprocessing
19
+ GCC_PREPROCESSOR_DEFINITIONS = $(COMMON_GCC_PREPROCESSOR_DEFINITIONS) DEBUG DEBUG_$(USER)
@@ -0,0 +1,23 @@
1
+ #include "Common.xcconfig"
2
+
3
+
4
+ // build options
5
+ VALIDATE_PRODUCT = YES
6
+
7
+
8
+ // code signing
9
+ CODE_SIGN_IDENTITY = 3rd Party Mac Developer Application: Travis Tilley
10
+
11
+
12
+ // deployment
13
+ COPY_PHASE_STRIP = YES
14
+ STRIP_INSTALLED_PRODUCT = YES
15
+
16
+
17
+ // code generation
18
+ GCC_OPTIMIZATION_LEVEL = 4
19
+ GCC_UNROLL_LOOPS = YES
20
+
21
+
22
+ // preprocessing
23
+ GCC_PREPROCESSOR_DEFINITIONS = $(COMMON_GCC_PREPROCESSOR_DEFINITIONS) NDEBUG
@@ -0,0 +1,17 @@
1
+ // linking
2
+ MACH_O_TYPE = mh_execute
3
+ OTHER_LDFLAGS = -sectcreate __TEXT __info_plist "$(DERIVED_FILE_DIR)/Info.plist"
4
+ GENERATE_MASTER_OBJECT_FILE = YES
5
+
6
+
7
+ // packaging
8
+ INFOPLIST_FILE = Info.plist
9
+ PRODUCT_NAME = $(TARGET_NAME)
10
+
11
+
12
+ // versioning
13
+ CURRENT_PROJECT_VERSION = 0.1.1
14
+
15
+
16
+ // preprocessing
17
+ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) PROJECT_VERSION="$(CURRENT_PROJECT_VERSION)"
@@ -0,0 +1,47 @@
1
+ # vim: fileencoding=UTF-8 nobomb sw=2 ts=2 et
2
+
3
+ XCODEBUILD = '/usr/bin/xcodebuild'
4
+ XCCONFIG = File.expand_path('rb-fsevent.xcconfig')
5
+
6
+ namespace :xcode do
7
+ $target = 'fsevent_watch'
8
+ $configuration = ENV['FWDEBUG'] ? 'Debug' : 'Release'
9
+
10
+ def xcb(action, extra='')
11
+ command = [
12
+ XCODEBUILD,
13
+ "-target", $target,
14
+ "-configuration", $configuration,
15
+ action,
16
+ "-xcconfig", XCCONFIG,
17
+ extra
18
+ ].join(' ')
19
+
20
+ Dir.chdir 'fsevent_watch' do
21
+ results = `#{command}`
22
+ STDERR.puts results
23
+ raise "xcodebuild failure" unless $?.success?
24
+ end
25
+ end
26
+
27
+ desc 'run xcodebuild clean'
28
+ task :clean do
29
+ xcb 'clean'
30
+ end
31
+
32
+ desc 'run xcodebuild build'
33
+ task :build => :clean do
34
+ xcb 'build'
35
+ end
36
+
37
+ desc 'run xcodebuild install'
38
+ task :install => :build do
39
+ xcb 'install', "DEPLOYMENT_LOCATION='YES'"
40
+ end
41
+
42
+ task :remove_turds do
43
+ rm_rf File.join('fsevent_watch', 'build')
44
+ end
45
+ end
46
+
47
+ task :default => ['xcode:install', 'xcode:remove_turds']
@@ -0,0 +1,33 @@
1
+ // settings in this file will override those defined in the xcode project
2
+
3
+ // - deployment -
4
+ INSTALL_MODE_FLAG = u+w,go-w,a+rX
5
+ MACOSX_DEPLOYMENT_TARGET = 10.5
6
+ DSTROOT = ../../
7
+ INSTALL_PATH = /bin
8
+ SKIP_INSTALL = NO
9
+
10
+ // - build locations -
11
+ SYMROOT = build
12
+ OBJROOT = $(SYMROOT)
13
+
14
+ // - architectures -
15
+ ARCHS = $(NATIVE_ARCH_ACTUAL)
16
+ SDKROOT =
17
+
18
+ // - build options -
19
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0
20
+
21
+ // etc
22
+ RUN_CLANG_STATIC_ANALYZER = YES
23
+ DEAD_CODE_STRIPPING = YES
24
+ PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES
25
+ LD_NO_PIE = NO
26
+ GCC_GENERATE_DEBUGGING_SYMBOLS = YES
27
+ LLVM_LTO = NO
28
+ LLVM_LTO[arch=x86_64] = YES
29
+ GCC_C_LANGUAGE_STANDARD = gnu99
30
+ GCC_ENABLE_OBJC_EXCEPTIONS = YES
31
+ GCC_ENABLE_OBJC_GC = unsupported
32
+ GCC_ENABLE_EXCEPTIONS = YES
33
+
@@ -1,3 +1,3 @@
1
1
  class FSEvent
2
- VERSION = "0.4.3.1"
2
+ VERSION = "0.9.0"
3
3
  end
@@ -18,7 +18,8 @@ Gem::Specification.new do |s|
18
18
  s.add_development_dependency 'rspec', '~> 2.5.0'
19
19
  s.add_development_dependency 'guard-rspec', '~> 0.1.9'
20
20
 
21
- s.files = Dir.glob('{lib,ext}/**/*') + %w[LICENSE README.rdoc]
22
- s.extensions = ['ext/extconf.rb']
21
+ s.files = Dir.glob('{bin,lib,ext}/**/*') + %w[LICENSE README.rdoc]
22
+ # s.extensions = ['ext/rakefile.rb']
23
23
  s.require_path = 'lib'
24
24
  end
25
+
@@ -11,14 +11,13 @@ RSpec.configure do |config|
11
11
  end
12
12
 
13
13
  config.before(:all) do
14
- system "cd ext; ruby extconf.rb"
14
+ system "cd ext; rake"
15
15
  puts "fsevent_watch compiled"
16
16
  end
17
17
 
18
18
  config.after(:all) do
19
19
  gem_root = Pathname.new(File.expand_path('../../', __FILE__))
20
20
  system "rm -rf #{gem_root.join('bin')}"
21
- system "rm #{gem_root.join('ext/Makefile')}"
22
21
  end
23
22
 
24
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-19 00:00:00.000000000 Z
12
+ date: 2012-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70098870288860 !ruby/object:Gem::Requirement
16
+ requirement: &70307690665580 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.14.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70098870288860
24
+ version_requirements: *70307690665580
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ffi
27
- requirement: &70098870331220 !ruby/object:Gem::Requirement
27
+ requirement: &70307690665040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.5.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70098870331220
35
+ version_requirements: *70307690665040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70098870377140 !ruby/object:Gem::Requirement
38
+ requirement: &70307690664440 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70098870377140
46
+ version_requirements: *70307690664440
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &70098870399680 !ruby/object:Gem::Requirement
49
+ requirement: &70307690663480 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 2.8.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70098870399680
57
+ version_requirements: *70307690663480
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: guard-rspec
60
- requirement: &70098870396740 !ruby/object:Gem::Requirement
60
+ requirement: &70307690662360 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.6.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70098870396740
68
+ version_requirements: *70307690662360
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: yard
71
- requirement: &70098870407720 !ruby/object:Gem::Requirement
71
+ requirement: &70307690661980 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70098870407720
79
+ version_requirements: *70307690661980
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: redcarpet
82
- requirement: &70098870444360 !ruby/object:Gem::Requirement
82
+ requirement: &70307690661460 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70098870444360
90
+ version_requirements: *70307690661460
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: pry
93
- requirement: &70098870442760 !ruby/object:Gem::Requirement
93
+ requirement: &70307690660580 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70098870442760
101
+ version_requirements: *70307690660580
102
102
  description: Guard is a command line tool to easily handle events on file system modifications.
103
103
  email:
104
104
  - thibaud@thibaud.me
@@ -108,6 +108,7 @@ extensions: []
108
108
  extra_rdoc_files: []
109
109
  files:
110
110
  - bin/fsevent_watch_guard
111
+ - bin/fsevent_watch_guard_guard
111
112
  - bin/guard
112
113
  - images/failed.png
113
114
  - images/pending.png
@@ -131,14 +132,32 @@ files:
131
132
  - lib/guard/notifiers/growl.rb
132
133
  - lib/guard/notifiers/growl_notify.rb
133
134
  - lib/guard/notifiers/libnotify.rb
135
+ - lib/guard/notifiers/notifysend.rb
134
136
  - lib/guard/notifiers/rb_notifu.rb
135
137
  - lib/guard/templates/Guardfile
136
138
  - lib/guard/ui.rb
137
139
  - lib/guard/version.rb
140
+ - lib/guard/version.rbc
138
141
  - lib/guard/watcher.rb
139
142
  - lib/guard.rb
140
- - lib/vendor/darwin/ext/extconf.rb
141
- - lib/vendor/darwin/ext/fsevent/fsevent_watch.c
143
+ - lib/vendor/darwin/bin/fsevent_watch
144
+ - lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/cli.c
145
+ - lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/cli.h
146
+ - lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/common.h
147
+ - lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/compat.c
148
+ - lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/compat.h
149
+ - lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/main.c
150
+ - lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/TSICTString.c
151
+ - lib/vendor/darwin/ext/fsevent_watch/fsevent_watch/TSICTString.h
152
+ - lib/vendor/darwin/ext/fsevent_watch/fsevent_watch.xcodeproj/project.pbxproj
153
+ - lib/vendor/darwin/ext/fsevent_watch/Info.plist
154
+ - lib/vendor/darwin/ext/fsevent_watch/LICENSE
155
+ - lib/vendor/darwin/ext/fsevent_watch/xcconfig/Common.xcconfig
156
+ - lib/vendor/darwin/ext/fsevent_watch/xcconfig/Debug.xcconfig
157
+ - lib/vendor/darwin/ext/fsevent_watch/xcconfig/fsevent_watch.xcconfig
158
+ - lib/vendor/darwin/ext/fsevent_watch/xcconfig/Release.xcconfig
159
+ - lib/vendor/darwin/ext/rakefile.rb
160
+ - lib/vendor/darwin/ext/rb-fsevent.xcconfig
142
161
  - lib/vendor/darwin/Gemfile
143
162
  - lib/vendor/darwin/Guardfile
144
163
  - lib/vendor/darwin/lib/rb-fsevent/fsevent.rb
@@ -195,9 +214,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
195
214
  - - ! '>='
196
215
  - !ruby/object:Gem::Version
197
216
  version: '0'
198
- segments:
199
- - 0
200
- hash: 3509592351307849355
201
217
  required_rubygems_version: !ruby/object:Gem::Requirement
202
218
  none: false
203
219
  requirements:
@@ -206,9 +222,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
222
  version: 1.3.6
207
223
  requirements: []
208
224
  rubyforge_project: guard
209
- rubygems_version: 1.8.12
225
+ rubygems_version: 1.8.15
210
226
  signing_key:
211
227
  specification_version: 3
212
228
  summary: Guard keeps an eye on your file modifications
213
229
  test_files: []
214
- has_rdoc: