smartgen 0.6.0.beta2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.md +5 -0
- data/Gemfile.lock +17 -14
- data/README.md +4 -2
- data/Rakefile +2 -0
- data/lib/smartgen/engines/base.rb +9 -4
- data/lib/smartgen/version.rb +1 -1
- metadata +88 -84
data/ChangeLog.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -3,7 +3,7 @@ PATH
|
|
3
3
|
specs:
|
4
4
|
smartgen (0.6.0.beta2)
|
5
5
|
RedCloth (>= 4.2.7)
|
6
|
-
activesupport (>=
|
6
|
+
activesupport (>= 3.0.0)
|
7
7
|
bluecloth (>= 2.0.9)
|
8
8
|
directory_watcher (>= 1.3.2)
|
9
9
|
i18n (>= 0.5.0)
|
@@ -13,27 +13,30 @@ PATH
|
|
13
13
|
GEM
|
14
14
|
remote: http://rubygems.org/
|
15
15
|
specs:
|
16
|
-
RedCloth (4.2.
|
17
|
-
activesupport (3.
|
16
|
+
RedCloth (4.2.9)
|
17
|
+
activesupport (3.2.1)
|
18
|
+
i18n (~> 0.6)
|
19
|
+
multi_json (~> 1.0)
|
18
20
|
archive-tar-minitar (0.5.2)
|
19
|
-
bluecloth (2.
|
21
|
+
bluecloth (2.2.0)
|
20
22
|
columnize (0.3.2)
|
21
|
-
diff-lcs (1.1.
|
22
|
-
directory_watcher (1.4.
|
23
|
+
diff-lcs (1.1.3)
|
24
|
+
directory_watcher (1.4.1)
|
23
25
|
i18n (0.6.0)
|
24
26
|
linecache (0.43)
|
25
27
|
linecache19 (0.5.11)
|
26
28
|
ruby_core_source (>= 0.1.4)
|
27
|
-
|
29
|
+
multi_json (1.0.4)
|
30
|
+
nokogiri (1.5.0)
|
28
31
|
rake (0.8.7)
|
29
|
-
rspec (2.
|
30
|
-
rspec-core (~> 2.
|
31
|
-
rspec-expectations (~> 2.
|
32
|
-
rspec-mocks (~> 2.
|
33
|
-
rspec-core (2.
|
34
|
-
rspec-expectations (2.
|
32
|
+
rspec (2.8.0)
|
33
|
+
rspec-core (~> 2.8.0)
|
34
|
+
rspec-expectations (~> 2.8.0)
|
35
|
+
rspec-mocks (~> 2.8.0)
|
36
|
+
rspec-core (2.8.0)
|
37
|
+
rspec-expectations (2.8.0)
|
35
38
|
diff-lcs (~> 1.1.2)
|
36
|
-
rspec-mocks (2.
|
39
|
+
rspec-mocks (2.8.0)
|
37
40
|
ruby-debug (0.10.4)
|
38
41
|
columnize (>= 0.1)
|
39
42
|
ruby-debug-base (~> 0.10.4.0)
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
Smartgen
|
2
|
-
|
1
|
+
# Smartgen [![alt build status][1]][2]
|
2
|
+
|
3
|
+
[1]: https://secure.travis-ci.org/smartgen/smartgen.png
|
4
|
+
[2]: http://travis-ci.org/#!/smartgen/smartgen
|
3
5
|
|
4
6
|
Smartgen generates static HTML files from markup files, using textile or markdown and ERB to create layout templates.
|
5
7
|
|
data/Rakefile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'active_support/core_ext/class/
|
1
|
+
require 'active_support/core_ext/class/attribute'
|
2
2
|
|
3
3
|
module Smartgen
|
4
4
|
module Engine
|
@@ -7,7 +7,7 @@ module Smartgen
|
|
7
7
|
# An engine process markup files, converting them to HTML.
|
8
8
|
class Base
|
9
9
|
# An array of pre processors that will process files before conversion.
|
10
|
-
|
10
|
+
class_attribute :pre_processors
|
11
11
|
|
12
12
|
def initialize
|
13
13
|
self.pre_processors ||= []
|
@@ -31,10 +31,15 @@ module Smartgen
|
|
31
31
|
end
|
32
32
|
|
33
33
|
class << self
|
34
|
+
pre_processors = []
|
35
|
+
|
34
36
|
# Registers a pre processor for this engine.
|
35
37
|
def register(processor)
|
36
|
-
self.pre_processors
|
37
|
-
|
38
|
+
self.pre_processors += [processor]
|
39
|
+
end
|
40
|
+
|
41
|
+
def inherited(base)
|
42
|
+
base.pre_processors = []
|
38
43
|
end
|
39
44
|
end
|
40
45
|
|
data/lib/smartgen/version.rb
CHANGED
metadata
CHANGED
@@ -1,113 +1,115 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: smartgen
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.6.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Vicente Mundim
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
|
13
|
+
date: 2012-02-10 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
16
|
name: thor
|
17
|
-
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
19
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
22
23
|
version: 0.14.6
|
23
24
|
type: :runtime
|
24
|
-
|
25
|
-
|
26
|
-
- !ruby/object:Gem::Dependency
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
27
|
name: i18n
|
28
|
-
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
30
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
33
34
|
version: 0.5.0
|
34
35
|
type: :runtime
|
35
|
-
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
38
|
name: activesupport
|
39
|
-
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
41
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version:
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 3.0.0
|
45
46
|
type: :runtime
|
46
|
-
|
47
|
-
|
48
|
-
- !ruby/object:Gem::Dependency
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
49
|
name: RedCloth
|
50
|
-
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
51
52
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
55
56
|
version: 4.2.7
|
56
57
|
type: :runtime
|
57
|
-
|
58
|
-
|
59
|
-
- !ruby/object:Gem::Dependency
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
60
|
name: bluecloth
|
61
|
-
|
61
|
+
prerelease: false
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
62
63
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
66
67
|
version: 2.0.9
|
67
68
|
type: :runtime
|
68
|
-
|
69
|
-
|
70
|
-
- !ruby/object:Gem::Dependency
|
69
|
+
version_requirements: *id005
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
71
|
name: nokogiri
|
72
|
-
|
72
|
+
prerelease: false
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
73
74
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
77
78
|
version: 1.4.4
|
78
79
|
type: :runtime
|
79
|
-
|
80
|
-
|
81
|
-
- !ruby/object:Gem::Dependency
|
80
|
+
version_requirements: *id006
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
82
|
name: directory_watcher
|
83
|
-
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
84
85
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
88
89
|
version: 1.3.2
|
89
90
|
type: :runtime
|
90
|
-
|
91
|
-
|
92
|
-
- !ruby/object:Gem::Dependency
|
91
|
+
version_requirements: *id007
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
93
|
name: rspec
|
94
|
-
|
94
|
+
prerelease: false
|
95
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
95
96
|
none: false
|
96
|
-
requirements:
|
97
|
-
- -
|
98
|
-
- !ruby/object:Gem::Version
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
99
100
|
version: 2.3.0
|
100
101
|
type: :development
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
or markdown, and ERB to create layout templates
|
105
|
-
email:
|
102
|
+
version_requirements: *id008
|
103
|
+
description: Smartgen generates static HTML files from markup files, using textile or markdown, and ERB to create layout templates
|
104
|
+
email:
|
106
105
|
- vicente.mundim@gmail.com
|
107
106
|
executables: []
|
107
|
+
|
108
108
|
extensions: []
|
109
|
+
|
109
110
|
extra_rdoc_files: []
|
110
|
-
|
111
|
+
|
112
|
+
files:
|
111
113
|
- lib/smartgen/configuration.rb
|
112
114
|
- lib/smartgen/engines/base.rb
|
113
115
|
- lib/smartgen/engines/erb.rb
|
@@ -174,32 +176,34 @@ files:
|
|
174
176
|
- spec/lib/smartgen_spec.rb
|
175
177
|
- spec/sandbox/.gitkeep
|
176
178
|
- spec/spec_helper.rb
|
177
|
-
|
178
|
-
homepage: ''
|
179
|
+
homepage: ""
|
179
180
|
licenses: []
|
181
|
+
|
180
182
|
post_install_message:
|
181
183
|
rdoc_options: []
|
182
|
-
|
184
|
+
|
185
|
+
require_paths:
|
183
186
|
- lib
|
184
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
187
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
185
188
|
none: false
|
186
|
-
requirements:
|
187
|
-
- -
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version:
|
190
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: "0"
|
193
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
194
|
none: false
|
192
|
-
requirements:
|
193
|
-
- -
|
194
|
-
- !ruby/object:Gem::Version
|
195
|
-
version:
|
195
|
+
requirements:
|
196
|
+
- - ">="
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: "0"
|
196
199
|
requirements: []
|
200
|
+
|
197
201
|
rubyforge_project: smartgen
|
198
|
-
rubygems_version: 1.
|
202
|
+
rubygems_version: 1.8.10
|
199
203
|
signing_key:
|
200
204
|
specification_version: 3
|
201
205
|
summary: A static HTML markup generator
|
202
|
-
test_files:
|
206
|
+
test_files:
|
203
207
|
- spec/fixtures/expectations/common/another_index.html
|
204
208
|
- spec/fixtures/expectations/common/index.html
|
205
209
|
- spec/fixtures/expectations/common/other_index.html
|