erb2haml 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,10 +1,4 @@
1
1
  source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
5
-
6
- # Add dependencies to develop your gem here.
7
- # Include everything needed to run rake, tests, features, etc.
8
2
 
9
3
  gem "haml"
10
4
  gem "hpricot"
data/README.md CHANGED
@@ -4,7 +4,16 @@ erb2haml
4
4
 
5
5
  Getting Started
6
6
  ---------------
7
- 1. Add `gem erb2haml` to your Gemfile.
7
+
8
+ 1. Add `gem "erb2haml"` to the development group in your Gemfile.
9
+
10
+ Either add the line `gem "erb2haml", :group => :development` to your `Gemfile`, or
11
+ group :development do
12
+ ...
13
+ gem "erb2haml" # Add this line
14
+ ...
15
+ end
16
+
8
17
  2. Run `rake haml:convert_erbs`
9
18
  3. Watch your ERB files getting converted to haml.
10
19
 
data/Rakefile CHANGED
@@ -1,11 +1,8 @@
1
1
  require 'rake'
2
+ require File.expand_path('../lib/erb2haml/version', __FILE__)
2
3
 
3
- $LOAD_PATH.unshift 'lib'
4
-
5
-
6
- desc "Release gem"
4
+ desc "Release gem #{ERb2Haml::VERSION}"
7
5
  task :release do
8
- require 'erb2haml'
9
6
  system "git tag -a #{ERb2Haml::VERSION} -m 'Tagging #{ERb2Haml::VERSION}'"
10
7
  system "git push --tags"
11
8
  system "gem push erb2haml-#{ERb2Haml::VERSION}.gem"
@@ -1,6 +1,2 @@
1
- require 'erb2haml/railtie'
2
-
3
- module ERb2Haml
4
- VERSION = "0.1.1"
5
- end
1
+ require 'erb2haml/railtie' if defined?(Rails)
6
2
 
@@ -1,3 +1,5 @@
1
+ require 'find'
2
+
1
3
  RED_FG ="\033[31m"
2
4
  GREEN_FG = "\033[32m"
3
5
  END_TEXT_STYLE = "\033[0m"
@@ -0,0 +1,4 @@
1
+ # encoding: utf-8
2
+ module ERb2Haml
3
+ VERSION = "0.1.2"
4
+ end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erb2haml
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 1
9
- version: 0.1.1
4
+ prerelease:
5
+ version: 0.1.2
10
6
  platform: ruby
11
7
  authors:
12
8
  - David Leung
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-02-12 00:00:00 +08:00
13
+ date: 2011-02-13 00:00:00 +08:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -25,8 +21,6 @@ dependencies:
25
21
  requirements:
26
22
  - - ">="
27
23
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
24
  version: "0"
31
25
  type: :runtime
32
26
  version_requirements: *id001
@@ -38,8 +32,6 @@ dependencies:
38
32
  requirements:
39
33
  - - ">="
40
34
  - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
35
  version: "0"
44
36
  type: :runtime
45
37
  version_requirements: *id002
@@ -51,8 +43,6 @@ dependencies:
51
43
  requirements:
52
44
  - - ">="
53
45
  - !ruby/object:Gem::Version
54
- segments:
55
- - 0
56
46
  version: "0"
57
47
  type: :runtime
58
48
  version_requirements: *id003
@@ -70,6 +60,7 @@ files:
70
60
  - Rakefile
71
61
  - lib/erb2haml/railtie.rb
72
62
  - lib/erb2haml/railties/erb2haml.rake
63
+ - lib/erb2haml/version.rb
73
64
  - lib/erb2haml.rb
74
65
  - LICENSE
75
66
  - README.md
@@ -87,21 +78,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
78
  requirements:
88
79
  - - ">="
89
80
  - !ruby/object:Gem::Version
90
- segments:
91
- - 0
92
81
  version: "0"
93
82
  required_rubygems_version: !ruby/object:Gem::Requirement
94
83
  none: false
95
84
  requirements:
96
85
  - - ">="
97
86
  - !ruby/object:Gem::Version
98
- segments:
99
- - 0
100
87
  version: "0"
101
88
  requirements: []
102
89
 
103
90
  rubyforge_project:
104
- rubygems_version: 1.3.7
91
+ rubygems_version: 1.5.2
105
92
  signing_key:
106
93
  specification_version: 3
107
94
  summary: Bulk ERB HTML to Haml conversion for Rails.