blog_boi 0.0.7 → 0.1.0

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
  SHA256:
3
- metadata.gz: 6561c198dc61c19bc680c886d3be5648408f8079cd06ac7f8c431ba146cff616
4
- data.tar.gz: 5647087f160a8134cf9d107db556659b58df17fe51c5c0363c7931e83a0adbfb
3
+ metadata.gz: 31645c10388c99890a39ed3cbc1014c1737342b8a3de3852546385b596b08b2b
4
+ data.tar.gz: 8f67cc1616593ae250c446eb10543d90214b594cd6e052ee00793405aca26a36
5
5
  SHA512:
6
- metadata.gz: '08c780f253364f2e3dc2ecf0303e704d438099f4cd4eddf567a6fe793bba83c7053d026b7ffb4c5d051b639e1257fef1c5167e1a06515eeb4f23684b7c91be61'
7
- data.tar.gz: 54926c4689d644306c46862d469dbf1023f1beca9567039a387c49cd09855b57614df57f676faccb8932601f517c1d84e6e2b8c32dcb1cd7309dc4994512c13f
6
+ metadata.gz: 0b30b08d8e722878e01adbd7628ce0f8bca54227a5897e969ee19912b67879056cc740c69801ed368825a2b2453bf5842c533c31a2cde68a40abfd0e330a14a4
7
+ data.tar.gz: 060ff5ea76418a59046d97ed749b91a7e82ec40675a015df563f1e31773dade9ffe743342e26c2b97f3b49856217b025369ed6d22a78732190fac90e722ff027
data/README.md CHANGED
@@ -30,6 +30,7 @@ ActiveStorage::Engine.config
30
30
  ```bash
31
31
  $ bundle
32
32
  $ rake active_storage:install `# If hasn't been run yet`
33
+ $ rake active_storage:update # if upgrading to rails 6
33
34
  $ rails blog_boi:install:migrations `# not needed for dummy test application`
34
35
  $ rails db:migrate
35
36
  ```
@@ -38,12 +39,12 @@ Your storage.yml file should now have this code:
38
39
 
39
40
  ```
40
41
  test:
41
- service: Disk
42
- root: <%= Rails.root.join("tmp/storage") %>
42
+ service: Disk
43
+ root: <%= Rails.root.join("tmp/storage") %>
43
44
 
44
45
  local:
45
- service: Disk
46
- root: <%= Rails.root.join("storage") %>
46
+ service: Disk
47
+ root: <%= Rails.root.join("storage") %>
47
48
  ```
48
49
 
49
50
  _Note: $ rails railties:install:migrations to copy all new migrations_
@@ -70,11 +71,11 @@ See lib/blog_boi.rb for all customization options (like setting your Blog's meta
70
71
  ```
71
72
  class ApplicationController < ActionController::Base
72
73
 
73
- helper_method :admin_signed_in?
74
+ helper_method :admin_signed_in?
74
75
 
75
- def admin_signed_in?
76
- ...
77
- end
76
+ def admin_signed_in?
77
+ ...
78
+ end
78
79
 
79
80
  end
