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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df3382d4b6ed50c2ccf06a70bdb2abac8ac62fc3
4
- data.tar.gz: c14181c160bec886368b3d510c5fc1e24a6ea54d
3
+ metadata.gz: 8a88c47142564ddeaef41ebe652127f044eeb111
4
+ data.tar.gz: 9717e22425b1bfdc0bce7a773dd951de060b6158
5
5
  SHA512:
6
- metadata.gz: 0e502cd22affd21e80eebbbab6c30b1a31ab5dc55903eaae04f90e6fc14b7723a130ebf1642b5ed2adb31a2979f70a76e94652b312fa6ebe2726aa0151df93ab
7
- data.tar.gz: bbe895478913a07c50dc9bf40ca774e79dc1f0afc420721d11a8b5c0a23846c05285e0d60fb00b9bd0643e85e8a5725bcc7e91dc395b006ec2b95a372cea9d9e
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.present?
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Fuel
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -32,4 +32,28 @@ namespace :fuel do
32
32
  post.save
33
33
  end
34
34
  end
35
- end
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.2
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-10-30 00:00:00.000000000 Z
11
+ date: 2015-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails