Skip to content

Commit d7e346e

Browse files
committed
Removing the blog, since we're on Tumblr now.
There's no reason to keep this around, so let's get rid of it.
1 parent 34b18ae commit d7e346e

15 files changed

Lines changed: 27 additions & 442 deletions

File tree

Rakefile

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#this file sets up all of our rake tasks
22

33
require 'rubygems'
4+
require 'bundler'
5+
Bundler.setup
6+
47
require 'spec/rake/spectask'
58
require 'cucumber/rake/task'
69

@@ -57,32 +60,6 @@ namespace :db do
5760
:password_confirmation => "password",
5861
:about => "I'm just a regular person!"
5962
})
60-
#make an initial Post, with a comment
61-
require 'models/post'
62-
require 'models/comment'
63-
post = Post.create({
64-
:title => "Welcome to the Hackety Site!",
65-
:body => "This is an intial post, so that you can see how everything looks. Here's a [link](http://github.com/hacketyhack/hackety-hack.com) to the source code on GitHub. Now I'm just going to do the usual stuff:
66-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
67-
68-
And a blockquote:
69-
70-
> Lorem ipsum dolor sit amet, consectetur adipiscicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
71-
72-
Esse insolens mnesarchum eam id, nec ad detracto disputando. Nec malorum postulant disputationi ad. Pri menandri inimicus ut. Pro velit affert mediocritatem at, eu nec voluptua inciderint, ne mei diam praesent. No eum tamquam appetere, ex eos habemus evertitur consequat, quo et wisi tincidunt consectetuer. Vocent lobortis est cu."
73-
})
74-
75-
post.comments << Comment.new({
76-
:body => "This post is awesome! I've never seen such insightful commentary!",
77-
:author => "somebody",
78-
:author_email => "somebody@example.com"
79-
})
80-
post.comments << Comment.new({
81-
:body => "Oh, and I almost forgot! I wanted to say something really long, so that we could see how a long comment looks, but I was in such a hurry to compliment your excellent writing that I could barely contain myself! Luckily, this time I'm much more verbose, and so it should fulfill the objective. Great!",
82-
:author => "somebody",
83-
:author_email => "somebody@example.com"
84-
})
85-
post.save
8663

8764
#now let's make a discussion on the forum:
8865
require 'models/discussion'

controllers/posts.rb

Lines changed: 0 additions & 123 deletions
This file was deleted.

factories/post.rb

Lines changed: 0 additions & 10 deletions
This file was deleted.

features/blog.feature

Lines changed: 0 additions & 77 deletions
This file was deleted.

features/step_definitions/blog.rb

Lines changed: 0 additions & 9 deletions
This file was deleted.

features/support/paths.rb

Lines changed: 24 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -12,50 +12,30 @@ def path_to(page_name)
1212

1313
when /the home\s?page/
1414
'/'
15-
16-
when /the blog page/
17-
'/blog'
18-
19-
when /the new post\s? page/
20-
'/posts/new'
21-
22-
when /the posts page/
23-
'/posts'
24-
25-
when /the edit post page for the post with the title "(.*)"/
26-
post = Post.first(:title => $1)
27-
"/posts/#{post.slug}/edit"
28-
29-
when /the post page for the post with the title "(.*)"/
30-
post = Post.first(:title => $1)
31-
"/posts/#{post.slug}"
32-
when /a blog post page/
33-
post = Post.first
34-
"/posts/#{post.slug}"
35-
when /the new hacker page/
36-
"/signup"
37-
when /the main page/
38-
"/"
39-
when /the hacker page for "(.*)"/
40-
"/hackers/#{$1}"
41-
when /my messages page/
42-
"/messages"
43-
when /the new program page/
44-
"/programs/new"
45-
when /the "(.*)" program page/
46-
"/programs/#{$1}"
47-
when /the forums/
48-
"/forums"
49-
when /the forum "(.*)"/
50-
"/forums/#{$1}"
51-
when /the discussion "(.*)" in "(.*)"/
52-
"/forums/#{$2}/#{$1}"
53-
when /the discussion/
54-
"/forums/#{@discussion.forum}/#{@discussion.slug}"
55-
when /the help page/
56-
"/help"
57-
when /the github page/
58-
"/hacketyhack/hacketyhack/"
15+
when /the new hacker page/
16+
"/signup"
17+
when /the main page/
18+
"/"
19+
when /the hacker page for "(.*)"/
20+
"/hackers/#{$1}"
21+
when /my messages page/
22+
"/messages"
23+
when /the new program page/
24+
"/programs/new"
25+
when /the "(.*)" program page/
26+
"/programs/#{$1}"
27+
when /the forums/
28+
"/forums"
29+
when /the forum "(.*)"/
30+
"/forums/#{$1}"
31+
when /the discussion "(.*)" in "(.*)"/
32+
"/forums/#{$2}/#{$1}"
33+
when /the discussion/
34+
"/forums/#{@discussion.forum}/#{@discussion.slug}"
35+
when /the help page/
36+
"/help"
37+
when /the github page/
38+
"/hacketyhack/hacketyhack/"
5939

6040
# Add more mappings here.
6141
# Here is an example that pulls values out of the Regexp:

models/comment.rb

Lines changed: 0 additions & 12 deletions
This file was deleted.

models/post.rb

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)