autotest-fsevent 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -2,3 +2,4 @@ pkg/*
2
2
  *.gem
3
3
  .bundle
4
4
  .DS_Store
5
+ .redcar
@@ -1,4 +1,10 @@
1
- == 0.2.6 2011-11-02
1
+ == 0.2.8 2012-02-21
2
+
3
+ * 2 major improvements
4
+ * Add compatiblity with Xcode 4.3 (Pavel Forkert)
5
+ * Do nothing if installed on non-Darwin OS
6
+
7
+ == 0.2.7 2011-11-02
2
8
 
3
9
  * 1 minor improvement
4
10
  * Use File.exists? which is both Ruby 1.8 and 1.9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- autotest-fsevent (0.2.5)
4
+ autotest-fsevent (0.2.8)
5
5
  sys-uname
6
6
 
7
7
  GEM
@@ -9,6 +9,7 @@ GEM
9
9
  specs:
10
10
  ZenTest (4.5.0)
11
11
  diff-lcs (1.1.2)
12
+ ffi (1.0.11)
12
13
  rake (0.8.7)
13
14
  rspec (2.5.0)
14
15
  rspec-core (~> 2.5.0)
@@ -18,7 +19,8 @@ GEM
18
19
  rspec-expectations (2.5.0)
19
20
  diff-lcs (~> 1.1.2)
20
21
  rspec-mocks (2.5.0)
21
- sys-uname (0.8.5)
22
+ sys-uname (0.9.0)
23
+ ffi (>= 1.0.0)
22
24
 
23
25
  PLATFORMS
24
26
  ruby
@@ -124,6 +124,7 @@ Thanks to the following folks who have contributed to this project:
124
124
  * Sean DeNigris
125
125
  * Cyril Mougel
126
126
  * Robert Lowe
127
+ * Pavel Forkert
127
128
 
128
129
  == LICENSE:
129
130
 
@@ -16,22 +16,26 @@ emulate_extension_install('fsevent')
16
16
 
17
17
  # Compile the actual fsevent_sleep binary
18
18
 
19
- raise "Only Darwin (Mac OS X) systems are supported" unless `uname -s`.chomp == 'Darwin'
20
-
21
- GEM_ROOT = File.expand_path(File.join('..', '..'))
22
- DARWIN_VERSION = `uname -r`.to_i
23
- SDK_VERSION = { 9 => '10.5', 10 => '10.6', 11 => '10.7', 12 => '10.8' }[DARWIN_VERSION]
24
-
25
- raise "Darwin #{DARWIN_VERSION} is not (yet) supported" unless SDK_VERSION
26
-
27
- `mkdir -p #{File.join(GEM_ROOT, 'bin')}`
28
- if ENV.has_key?('FSEVENT_SLEEP')
29
- require 'fileutils'
30
- FileUtils.cp(ENV['FSEVENT_SLEEP'], "#{GEM_ROOT}/bin/fsevent_sleep", :preserve => true)
31
- raise "\e[1;31mInstallation of fsevent_sleep binary failed - see README for assistance\e[0m" unless File.executable?("#{GEM_ROOT}/bin/fsevent_sleep")
32
- elsif File.exists?('/Developer/Applications/Xcode.app')
33
- `CFLAGS='-isysroot /Developer/SDKs/MacOSX#{SDK_VERSION}.sdk -mmacosx-version-min=#{SDK_VERSION}' /usr/bin/gcc -framework CoreServices -o "#{GEM_ROOT}/bin/fsevent_sleep" fsevent_sleep.c`
34
- raise "\e[1;31mCompilation of fsevent_sleep binary failed - see README for assistance\e[0m" unless File.executable?("#{GEM_ROOT}/bin/fsevent_sleep")
35
- else
36
- raise "\e[1;31mXcode not found - see README for assistance\e[0m"
19
+ if `uname -s`.chomp == 'Darwin'
20
+ GEM_ROOT = File.expand_path(File.join('..', '..'))
21
+ DARWIN_VERSION = `uname -r`.to_i
22
+ SDK_VERSION = { 9 => '10.5', 10 => '10.6', 11 => '10.7', 12 => '10.8' }[DARWIN_VERSION]
23
+
24
+ raise "Darwin #{DARWIN_VERSION} is not (yet) supported" unless SDK_VERSION
25
+
26
+ `mkdir -p #{File.join(GEM_ROOT, 'bin')}`
27
+ if ENV.has_key?('FSEVENT_SLEEP')
28
+ require 'fileutils'
29
+ FileUtils.cp(ENV['FSEVENT_SLEEP'], "#{GEM_ROOT}/bin/fsevent_sleep", :preserve => true)
30
+ raise "\e[1;31mInstallation of fsevent_sleep binary failed - see README for assistance\e[0m" unless File.executable?("#{GEM_ROOT}/bin/fsevent_sleep")
31
+ elsif File.exists?('/Developer/Applications/Xcode.app')
32
+ `CFLAGS='-isysroot /Developer/SDKs/MacOSX#{SDK_VERSION}.sdk -mmacosx-version-min=#{SDK_VERSION}' /usr/bin/gcc -framework CoreServices -o "#{GEM_ROOT}/bin/fsevent_sleep" fsevent_sleep.c`
33
+ raise "\e[1;31mCompilation of fsevent_sleep binary failed - see README for assistance\e[0m" unless File.executable?("#{GEM_ROOT}/bin/fsevent_sleep")
34
+ elsif File.exists?('/Applications/Xcode.app') # Xcode 4.3
35
+ `CFLAGS='-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX#{SDK_VERSION}.sdk -mmacosx-version-min=#{SDK_VERSION}' /usr/bin/gcc -framework CoreServices -o "#{GEM_ROOT}/bin/fsevent_sleep" fsevent_sleep.c`
36
+ raise "\e[1;31mCompilation of fsevent_sleep binary failed - see README for assistance\e[0m" unless File.executable?("#{GEM_ROOT}/bin/fsevent_sleep")
37
+ else
38
+ raise "\e[1;31mXcode not found - see README for assistance\e[0m"
39
+ end
37
40
  end
41
+
@@ -1,5 +1,5 @@
1
1
  class Autotest
2
2
  module FSEvent
3
- VERSION = "0.2.7"
3
+ VERSION = "0.2.8"
4
4
  end
5
5
  end
@@ -20,8 +20,8 @@ module Autotest::FSEvent
20
20
  ##
21
21
  # Use FSEvent if possible
22
22
  # Add waiting hook to prevent fallback to polling after ignored files have changed
23
- Autotest.add_hook :initialize do
24
- if Uname.sysname == 'Darwin' && Uname.release.to_i >= 9
23
+ if Uname.sysname == 'Darwin' && Uname.release.to_i >= 9
24
+ Autotest.add_hook :initialize do
25
25
  class ::Autotest
26
26
  remove_method :wait_for_changes
27
27
  def wait_for_changes
@@ -32,9 +32,6 @@ module Autotest::FSEvent
32
32
  end until find_files_to_test
33
33
  end
34
34
  end
35
- else
36
- puts
37
- puts "autotest-fsevent: platform #{Uname.sysname} #{Uname.release} is not supported"
38
35
  end
39
36
  end
40
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autotest-fsevent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
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: 2011-11-02 00:00:00.000000000 Z
12
+ date: 2012-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sys-uname
16
- requirement: &70265883670540 !ruby/object:Gem::Requirement
16
+ requirement: &70129593919940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70265883670540
24
+ version_requirements: *70129593919940
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70265883670080 !ruby/object:Gem::Requirement
27
+ requirement: &70129593919460 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70265883670080
35
+ version_requirements: *70129593919460
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70265883669640 !ruby/object:Gem::Requirement
38
+ requirement: &70129593919000 !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: *70265883669640
46
+ version_requirements: *70129593919000
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: ZenTest
49
- requirement: &70265883669200 !ruby/object:Gem::Requirement
49
+ requirement: &70129593918580 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70265883669200
57
+ version_requirements: *70129593918580
58
58
  description: Autotest relies on filesystem polling to detect modifications in source
59
59
  code files. This is expensive for the CPU, harddrive and battery - and unnecesary
60
60
  on Mac OS X 10.5 or higher which comes with the very efficient FSEvent core service
@@ -110,10 +110,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project: autotest-fsevent
113
- rubygems_version: 1.8.11
113
+ rubygems_version: 1.8.17
114
114
  signing_key:
115
115
  specification_version: 3
116
116
  summary: Use FSEvent (on Mac OS X 10.5 or higher) instead of filesystem polling.
117
117
  test_files:
118
118
  - spec/autotest-fsevent_spec.rb
119
119
  - spec/spec_helper.rb
120
+ has_rdoc: