executable-hooks 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- data.tar.gz: 6bca2965635c5b28af835801e0133c8936f9eee4
4
- metadata.gz: 783bacc41e69e60e9eb9f3079f23890dc5d56ea2
3
+ data.tar.gz: c6d0e07559a393e32f639010a23c1768c2c17de4
4
+ metadata.gz: 7c112f1e4747066cf4a9e229e7d48e9040b47745
5
5
  SHA512:
6
- data.tar.gz: 0785726aa6db6768efaf97cf723e2d167a6764b78152dfa695a7ce54ec057a594291d1e1a6d603386b25c285d47315bcc1adc4ed30873602d9c9d401fc3f859a
7
- metadata.gz: 2ad2ad4de5f6298d15322ffa5b6f30157b3390d38cd517254b729beb9179e1797b6c4b5d8c561571bf696621f2ee779bf87b97794dc84ab041125b3527868069
6
+ data.tar.gz: bc74ad2e0a9481ee4c386f6b48cb1d71264d967b98d47beef5745187f413cfdcde35cb918acba381810ffcf9c98e1a69ba321221af2f8007fdf002181700e287
7
+ metadata.gz: 0780a086ab4873cc086c7e86cf803f3b67f1c06dda798e94e88f022a5dbf9f7cb8eec9a41f416f6afe5b17dd03071e5cf18156361614498ead2b5695aeb2624c
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.2
4
+ date: 2014-06-06
5
+
6
+ - make sure executable mode is set on binaries when using fast fix, update wayneeseguin/rvm#2894
7
+
3
8
  ## 1.3.1
4
9
  date: 2014-01-16
5
10
 
@@ -65,11 +65,14 @@ class RegenerateBinstubsCommand < Gem::Command
65
65
  end
66
66
  return false if executable_shebangs.detect{|path, lines| !lines[0] =~ /^#!\// }
67
67
  puts "#{spec.name} #{spec.version}"
68
+ executable_mode = 0111
68
69
  executable_shebangs.map do |path, lines|
69
70
  lines[0] = "#!#{ExecutableHooksInstaller.env_path} #{ExecutableHooks::Wrapper.expanded_wrapper_name}"
70
71
  File.open(path, "w") do |file|
71
72
  file.puts(lines)
72
73
  end
74
+ mode = File.stat(path).mode
75
+ File.chmod(mode | executable_mode, path) if mode & executable_mode != executable_mode
73
76
  end
74
77
  end
75
78
 
@@ -1,3 +1,3 @@
1
1
  module ExecutableHooks
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
@@ -28,6 +28,7 @@ Warning:
28
28
  Found custom_shebang: '#{Gem.configuration[:custom_shebang]}',
29
29
  Expected custom_shebang: '#{expected_shebang}',
30
30
  this can potentially break 'executable-hooks' and gem executables overall!
31
+ Check your '~/.gemrc' and '/etc/gemrc' for 'custom_shebang' and remove it.
31
32
  ")
32
33
  end
33
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: executable-hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Papis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2014-01-16 00:00:00 Z
12
+ date: 2014-06-06 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: tf