mustache 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.2 (2009-10-28)
2
+
3
+ * Bugfix: Ignore bad constant names when autoloading
4
+
1
5
  ## 0.4.1 (2009-10-27)
2
6
 
3
7
  * Partials now respect the `view_namespace` setting.
@@ -192,6 +192,8 @@ class Mustache
192
192
  else
193
193
  Mustache
194
194
  end
195
+ rescue NameError
196
+ Mustache
195
197
  end
196
198
 
197
199
  # Should an exception be raised when we cannot find a corresponding method
@@ -1,3 +1,3 @@
1
1
  class Mustache
2
- Version = '0.4.1'
2
+ Version = '0.4.2'
3
3
  end
@@ -44,4 +44,8 @@ end_render
44
44
  My opinion: Victory!
45
45
  end_render
46
46
  end
47
+
48
+ def test_bad_constant_name
49
+ assert_equal Mustache, Mustache.view_class(404)
50
+ end
47
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mustache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-27 00:00:00 -07:00
12
+ date: 2009-10-28 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15