haml2slim 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,9 +36,13 @@ module Haml2Slim
36
36
  end
37
37
 
38
38
  opts.on_tail('-v', '--version', 'Print version') do
39
- puts "Slim #{Haml2Slim::VERSION}"
39
+ puts "Haml2Slim #{Haml2Slim::VERSION}"
40
40
  exit
41
41
  end
42
+
43
+ opts.on('-d', '--delete', 'Delete HAML files') do
44
+ @options[:delete] = true
45
+ end
42
46
  end
43
47
 
44
48
  def process!
@@ -70,6 +74,8 @@ module Haml2Slim
70
74
  @options[:output] = file ? File.open(slim_file, 'w') : $stdout
71
75
  @options[:output].puts Haml2Slim.convert!(File.open(file, 'r'))
72
76
  @options[:output].close
77
+
78
+ File.delete(file) if @options[:delete]
73
79
  end
74
80
  end
75
- end
81
+ end
@@ -1,3 +1,3 @@
1
1
  module Haml2Slim
2
- VERSION = '0.4.3'
2
+ VERSION = '0.4.4'
3
3
  end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml2slim
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 4
8
- - 3
9
- version: 0.4.3
4
+ prerelease:
5
+ version: 0.4.4
10
6
  platform: ruby
11
7
  authors:
12
8
  - Fred Wu
@@ -14,8 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-12-23 00:00:00 +11:00
18
- default_executable:
13
+ date: 2011-06-25 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: haml
@@ -25,10 +20,6 @@ dependencies:
25
20
  requirements:
26
21
  - - ~>
27
22
  - !ruby/object:Gem::Version
28
- segments:
29
- - 3
30
- - 0
31
- - 0
32
23
  version: 3.0.0
33
24
  type: :runtime
34
25
  version_requirements: *id001
@@ -40,8 +31,6 @@ dependencies:
40
31
  requirements:
41
32
  - - ">="
42
33
  - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
34
  version: "0"
46
35
  type: :runtime
47
36
  version_requirements: *id002
@@ -53,8 +42,6 @@ dependencies:
53
42
  requirements:
54
43
  - - ">="
55
44
  - !ruby/object:Gem::Version
56
- segments:
57
- - 0
58
45
  version: "0"
59
46
  type: :runtime
60
47
  version_requirements: *id003
@@ -66,10 +53,6 @@ dependencies:
66
53
  requirements:
67
54
  - - ">="
68
55
  - !ruby/object:Gem::Version
69
- segments:
70
- - 0
71
- - 8
72
- - 3
73
56
  version: 0.8.3
74
57
  type: :development
75
58
  version_requirements: *id004
@@ -89,7 +72,6 @@ files:
89
72
  - lib/haml2slim/command.rb
90
73
  - lib/haml2slim/converter.rb
91
74
  - lib/haml2slim/version.rb
92
- has_rdoc: true
93
75
  homepage: http://github.com/fredwu/haml2slim
94
76
  licenses: []
95
77
 
@@ -103,21 +85,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
85
  requirements:
104
86
  - - ">="
105
87
  - !ruby/object:Gem::Version
106
- segments:
107
- - 0
108
88
  version: "0"
109
89
  required_rubygems_version: !ruby/object:Gem::Requirement
110
90
  none: false
111
91
  requirements:
112
92
  - - ">="
113
93
  - !ruby/object:Gem::Version
114
- segments:
115
- - 0
116
94
  version: "0"
117
95
  requirements: []
118
96
 
119
97
  rubyforge_project:
120
- rubygems_version: 1.3.7
98
+ rubygems_version: 1.8.5
121
99
  signing_key:
122
100
  specification_version: 3
123
101
  summary: Haml to Slim converter.