vanilla 1.9.14 → 1.9.14.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/vanilla/soup_with_timestamps.rb +1 -0
- data/test/tmp/soup/current_snip.yml +2 -2
- data/test/tmp/soup/system.yml +2 -2
- data/test/vanilla_soup_test.rb +8 -0
- metadata +2 -1
data/Rakefile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
CurrentSnip--- # Soup attributes
|
2
|
-
:updated_at: 2009-11-23 22:
|
2
|
+
:updated_at: 2009-11-23 22:39:21.358609 +00:00
|
3
3
|
:name: current_snip
|
4
4
|
:render_as: Ruby
|
5
5
|
:usage: |-
|
@@ -12,4 +12,4 @@ CurrentSnip--- # Soup attributes
|
|
12
12
|
{current_snip name}
|
13
13
|
|
14
14
|
will output the name of the current snip, or the name of the snip currently being edited.
|
15
|
-
:created_at: 2009-11-23 22:
|
15
|
+
:created_at: 2009-11-23 22:39:21.358607 +00:00
|
data/test/tmp/soup/system.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
--- # Soup attributes
|
2
|
-
:updated_at: 2009-11-23 22:
|
2
|
+
:updated_at: 2009-11-23 22:39:21.359623 +00:00
|
3
3
|
:name: system
|
4
4
|
:main_template: "{current_snip}"
|
5
|
-
:created_at: 2009-11-23 22:
|
5
|
+
:created_at: 2009-11-23 22:39:21.359619 +00:00
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), *%w[test_helper])
|
2
|
+
|
3
|
+
class VanillaSoupTest < Vanilla::TestCase
|
4
|
+
should "convert timestamps to times" do
|
5
|
+
snip = create_snip(:name => "temp", :created_at => Time.now.to_s)
|
6
|
+
assert_kind_of Time, @app.soup["temp"].created_at
|
7
|
+
end
|
8
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vanilla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.14
|
4
|
+
version: 1.9.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Adam
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- test/vanilla_app_test.rb
|
130
130
|
- test/vanilla_presenting_test.rb
|
131
131
|
- test/vanilla_request_test.rb
|
132
|
+
- test/vanilla_soup_test.rb
|
132
133
|
- lib/defensio.rb
|
133
134
|
- lib/tasks/vanilla.rake
|
134
135
|
- lib/vanilla/app.rb
|