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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97dd9cadccab1ee137b4da968a02439948f20f30
4
- data.tar.gz: 37a99d284d21af64c52b72ca66a0de12ad892108
3
+ metadata.gz: 3b1dd09ee849d72bc7c381e63065936fc367c429
4
+ data.tar.gz: dd654a34fb479ce247bcaae852ee641d83c5e841
5
5
  SHA512:
6
- metadata.gz: 5b72c34579f8a1a4f18e1ad89c8ea5650c3e32926b683ab7ee93cc252d03bbe9f46abfce55405afb1e08f54a92197b4a49a76d481c87ea0511ee157f152dd6b8
7
- data.tar.gz: a4faee7b0e87eb814f1012680d519a50c15218d50e89aaff192fc304d957e7ebf2d63ea2a5a9799fb80d199b57d30621b57c7ac834be61f41184cb6981e9d41d
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 Diagram
7
+ ## State
6
8
 
7
- ![erd]({{ site.baseurl }}{{ page.url | remove: filename | replace: 'api', 'state' }}<%= pathname.basename(".*").to_s.singularize.capitalize + "_state.png" %>)
9
+ ![state]({{ site.baseurl }}{{ page.url | remove: filename | replace: 'api', 'diag/state' }}<%= pathname.basename(".*").to_s.singularize + ".png" %>)
8
10
 
9
- ## Entity-Relationship Diagram
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
- file = ERB.new(Nsume.config.post_template).result(binding)
32
- File.write(path, file)
33
-
34
- Nsume::Logger.info "Created a posts."
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
@@ -1,3 +1,3 @@
1
1
  module Nsume
2
- VERSION = '0.0.7'.freeze
2
+ VERSION = '0.0.8'.freeze
3
3
  end
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.7
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-04-26 00:00:00.000000000 Z
11
+ date: 2014-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor