roger 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDYwN2JiYWE4N2QzYjdkYzhjNTRiYWQ3NTdkMWU3OGU4NWI0MTIxMg==
4
+ M2E4YjE1MDI4YWZiNmMyMzAwYmQzMGFmN2JiMGZhYjQzYzFjNTIwZA==
5
5
  data.tar.gz: !binary |-
6
- YzZjMjM2MjcyY2U5ODBhMTk5MDBiNTQ3OGFjODNlNGVmZWM2ZmZlMA==
6
+ NjgxYjg4ZTU2NGJjNzE3MjlmNzc1NjBhNzU1ZDgxMGNmY2RhYjk3Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTM3NmYzNjkyNTIzZmUzMzI1OGZlOTQ2M2JkZDNkMjg1MWE5ODQ5Mjk4MGI3
10
- ZTQ1ZTUyNzY4OGJiNzM5ZTQwNDk4OTAxMDIxNzIxMjJlOGFkN2E4YjMzNGQy
11
- YmRhZjUxODk1Mzc3MmM1N2I5ZjJjYjVlNTI5MTIxNzhjYjBkZWY=
9
+ MTJjNjM2ZTFiNzIwZTU3ODdmYjYyM2QwYzEyYWVhMTk0MGM0OTBlODU5MTBk
10
+ NDQyZWE5OGVmNzM1NmMyNWNkM2NmZDNiZGE2MjE0MGI3ZWMwN2VjY2JkZTU2
11
+ OWUxYzgyOGJlODE4ZmRkY2U5OWI1MzI1YjEyZGIwOGNjNDU2OWI=
12
12
  data.tar.gz: !binary |-
13
- YTA2OGU2NDg0MTFjMWI4ZWU2YzNiZmU2NzE1ZjhlOTk0MTQ5ZTNmMGY3Nzg0
14
- MTY2ZGMxMzJmODQ0Y2M2MzhlODQyMGY2YTUxMTQ0NWQ2MjkzMjEwYThlYzRh
15
- MzMyMzc1Y2Q4Zjc3OGVhNWU3OTYwODgwODk1NWQxN2UyZmQ5ZGY=
13
+ OTBiYTliOWQxZDZjYjNkZDdkNTU2Mjg2YjkxOGU4ZmNjNjc2OTRiYTEwOGU4
14
+ YTEyMjVkZWMxZjBhMGQxYWI2MTNmODk2MTk5ZDE3NjliZTdiODE0MWMxNzQ1
15
+ YmU3NjE1YjYwYWUzNGZlOGQyZWIyMzdlNzM4MmQyODQ4Yzk4MDA=
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 0.11.0
4
+ * You can now register release processors and finalizers with a name and use them by name (call `Roger::Release::Finalizers.register(:name, Finalizer)` or `Roger::Release::Processors.register(:name, Processor)`)
5
+ * Generators now need to be registered on `Roger::Generators` instead of `Roger::Generators::Base`
6
+ * Minor bugfixes
7
+
3
8
  ## Version 0.10.0
4
9
  * Welcome **Roger**
5
10
  * Removed requirejs, sass and yuicompressor processors in favour of separate gems
@@ -20,4 +20,4 @@ class Roger::Generators::GeneratorGenerator < Roger::Generators::Base
20
20
 
21
21
  end
22
22
 
23
- Roger::Generators::Base.register Roger::Generators::GeneratorGenerator
23
+ Roger::Generators.register Roger::Generators::GeneratorGenerator
@@ -64,4 +64,4 @@ class Roger::Generators::NewGenerator < Thor::Group
64
64
 
65
65
  end
66
66
 
67
- Roger::Generators::Base.register Roger::Generators::NewGenerator
67
+ Roger::Generators.register Roger::Generators::NewGenerator
@@ -10,4 +10,4 @@ class <%= name.capitalize %>Generator < Roger::Generators::Base
10
10
  end
11
11
  end
12
12
 
13
- Roger::Generators::Base.register <%= name.capitalize %>Generator
13
+ Roger::Generators.register <%= name.capitalize %>Generator
@@ -5,14 +5,15 @@ module Roger
5
5
  module Generators
6
6
 
7
7
  class Base < Cli::Command
8
- def self.register(sub)
9
- name = sub.to_s.sub(/Generator$/, "").sub(/^.*Generators::/,"").downcase
10
- usage = "#{name} #{sub.arguments.map{ |arg| arg.banner }.join(" ")}"
11
- long_desc = sub.desc || "Run #{name} generator"
12
-
13
- Cli::Generate.register sub, name, usage, long_desc
14
- Cli::Generate.tasks[name].options = sub.class_options if sub.class_options
15
- end
8
+ end
9
+
10
+ def self.register(sub)
11
+ name = sub.to_s.sub(/Generator$/, "").sub(/^.*Generators::/,"").downcase
12
+ usage = "#{name} #{sub.arguments.map{ |arg| arg.banner }.join(" ")}"
13
+ long_desc = sub.desc || "Run #{name} generator"
14
+
15
+ Cli::Generate.register sub, name, usage, long_desc
16
+ Cli::Generate.tasks[name].options = sub.class_options if sub.class_options
16
17
  end
17
18
 
18
19
  end
@@ -27,3 +27,5 @@ module Roger::Release::Finalizers
27
27
  end
28
28
  end
29
29
  end
30
+
31
+ Roger::Release::Finalizers.register(:dir, Roger::Release::Finalizers::Dir)
@@ -1,92 +1,95 @@
1
1
  # Finalizes the release into a specific branch of a repository and pushes it
2
2
  #
3
- class GitBranch < Roger::Release::Finalizers::Base
4
-
5
- # @param Hash options The options
6
- #
7
- # @option options String :remote The remote repository (default is the origin of the current repository)
8
- # @option options String :branch The remote branch (default is "gh-pages")
9
- # @option options Boolean :cleanup Cleanup temp dir afterwards (default is true)
10
- # @option options Boolean :push Push to remote (default is true)
11
- def initialize(options={})
12
- @options = {
13
- :remote => nil,
14
- :branch => "gh-pages",
15
- :cleanup => true,
16
- :push => true
17
- }
18
- end
19
-
20
-
21
- def call(release, options = {})
22
- options = @options.dup.update(options)
23
- git_dir = find_git_dir(release.project.path)
24
-
25
- # 0. Get remote
26
- unless remote = (options[:remote] || `git --git-dir=#{git_dir} config --get remote.origin.url`).strip
27
- raise "No remote found for origin"
3
+ module Roger::Release::Finalizers
4
+ class GitBranch < Roger::Release::Finalizers::Base
5
+
6
+ # @param Hash options The options
7
+ #
8
+ # @option options String :remote The remote repository (default is the origin of the current repository)
9
+ # @option options String :branch The remote branch (default is "gh-pages")
10
+ # @option options Boolean :cleanup Cleanup temp dir afterwards (default is true)
11
+ # @option options Boolean :push Push to remote (default is true)
12
+ def initialize(options={})
13
+ @options = {
14
+ :remote => nil,
15
+ :branch => "gh-pages",
16
+ :cleanup => true,
17
+ :push => true
18
+ }
28
19
  end
29
20
 
30
- e_remote = Shellwords.escape(remote)
31
- e_branch = Shellwords.escape(options[:branch])
32
-
33
- tmp_dir = Pathname.new(Dir.mktmpdir)
34
- clone_dir = tmp_dir + "clone"
35
21
 
36
- # Check if remote already has branch
37
- if `git ls-remote --heads #{e_remote} refs/heads/#{e_branch}` == ""
38
- release.log(self, "Creating empty branch")
39
- # Branch does not exist yet
40
- FileUtils.mkdir(clone_dir)
41
- Dir.chdir(clone_dir) do
42
- `git init`
43
- `git remote add origin #{e_remote}`
44
- `git checkout -b #{e_branch}`
22
+ def call(release, options = {})
23
+ options = @options.dup.update(options)
24
+ git_dir = find_git_dir(release.project.path)
25
+
26
+ # 0. Get remote
27
+ unless remote = (options[:remote] || `git --git-dir=#{git_dir} config --get remote.origin.url`).strip
28
+ raise "No remote found for origin"
45
29
  end
46
- else
47
- release.log(self, "Cloning existing repo")
48
- # 1. Clone into different directory
49
- `git clone #{e_remote} --branch #{e_branch} --single-branch #{clone_dir}`
50
- end
51
-
52
- release.log(self, "Working git magic in #{clone_dir}")
53
- Dir.chdir(clone_dir) do
54
- # 3. Copy changes
55
- FileUtils.rm_rf("*")
56
- FileUtils.cp_r release.build_path.to_s + "/.", clone_dir.to_s
57
30
 
58
- # 4. Add all files
59
- `git add .`
60
-
61
- # 5. Commit
62
- `git commit -a -m "Release #{release.scm.version}"`
31
+ e_remote = Shellwords.escape(remote)
32
+ e_branch = Shellwords.escape(options[:branch])
63
33
 
64
- # 6. Git push
65
- if options[:push]
66
- `git push origin #{e_branch}`
34
+ tmp_dir = Pathname.new(Dir.mktmpdir)
35
+ clone_dir = tmp_dir + "clone"
36
+
37
+ # Check if remote already has branch
38
+ if `git ls-remote --heads #{e_remote} refs/heads/#{e_branch}` == ""
39
+ release.log(self, "Creating empty branch")
40
+ # Branch does not exist yet
41
+ FileUtils.mkdir(clone_dir)
42
+ Dir.chdir(clone_dir) do
43
+ `git init`
44
+ `git remote add origin #{e_remote}`
45
+ `git checkout -b #{e_branch}`
46
+ end
47
+ else
48
+ release.log(self, "Cloning existing repo")
49
+ # 1. Clone into different directory
50
+ `git clone #{e_remote} --branch #{e_branch} --single-branch #{clone_dir}`
67
51
  end
52
+
53
+ release.log(self, "Working git magic in #{clone_dir}")
54
+ Dir.chdir(clone_dir) do
55
+ # 3. Copy changes
56
+ FileUtils.rm_rf("*")
57
+ FileUtils.cp_r release.build_path.to_s + "/.", clone_dir.to_s
58
+
59
+ # 4. Add all files
60
+ `git add .`
61
+
62
+ # 5. Commit
63
+ `git commit -a -m "Release #{release.scm.version}"`
64
+
65
+ # 6. Git push
66
+ if options[:push]
67
+ `git push origin #{e_branch}`
68
+ end
69
+ end
70
+
71
+ if options[:cleanup]
72
+ FileUtils.rm_rf(tmp_dir)
73
+ end
74
+
68
75
  end
69
76
 
70
- if options[:cleanup]
71
- FileUtils.rm_rf(tmp_dir)
72
- end
73
-
74
- end
75
-
76
- protected
77
-
78
- # Find the git dir
79
- # TODO this is just a copy from release/scm/git.rb
80
- def find_git_dir(path)
81
- path = Pathname.new(path).realpath
82
- while path.parent != path && !(path + ".git").directory?
83
- path = path.parent
84
- end
85
-
86
- path = path + ".git"
77
+ protected
87
78
 
88
- raise "Could not find suitable .git dir in #{path}" if !path.directory?
79
+ # Find the git dir
80
+ # TODO this is just a copy from release/scm/git.rb
81
+ def find_git_dir(path)
82
+ path = Pathname.new(path).realpath
83
+ while path.parent != path && !(path + ".git").directory?
84
+ path = path.parent
85
+ end
86
+
87
+ path = path + ".git"
88
+
89
+ raise "Could not find suitable .git dir in #{path}" if !path.directory?
89
90
 
90
- path
91
- end
92
- end
91
+ path
92
+ end
93
+ end
94
+ end
95
+ Roger::Release::Finalizers.register(:git_branch, Roger::Release::Finalizers::GitBranch)
@@ -74,4 +74,6 @@ module Roger::Release::Finalizers
74
74
  end
75
75
 
76
76
  end
77
- end
77
+ end
78
+
79
+ Roger::Release::Finalizers.register(:rsync, Roger::Release::Finalizers::Rsync)
@@ -39,4 +39,6 @@ module Roger::Release::Finalizers
39
39
 
40
40
 
41
41
  end
42
- end
42
+ end
43
+
44
+ Roger::Release::Finalizers.register(:zip, Roger::Release::Finalizers::Zip)
@@ -10,6 +10,17 @@ module Roger::Release::Finalizers
10
10
  raise ArgumentError, "Implement in subclass"
11
11
  end
12
12
  end
13
+
14
+ def self.register(name, finalizer)
15
+ raise ArgumentError, "Another finalizer has already claimed the name #{name.inspect}" if self.map.has_key?(name)
16
+ raise ArgumentError, "Name must be a symbol" unless name.kind_of?(Symbol)
17
+ self.map[name] = finalizer
18
+ end
19
+
20
+ def self.map
21
+ @_map ||= {}
22
+ end
23
+
13
24
  end
14
25
 
15
26
  require File.dirname(__FILE__) + "/finalizers/zip"
@@ -91,3 +91,5 @@ module Roger::Release::Processors
91
91
 
92
92
  end
93
93
  end
94
+
95
+ Roger::Release::Processors.register(:mockup, Roger::Release::Processors::Mockup)
@@ -43,3 +43,5 @@ module Roger::Release::Processors
43
43
  end
44
44
  end
45
45
  end
46
+
47
+ Roger::Release::Processors.register(:url_relativizer, Roger::Release::Processors::UrlRelativizer)
@@ -11,6 +11,17 @@ module Roger::Release::Processors
11
11
  raise ArgumentError, "Implement in subclass"
12
12
  end
13
13
  end
14
+
15
+ def self.register(name, processor)
16
+ raise ArgumentError, "Another processor has already claimed the name #{name.inspect}" if self.map.has_key?(name)
17
+ raise ArgumentError, "Name must be a symbol" unless name.kind_of?(Symbol)
18
+ self.map[name] = processor
19
+ end
20
+
21
+ def self.map
22
+ @_map ||= {}
23
+ end
24
+
14
25
  end
15
26
 
16
27
  require File.dirname(__FILE__) + "/processors/mockup"
data/lib/roger/release.rb CHANGED
@@ -14,22 +14,18 @@ module Roger
14
14
  end
15
15
 
16
16
  def default_finalizers
17
- [[self.get_callable(:dir, Roger::Release::Finalizers), {}]]
17
+ [[self.get_callable(:dir, Roger::Release::Finalizers.map), {}]]
18
18
  end
19
19
 
20
20
  # Makes callable into a object that responds to call.
21
21
  #
22
22
  # @param [#call, Symbol, Class] callable If callable already responds to #call will just return callable, a Symbol will be searched for in the scope parameter, a class will be instantiated (and checked if it will respond to #call)
23
- # @param [Module] scope The scope in which to search callable in if it's a Symbol
24
- def get_callable(callable, scope)
23
+ # @param [Hash] map, Mapping to match symbol to a callable
24
+ def get_callable(callable, map)
25
25
  return callable if callable.respond_to?(:call)
26
26
 
27
- if callable.kind_of?(Symbol)
28
- callable = camel_case(callable.to_s).to_sym
29
- if scope.constants.include?(callable)
30
- c = scope.const_get(callable)
31
- callable = c if c.is_a?(Class)
32
- end
27
+ if callable.kind_of?(Symbol) && map.has_key?(callable)
28
+ callable = map[callable]
33
29
  end
34
30
 
35
31
  if callable.kind_of?(Class)
