Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removing lorem ipsum functionality

  • Loading branch information...
commit fc4ab660754621caa5531ca2e9a00ddc2d454143 1 parent 0695443
Brandur authored November 10, 2012

Showing 2 changed files with 0 additions and 23 deletions. Show diff stats Hide diff stats

  1. 22  Rakefile
  2. 1  lib/hekla.rb
22  Rakefile
@@ -8,25 +8,3 @@ Rake::TestTask.new do |t|
8 8
   t.test_files = FileList['test/**/*_test.rb']
9 9
   t.verbose = true
10 10
 end
11  
-
12  
-task :environment do
13  
-  require_relative "./lib/hekla"
14  
-  DB = Sequel.connect(Hekla::Config.database_url)
15  
-end
16  
-
17  
-task :lorem => :environment do
18  
-  create_lorem_ipsum_article title: "Lorem ipsum dolor sit amet",                     slug: "lorem"
19  
-  create_lorem_ipsum_article title: "Consectetur adipisicing elit",                   slug: "consectetur"
20  
-  create_lorem_ipsum_article title: "Ea maxime temporibus itaque tempora",            slug: "ea"
21  
-  create_lorem_ipsum_article title: "Iure saepe modi mollitia nostrum",               slug: "iure"
22  
-  create_lorem_ipsum_article title: "Incididunt deleniti et molestiae exercitation ", slug: "incididunt"
23  
-end
24  
-
25  
-def create_lorem_ipsum_article(attributes = {})
26  
-  content = Hekla::LoremIpsum.run
27  
-  attributes = 
28  
-    { summary: content[0..160],
29  
-      content: content,
30  
-      published_at: Time.now }.merge!(attributes)
31  
-  Article.create(attributes)
32  
-end
1  lib/hekla.rb
@@ -2,7 +2,6 @@
2 2
 
3 3
 require_relative "hekla/config"
4 4
 require_relative "hekla/helpers"
5  
-require_relative "hekla/lorem_ipsum"
6 5
 
7 6
 require_relative "hekla/models/article"
8 7
 

0 notes on commit fc4ab66

Please sign in to comment.
Something went wrong with that request. Please try again.