temple 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Temple
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.1"
3
3
 
4
4
  autoload :Core, 'temple/core'
5
5
  autoload :Engine, 'temple/engine'
@@ -12,11 +12,9 @@ module Temple
12
12
 
13
13
  module Parsers
14
14
  autoload :ERB, 'temple/parsers/erb'
15
- autoload :Mustache, 'temple/parsers/mustache'
16
15
  end
17
16
 
18
17
  module Filters
19
- autoload :Mustache, 'temple/filters/mustache'
20
18
  autoload :MultiFlattener, 'temple/filters/multi_flattener'
21
19
  autoload :StaticMerger, 'temple/filters/static_merger'
22
20
  autoload :DynamicInliner, 'temple/filters/dynamic_inliner'
@@ -2,14 +2,14 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{temple}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Magnus Holm"]
9
9
  s.date = %q{2010-01-23}
10
10
  s.email = %q{judofyr@gmail.com}
11
- s.files = [".yardopts", "LICENSE", "README.md", "Rakefile", "lib/temple.rb", "lib/temple/core.rb", "lib/temple/engine.rb", "lib/temple/engines/erb.rb", "lib/temple/filters/dynamic_inliner.rb", "lib/temple/filters/escapable.rb", "lib/temple/filters/multi_flattener.rb", "lib/temple/filters/static_merger.rb", "lib/temple/generator.rb", "lib/temple/parsers/erb.rb", "lib/temple/utils.rb", "temple.gemspec", "test/engines/hello.erb", "test/engines/test_erb.rb", "test/engines/test_erb_m17n.rb", "test/filters/test_dynamic_inliner.rb", "test/filters/test_escapable.rb", "test/filters/test_static_merger.rb", "test/helper.rb", "test/test_generator.rb"]
12
- s.homepage = %q{http://github.com/judofyr/temple}
11
+ s.files = [".yardopts", "LICENSE", "README.md", "Rakefile", "lib/temple.rb", "lib/temple/core.rb", "lib/temple/engine.rb", "lib/temple/engines/erb.rb", "lib/temple/filters/dynamic_inliner.rb", "lib/temple/filters/escapable.rb", "lib/temple/filters/multi_flattener.rb", "lib/temple/filters/static_merger.rb", "lib/temple/generator.rb", "lib/temple/parsers/erb.rb", "lib/temple/utils.rb", "temple.gemspec", "test/engines/hello.erb", "test/engines/test_erb.rb", "test/engines/test_erb_m17n.rb", "test/filters/test_dynamic_inliner.rb", "test/filters/test_escapable.rb", "test/filters/test_static_merger.rb", "test/helper.rb", "test/test_generator.rb", "test/test_temple.rb"]
12
+ s.homepage = %q{http://dojo.rubyforge.org/}
13
13
  s.require_paths = ["lib"]
14
14
  s.rubygems_version = %q{1.3.6}
15
15
  s.summary = %q{Template compilation framework in RUby}
@@ -0,0 +1,28 @@
1
+ require File.dirname(__FILE__) + '/helper'
2
+
3
+ class TestTempleGenerator < Test::Unit::TestCase
4
+ def spec
5
+ @spec ||= begin
6
+ require 'rubygems'
7
+ require 'rubygems/specification'
8
+
9
+ Gem::Specification.load(File.dirname(__FILE__) + '/../temple.gemspec')
10
+ end
11
+ end
12
+
13
+ def test_correct_version
14
+ assert_equal(spec.version.to_s, Temple::VERSION)
15
+ end
16
+
17
+ def test_files_included(base = Temple)
18
+ return unless base.respond_to?(:constants)
19
+
20
+ base.constants.each do |const|
21
+ if path = base.autoload?(const)
22
+ assert(spec.files.include?("lib/#{path}.rb"), "gemspec did not include lib/#{path}.rb")
23
+ else
24
+ test_files_included(base.const_get(const))
25
+ end
26
+ end
27
+ end
28
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Magnus Holm
@@ -51,8 +51,9 @@ files:
51
51
  - test/filters/test_static_merger.rb
52
52
  - test/helper.rb
53
53
  - test/test_generator.rb
54
+ - test/test_temple.rb
54
55
  has_rdoc: true
55
- homepage: http://github.com/judofyr/temple
56
+ homepage: http://dojo.rubyforge.org/
56
57
  licenses: []
57
58
 
58
59
  post_install_message: