fuel 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/fuel/posts_helper.rb +1 -1
- data/app/models/fuel/post.rb +1 -1
- data/lib/fuel/version.rb +1 -1
- data/lib/tasks/fuel_tasks.rake +25 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a88c47142564ddeaef41ebe652127f044eeb111
|
4
|
+
data.tar.gz: 9717e22425b1bfdc0bce7a773dd951de060b6158
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ebafc046ff55c096fbe144c34b6d86634ebd70f6e9021635cf40f9ac72ec544b4843e75224711641daca30576c946eb75a59ad797449c6ec42655626089e8a6
|
7
|
+
data.tar.gz: 3cc71f8ccce908d42cff3c2d60928eb5542c87c9cfd69a9afd280f14859d3d901a839bba6c73674200fb5448e2d2a68998514dee45991b931ae528163e6e6a76
|
@@ -31,7 +31,7 @@ module Fuel
|
|
31
31
|
|
32
32
|
def s3_direct_post
|
33
33
|
@s3_direct_post ||= (
|
34
|
-
return unless s3_bucket
|
34
|
+
return unless s3_bucket
|
35
35
|
s3_bucket.presigned_post(key: "uploads/#{SecureRandom.uuid}/${filename}", success_action_status: 201, acl: :public_read)
|
36
36
|
)
|
37
37
|
end
|
data/app/models/fuel/post.rb
CHANGED
@@ -8,7 +8,7 @@ module Fuel
|
|
8
8
|
belongs_to :author
|
9
9
|
|
10
10
|
if Rails.version[0].to_i < 4
|
11
|
-
attr_accessible :tag, :author_id, :content, :title, :teaser, :featured_image, :seo_title, :seo_description, :published_at, :format
|
11
|
+
attr_accessible :tag, :author_id, :content, :title, :teaser, :featured_image, :seo_title, :seo_description, :published, :published_at, :format
|
12
12
|
end
|
13
13
|
|
14
14
|
if Fuel.configuration.aws_bucket
|
data/lib/fuel/version.rb
CHANGED
data/lib/tasks/fuel_tasks.rake
CHANGED
@@ -32,4 +32,28 @@ namespace :fuel do
|
|
32
32
|
post.save
|
33
33
|
end
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
|
+
task :seed => :environment do
|
37
|
+
author = Fuel::Author.create(
|
38
|
+
first_name: "John",
|
39
|
+
last_name: "Doe",
|
40
|
+
title: "Developer",
|
41
|
+
bio: "Lorem ipsum dolor sit amet, consectetur adipiscing 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.",
|
42
|
+
start_date: Date.today
|
43
|
+
)
|
44
|
+
|
45
|
+
post = Fuel::Post.create(
|
46
|
+
tag: nil,
|
47
|
+
author_id: author.id,
|
48
|
+
content: "<h1>My first post</h1>",
|
49
|
+
title: "My First Post",
|
50
|
+
teaser: "A little teaser to entice people to look at my post",
|
51
|
+
published: true,
|
52
|
+
published_at: Date.today,
|
53
|
+
featured_image: nil,
|
54
|
+
seo_title: nil,
|
55
|
+
seo_description: nil,
|
56
|
+
format: "html"
|
57
|
+
)
|
58
|
+
end
|
59
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fuel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Francis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|