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 +4 -4
- data/app/assets/stylesheets/grindstone/application.css +23 -0
- data/app/assets/stylesheets/grindstone/mixins.scss +4 -0
- data/app/assets/stylesheets/grindstone/posts.scss +17 -0
- data/app/controllers/grindstone/posts_controller.rb +1 -0
- data/app/views/grindstone/posts/index.html.erb +17 -16
- data/app/views/grindstone/posts/show.html.erb +18 -18
- data/app/views/layouts/grindstone/posts.html.erb +25 -0
- data/lib/grindstone/version.rb +1 -1
- metadata +6 -7
- data/app/controllers/grindstone/application_controller.rb +0 -4
- data/app/helpers/grindstone/application_helper.rb +0 -4
- data/app/views/grindstone/posts/partials/_head.html.erb +0 -16
- data/app/views/layouts/grindstone/application.html.erb +0 -14
- data/lib/tasks/grindstone_tasks.rake +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37da59d0db746552d8de4ae466154b139df5cb72
|
4
|
+
data.tar.gz: aba78c9251b15a6f5d10a3005543bf245b9214b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
}
|
@@ -1,23 +1,24 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
</
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<
|
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
|
-
|
15
|
+
</div>
|
16
|
+
<% end %>
|
17
|
+
</div>
|
17
18
|
|
18
|
-
|
19
|
+
<%= will_paginate @posts, :page_links => false %>
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
</
|
23
|
-
</
|
21
|
+
<footer class="grindstone-footer">
|
22
|
+
<%= Grindstone.config.blog_footer %>
|
23
|
+
</footer>
|
24
|
+
</div>
|
@@ -1,19 +1,19 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
|
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
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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>
|
data/lib/grindstone/version.rb
CHANGED
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
|
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-
|
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/
|
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/
|
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,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
|