serious 0.2.12 → 0.3.0

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/.gitignore CHANGED
@@ -17,6 +17,7 @@ tmtags
17
17
  coverage
18
18
  rdoc
19
19
  pkg
20
+ .bundle
20
21
 
21
22
  ## PROJECT::SPECIFIC
22
23
 
@@ -0,0 +1,10 @@
1
+ = Changelog for serious
2
+ http://github.com/colszowka/serious
3
+
4
+ == v0.3.0 (2010-08-17)
5
+
6
+ * Fixed encoding issues with Ruby 1.9.1/1.9.2-rc2, added unit tests. Works on Heroku with Ruby 1.9.1 now (colszowka)
7
+ * Made blog generator (serious command) use Heroku with Ruby 1.9.1 by default (when --heroku switch is active) (colszowka)
8
+ * Use Bundler Gemfile instead of Heroku .gems file in blog generator (colszowka)
9
+ * Use Bundler internally for easy development setup (git clone -> bundle install -> rake test) (colszowka)
10
+ * Trailing slashes in article urls Regexp fixed (rb2k)
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source :rubygems
2
+ gem 'sinatra', ">= 1.0.0"
3
+ gem 'stupid_formatter', '>= 0.2.0'
4
+ gem 'builder', ">= 2.1.2"
5
+
6
+ group :development do
7
+ gem "shoulda", "= 2.10.3"
8
+ gem "hpricot", ">= 0.8.0"
9
+ gem "rack-test", ">= 0.5.0"
10
+ gem 'jeweler', ">= 1.4.0"
11
+ end
@@ -0,0 +1,37 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ builder (2.1.2)
5
+ coderay (0.9.3)
6
+ gemcutter (0.6.1)
7
+ git (1.2.5)
8
+ hpricot (0.8.2)
9
+ jeweler (1.4.0)
10
+ gemcutter (>= 0.1.0)
11
+ git (>= 1.2.5)
12
+ rubyforge (>= 2.0.0)
13
+ json_pure (1.4.6)
14
+ rack (1.2.1)
15
+ rack-test (0.5.4)
16
+ rack (>= 1.0)
17
+ rdiscount (1.6.5)
18
+ rubyforge (2.0.4)
19
+ json_pure (>= 1.1.7)
20
+ shoulda (2.10.3)
21
+ sinatra (1.0)
22
+ rack (>= 1.0)
23
+ stupid_formatter (0.2.0)
24
+ coderay (>= 0.9.0)
25
+ rdiscount (>= 1.5.0)
26
+
27
+ PLATFORMS
28
+ ruby
29
+
30
+ DEPENDENCIES
31
+ builder (>= 2.1.2)
32
+ hpricot (>= 0.8.0)
33
+ jeweler (>= 1.4.0)
34
+ rack-test (>= 0.5.0)
35
+ shoulda (= 2.10.3)
36
+ sinatra (>= 1.0.0)
37
+ stupid_formatter (>= 0.2.0)
@@ -60,7 +60,7 @@ The directory basic directory structure of your Serious site would be something
60
60
  - pages
61
61
  - about.txt
62
62
  - config.ru
63
- - .gems
63
+ - Gemfile
64
64
  - Rakefile
65
65
 
66
66
  The config.ru is pretty straight-forward if you want to stick to the defaults:
@@ -71,9 +71,10 @@ The config.ru is pretty straight-forward if you want to stick to the defaults:
71
71
  Serious.set :url, 'http://mysweetlittleblog.heroku.com'
72
72
  run Serious
73
73
 
74
- The .gems file if you want to host on heroku:
74
+ The Gemfile to resolve dependencies (i.e. when hosting on heroku)
75
75
 
76
- serious
76
+ source :rubygems
77
+ gem "serious", ">= 0.3.0"
77
78
 
78
79
  The Rakefile, which is obviously totally optional but highly recommended looks like this:
79
80
 
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'rubygems'
2
3
  require 'rake'
3
4
 
@@ -7,7 +8,7 @@ begin
7
8
  gem.name = "serious"
8
9
  gem.summary = %Q{Serious is a simple, file-driven blog engine inspired by toto and driven by sinatra with an emphasis on easy setup}
9
10
  gem.description = %Q{Serious is a simple, file-driven blog engine inspired by toto and driven by sinatra with an emphasis on easy setup.}
10
- gem.email = "christoph at olszowka dot de"
11
+ gem.email = "christoph at olszowka.de"
11
12
  gem.homepage = "http://github.com/colszowka/serious"
12
13
  gem.authors = ["Christoph Olszowka"]
13
14
 
@@ -22,7 +23,7 @@ begin
22
23
  gem.add_development_dependency "shoulda", ">= 2.10.0"
23
24
  gem.add_development_dependency "hpricot", ">= 0.8.0"
24
25
  gem.add_development_dependency "rack-test", ">= 0.5.0"
25
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
26
+ gem.add_development_dependency "jeweler", ">= 1.4.0"
26
27
  end
27
28
  Jeweler::GemcutterTasks.new
28
29
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.12
1
+ 0.3.0
@@ -92,9 +92,10 @@ File.open('config.ru', 'w+') do |config|
92
92
  config.puts 'run Serious'
93
93
  end
94
94
 
95
- puts "Creating .gems file"
96
- File.open(".gems", "w+") do |gems|
97
- gems.puts "serious --version '>= #{File.read(File.join(GEM_ROOT, 'VERSION')).strip.chomp}'"
95
+ puts "Creating bundler Gemfile"
96
+ File.open("Gemfile", "w+") do |gems|
97
+ gems.puts "source :rubygems"
98
+ gems.puts 'gem "serious", ">= ' + File.read(File.join(GEM_ROOT, 'VERSION')).strip.chomp + '"'
98
99
  end
99
100
 
100
101
  puts "Creating Rakefile"
@@ -112,7 +113,7 @@ end
112
113
  if heroku?
113
114
  if git?
114
115
  puts "Creating heroku app"
115
- if system "heroku create #{DIRNAME}"
116
+ if system "heroku create #{DIRNAME} --stack bamboo-mri-1.9.1"
116
117
  puts "Pushing to heroku - in 5 seconds"
117
118
  sleep 5
118
119
  if system 'git push heroku master'
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # A couple of Ruby extensions
2
3
 
3
4
  class Date
@@ -32,4 +33,14 @@ class String
32
33
  def slugize
33
34
  self.downcase.gsub(/[^a-z0-9\-]/, '-').squeeze('-').gsub(/^\-/, '').gsub(/\-$/, '')
34
35
  end
36
+
37
+ if "1.9".respond_to?(:encoding)
38
+ def force_utf8
39
+ self.force_encoding('UTF-8')
40
+ end
41
+ else
42
+ def force_utf8
43
+ self
44
+ end
45
+ end
35
46
  end
@@ -1,11 +1,17 @@
1
1
  # encoding: utf-8
2
- Encoding.default_internal = 'utf-8' if RUBY_VERSION =~ /^1\.9/
2
+ if "1.9".respond_to?(:encoding)
3
+ Encoding.default_external = 'UTF-8'
4
+ Encoding.default_internal = 'UTF-8'
5
+ end
6
+
3
7
  require 'rubygems'
4
- gem 'sinatra', '>= 1.0.0'
8
+ require 'bundler'
9
+ Bundler.setup(:default)
5
10
  require 'sinatra/base'
6
11
  require 'stupid_formatter'
7
12
  require 'yaml'
8
13
  require 'builder'
14
+
9
15
  $:.unshift File.dirname(__FILE__)
10
16
  require 'ruby_ext'
11
17
 
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  # Swallow the actual run method from config.ru
2
4
  def run(*args)
3
5
  end
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
 
14
14
  <div id="container">
15
- <%= yield %>
15
+ <%= yield.force_utf8 %>
16
16
  </div>
17
17
 
18
18
  <div id="footer">
@@ -5,14 +5,14 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{serious}
8
- s.version = "0.2.12"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christoph Olszowka"]
12
- s.date = %q{2010-08-16}
12
+ s.date = %q{2010-08-17}
13
13
  s.default_executable = %q{serious}
14
14
  s.description = %q{Serious is a simple, file-driven blog engine inspired by toto and driven by sinatra with an emphasis on easy setup.}
