frank 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/frank +1 -1
- data/frank.gemspec +2 -2
- data/lib/frank/base.rb +1 -1
- data/lib/frank/lorem.rb +1 -1
- data/spec/template/dynamic/lorem_test.haml +1 -0
- data/spec/template_helpers_spec.rb +6 -4
- metadata +4 -4
data/bin/frank
CHANGED
data/frank.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{frank}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["blahed", "nwah"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-10-15}
|
13
13
|
s.description = %q{Rapidly develop static sites using any supported templating language}
|
14
14
|
s.email = %q{travis.dunn@thisismedium.com}
|
15
15
|
s.executables = ["frank", "frankout", "frankup"]
|
data/lib/frank/base.rb
CHANGED
data/lib/frank/lorem.rb
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
%p.date= lorem.date '%Y-%m-%d', 'replace-this'
|
5
5
|
%p.name= lorem.name 'replace-this'
|
6
6
|
%p.email= lorem.email 'replace-this'
|
7
|
+
%img{:src => lorem.image('400x300')}
|
7
8
|
%img{:src => lorem.image('400x300', :random_color => true)}
|
8
9
|
%img{:src => lorem.image('400x300', :background_color => '444', :color => 'eee', :replacement => 'replace-this')}
|
9
10
|
%img{:src => lorem.image('400x300', :color => 'aaa')}
|
@@ -69,15 +69,17 @@ describe Frank::TemplateHelpers do
|
|
69
69
|
|
70
70
|
it 'render image url using imager' do
|
71
71
|
template = @app.render('lorem_test.haml')
|
72
|
-
reg1 = /<img src='http:\/\/placehold\.it\/400x300
|
73
|
-
reg2 = /<img src='http:\/\/placehold\.it\/400x300\/
|
74
|
-
reg3 = /<img src='http:\/\/placehold\.it\/400x300\/
|
75
|
-
reg4 = /<img src='http:\/\/placehold\.it\/400x300\/
|
72
|
+
reg1 = /<img src='http:\/\/placehold\.it\/400x300' \/>/
|
73
|
+
reg2 = /<img src='http:\/\/placehold\.it\/400x300\/[a-z0-9]{6}\/[a-z0-9]{6}' \/>/
|
74
|
+
reg3 = /<img src='http:\/\/placehold\.it\/400x300\/444\/eee' \/>/
|
75
|
+
reg4 = /<img src='http:\/\/placehold\.it\/400x300\/ccc\/aaa' \/>/
|
76
|
+
reg5 = /<img src='http:\/\/placehold\.it\/400x300\/444(&|&)text=blah' \/>/
|
76
77
|
|
77
78
|
template.should =~ reg1
|
78
79
|
template.should =~ reg2
|
79
80
|
template.should =~ reg3
|
80
81
|
template.should =~ reg4
|
82
|
+
template.should =~ reg5
|
81
83
|
end
|
82
84
|
end
|
83
85
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frank
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- blahed
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-10-15 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|