frank 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/frank CHANGED
@@ -94,7 +94,7 @@ if ARGV.empty?
94
94
  puts opts
95
95
  exit
96
96
  else
97
- if %w[server up export out upgrade].include? ARGV.first
97
+ if %w[server up export out upgrade s e].include? ARGV.first
98
98
  begin
99
99
  Frank.bootstrap(Dir.pwd)
100
100
  rescue Errno::ENOENT
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.0"
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-09-02}
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
@@ -6,7 +6,7 @@ require 'frank/middleware/statik'
6
6
  require 'frank/middleware/refresh'
7
7
 
8
8
  module Frank
9
- VERSION = '0.4.0'
9
+ VERSION = '0.4.1'
10
10
  extend Frank::Upgrades
11
11
 
12
12
  module Render; end
data/lib/frank/lorem.rb CHANGED
@@ -98,7 +98,7 @@ module Frank
98
98
  end
99
99
  end
100
100
 
101
- def image(size, options)
101
+ def image(size, options={})
102
102
  if @environment == :output && options[:replacement]
103
103
  options[:replacement]
104
104
  else
@@ -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\/[a-z0-9]{6}\/[a-z0-9]{6}' \/>/
73
- reg2 = /<img src='http:\/\/placehold\.it\/400x300\/444\/eee' \/>/
74
- reg3 = /<img src='http:\/\/placehold\.it\/400x300\/ccc\/aaa' \/>/
75
- reg4 = /<img src='http:\/\/placehold\.it\/400x300\/444(&amp;|&)text=blah' \/>/
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(&amp;|&)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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
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-09-02 00:00:00 -04:00
19
+ date: 2010-10-15 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency