nsume 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/vendor/autodoc/footer.md.erb +6 -4
- data/lib/nsume/cli.rb +7 -4
- data/lib/nsume/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b1dd09ee849d72bc7c381e63065936fc367c429
|
4
|
+
data.tar.gz: dd654a34fb479ce247bcaae852ee641d83c5e841
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a152b673909a3798daef9b39f778a771f0f9a1ffcc9b23df593e06eae0924c7b252ec51257f0f064f8073dbf73a7a85e8023b7c139c6003a71fcab5d2f62f28
|
7
|
+
data.tar.gz: b1112a4a3e9514a217ba14d90a7cffe7ba5a5157fad6b09bf879eb9bf59e36cb89eb8fcc65fad24c3319af3d8f8692475776ea6f78dd9816d650148362c5334f
|
@@ -1,11 +1,13 @@
|
|
1
1
|
<%# coding: UTF-8 -%>
|
2
2
|
|
3
|
+
# Diagram
|
4
|
+
|
3
5
|
{% assign filename = page.title | downcase | append:'.html' %}
|
4
6
|
|
5
|
-
## State
|
7
|
+
## State
|
6
8
|
|
7
|
-
![
|
9
|
+
![state]({{ site.baseurl }}{{ page.url | remove: filename | replace: 'api', 'diag/state' }}<%= pathname.basename(".*").to_s.singularize + ".png" %>)
|
8
10
|
|
9
|
-
## Entity
|
11
|
+
## Entity Relationship
|
10
12
|
|
11
|
-
![erd]({{ site.baseurl }}{{ page.url | remove: filename | replace: 'api', 'erd' }}<%= pathname.basename(".*").to_s.singularize + ".png" %>)
|
13
|
+
![erd]({{ site.baseurl }}{{ page.url | remove: filename | replace: 'api', 'diag/erd' }}<%= pathname.basename(".*").to_s.singularize + ".png" %>)
|
data/lib/nsume/cli.rb
CHANGED
@@ -28,10 +28,13 @@ module Nsume
|
|
28
28
|
def post(title='title', content='')
|
29
29
|
name = "#{Date.today.strftime("%Y-%m-%d")}-#{title}.md"
|
30
30
|
path = File.expand_path(name, Nsume.config.posts_path)
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
unless File.exists?(path)
|
32
|
+
file = ERB.new(Nsume.config.post_template).result(binding)
|
33
|
+
File.write(path, file)
|
34
|
+
Nsume::Logger.info "Created a posts."
|
35
|
+
else
|
36
|
+
Nsume::Logger.info "Existed a posts."
|
37
|
+
end
|
35
38
|
end
|
36
39
|
|
37
40
|
desc 'switch [THEME]', 'Switch theme'
|
data/lib/nsume/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nsume
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ogom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|