15
- s.email = %q{christoph at olszowka dot de}
15
+ s.email = %q{christoph at olszowka.de}
16
16
  s.executables = ["serious"]
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE",
@@ -21,6 +21,9 @@ Gem::Specification.new do |s|
21
21
  s.files = [
22
22
  ".document",
23
23
  ".gitignore",
24
+ "CHANGELOG.rdoc",
25
+ "Gemfile",
26
+ "Gemfile.lock",
24
27
  "LICENSE",
25
28
  "README.rdoc",
26
29
  "Rakefile",
@@ -81,6 +84,7 @@ Gem::Specification.new do |s|
81
84
  s.add_development_dependency(%q<shoulda>, [">= 2.10.0"])
82
85
  s.add_development_dependency(%q<hpricot>, [">= 0.8.0"])
83
86
  s.add_development_dependency(%q<rack-test>, [">= 0.5.0"])
87
+ s.add_development_dependency(%q<jeweler>, [">= 1.4.0"])
84
88
  else
85
89
  s.add_dependency(%q<sinatra>, [">= 1.0.0"])
86
90
  s.add_dependency(%q<stupid_formatter>, [">= 0.2.0"])
@@ -88,6 +92,7 @@ Gem::Specification.new do |s|
88
92
  s.add_dependency(%q<shoulda>, [">= 2.10.0"])
89
93
  s.add_dependency(%q<hpricot>, [">= 0.8.0"])
90
94
  s.add_dependency(%q<rack-test>, [">= 0.5.0"])
95
+ s.add_dependency(%q<jeweler>, [">= 1.4.0"])
91
96
  end
92
97
  else
93
98
  s.add_dependency(%q<sinatra>, [">= 1.0.0"])
@@ -96,6 +101,7 @@ Gem::Specification.new do |s|
96
101
  s.add_dependency(%q<shoulda>, [">= 2.10.0"])
97
102
  s.add_dependency(%q<hpricot>, [">= 0.8.0"])
98
103
  s.add_dependency(%q<rack-test>, [">= 0.5.0"])
104
+ s.add_dependency(%q<jeweler>, [">= 1.4.0"])
99
105
  end
100
106
  end
101
107
 
@@ -1,6 +1,6 @@
1
- title: Merry Christmas!
1
+ title: Merry Christmas!
2
2
  author: Christoph Olszowka
3
3
 
4
- Merry christmas, dear reader!
4
+ Merry christmas, dear reader!
5
5
  ~
6
- Lorem ipsum dolor...
6
+ This ain't rails, yet it has ☃!
@@ -1,4 +1,7 @@
1
+ # encoding: utf-8
1
2
  require 'rubygems'
3
+ require 'bundler'
4
+ Bundler.setup(:default, :development)
2
5
  require 'test/unit'
3
6
  require 'shoulda'
4
7
  require 'rack/test'
@@ -37,14 +40,14 @@ class Test::Unit::TestCase
37
40
  def self.should_contain_text(text, selector)
38
41
  should "contain '#{text}' in '#{selector}'" do
39
42
  doc = Hpricot.parse(last_response.body)
40
- assert_match /#{text}/, (doc/selector).inner_html
43
+ assert_match(/#{text}/, (doc/selector).inner_html.force_utf8)
41
44
  end
42
45
  end
43
46
 
44
47
  def self.should_not_contain_text(text, selector)
45
48
  should "not contain '#{text}' in '#{selector}'" do
46
49
  doc = Hpricot.parse(last_response.body)
47
- assert_no_match /#{text}/, (doc/selector).inner_html
50
+ assert_no_match(/#{text}/, (doc/selector).inner_html.force_utf8)
48
51
  end
49
52
  end
50
53
 
@@ -74,10 +77,10 @@ class Test::Unit::TestCase
74
77
 
75
78
  if content and not block_given?
76
79
  should "have content in file #{name} match /#{content}/" do
77
- assert_match /#{content}/, File.read(name)
80
+ assert_match(/#{content}/, File.read(name))
78
81
  end
79
82
  end
80
-
83
+
81
84
  yield(File.read(name)) if block_given? and File.exist?(name)
82
85
  end
83
86
 
@@ -95,25 +98,34 @@ class Test::Unit::TestCase
95
98
 
96
99
  def self.should_contain(expect, item)
97
100
  should "contain #{expect}" do
98
- assert_match /#{expect}/, item
101
+ assert_match(/#{expect}/, item)
99
102
  end
100
103
  end
101
104
 
102
105
  def self.should_not_contain(expect, item)
103
106
  should "not contain #{expect}" do
104
- assert_no_match /#{expect}/, item
107
+ assert_no_match(/#{expect}/, item)
105
108
  end
106
109
  end
107
110
 
108
111
  def self.when_running_serious_with(site_name, arguments="", cache=true)
109
- context "when running serious #{site_name} #{arguments}" do
112
+ context("when running serious #{site_name} #{arguments}") do
110
113
  setup { assert @output = serious(site_name, arguments, cache) }
114
+ yield
111
115
  end
112
116
  end
113
117
 
114
118
  def self.should_print(expect)
115
119
  should("print #{expect}") do
116
- assert_match /#{expect}/, @output
120
+ assert_match(/#{expect}/, @output)
121
+ end
122
+ end
123
+
124
+ def self.should_have_git_commit(folder, commit_message)
125
+ should "match git log with 'Initial commit'" do
126
+ Dir.chdir(folder)
127
+ assert_match(/#{commit_message}/, `git log`)
128
+ Dir.chdir('..')
117
129
  end
118
130
  end
119
131
  end
@@ -1,5 +1,5 @@
1
1
  title: About me
2
2
 
3
- Some text about me
3
+ Some text about me and ☃
4
4
  ~
5
5
  And some more content with <%= 'erb' %>
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'helper'
2
3
 
3
4
  class TestArticle < Test::Unit::TestCase
@@ -231,8 +232,8 @@ class TestArticle < Test::Unit::TestCase
231
232
  context "after getting the article's title" do
232
233
  setup { @title = @article.title }
233
234
 
234
- should "have returned 'Merry Christmas!'" do
235
- assert_equal 'Merry Christmas!', @title
235
+ should "have returned 'Merry Christmas!'" do
236
+ assert_equal 'Merry Christmas!', @title
236
237
  end
237
238
 
238
239
  should "have initialized the @yaml instance variable to a hash" do
@@ -243,12 +244,12 @@ class TestArticle < Test::Unit::TestCase
243
244
  assert @article.instance_variable_get(:@content).kind_of?(String)
244
245
  end
245
246
 
246
- should "have summary set to 'Merry christmas, dear reader!'" do
247
- assert_equal 'Merry christmas, dear reader!', @article.summary
247
+ should "have summary set to 'Merry christmas, dear reader!'" do
248
+ assert_equal 'Merry christmas, dear reader!', @article.summary
248
249
  end
249
250
 
250
- should 'have body set to "Merry christmas, dear reader!\n\nLorem ipsum dolor..."' do
251
- assert_equal "Merry christmas, dear reader!\n\nLorem ipsum dolor...", @article.body
251
+ should 'have body set to "Merry christmas, dear reader! ☃\n\nThis ain\'t rails, yet it has ☃!"' do
252
+ assert_equal "Merry christmas, dear reader! ☃\n\nThis ain't rails, yet it has ☃!", @article.body
252
253
  end
253
254
  end
254
255
  end
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'helper'
2
3
  require 'fileutils'
3
4
 
@@ -5,7 +6,7 @@ require 'fileutils'
5
6
  # Tests for the serious executable
6
7
  #
7
8
  class TestBin < Test::Unit::TestCase
8
- context "In tmp" do
9
+ context "In tmp folder" do
9
10
  setup do
10
11
  @original_working_dir ||= Dir.getwd
11
12
  Dir.chdir(File.dirname(__FILE__))
@@ -15,7 +16,7 @@ class TestBin < Test::Unit::TestCase
15
16
 
16
17
  when_running_serious_with '' do
17
18
  should_print "Usage: serious DIRNAME"
18
- should_print "Note: Only lowercase letters and dashes ('-') are allowed for DIRNAME"
19
+ should_print "Only lowercase letters and dashes"
19
20
  end
20
21
 
21
22
  when_running_serious_with '-foo-' do
@@ -39,15 +40,10 @@ class TestBin < Test::Unit::TestCase
39
40
  should_have_dir 'foo/articles'
40
41
  should_have_dir 'foo/pages'
41
42
  should_have_dir 'foo/.git'
42
- should_have_file 'foo/.gems', 'serious --version'
43
+ should_have_file 'foo/Gemfile', 'gem "serious", "'
43
44
  should_not_have_path 'foo/public'
44
45
  should_not_have_path 'foo/views'
45
-
46
- should "match git log with 'Initial commit'" do
47
- Dir.chdir('foo')
48
- assert_match /Initial commit/, `git log`
49
- Dir.chdir('..')
50
- end
46
+ should_have_git_commit 'foo', 'Initial commit'
51
47
 
52
48
  should_have_file 'foo/pages/about.txt' do |file|
53
49
  should_contain "title: About", file
@@ -68,14 +64,14 @@ class TestBin < Test::Unit::TestCase
68
64
  end
69
65
 
70
66
  when_running_serious_with 'foo', '', false do
71
- should("respond with 'foo exists!'") { assert_match /foo exists\!/, @output }
67
+ should_print 'foo exists'
72
68
  end
73
69
  end
74
70
 
75
71
  when_running_serious_with 'public-included', '--public' do
76
72
  should_have_dir 'public-included/articles'
77
73
  should_not_have_path 'public-included/views'
78
- should_have_file 'public-included/.gems'
74
+ should_have_file 'public-included/Gemfile'
79
75
  should_have_file 'public-included/config.ru' do |file|
80
76
  should_contain "Serious.set :public, File.join(Dir.getwd, 'public')"
81
77
  should_not_contain ":views"
@@ -87,7 +83,7 @@ class TestBin < Test::Unit::TestCase
87
83
  when_running_serious_with 'views-included', '--views' do
88
84
  should_have_dir 'views-included/articles'
89
85
  should_not_have_path 'views-included/public'
90
- should_have_file 'views-included/.gems'
86
+ should_have_file 'views-included/Gemfile'
91
87
  should_have_file 'views-included/config.ru' do |file|
92
88
  should_contain "Serious.set :views, File.join(Dir.getwd, 'views')"
93
89
  should_not_contain ":public"
@@ -98,11 +94,11 @@ class TestBin < Test::Unit::TestCase
98
94
 
99
95
  when_running_serious_with 'views-and-public', '--views --public' do
100
96
  should_have_dir 'views-and-public/articles'
101
- should_have_file 'views-and-public/.gems'
97
+ should_have_file 'views-and-public/Gemfile'
102
98
  should_have_file 'views-and-public/config.ru' do |file|
103
99
  should_contain "Serious.set :root, Dir.getwd"
104
100
  should_not_contain ":public"
105
- should_not_contain ":views"
101
+ should_not_contain ":views"
106
102
  end
107
103
  should_have_file "views-and-public/public/css/serious.css"
108
104
  should_have_file "views-and-public/views/layout.erb"
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'helper'
2
3
 
3
4
  class TestPage < Test::Unit::TestCase
@@ -75,12 +76,12 @@ class TestPage < Test::Unit::TestCase
75
76
  assert @page.instance_variable_get(:@content).kind_of?(String)
76
77
  end
77
78
 
78
- should "have summary set to 'Some text about me'" do
79
- assert_equal 'Some text about me', @page.summary
79
+ should "have summary set to 'Some text about me and ☃'" do
80
+ assert_equal 'Some text about me and ☃', @page.summary
80
81
  end
81
82
 
82
- should 'have formatted body set to "<p>Some text about me</p>\n\n<p>And some more content with erb</p>\n"' do
83
- assert_equal "<p>Some text about me</p>\n\n<p>And some more content with erb</p>\n", @page.body.formatted
83
+ should 'have formatted body set to "<p>Some text about me and ☃</p>\n\n<p>And some more content with erb</p>\n"' do
84
+ assert_equal "<p>Some text about me and ☃</p>\n\n<p>And some more content with erb</p>\n", @page.body.formatted
84
85
  end
85
86
  end
86
87
  end
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'helper'
2
3
 
3
4
  #
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'helper'
2
3
 
3
4
  class TestSerious < Test::Unit::TestCase
@@ -14,11 +15,11 @@ class TestSerious < Test::Unit::TestCase
14
15
  should_contain_text "Serious Test Blog", "#header h1 a"
15
16
 
16
17
  should_contain_elements 3, "ul#articles li"
17
- should_contain_text "Merry Christmas!", "ul#articles li:first"
18
- should_contain_text "Merry christmas, dear reader!", "ul#articles li:first"
18
+ should_contain_text "Merry Christmas!", "ul#articles li:first"
19
+ should_contain_text "Merry christmas, dear reader!", "ul#articles li:first"
19
20
  should_contain_text "December 24th 2009", "ul#articles li:first .date"
20
21
 
21
- should_not_contain_text "Lorem ipsum dolor...", "ul#articles li:first"
22
+ should_not_contain_text "This ain't rails, yet it has ☃!", "ul#articles li:first"
22
23
 
23
24
  should_contain_text "Ruby is the shit!", "ul#articles"
24
25
  should_contain_text "Some kind of introduction and summary", "ul#articles li"
@@ -45,7 +46,7 @@ class TestSerious < Test::Unit::TestCase
45
46
  should_set_cache_control_to 300
46
47
  should_contain_text "Archives for 2009", "#container h2:first"
47
48
  should_contain_elements 3, "ul.archives li"
48
- should_contain_text "Merry Christmas!", "ul.archives li:first"
49
+ should_contain_text "Merry Christmas!", "ul.archives li:first"
49
50
  should_contain_text "Ruby is the shit!", "ul.archives"
50
51
  should_contain_text "Foo Bar", "ul.archives"
51
52
  end
@@ -58,7 +59,7 @@ class TestSerious < Test::Unit::TestCase
58
59
  should_contain_text "Archives for 2009-12", "#container h2:first"
59
60
  should_contain_text 'December 24th 2009', "ul.archives li"
60
61
  should_contain_elements 2, "ul.archives li"
61
- should_contain_text "Merry Christmas!", "ul.archives li:first"
62
+ should_contain_text "Merry Christmas!", "ul.archives li:first"
62
63
  should_contain_text "Ruby is the shit!", "ul.archives"
63
64
  end
64
65
 
@@ -118,7 +119,7 @@ class TestSerious < Test::Unit::TestCase
118
119
  should_set_cache_control_to 300
119
120
  should_contain_text "Archives", "#container h2:first"
120
121
  should_contain_elements 4, "ul.archives li"
121
- should_contain_text "Merry Christmas!", "ul.archives li:first"
122
+ should_contain_text "Merry Christmas!", "ul.archives li:first"
122
123
  should_contain_text "Ruby is the shit!", "ul.archives"
123
124
  should_contain_text "Foo Bar", "ul.archives"
124
125
  should_contain_text "Disco 2000", "ul.archives li:last"
@@ -133,10 +134,10 @@ class TestSerious < Test::Unit::TestCase
133
134
 
134
135
  should_respond_with 200
135
136
  should_set_cache_control_to 300
136
- should_contain_text "Merry Christmas!", "#container h2:first"
137
- should_contain_text "Merry Christmas! - Serious Test Blog", "head title"
138
- should_contain_text "Merry christmas, dear reader!", ".article .body"
139
- should_contain_text "Lorem ipsum dolor...", ".article .body"
137
+ should_contain_text "Merry Christmas!", "#container h2:first"
138
+ should_contain_text "Merry Christmas! - Serious Test Blog", "head title"
139
+ should_contain_text "Merry christmas, dear reader!", ".article .body"
140
+ should_contain_text "This ain't rails, yet it has ☃!", ".article .body"
140
141
  should_contain_elements 1, ".article span.author"
141
142
  end
142
143
 
@@ -145,7 +146,7 @@ class TestSerious < Test::Unit::TestCase
145
146
  context "GET /2009/12/24/merry-christmas/" do
146
147
  setup { get '/2009/12/24/merry-christmas/' }
147
148
  should_respond_with 200
148
- should_contain_text "Merry Christmas!", "#container h2:first"
149
+ should_contain_text "Merry Christmas!", "#container h2:first"
149
150
  end
150
151
 
151
152
  context "GET /2009/12/11/ruby-is-the-shit" do
@@ -200,7 +201,7 @@ class TestSerious < Test::Unit::TestCase
200
201
  should_respond_with 200
201
202
  should_set_cache_control_to 300
202
203
 
203
- should_contain_text "Merry Christmas!", "feed entry:first title"
204
+ should_contain_text "Merry Christmas! &#9731;", "feed entry:first title"
204
205
  should_contain_text "Christoph Olszowka", "feed entry:first author name:first"
205
206
  end
206
207
 
@@ -310,7 +311,7 @@ class TestSerious < Test::Unit::TestCase
310
311
  should_set_cache_control_to 300
311
312
 
312
313
  should_contain_text "About me", "#container .article h2"
313
- should_contain_text "Some text about me", "#container .article .body"
314
+ should_contain_text "Some text about me and ☃", "#container .article .body"
314
315
  should_contain_elements 0, ".article span.author"
315
316
  should_contain_text "And some more content with erb", "#container .article .body"
316
317
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serious
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
- - 2
9
- - 12
10
- version: 0.2.12
7
+ - 3
8
+ - 0
9
+ version: 0.3.0
11
10
  platform: ruby
12
11
  authors:
13
12
  - Christoph Olszowka
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-08-16 00:00:00 +02:00
17
+ date: 2010-08-17 00:00:00 +02:00
19
18
  default_executable: serious
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 23
30
28
  segments:
31
29
  - 1
32
30
  - 0
@@ -42,7 +40,6 @@ dependencies:
42
40
  requirements:
43
41
  - - ">="
44
42
  - !ruby/object:Gem::Version
45
- hash: 23
46
43
  segments:
47
44
  - 0
48
45
  - 2
@@ -58,7 +55,6 @@ dependencies:
58
55
  requirements:
59
56
  - - ">="
60
57
  - !ruby/object:Gem::Version
61
- hash: 15
62
58
  segments:
63
59
  - 2
64
60
  - 1
@@ -74,7 +70,6 @@ dependencies:
74
70
  requirements:
75
71
  - - ">="
76
72
  - !ruby/object:Gem::Version
77
- hash: 39
78
73
  segments:
79
74
  - 2
80
75
  - 10
@@ -90,7 +85,6 @@ dependencies:
90
85
  requirements:
91
86
  - - ">="
92
87
  - !ruby/object:Gem::Version
93
- hash: 63
94
88
  segments:
95
89
  - 0
96
90
  - 8
@@ -106,7 +100,6 @@ dependencies:
106
100
  requirements:
107
101
  - - ">="
108
102
  - !ruby/object:Gem::Version
109
- hash: 11
110
103
  segments:
111
104
  - 0
112
105
  - 5
@@ -114,8 +107,23 @@ dependencies:
114
107
  version: 0.5.0
115
108
  type: :development
116
109
  version_requirements: *id006
110
+ - !ruby/object:Gem::Dependency
111
+ name: jeweler
112
+ prerelease: false
113
+ requirement: &id007 !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ segments:
119
+ - 1
120
+ - 4
121
+ - 0
122
+ version: 1.4.0
123
+ type: :development
124
+ version_requirements: *id007
117
125
  description: Serious is a simple, file-driven blog engine inspired by toto and driven by sinatra with an emphasis on easy setup.
118
- email: christoph at olszowka dot de
126
+ email: christoph at olszowka.de
119
127
  executables:
120
128
  - serious
121
129
  extensions: []
@@ -126,6 +134,9 @@ extra_rdoc_files:
126
134
  files:
127
135
  - .document
128
136
  - .gitignore
137
+ - CHANGELOG.rdoc
138
+ - Gemfile
139
+ - Gemfile.lock
129
140
  - LICENSE
130
141
  - README.rdoc
131
142
  - Rakefile
@@ -174,7 +185,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
174
185
  requirements:
175
186
  - - ">="
176
187
  - !ruby/object:Gem::Version
177
- hash: 3
178
188
  segments:
179
189
  - 0
180
190
  version: "0"
@@ -183,7 +193,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
193
  requirements:
184
194
  - - ">="
185
195
  - !ruby/object:Gem::Version
186
- hash: 3
187
196
  segments:
188
197
  - 0
189
198
  version: "0"