grindstone 0.0.2 → 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
  SHA1:
3
- metadata.gz: ac486612cf1e25f2da7d0c6c43984ef454b62794
4
- data.tar.gz: 9c1d638657fc28fcd9c731af8011028dd2f06a6c
3
+ metadata.gz: 37da59d0db746552d8de4ae466154b139df5cb72
4
+ data.tar.gz: aba78c9251b15a6f5d10a3005543bf245b9214b0
5
5
  SHA512:
6
- metadata.gz: 140e9e674e141bdc485d02818242e47a7171da1ce054d5ddac3c28b4ae718b4f8d97a45109a630d19abb306dcc091da4c0535fee0b3b052966510b2236ab908e
7
- data.tar.gz: b1bc63fbd57321cca44134e93b6bcdc80872db07f9aefa3ba5cbfa8cf6337798526c217df5d088eb48c9095fee354b7c76475e3774ceabcf2097c435ca64c189
6
+ metadata.gz: 3d8e3248be1661a742d59fa32fda8bf91cb6fd2d0b07df4acda2cb3f4214934c3034c8cb936ab6e98d232397613ebd4f2c44363f93c6b2d452a86ebf47e237fb
7
+ data.tar.gz: 5e5d2b8b4176bd61e1ee11a7ff748da9a4582449453039e2e46351fe848e7bde9f5cf0692a511297967ff330e95278675fbeea0e50316c1335f19a7da08561fb
@@ -0,0 +1,23 @@
1
+ /*
2
+ *= require_tree .
3
+ *= require_self
4
+ */
5
+
6
+ * {
7
+ margin:0;
8
+ padding:0;
9
+ outline:none;
10
+ border:none;
11
+ box-sizing:border-box;
12
+ }
13
+
14
+ html {
15
+ height:100%;
16
+ width:100%;
17
+ }
18
+
19
+ body {
20
+ margin:0 auto;
21
+ padding-bottom:20px;
22
+ width:800px;
23
+ }
@@ -0,0 +1,4 @@
1
+ @mixin dim($w, $h) {
2
+ width:$w;
3
+ height:$h;
4
+ }
@@ -0,0 +1,17 @@
1
+ @import 'mixins';
2
+
3
+ .grindstone-container {
4
+ @include dim(100%, 100%);
5
+ }
6
+
7
+ .grindstone-header {
8
+ padding:30px 0;
9
+ }
10
+
11
+ .grindstone-post {
12
+ margin-bottom:25px;
13
+ }
14
+
15
+ .grindstone-footer {
16
+ padding-bottom:20px;
17
+ }
@@ -1,5 +1,6 @@
1
1
  class Grindstone::PostsController < ApplicationController
2
2
  before_action :set_post, only: [:show]
3
+ layout 'grindstone/posts'
3
4
 
4
5
  POST = Grindstone::Post
5
6
 
@@ -1,23 +1,24 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <%= render "grindstone/posts/partials/head" %>
5
- </head>
6
- <body>
7
- <div class="site-container row">
8
- <h1><%= Grindstone.config.blog_title %></h1>
9
- <h4><%= Grindstone.config.blog_description %></h4>
10
- <% @posts.each do |post| %>
1
+ <div class="grindstone-container">
2
+ <div class="grindstone-header">
3
+ <h1><%= Grindstone.config.blog_title %></h1>
4
+ <h4><%= Grindstone.config.blog_description %></h4>
5
+ </div>
6
+
7
+ <div class="grindstone-posts">
8
+ <% @posts.each do |post| %>
9
+ <div class="grindstone-post">
11
10
  <h2><%= post.title %></h2>
12
11
  <h3><%= post.grindstone_author.name %></h3>
13
12
  <i><%= post.created_at %></i>
14
13
  <div><%= post.body %></div>
15
14
  <%= link_to 'Show', post %>
16
- <% end %>
15
+ </div>
16
+ <% end %>
17
+ </div>
17
18
 
18
- <%= will_paginate @posts, :page_links => false %>
19
+ <%= will_paginate @posts, :page_links => false %>
19
20
 
20
- <footer><%= Grindstone.config.blog_footer %></footer>
21
- </div>
22
- </body>
23
- </html>
21
+ <footer class="grindstone-footer">
22
+ <%= Grindstone.config.blog_footer %>
23
+ </footer>
24
+ </div>
@@ -1,19 +1,19 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <%= render "grindstone/posts/partials/head" %>
5
- </head>
6
- <body>
7
- <div class="site-container row">
8
- <h1><%= Grindstone.config.blog_title %></h1>
9
- <h2><%= @post.title %></h2>
10
- <h3><%= @post.grindstone_author.name %></h3>
11
- <i><%= @post.created_at %></i>
12
- <div><%= @post.body %></div>
13
- <!-- <%= render "grindstone/posts/partials/comments" %> -->
14
- <%= link_to 'Back', posts_path %>
1
+ <div class="grindstone-container">
2
+ <div class="grindstone-header">
3
+ <h1><%= Grindstone.config.blog_title %></h1>
15
4
 
16
- <footer><%= Grindstone.config.blog_footer %></footer>
17
- </div>
18
- </body>
19
- </html>
5
+ </div>
6
+
7
+ <div class="grinstone-post">
8
+ <h2><%= @post.title %></h2>
9
+ <h3><%= @post.grindstone_author.name %></h3>
10
+ <i><%= @post.created_at %></i>
11
+ <div><%= @post.body %></div>
12
+ <!-- <%= render "grindstone/posts/partials/comments" %> -->
13
+ <%= link_to 'Back', posts_path %>
14
+ </div>
15
+
16
+ <footer class="grindstone-footer">
17
+ <%= Grindstone.config.blog_footer %>
18
+ </footer>
19
+ </div>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+
5
+ <!-- Meta -->
6
+ <meta charset="utf-8">
7
+ <meta name="keywords" content="blog" />
8
+ <meta name="description" content="Blog">
9
+
10
+ <title><%= Grindstone.config.blog_title %></title>
11
+
12
+ <!-- Mobile Metas -->
13
+ <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />
14
+
15
+ <!-- Favicon -->
16
+ <link rel="shortcut icon" href="">
17
+
18
+ <!-- Styles -->
19
+ <link rel="stylesheet" type="text/css"
20
+ href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.min.css">
21
+ <%= stylesheet_link_tag 'grindstone/application' %>
22
+ <%= stylesheet_link_tag 'application' %>
23
+ </head>
24
+ <body><%= yield %></body>
25
+ </html>
@@ -1,3 +1,3 @@
1
1
  module Grindstone
2
- VERSION = '0.0.2'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grindstone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jgrosecl49
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-01 00:00:00.000000000 Z
11
+ date: 2015-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -77,17 +77,17 @@ files:
77
77
  - Rakefile
78
78
  - app/assets/javascripts/grindstone/application.js
79
79
  - app/assets/javascripts/grindstone/posts.js
80
- - app/controllers/grindstone/application_controller.rb
80
+ - app/assets/stylesheets/grindstone/application.css
81
+ - app/assets/stylesheets/grindstone/mixins.scss
82
+ - app/assets/stylesheets/grindstone/posts.scss
81
83
  - app/controllers/grindstone/posts_controller.rb
82
- - app/helpers/grindstone/application_helper.rb
83
84
  - app/models/grindstone/author.rb
84
85
  - app/models/grindstone/comment.rb
85
86
  - app/models/grindstone/post.rb
86
87
  - app/views/grindstone/posts/index.html.erb
87
88
  - app/views/grindstone/posts/partials/_comments.html.erb
88
- - app/views/grindstone/posts/partials/_head.html.erb
89
89
  - app/views/grindstone/posts/show.html.erb
90
- - app/views/layouts/grindstone/application.html.erb
90
+ - app/views/layouts/grindstone/posts.html.erb
91
91
  - config/initializers/rails_admin.rb
92
92
  - config/initializers/will_paginate.rb
93
93
  - config/routes.rb
@@ -100,7 +100,6 @@ files:
100
100
  - lib/grindstone.rb
101
101
  - lib/grindstone/engine.rb
102
102
  - lib/grindstone/version.rb
103
- - lib/tasks/grindstone_tasks.rake
104
103
  - test/dummy/README.rdoc
105
104
  - test/dummy/Rakefile
106
105
  - test/dummy/app/assets/javascripts/application.js
@@ -1,4 +0,0 @@
1
- module Grindstone
2
- class ApplicationController < ActionController::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Grindstone
2
- module ApplicationHelper
3
- end
4
- end
@@ -1,16 +0,0 @@
1
- <!-- Meta -->
2
- <meta charset="utf-8">
3
- <meta name="keywords" content="blog" />
4
- <meta name="description" content="Blog">
5
-
6
- <title><%= Grindstone.config.blog_title %></title>
7
-
8
- <!-- Mobile Metas -->
9
- <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />
10
-
11
- <!-- Favicon -->
12
- <link rel="shortcut icon" href="">
13
-
14
- <!-- Styles -->
15
- <link rel="stylesheet" type="text/css"
16
- href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.min.css">
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Grindstone</title>
5
- <%= stylesheet_link_tag "grindstone/application", media: "all" %>
6
- <%= javascript_include_tag "grindstone/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,31 +0,0 @@
1
- require 'fileutils'
2
-
3
- namespace :grindstone do
4
- desc "Create Grindstone migrations"
5
- task :create_migrations do
6
-
7
- # Get the Grindstone dir
8
- spec = Gem::Specification.find_by_name 'grindstone'
9
-
10
- # Set the destination
11
- dest_dir = "#{Rails.root}/db/migrate"
12
-
13
- unless File.directory?(dest_dir)
14
- FileUtils.mkdir_p(dest_dir)
15
- end
16
-
17
- # Read the source
18
- Dir.glob("#{spec.gem_dir}/db/migrate/*.rb").each do |migration|
19
- filename = migration.split('/').last
20
- filepath = "#{dest_dir}/#{filename}"
21
-
22
- puts migration, filepath
23
-
24
- # Copy the file
25
- File.open(filepath, 'w')
26
- FileUtils::cp migration, filepath, :verbose => true
27
- end
28
-
29
- puts 'Grindstone: Copied Migrations'
30
- end
31
- end