fuel 0.4.6 → 0.4.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 550537aee92dc404e849e0af77228bac1217d1d0
4
- data.tar.gz: 26e681b8cb84314f4dc6177622d579eb03c087f5
3
+ metadata.gz: c7545fba07220df30e3b6fedd3de834657b4093c
4
+ data.tar.gz: 0e5743701b8d6e03daa4e18e2a7ca30e53a4d717
5
5
  SHA512:
6
- metadata.gz: 4a4e668c77d83134c9d6379ce09de3fd4616d11e1a8715036c0a6cc03aa954bcba7b7571e2b7748b9f93f360a68d571253d7a1f79f0b8c1ca493ada10409c74b
7
- data.tar.gz: 3e545344a063616bb603777a41cd251a7b900b8a479b90b9ee4bd6986e7887f53c3d4c540c0fa2d53f31a8e479e7223eb2d12cc9bc6f9c891612319ee603e60b
6
+ metadata.gz: 781f1915829fb0f812b4092ed8378794d0abe969c8a0429290f7c9dd518da19af303f7b684db5922fc30bb1f3c6a76d8169eb42d3440e016d79604fd8ed68254
7
+ data.tar.gz: 763e27c03887db1e68a0f33ff70e1d0bd0e63cd52eaa8b0ea5c2f38e0c0964c2b2c0595256d0ec001ed16ef93885113be0365b0e4ddf9fde1b4043496e74f60d
@@ -19,7 +19,7 @@ fieldset {
19
19
 
20
20
  // Inputs
21
21
  #{$all-text-inputs},
22
- input,
22
+ input[type="text"],
23
23
  input[type="file"],
24
24
  select,
25
25
  textarea{
@@ -109,4 +109,4 @@ a.delete-post {
109
109
  @include rem(padding, 5px 10px);
110
110
  color: $white-base;
111
111
  display: none;
112
- }
112
+ }
@@ -68,7 +68,7 @@ module Fuel
68
68
  end
69
69
 
70
70
  def author_params
71
- params.require(:fuel_author).permit(:first_name, :last_name, :title, :bio, :avatar, :email, :twitter, :github, :dribbble, :start_date)
71
+ params.require(:fuel_author).permit(Fuel::Author::KEYS)
72
72
  end
73
73
 
74
74
  def find_author
@@ -2,9 +2,12 @@ module Fuel
2
2
  class Author < ActiveRecord::Base
3
3
 
4
4
  has_many :posts
5
+ KEYS = [:first_name, :last_name, :title, :bio, :avatar,
6
+ :email, :twitter, :github, :dribbble, :instagram,
7
+ :medium, :personal_site, :linkedin, :start_date, :is_active].freeze
5
8
 
6
9
  if Rails.version[0].to_i < 4
7
- attr_accessible :first_name, :last_name, :title, :bio, :avatar, :email, :twitter, :github, :dribbble, :start_date
10
+ attr_accessible(*KEYS)
8
11
  end
9
12
 
10
13
  def full_name
@@ -52,6 +52,30 @@
52
52
  <%= f.text_field :dribbble, placeholder: "ryan_p_francis" %>
53
53
  </div>
54
54
  </fieldset>
55
+ <fieldset>
56
+ <div class="form-group-half">
57
+ <%= f.label :instagram %>
58
+ <%= f.text_field :instagram, placeholder: "francirp" %>
59
+ </div>
60
+ <div class="form-group-half">
61
+ <%= f.label :medium %>
62
+ <%= f.text_field :medium, placeholder: "ryan_p_francis" %>
63
+ </div>
64
+ </fieldset>
65
+ <fieldset>
66
+ <div class="form-group-half">
67
+ <%= f.label :personal_site %>
68
+ <%= f.text_field :personal_site, placeholder: "http://mypersonalsite.com" %>
69
+ </div>
70
+ <div class="form-group-half">
71
+ <%= f.label :linkedin %>
72
+ <%= f.text_field :linkedin, placeholder: "ryanpfrancis" %>
73
+ </div>
74
+ </fieldset>
75
+ <fieldset>
76
+ <%= f.label :is_active, "Active?" %>
77
+ <%= f.check_box :is_active %>
78
+ </fieldset>
55
79
  <fieldset class="fieldset">
56
80
  <%= f.submit class: 'button button--secondary' %>
57
81
  <% if @author.id %>
@@ -66,4 +90,4 @@
66
90
  </div>
67
91
  <%= f.file_field :avatar %>
68
92
  </div>
69
- <% end %>
93
+ <% end %>
@@ -0,0 +1,5 @@
1
+ class AddActiveStatusToFuelAuthor < ActiveRecord::Migration
2
+ def change
3
+ add_column :fuel_authors, :is_active, :boolean, default: true
4
+ end
5
+ end
@@ -0,0 +1,8 @@
1
+ class AddSocialMediaToAuthors < ActiveRecord::Migration
2
+ def change
3
+ add_column :fuel_authors, :instagram, :string
4
+ add_column :fuel_authors, :medium, :string
5
+ add_column :fuel_authors, :personal_site, :string
6
+ add_column :fuel_authors, :linkedin, :string
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module Fuel
2
- VERSION = "0.4.6"
2
+ VERSION = "0.4.7"
3
3
  end
@@ -9,7 +9,7 @@ module Fuel
9
9
  source_root File.expand_path('../../../../app/views', __FILE__)
10
10
 
11
11
  def copy_views
12
- directory 'fuel', 'app/views/fuel/posts'
12
+ directory 'fuel', 'app/views/fuel'
13
13
  end
14
14
 
15
15
  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.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Francis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-01 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -548,6 +548,8 @@ files:
548
548
  - db/migrate/20150604161900_remove_posted_at_from_fuel_posts.rb
549
549
  - db/migrate/20150608221309_add_start_date_to_authors.rb
550
550
  - db/migrate/20151014140731_add_format_to_fuel_posts.rb
551
+ - db/migrate/20160504154659_add_active_status_to_fuel_author.rb
552
+ - db/migrate/20160506145827_add_social_media_to_authors.rb
551
553
  - lib/blog_importer.rb
552
554
  - lib/example_author.rb
553
555
  - lib/fuel.rb
@@ -645,7 +647,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
645
647
  version: '0'
646
648
  requirements: []
647
649
  rubyforge_project:
648
- rubygems_version: 2.4.8
650
+ rubygems_version: 2.5.1
649
651
  signing_key:
650
652
  specification_version: 4
651
653
  summary: Fuel is a dead simple blogging gem (mountable engine)