@@ -43,14 +39,6 @@ module Roger
43
39
  end
44
40
 
45
41
  end
46
-
47
- # Nothing genius adjusted from:
48
- # http://stackoverflow.com/questions/9524457/converting-string-from-snake-case-to-camel-case-in-ruby
49
- def camel_case(string)
50
- return string if string !~ /_/ && string =~ /[A-Z]+.*/
51
- string.split('_').map{|e| e.capitalize}.join
52
- end
53
-
54
42
  end
55
43
 
56
44
  # @option config [Symbol] :scm The SCM to use (default = :git)
@@ -122,7 +110,7 @@ module Roger
122
110
  # @examples
123
111
  # release.use :sprockets, sprockets_config
124
112
  def use(processor, options = {})
125
- @stack << [self.class.get_callable(processor, Roger::Release::Processors), options]
113
+ @stack << [self.class.get_callable(processor, Roger::Release::Processors.map), options]
126
114
  end
127
115
 
128
116
  # Write out the whole release into a directory, zip file or anything you can imagine
@@ -135,7 +123,7 @@ module Roger
135
123
  # @examples
136
124
  # release.finalize :zip
137
125
  def finalize(finalizer, options = {})
138
- @finalizers << [self.class.get_callable(finalizer, Roger::Release::Finalizers), options]
126
+ @finalizers << [self.class.get_callable(finalizer, Roger::Release::Finalizers.map), options]
139
127
  end
140
128
 
141
129
  # Files to clean up in the build directory just before finalization happens
@@ -192,10 +192,6 @@ module Roger
192
192
  if template_path = self.template.find_template(name, :partials_path)
193
193
  partial_template = Tilt.new(template_path.to_s)
194
194
  partial_template.render(self, options[:locals] || {})
195
- elsif template_path = self.template.find_template(name + ".part", :partials_path)
196
- template = Tilt::ERBTemplate.new(template_path.to_s)
197
- context = MockupTemplate::TemplateContext.new(options[:locals] || {})
198
- template.render(context, :env => self.env)
199
195
  else
200
196
  raise ArgumentError, "No such partial #{name}, referenced from #{self.template.source_path}"
201
197
  end
data/roger.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "roger"
5
- s.version = "0.10.0"
5
+ s.version = "0.11.0"
6
6
 
7
7
  s.authors = ["Flurin Egger", "Edwin van der Graaf", "Joran Kapteijns"]
8
8
  s.email = ["info@digitpaint.nl", "flurin@digitpaint.nl"]
@@ -5,6 +5,3 @@
5
5
 
6
6
  <h2>MD</h2>
7
7
  <%= partial "test/markdown" %>
8
-
9
- <h2>Mockup</h2>
10
- <%= partial "test/mockup", :locals => {:value => "value"} %>
@@ -6,4 +6,4 @@ class TestGenerator < Roger::Generators::Base
6
6
 
7
7
  end
8
8
 
9
- Roger::Generators::Base.register TestGenerator
9
+ Roger::Generators.register TestGenerator
@@ -36,7 +36,7 @@ module Roger
36
36
  end
37
37
 
38
38
  def test_working_project
39
- Roger::Generators::Base.register CustomGens::Generators::MockedWithProjectGenerator
39
+ Roger::Generators.register CustomGens::Generators::MockedWithProjectGenerator
40
40
  generators = Cli::Generate.new
41
41
 
42
42
  assert_raise StandardError do
@@ -45,7 +45,7 @@ module Roger
45
45
  end
46
46
 
47
47
  def test_register_generator
48
- Roger::Generators::Base.register CustomGens::Generators::MockedGenerator
48
+ Roger::Generators.register CustomGens::Generators::MockedGenerator
49
49
  assert_includes Cli::Generate.tasks, "mocked"
50
50
  assert_equal Cli::Generate.tasks["mocked"].description, "@mocked description"
51
51
  assert_equal Cli::Generate.tasks["mocked"].usage, "mocked PATH ANOTHER_ARG"
@@ -64,7 +64,7 @@ module Roger
64
64
  end
65
65
 
66
66
  def test_invoke_mocked_generator
67
- Roger::Generators::Base.register CustomGens::Generators::MockedGenerator
67
+ Roger::Generators.register CustomGens::Generators::MockedGenerator
68
68
 
69
69
  generators = Cli::Generate.new
70
70
  assert_raise NotImplementedError do
@@ -0,0 +1,47 @@
1
+ require "./lib/roger/release.rb"
2
+ require "test/unit"
3
+
4
+ class ProcessorsTest < Test::Unit::TestCase
5
+ def setup
6
+ Roger::Release::Processors.map.clear
7
+ end
8
+
9
+ def test_register_processor
10
+ processor = lambda{|e| raise "ProcessorName" }
11
+ assert Roger::Release::Processors.register(:name, processor)
12
+ assert_equal Roger::Release::Processors.map, {:name => processor}
13
+ end
14
+
15
+ def test_register_processor_with_symbol_only_name
16
+ processor = lambda{|e| raise "ProcessorName" }
17
+
18
+ assert_raise(ArgumentError){
19
+ Roger::Release::Processors.register("name", processor)
20
+ }
21
+
22
+ assert_raise(ArgumentError){
23
+ Roger::Release::Processors.register("name", processor)
24
+ }
25
+ end
26
+
27
+ def test_register_processor_with_same_name
28
+ processor = lambda{|e| raise "ProcessorName" }
29
+ Roger::Release::Processors.register(:name, processor)
30
+
31
+ assert_raise(ArgumentError){
32
+ Roger::Release::Processors.register(:name, processor)
33
+ }
34
+ end
35
+
36
+ def test_register_processor_with_same_contents
37
+ processor = lambda{|e| raise "ProcessorName" }
38
+ Roger::Release::Processors.register(:name, processor)
39
+
40
+ assert_nothing_raised{
41
+ Roger::Release::Processors.register(:name2, processor)
42
+ }
43
+
44
+ assert_equal Roger::Release::Processors.map, {:name => processor, :name2 => processor}
45
+ end
46
+
47
+ end
@@ -0,0 +1,36 @@
1
+ # Generators register themself on the CLI module
2
+ require "./lib/roger/release.rb"
3
+ require "test/unit"
4
+
5
+ module Roger
6
+ class ReleaseTest < Test::Unit::TestCase
7
+
8
+ def test_get_callable
9
+ p = lambda{}
10
+ assert_equal Release.get_callable(p, {}), p
11
+ assert_raise(ArgumentError){ Release.get_callable(nil, {})}
12
+ end
13
+
14
+ def test_get_callable_with_map
15
+ p = lambda{}
16
+ map = {
17
+ :lambda => p,
18
+ }
19
+
20
+ assert_equal Release.get_callable(:lambda, map), p
21
+ assert_raise(ArgumentError){ Release.get_callable(:huh, map)}
22
+ end
23
+
24
+ class Works
25
+ def call; end
26
+ end
27
+ class Breaks
28
+ end
29
+
30
+ def test_get_callable_with_class
31
+ assert Release.get_callable(Works, {}).instance_of?(Works)
32
+ assert_raise(ArgumentError){ Release.get_callable(Breaks, {}) }
33
+ end
34
+
35
+ end
36
+ end
@@ -10,7 +10,7 @@ module Roger
10
10
  end
11
11
 
12
12
  def test_find_template_path
13
- assert_equal @resolver.find_template("formats/mockup.html"), @base + "formats/mockup.html"
13
+ assert_equal @resolver.find_template("formats/index.html"), @base + "formats/index.html"
14
14
 
15
15
  # This should not be found on it's own as it will be processed
16
16
  assert_equal @resolver.find_template("formats/markdown.md"), nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flurin Egger
@@ -165,7 +165,6 @@ files:
165
165
  - test/project/html/formats/index.html
166
166
  - test/project/html/formats/json.json.erb
167
167
  - test/project/html/formats/markdown.md
168
- - test/project/html/formats/mockup.html
169
168
  - test/project/html/front_matter/erb.html.erb
170
169
  - test/project/html/front_matter/markdown.md
171
170
  - test/project/html/layouts/content-for.html.erb
@@ -173,7 +172,6 @@ files:
173
172
  - test/project/html/mockup/encoding.html
174
173
  - test/project/html/partials/erb.html.erb
175
174
  - test/project/html/partials/load_path.html.erb
176
- - test/project/html/partials/mockup.html
177
175
  - test/project/html/static/non-relative.html.erb
178
176
  - test/project/html/static/relative.html.erb
179
177
  - test/project/layouts/test.html.erb
@@ -185,12 +183,13 @@ files:
185
183
  - test/project/partials/test/front_matter.html.erb
186
184
  - test/project/partials/test/json.json.erb
187
185
  - test/project/partials/test/markdown.md
188
- - test/project/partials/test/mockup.part.html
189
186
  - test/project/partials/test/simple.html.erb
190
187
  - test/project/partials2/partials2-test.html.erb
191
188
  - test/unit/cli_test.rb
192
189
  - test/unit/generators_test.rb
193
190
  - test/unit/release/cleaner_test.rb
191
+ - test/unit/release/processors_test.rb
192
+ - test/unit/release_test.rb
194
193
  - test/unit/resolver_test.rb
195
194
  - test/unit/template_test.rb
196
195
  homepage: http://github.com/digitpaint/roger
@@ -228,7 +227,6 @@ test_files:
228
227
  - test/project/html/formats/index.html
229
228
  - test/project/html/formats/json.json.erb
230
229
  - test/project/html/formats/markdown.md
231
- - test/project/html/formats/mockup.html
232
230
  - test/project/html/front_matter/erb.html.erb
233
231
  - test/project/html/front_matter/markdown.md
234
232
  - test/project/html/layouts/content-for.html.erb
@@ -236,7 +234,6 @@ test_files:
236
234
  - test/project/html/mockup/encoding.html
237
235
  - test/project/html/partials/erb.html.erb
238
236
  - test/project/html/partials/load_path.html.erb
239
- - test/project/html/partials/mockup.html
240
237
  - test/project/html/static/non-relative.html.erb
241
238
  - test/project/html/static/relative.html.erb
242
239
  - test/project/layouts/test.html.erb
@@ -248,11 +245,12 @@ test_files:
248
245
  - test/project/partials/test/front_matter.html.erb
249
246
  - test/project/partials/test/json.json.erb
250
247
  - test/project/partials/test/markdown.md
251
- - test/project/partials/test/mockup.part.html
252
248
  - test/project/partials/test/simple.html.erb
253
249
  - test/project/partials2/partials2-test.html.erb
254
250
  - test/unit/cli_test.rb
255
251
  - test/unit/generators_test.rb
256
252
  - test/unit/release/cleaner_test.rb
253
+ - test/unit/release/processors_test.rb
254
+ - test/unit/release_test.rb
257
255
  - test/unit/resolver_test.rb
258
256
  - test/unit/template_test.rb
@@ -1,5 +0,0 @@
1
- <h1>Mockup format</h1>
2
-
3
- <p>
4
- Yay from mockup
5
- </p>
@@ -1,13 +0,0 @@
1
- <h1>Partials in document</h1>
2
-
3
- <h2>ERB</h2>
4
- <!-- [START:test/erb?value=value] -->
5
- <!-- [STOP:test/erb] -->
6
-
7
- <h2>MD</h2>
8
- <!-- [START:test/markdown] -->
9
- <!-- [STOP:test/markdown] -->
10
-
11
- <h2>Mockup</h2>
12
- <!-- [START:test/mockup?value=value] -->
13
- <!-- [STOP:test/mockup] -->
@@ -1 +0,0 @@
1
- Let's render some old style ERB! (Value is <%= @value %>)