blogue 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/blogue/version.rb +1 -1
- data/test/dummy/log/test.log +52 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/2b-2n2LHKAwFgLnOsf2eX1SreLZTuO3bnwmiI9Gdp4c.cache +5 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/kJvgKxhCRnWFq1aDIZPJZZZdUHmaw3cPnT3VXOJPxM0.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/rxgJN-iV8lJP6ucDDZ1Zs-fdn6QxaZVPFyEGXCITeTY.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/yuLC5yjYsCqEKQ7LGlcaGWY4YBxRku4dZMxI2mTBR_Y.cache +1 -0
- metadata +13 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73ecca6af0c754fe6d9b39d385267c7e06da3313
|
4
|
+
data.tar.gz: 7b021d8fcb95ac513e6f4e5207cb04d01cf2ca3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84d275e7e0db42c7d22d90a6570397638831ac3691eb6244487620f3e2ad6ab63a62ccec500f8d76f6b4e3bea49d2880d3d22511e326bb0d27a8ae9edb92d131
|
7
|
+
data.tar.gz: 0a6c232bededb3f759182de17383855a9d74e6d0bb9a62df6f6f67b67eb08180f96c8a5845c687993aadb4eeee7b3c24f09616e6bcc07af708152af4e65cf5fd
|
data/README.md
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
Blogue is a rails model for static blog posts, wrapped in an engine. It means that you can have blog posts as static files (kind of like views) inside your rails app, and hook up posts like any other resource. The only reason this is an engine and not just a class in a gem is because it also adds an asset path and a handler for .md views.
|
6
6
|
|
7
|
+
Check out my blogue article for some fun stuff it can do: [http://hakunin.com/blogue](http://hakunin.com/blogue)
|
8
|
+
|
7
9
|
## What you get
|
8
10
|
|
9
11
|
* A `Blogue::Post` model
|
@@ -26,7 +28,7 @@ There are thousands of gems that you can pick from to do that stuff.
|
|
26
28
|
2. Add all needed gems to Gemfile and bundle
|
27
29
|
~~~ruby
|
28
30
|
gem 'kramdown'
|
29
|
-
gem 'rouge'
|
31
|
+
gem 'rouge', '~> 1.11.1' # 2.x and newer is not supported yet
|
30
32
|
gem 'blogue'
|
31
33
|
~~~
|
32
34
|
|
data/lib/blogue/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -5661,3 +5661,55 @@ Blogue::PostTest: test_extract_post_id_extracts_id_from_path_with_multiple_exten
|
|
5661
5661
|
---------------------------------------
|
5662
5662
|
Blogue::PostTest: test_finds_post_by_id
|
5663
5663
|
---------------------------------------
|
5664
|
+
---------------------------------------------------------------------
|
5665
|
+
ConfigurationTest: test_adds_[posts_path]/assets_to_rails_asset_paths
|
5666
|
+
---------------------------------------------------------------------
|
5667
|
+
Started GET "/assets/dogue.jpg" for 127.0.0.1 at 2016-11-21 02:49:58 -0500
|
5668
|
+
------------------------------------------------------
|
5669
|
+
ConfigurationTest: test_renders_markdown_with_kramdown
|
5670
|
+
------------------------------------------------------
|
5671
|
+
Started GET "/header-title" for 127.0.0.1 at 2016-11-21 02:49:58 -0500
|
5672
|
+
Processing by PostsController#show as HTML
|
5673
|
+
Parameters: {"id"=>"header-title"}
|
5674
|
+
Rendered /Users/max/Projects/blogue/test/fixtures/posts/header-title.md (63.1ms)
|
5675
|
+
Rendered posts/show.html.erb within layouts/application (68.4ms)
|
5676
|
+
Completed 200 OK in 79ms (Views: 78.1ms)
|
5677
|
+
-----------------------------------------------------
|
5678
|
+
ConfigurationTest: test_renders_codeblocks_with_rouge
|
5679
|
+
-----------------------------------------------------
|
5680
|
+
Started GET "/code-block" for 127.0.0.1 at 2016-11-21 02:49:58 -0500
|
5681
|
+
Processing by PostsController#show as HTML
|
5682
|
+
Parameters: {"id"=>"code-block"}
|
5683
|
+
Rendered /Users/max/Projects/blogue/test/fixtures/posts/code-block.md (2.7ms)
|
5684
|
+
Rendered posts/show.html.erb within layouts/application (5.6ms)
|
5685
|
+
Completed 200 OK in 7ms (Views: 6.2ms)
|
5686
|
+
---------------------------------------
|
5687
|
+
Blogue::PostTest: test_finds_post_by_id
|
5688
|
+
---------------------------------------
|
5689
|
+
-------------------------------------------------------------
|
5690
|
+
Blogue::PostTest: test_sort_posts_reverse-sorts_posts_by_time
|
5691
|
+
-------------------------------------------------------------
|
5692
|
+
-----------------------------------------------------
|
5693
|
+
Blogue::PostTest: test_date_returns_date_part_of_time
|
5694
|
+
-----------------------------------------------------
|
5695
|
+
-------------------------------------------------------------------------------------
|
5696
|
+
Blogue::PostTest: test_extract_post_id_extracts_id_from_path_with_multiple_extensions
|
5697
|
+
-------------------------------------------------------------------------------------
|
5698
|
+
-----------------------------------------------------
|
5699
|
+
Blogue::PostTest: test_uses_time_from_meta_when_given
|
5700
|
+
-----------------------------------------------------
|
5701
|
+
------------------------------------------------------------
|
5702
|
+
Blogue::PostTest: test_extract_post_id_extracts_id_from_path
|
5703
|
+
------------------------------------------------------------
|
5704
|
+
-----------------------------------------------------------------------
|
5705
|
+
Blogue::PostTest: test_uses_filename_as_title_when_no_other_alternative
|
5706
|
+
-----------------------------------------------------------------------
|
5707
|
+
---------------------------------------------------------------
|
5708
|
+
Blogue::PostTest: test_uses_markdown_header_as_title_if_present
|
5709
|
+
---------------------------------------------------------------
|
5710
|
+
-------------------------------------------------
|
5711
|
+
Blogue::PostTest: test_uses_meta_title_if_present
|
5712
|
+
-------------------------------------------------
|
5713
|
+
----------------------------------------------------------------
|
5714
|
+
Blogue::PostTest: test_uses_file_creation_time_when_no_meta_date
|
5715
|
+
----------------------------------------------------------------
|
@@ -0,0 +1,5 @@
|
|
1
|
+
{:uriI"�file:///Users/max/Projects/blogue/test/fixtures/posts/assets/dogue.jpg?type=image/jpeg&id=e9c0b28b2b34b92eb8e20978753b4195f2e5fd8eab7da5dfef8e38503c3aa520:ET:load_pathI":/Users/max/Projects/blogue/test/fixtures/posts/assets;T:
|
2
|
+
dogue;T:logical_pathI"dogue.jpg;T:content_typeI"image/jpeg;T:source0:
|
3
|
+
@hash} I"environment-version;TTI"environment-paths;TTI"4processors:type=image/jpeg&file_type=image/jpeg;TTI"Rfile-digest:///Users/max/Projects/blogue/test/fixtures/posts/assets/dogue.jpg;TTF:dependencies_digest"%:0~�6K��>mp�-OZy��=
|
4
|
+
|
5
|
+
mtimel+�sdR
|
@@ -0,0 +1 @@
|
|
1
|
+
"%A1�ED��,���wKUD �%aH���O����
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/max/Projects/blogue/test/fixtures/posts/assets/dogue.jpg?type=image/jpeg&id=e9c0b28b2b34b92eb8e20978753b4195f2e5fd8eab7da5dfef8e38503c3aa520:ET
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blogue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxim Chernyak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -116,10 +116,14 @@ files:
|
|
116
116
|
- test/dummy/public/favicon.ico
|
117
117
|
- test/dummy/tmp/cache/assets/test/sprockets/88c7acce0f27ad4785c977981dcffdbd
|
118
118
|
- test/dummy/tmp/cache/assets/test/sprockets/f59336706d1f8f55cfacfc5e139dfd9a
|
119
|
+
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/2b-2n2LHKAwFgLnOsf2eX1SreLZTuO3bnwmiI9Gdp4c.cache
|
119
120
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/5att9zsleS3-L2YWqjIgUgt_yvAEfbHkBuYWdGAMFQM.cache
|
120
121
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/6ydNEFqBu3UandhtBRFs2ldW_Mna2Yv05D60lzG3K2Y.cache
|
121
122
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/KdMqnHQH9u8AG6KXVie3ar7E-o5pu4aWWR6_v50pGUc.cache
|
122
123
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/Uc2OKgIXy7cS1Gp3NmkcgAZVdEcG94xe-xe-nMg109k.cache
|
124
|
+
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/kJvgKxhCRnWFq1aDIZPJZZZdUHmaw3cPnT3VXOJPxM0.cache
|
125
|
+
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/rxgJN-iV8lJP6ucDDZ1Zs-fdn6QxaZVPFyEGXCITeTY.cache
|
126
|
+
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/yuLC5yjYsCqEKQ7LGlcaGWY4YBxRku4dZMxI2mTBR_Y.cache
|
123
127
|
- test/fixtures/posts/assets/dogue.jpg
|
124
128
|
- test/fixtures/posts/code-block.md
|
125
129
|
- test/fixtures/posts/header-title.md
|
@@ -148,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
152
|
version: '0'
|
149
153
|
requirements: []
|
150
154
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.
|
155
|
+
rubygems_version: 2.5.2
|
152
156
|
signing_key:
|
153
157
|
specification_version: 4
|
154
158
|
summary: Small static blog engine for Rails
|
@@ -187,10 +191,14 @@ test_files:
|
|
187
191
|
- test/dummy/README.rdoc
|
188
192
|
- test/dummy/tmp/cache/assets/test/sprockets/88c7acce0f27ad4785c977981dcffdbd
|
189
193
|
- test/dummy/tmp/cache/assets/test/sprockets/f59336706d1f8f55cfacfc5e139dfd9a
|
194
|
+
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/2b-2n2LHKAwFgLnOsf2eX1SreLZTuO3bnwmiI9Gdp4c.cache
|
190
195
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/5att9zsleS3-L2YWqjIgUgt_yvAEfbHkBuYWdGAMFQM.cache
|
191
196
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/6ydNEFqBu3UandhtBRFs2ldW_Mna2Yv05D60lzG3K2Y.cache
|
192
197
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/KdMqnHQH9u8AG6KXVie3ar7E-o5pu4aWWR6_v50pGUc.cache
|
198
|
+
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/kJvgKxhCRnWFq1aDIZPJZZZdUHmaw3cPnT3VXOJPxM0.cache
|
199
|
+
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/rxgJN-iV8lJP6ucDDZ1Zs-fdn6QxaZVPFyEGXCITeTY.cache
|
193
200
|
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/Uc2OKgIXy7cS1Gp3NmkcgAZVdEcG94xe-xe-nMg109k.cache
|
201
|
+
- test/dummy/tmp/cache/assets/test/sprockets/v3.0/yuLC5yjYsCqEKQ7LGlcaGWY4YBxRku4dZMxI2mTBR_Y.cache
|
194
202
|
- test/fixtures/posts/assets/dogue.jpg
|
195
203
|
- test/fixtures/posts/code-block.md
|
196
204
|
- test/fixtures/posts/header-title.md
|