80
81
  ```
@@ -116,9 +117,7 @@ The gem is currently available as open source software under the terms of the [M
116
117
 
117
118
  ## Contributing
118
119
 
119
- This gem is currently not actively accepting contributions.
120
-
121
- With that in mind, if you'd like to make a fix / change, please create a pull request (and when I have a moment - probably in a couple weeks time - I'll have a look)!
120
+ If you'd like to make a fix / change, please create a pull request; when I have a moment, I'll have a look!
122
121
 
123
122
  ## Updating gem version (for maintainers)
124
123
 
@@ -140,4 +139,4 @@ In `lib/blog_boi/version.rb` update version.
140
139
  `git commit -m "Msg"`
141
140
  `git push`
142
141
  `git tag -a vX.X.X -m "Msg"`
143
- `git push --tags`
142
+ `git push --tags`
@@ -2,12 +2,5 @@
2
2
  // All this logic will automatically be available in application.js.
3
3
 
4
4
  $(function() {
5
- adjustMainPadding();
6
5
  });
7
6
 
8
- function adjustMainPadding() {
9
- var footerHeight = +$('footer.blog-boi-blog').css('height').slice(0,-2);
10
- footerHeight += 10;
11
-
12
- $('main.blog-boi').css('padding-bottom', footerHeight + 'px');
13
- }
@@ -1,7 +1,5 @@
1
1
  footer.blog-boi-blog {
2
2
 
3
- position: fixed;
4
- bottom: 0;
5
3
  width: 100%;
6
4
 
7
- }
5
+ }
@@ -27,6 +27,10 @@ h1, h2, h3, h4, h5, h6 {
27
27
  font-size: 16px !important;
28
28
  }
29
29
 
30
+ .badge {
31
+ text-decoration: none;
32
+ }
33
+
30
34
  @media (max-width: 768px) {
31
35
 
32
36
  .border-top-sm-only {
@@ -15,12 +15,8 @@
15
15
 
16
16
  <ul class="list-inline mb-0">
17
17
 
18
- <li class="list-inline-item">
19
- <%= article.author.name %>
20
- </li>
21
-
22
- <li class="list-inline-item">
23
- <%= article.updated_at.strftime("%B %e, %Y") %>
18
+ <li class="list-inline-item text-muted">
19
+ by <%= article.author.name %> on <%= article.updated_at.strftime("%B %e, %Y") %>
24
20
  </li>
25
21
 
26
22
  </ul>
@@ -38,4 +34,4 @@
38
34
 
39
35
  <% end %>
40
36
 
41
- </div>
37
+ </div>
@@ -9,7 +9,7 @@
9
9
  <% if is_admin? %>
10
10
 
11
11
  <div class="col-12 mt-4">
12
- <%= link_to 'New Article', new_article_path, class: 'btn-primary rounded' %>
12
+ <%= link_to 'New Article', new_article_path, class: 'btn btn-primary rounded' %>
13
13
  </div>
14
14
 
15
15
  <% end %>
@@ -22,11 +22,11 @@
22
22
 
23
23
  </div>
24
24
 
25
- <div class="container mt-md-125-sm-50">
25
+ <div class="container <%= @article.image.attached? ? 'mt-md-125-sm-50' : '' %>">
26
26
 
27
27
  <div class="row">
28
28
 
29
- <div class="col-12 col-md-10 col-lg-7 mx-auto text-center mt-4">
29
+ <div class="col-12 col-md-10 col-lg-7 mx-auto text-center mt-5">
30
30
 
31
31
  <div>
32
32
  <%= render partial: 'category', collection: @article.categories %>
@@ -37,8 +37,8 @@
37
37
  </h1>
38
38
 
39
39
  <div class="mt-3 text-muted">
40
- <%= @article.author.name %>,
41
- <%= @article.updated_at.strftime("%B %e, %Y") %>
40
+ by <%= @article.author.name %>
41
+ on <%= @article.updated_at.strftime("%B %e, %Y") %>
42
42
  </div>
43
43
 
44
44
  <%= render 'article_body' %>
@@ -1,21 +1,17 @@
1
- <footer class="blog-boi-blog">
1
+ <footer class="blog-boi-blog pt-5">
2
2
 
3
- <div class="bg-dark text-white">
3
+ <div class="container">
4
4
 
5
- <div class="container">
5
+ <div class="row">
6
+
7
+ <div class="col-12 py-3 text-center text-muted">
8
+
9
+ <div>© <%= company_name %> <%= Time.current.year %></div>
6
10
 
7
- <div class="row">
8
-
9
- <div class="col-12 py-3 text-center">
10
-
11
- <div>© <%= company_name %> <%= Time.current.year %></div>
11
+ </div>
12
12
 
13
- </div>
13
+ </div>
14
14
 
15
- </div>
16
-
17
- </div>
18
-
19
- </div>
15
+ </div>
20
16
 
21
17
  </footer>
@@ -6,7 +6,6 @@ module BlogBoi
6
6
  require 'jquery-rails'
7
7
  require 'rails-ujs'
8
8
 
9
-
10
9
  initializer "blog_boi.assets.precompile" do |app|
11
10
  app.config.assets.precompile += %w( bootstrap_customizer.scss blog_boi/logo.png blog_boi/star.svg )
12
11
  end
@@ -1,3 +1,3 @@
1
1
  module BlogBoi
2
- VERSION = '0.0.7'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blog_boi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Reese
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2020-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 2.1.0
20
17
  - - "~>"
21
18
  - !ruby/object:Gem::Version
22
19
  version: '2.1'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.1.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 2.1.0
30
27
  - - "~>"
31
28
  - !ruby/object:Gem::Version
32
29
  version: '2.1'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 2.1.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rails
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 6.0.0
40
37
  - - "~>"
41
38
  - !ruby/object:Gem::Version
42
39
  version: '6.0'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 6.0.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 6.0.0
50
47
  - - "~>"
51
48
  - !ruby/object:Gem::Version
52
49
  version: '6.0'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 6.0.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: bootstrap
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '4.3'
59
+ version: 5.0.0.alpha1
60
60
  type: :runtime
61
61
  prerelease: false
62
62
  version_requirements: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
- version: '4.3'
66
+ version: 5.0.0.alpha1
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: jquery-rails
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -180,7 +180,7 @@ licenses:
180
180
  - MIT
181
181
  metadata:
182
182
  source_code_uri: https://github.com/charliereese/blog_boi
183
- post_install_message:
183
+ post_install_message:
184
184
  rdoc_options: []
185
185
  require_paths:
186
186
  - lib
@@ -195,9 +195,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  - !ruby/object:Gem::Version
196
196
  version: '0'
197
197
  requirements: []
198
- rubyforge_project:
199
- rubygems_version: 2.7.10
200
- signing_key:
198
+ rubygems_version: 3.1.4
199
+ signing_key:
201
200
  specification_version: 4
202
201
  summary: BlogBoi is a rails engine for adding blogging functionality to your rails
203
202
  project.