tap-gen 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/History CHANGED
@@ -1,3 +1,14 @@
1
+ == 0.7.1 / 2010-05-21
2
+
3
+ Fixed the permissions of generated files/directories. This is significant
4
+ because gems preserve the permissions of packaged files and if, for instance,
5
+ a file is distributed in mode 600 then a sudo install will prevent it's use by
6
+ the user. (See
7
+ http://rubyforge.org/tracker/?group_id=126&atid=575&func=detail&aid=3838)
8
+
9
+ * ensured generated files have 644 permissions
10
+ * ensured generated folders have 755 permissions
11
+
1
12
  == 0.7.0 / 2010-05-02
2
13
 
3
14
  Updated to Tap-1.3.0. Reworked generate/destroy as task proxies.
@@ -28,7 +28,7 @@ module Tap
28
28
  log_relative :exists, target
29
29
  else
30
30
  log_relative :create, target
31
- FileUtils.mkdir_p(target) unless pretend
31
+ FileUtils.mkdir_p(target, :mode => 0755) unless pretend
32
32
  end
33
33
 
34
34
  target
@@ -65,8 +65,9 @@ module Tap
65
65
  log_relative msg, target
66
66
  if copy_file && !pretend
67
67
  dir = File.dirname(target)
68
- FileUtils.mkdir_p(dir) unless File.exists?(dir)
68
+ FileUtils.mkdir_p(dir, :mode => 0755) unless File.exists?(dir)
69
69
  FileUtils.mv(source, target, :force => true)
70
+ FileUtils.chmod(0644, target)
70
71
  end
71
72
 
72
73
  target
@@ -2,8 +2,8 @@ module Tap
2
2
  module Generator
3
3
  MAJOR = 0
4
4
  MINOR = 7
5
- TINY = 0
6
-
5
+ TINY = 1
6
+
7
7
  VERSION="#{MAJOR}.#{MINOR}.#{TINY}"
8
8
  end
9
9
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 0
9
- version: 0.7.0
8
+ - 1
9
+ version: 0.7.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Simon Chiang
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-02 00:00:00 -06:00
17
+ date: 2010-05-21 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency