movewin 1.7 → 1.8
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.
- checksums.yaml +8 -8
- data/ext/movewin/extconf.rb +3 -12
- data/lib/movewin.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTNkNjFiZmZlMzU5OGY3ZjBmZDhmNDVhODAwMWE4ZWUyOTY3MTY3Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjliNzQwMTIzYjE4ZGVlOTcwNzc2YjFiNzBmOGFhNjAxYTg5ZDc3OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjY3MmI1MjA3MWJlZjM5MDg5NzA0ZTEwOTYzZWUyYmM0NjBmZjNjY2Y4ZWVh
|
10
|
+
MGFlMTUxNmMyN2I3YTM1ODNhODliMWRiMzY1Njc0ZjliZTE4M2NiNDVjZmVj
|
11
|
+
NGQzODE0MDJlMDJhYTI0ZjE2NGM0ZGRiYTJkMzc3NzdjMjgyZjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmM4OTc2YmZlZTY0MzcxZDAyNDEyODY5ZWJjYThlOWE3MjU5ZjIxMTA3ZmU3
|
14
|
+
YzU4YWM4NjI1MTUwZmRjYzE0YzQ5MDY4OGVmZDc5Y2E4YThmYjMzYzQ1NTY5
|
15
|
+
NjU5YjZiZmFjYTg3YzZjNjRmYmQ0ZGQ1MTIxNDE4MTYxYmYyNjg=
|
data/ext/movewin/extconf.rb
CHANGED
@@ -7,12 +7,7 @@ def main(argv = [])
|
|
7
7
|
$CFLAGS = '-Wall'
|
8
8
|
$LDFLAGS = '-Wall -framework Carbon'
|
9
9
|
|
10
|
-
|
11
|
-
if ruby_older_than?('1.9')
|
12
|
-
have_header('Carbon/Carbon.h')
|
13
|
-
else
|
14
|
-
have_framework('Carbon')
|
15
|
-
end
|
10
|
+
have_header('Carbon/Carbon.h')
|
16
11
|
|
17
12
|
# On Yosemite or newer, fix bug in Carbon header that breaks under gcc
|
18
13
|
if yosemite_or_newer? && using_gcc?
|
@@ -22,11 +17,6 @@ def main(argv = [])
|
|
22
17
|
create_makefile('movewin/movewin_ext')
|
23
18
|
end
|
24
19
|
|
25
|
-
# Return true if current Ruby version is older than given version
|
26
|
-
def ruby_older_than?(version)
|
27
|
-
Gem::Version.new(RUBY_VERSION) < Gem::Version.new(version)
|
28
|
-
end
|
29
|
-
|
30
20
|
# Return true if this is OS X 10.10 (Yosemite) or newer
|
31
21
|
def yosemite_or_newer?
|
32
22
|
Gem::Version.new(`sw_vers -productVersion`) >= Gem::Version.new('10.10')
|
@@ -62,7 +52,8 @@ def fix_dispatch_object_header!
|
|
62
52
|
else
|
63
53
|
$CFLAGS += " -I#{File.dirname(__FILE__)}"
|
64
54
|
end
|
65
|
-
set_constant!
|
55
|
+
set_constant! :CLEANINGS,
|
56
|
+
"DISTCLEANFILES += dispatch/object.h\n" + CLEANINGS
|
66
57
|
end
|
67
58
|
ensure
|
68
59
|
File.unlink(tmpfile) if File.exists?(tmpfile)
|
data/lib/movewin.rb
CHANGED