Charu 0.0.12 → 0.0.16

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
- SHA1:
3
- metadata.gz: 4a8dcb08864c8da9fc85ab8573f3f904583fd866
4
- data.tar.gz: 40498a9f9b694a83e11c9c7fde1bc5813b634a01
2
+ SHA256:
3
+ metadata.gz: 585d364477e2577611acfc00da99f5fef12c3a0dfd3b7098fb2a5feb433f4876
4
+ data.tar.gz: 214dfd85205369f751338bb882a9d0d76fb1b98a6070a93b866350cca539ca93
5
5
  SHA512:
6
- metadata.gz: a0ae0f161ac5dca20c08bed648bed7f2eb35a36aa678bd2484c79139bd02be8f2f041ed66bd8662a8b1d0fda468a5a077deaad481b210907cd5fcea1c0a779a5
7
- data.tar.gz: 9662aab1d5f8db739c1457970109e3a4e71cf0ebf32b2d1d3013d829cb1af2633fa8b15b1e572d492357f69500f8b041eaa0d6f9f702d1b8e3edb4323111e7ba
6
+ metadata.gz: aad6a3a203d41353252e94839d64315b7a16b50481b6f5deeda3e076c2801aed59c3e54a18a64c88982cc46c61b07443b193b8c54e5aaa182d259d23cb6c23e3
7
+ data.tar.gz: ef7c2f6c4d74c5586f3f7be2d19c541769cd40c6dd24ae371202ed12edae9b234e37a129c332f7e499f1a5501b3abb5f1bc22d8296263f8bfa74784730f7f519
data/Charu.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+ # coding: utf-8
2
2
  lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require "Charu/version"
@@ -10,8 +10,8 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["shicca.rorl@gmail.com"]
11
11
 
12
12
  spec.summary = %q{ChangeLogMemo Html Converter}
13
- spec.description = %q{ChangeLogを日記にしているなら便利かも。ChangeLogMemoとは?[横着プログラミング 第1回: Unixのメモ技術](http://0xcc.net/unimag/1/)[Change Log メモを試してみよう](http://at-aka.blogspot.jp/p/change-log.html) CSSは[tDiary](http://www.tdiary.org/)のが使えます。}
14
- spec.homepage = "https://rubygems.org/gems/Charu"
13
+ spec.description = %q{ChangeLogを日記にしているなら便利かも。ChangeLogMemoとは?[横着プログラミング 第1回: Unixのメモ技術](http://0xcc.net/unimag/1/)[Change Log メモを試してみよう](http://at-aka.blogspot.jp/p/change-log.html) CSSは[tDiary](http://www.tdiary.org/)のが使えます。FTPアップロードに「lftp」使っています。パブリックの[Public]:のカテゴリーが付いていないもの以外はHTML化しないです。}
14
+ spec.homepage = "https://github.com/ShiccaRorl/CharuRuby"
15
15
  spec.license = "MIT"
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
@@ -33,7 +33,8 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "bundler", "~> 1.15"
34
34
  spec.add_development_dependency "rake", "~> 10.0"
35
35
  spec.add_development_dependency "rspec", "~> 3.0"
36
-
37
- spec.add_dependency 'redcarpet'
38
-
36
+
37
+ #spec.add_dependency 'redcarpet'
38
+ #spec.add_dependency 'rdiscount'
39
+
39
40
  end
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/bash
2
+
3
+ #作成日時:2018-05-31
4
+
5
+ bundle exec Charu
data/Gemfile CHANGED
@@ -1,6 +1,10 @@
1
- source "https://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in Charu.gemspec
4
4
  gemspec
5
5
 
6
- gem 'redcarpet'
6
+ #gem 'redcarpet'
7
+
8
+ #gem 'rdiscount'
9
+
10
+
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Charu
1
+ # Charu
2
2
 
3
3
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/Charu`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
@@ -53,6 +53,8 @@ bundle exec Charu
53
53
 
54
54
  FTPアップロードに「lftp」使っています。
55
55
 
56
+ CSSは[tDiary](http://www.tdiary.org/)のが使えます。
57
+
56
58
  ## Development
57
59
 
58
60
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
data/lib/Charu.rb CHANGED
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
 
3
3
  if "debug" == ARGV[0] then
4
4
  require 'Charu/Config'
@@ -20,7 +20,9 @@ else
20
20
 
21
21
  Bundler.require
22
22
 
23
- require 'redcarpet'
23
+ #require 'redcarpet'
24
+
25
+ #require 'rdiscount'
24
26
 
25
27
  require 'Charu/ChangeLogMemo'
26
28
  require 'Charu/Config'
@@ -34,10 +36,34 @@ else
34
36
 
35
37
  end
36
38
 
37
- page_counter = Charu::PageCounter.new()
38
- page_counter.create_html()
39
+ config = Charu::Config.new()
40
+
41
+ source = ""
42
+ # ChangeLogMemoファイル
43
+ File.open(config.change_log_path, 'r:utf-8'){|f|
44
+ source = f.read # 全て読み込む
45
+ }
46
+
47
+ change_log_public = Charu::ChangeLogPublic.new(source)
48
+
49
+ item_list_public = change_log_public.get_item()
50
+
51
+ changelogmemo = Charu::ChangeLogMemo.new(item_list_public)
52
+ page_counter = Charu::PageCounter.new(changelogmemo)
53
+ page_counter.create_html(false)
39
54
 
40
55
  ftp_clariant = Charu::FtpClariant.new()
41
56
  ftp_clariant.put_file()
42
57
 
43
- end
58
+ # プライベートモード作成
59
+ if config.private_mode == true then
60
+ change_log_private = Charu::ChangeLogPrivate.new(source)
61
+
62
+ item_list_private = change_log_private.get_item()
63
+
64
+ changelogmemo = Charu::ChangeLogMemo.new(item_list_private)
65
+ page_counter = Charu::PageCounter.new(changelogmemo)
66
+ page_counter.create_html(config.private_mode)
67
+ end
68
+
69
+ end
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
 
3
3
  module Charu
4
4
  class Category
@@ -94,11 +94,33 @@ module Charu
94
94
 
95
95
  #@item_log.gsub!(/(\r\n|\r\f\n|\r|\n)/, "</p>\n<p>")
96
96
 
97
- markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
98
- html = markdown.render(@item_log)
97
+ html = @item_log
98
+
99
+ =begin
100
+ options = {
101
+ filter_html: true,
102
+ hard_wrap: true,
103
+ space_after_headers: true,
104
+ }
105
+
106
+ extensions = {
107
+ autolink: true,
108
+ no_intra_emphasis: true,
109
+ fenced_code_blocks: true,
110
+ }
111
+
112
+ #markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
113
+
114
+ renderer = Redcarpet::Render::HTML.new(options)
115
+ markdown = Redcarpet::Markdown.new(renderer, extensions)
116
+
117
+ html = markdown.render(@item_log).html_safe
118
+ =end
119
+
120
+ #html = RDiscount.new(@item_log, :smart, :filter_html)
121
+
122
+ html.gsub!(/(\r\n|\r\f\n|\r|\n)/, "</p>\n<p>")
99
123
 
100
- html.gsub!(/(\r\n|\r\f\n|\r|\n)/, "</p>\n<p>")
101
-
102
124
  return html
103
125
  end
104
126
  return ""
@@ -127,10 +149,14 @@ module Charu
127
149
  return @date.strftime("%Y-%m-%d")
128
150
  end
129
151
 
152
+ # 日付を取得する
153
+ def get_year()
154
+ return @date.strftime("%Y")
155
+ end
130
156
  end
131
157
 
132
158
  class Entry
133
- attr_accessor :date, :item_title, :item_log, :category, :item_source_date
159
+ attr_accessor :item_title, :item_log, :category, :item_source_date
134
160
  def initialize(item_source)
135
161
  @item_source_date = ""
136
162
  @item_source_contents = ""
@@ -205,8 +231,8 @@ end
205
231
 
206
232
  # プライベートと分ける
207
233
  module Charu
208
- class ChangeLogPrivate < ChangeLog
209
- def get_item_private()
234
+ class ChangeLogPublic < ChangeLog
235
+ def get_item()
210
236
  @item_list_private = Hash.new()
211
237
 
212
238
  # プライベート集計
@@ -238,17 +264,33 @@ module Charu
238
264
  end
239
265
  end
240
266
 
241
- class ChangeLogPublic < ChangeLog
242
- def get_item_private()
243
- @item_list_private = []
244
- @entrys.entrys.each{|entry|
245
- i = []
246
- s = ""
267
+ class ChangeLogPrivate < ChangeLog
268
+ def get_item()
269
+ @item_list_private = Hash.new()
270
+
271
+ @entrys.each{|entry|
272
+ necessary = []
273
+ day_s = ""
247
274
  entry.get_items().each{|item|
248
- s = item.get_item_date_string()
249
- i << [item]
275
+ day_s = item.get_item_date_string()
276
+
277
+ necessary << item
278
+
250
279
  }
251
- @item_list_private[s] = i
280
+ @item_list_private[day_s] = necessary
281
+ }
282
+
283
+ # 配列の[]のを集計
284
+ delt = []
285
+ @item_list_private.each{|key, item|
286
+ if item == [] then
287
+ delt << key
288
+ end
289
+ }
290
+
291
+ # []を削除
292
+ delt.each{|del|
293
+ @item_list_private.delete(del)
252
294
  }
253
295
  return @item_list_private
254
296
  end
@@ -257,17 +299,10 @@ end
257
299
 
258
300
  module Charu
259
301
  class ChangeLogMemo
260
- def initialize()
302
+ def initialize(item_list)
261
303
  @config = Charu::Config.new()
262
304
 
263
- # ChangeLogMemoファイル
264
- File.open(@config.change_log_path, 'r:utf-8'){|f|
265
- @source = f.read # 全て読み込む
266
- }
267
-
268
- @change_log_private = Charu::ChangeLogPrivate.new(@source)
269
-
270
- @item_list = @change_log_private.get_item_private()
305
+ @item_list = item_list
271
306
 
272
307
  # 全てのカテゴリーを取得
273
308
  @all_category_list = []
@@ -352,6 +387,15 @@ module Charu
352
387
  def get_category_list()
353
388
  return @all_category_list.uniq()
354
389
  end
390
+
391
+ # 日付を取得する
392
+ def get_year()
393
+ year = []
394
+ @item_list.each{|key, item|
395
+ year << item.date.strftime("%Y")
396
+ }
397
+ return year
398
+ end
399
+
355
400
  end
356
401
  end
357
-
data/lib/Charu/Config.rb CHANGED
@@ -1,47 +1,50 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
 
3
3
  config = ""
4
4
  config = '# -*- encoding: utf-8 -*-
5
5
 
6
6
  module Charu
7
7
  class Config
8
- attr_accessor :home_title, :top_home_page, :home_category, :home_description, :css_theme_path, :private_category
9
- attr_accessor :change_log_path, :article_size, :www_html_out_path, :www_html_out_path_private, :public_category
8
+ attr_accessor :home_title, :top_home_page, :home_category, :css_theme_path, :private_category
9
+ attr_accessor :change_log_path, :article_size, :www_html_out_path, :www_html_out_path_private, :public_category, :private_mode
10
10
  attr_accessor :ftp_server, :ftp_port, :ftp_user, :ftp_pass
11
- attr_accessor :wget_path
11
+ attr_accessor :wget_path
12
12
  def initialize()
13
13
  # ホームページタイトル
14
14
  @home_title = "TestPage"
15
15
 
16
16
  # ホームページトップ
17
- @top_home_page = "http://hoge.com/hoge/index.html"
17
+ @top_home_page = "http://hoge.com/hoge/"
18
18
 
19
19
  # ホームページカテゴリー
20
- @home_category = ["Ruby", "Python", "Java", "c++", "Ruby_on_Rails", "JavaSciript", "LIPS"]
20
+ @home_category = ["Ruby", "Python", "Java", "c++", "Ruby on Rails", "JavaSciript", "LIPS"]
21
21
 
22
22
  # ホームページのdescription
23
- @home_description = "日々勉強中"
23
+ @home_description = ["", ""]
24
24
 
25
25
  # CSS Path
26
26
  @css_theme_path = "./css/"
27
27
 
28
- # プライベートカテゴリー
28
+ # プライベートカテゴリー
29
29
  @private_category = ["Private", "P", "★", "2ch", "5ch", "PS", "Life"]
30
30
 
31
- # パブリックカテゴリー
31
+ # パブリックカテゴリー
32
32
  @public_category = ["Public"]
33
-
33
+
34
34
  # Change_Log_path
35
35
  @change_log_path = "./../ChangeLog"
36
36
 
37
37
  # 一度に表示する記事数
38
38
  @article_size = 50
39
39
 
40
- # htmlの作成先
41
- @www_html_out_path = "./www/"
40
+ # htmlの作成先 パブリック
41
+ @www_html_out_path = "./www/Public/"
42
42
 
43
43
  # htmlの作成先 プライベート
44
- @www_html_out_path_private = "./Private/"
44
+ @www_html_out_path_private = "./www/Private/"
45
+
46
+ # プライベートを出力するか?true or false
47
+ @private_mode = true
45
48
 
46
49
  # FTPの設定
47
50
  @ftp_server = ""
@@ -51,7 +54,12 @@ module Charu
51
54
 
52
55
  # Wgetのパス
53
56
  @wget_path = ""
54
-
57
+
58
+ end
59
+
60
+ def home_description()
61
+ i = rand(@home_description.size)
62
+ return @home_description[i]
55
63
  end
56
64
  end
57
65
  end
@@ -1,11 +1,11 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
 
3
3
  require "erb"
4
4
 
5
5
  module Charu
6
6
  class PageCounter
7
- def initialize()
8
- changelogmemo = Charu::ChangeLogMemo.new()
7
+ def initialize(changelogmemo)
8
+ changelogmemo = changelogmemo
9
9
  @max_page = changelogmemo.article_size_max()
10
10
  p "Page MAX " + @max_page.to_s
11
11
 
@@ -22,10 +22,16 @@ module Charu
22
22
  end
23
23
  end
24
24
 
25
- def create_html()
25
+ def create_html(mode)
26
+ p mode
26
27
  p "pages.size " + @pages.size.to_s
27
28
  @pages.each{|page|
28
29
  create_html = Charu::CreateHtml.new(page, @pages.size)
30
+ if mode == true then
31
+ create_html.create_body_private()
32
+ elsif mode == false then
33
+ create_html.create_body_public()
34
+ end
29
35
  }
30
36
 
31
37
  end
@@ -33,11 +39,11 @@ module Charu
33
39
  end
34
40
 
35
41
  class CreateHtml
36
- attr_accessor :keyword, :css_theme_path, :link, :hiduke, :day, :title, :config, :page, :page_max
42
+ attr_accessor :keyword, :css_theme_path, :link, :hiduke, :day, :title, :config, :page, :page_max, :changelogmemo
37
43
  def initialize(page, page_max)
38
44
  @config = Charu::Config.new()
39
45
 
40
- @page_max = page_max
46
+ @page_max = page_max - 1
41
47
  @page = page
42
48
 
43
49
  @header = File.open("./CharuConfig/template/header.erb").read
@@ -47,7 +53,8 @@ module Charu
47
53
  @autoupload_lftp = File.open("./CharuConfig/autoupload.lftp").read
48
54
 
49
55
  self.keyword()
50
- self.create_body()
56
+ #self.create_body_public()
57
+ #self.create_body_private()
51
58
  self.lftp()
52
59
  end
53
60
 
@@ -59,7 +66,7 @@ module Charu
59
66
  return @keyword.encode!("UTF-8")
60
67
  end
61
68
 
62
- def create_body()
69
+ def create_body_private()
63
70
  # くっつける
64
71
 
65
72
  @htmls = []
@@ -72,17 +79,32 @@ module Charu
72
79
  #p changelogmemo
73
80
 
74
81
  erb = ERB.new(@html)
75
- =begin
76
- changelogmemo.each{|key, items|
77
- items.each{|item|
78
- p item.date
79
- p item.get_item_title#.encode(Encoding::SJIS)
80
- p i.get_item_category()
81
- }
82
- }
83
- =end
82
+
84
83
  @html = erb.result(binding)
85
84
 
85
+ begin
86
+ File.write(@config.www_html_out_path_private + file_name, @html)
87
+ rescue
88
+ p "書き込みエラー"
89
+ end
90
+ }
91
+ end
92
+
93
+ def create_body_public()
94
+ # くっつける
95
+
96
+ @htmls = []
97
+ @page.each{|page, file_name, changelogmemo|
98
+ p "page " + page.to_s + " 作成中"
99
+ #p file_name
100
+ @changelogmemo = changelogmemo
101
+
102
+ @html = @header + @body + @footer
103
+ #p changelogmemo
104
+
105
+ erb = ERB.new(@html)
106
+
107
+ @html = erb.result(binding)
86
108
 
87
109
  begin
88
110
  File.write(@config.www_html_out_path + file_name, @html)
@@ -126,14 +148,17 @@ module Charu
126
148
  end
127
149
 
128
150
  def lftp()
129
- erb = ERB.new(@autoupload_lftp)
130
- lftp = erb.result(binding)
151
+ erb = ERB.new(@autoupload_lftp)
152
+ lftp = erb.result(binding)
131
153
 
132
- begin
133
- File.write("./CharuConfig/autoupload.lftp", lftp)
134
- rescue
135
- p "書き込みエラー"
136
- end
154
+ begin
155
+ File.write("./CharuConfig/autoupload.lftp", lftp)
156
+ rescue
157
+ p "書き込みエラー"
158
+ end
137
159
  end
160
+
161
+
162
+
138
163
  end
139
164
  end
data/lib/Charu/Debug.rb CHANGED
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
 
3
3
  module Charu
4
4
  class Debug
data/lib/Charu/FTP.rb CHANGED
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
 
3
3
  require 'net/ftp'
4
4
 
@@ -67,8 +67,8 @@ module Charu
67
67
  }
68
68
 
69
69
 
70
- command = "lftp -f ./CharuConfig/autoupload.lftp"
71
- system(command)
70
+ command = "lftp -f ./CharuConfig/autoupload.lftp"
71
+ system(command)
72
72
 
73
73
 
74
74
 
data/lib/Charu/Sitemap.rb CHANGED
@@ -1,18 +1,18 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
 
3
3
 
4
4
  module Charu
5
5
  class FtpClariant
6
6
  def initialize()
7
- @config = Charu::Config.new()
8
-
9
-
10
- system("#{@config.wget_path} -r -l 3 -Rjpg,png,css,js,gif -I /sp -X /sp/user -D #{@config.top_home_page} -E #{@config.top_home_page}")
11
-
12
- sleep 20
13
-
14
- system("find #{@config.top_home_page} -type f > #{@config.top_home_page}.filelist.txt")
15
-
16
- end
7
+ @config = Charu::Config.new()
8
+
9
+
10
+ system("#{@config.wget_path} -r -l 3 -Rjpg,png,css,js,gif -I /sp -X /sp/user -D #{@config.top_home_page} -E #{@config.top_home_page}")
11
+
12
+ sleep 20
13
+
14
+ system("find #{@config.top_home_page} -type f > #{@config.top_home_page}.filelist.txt")
15
+
16
+ end
17
17
  end
18
18
  end
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
 
3
3
  header = ""
4
4
  header = '<!doctype html>
@@ -9,38 +9,34 @@ header = '<!doctype html>
9
9
  <meta http-equiv="Content-Script-Type" content="text/javascript">
10
10
  <meta http-equiv="Last-Modified" content="<%= Time.now().strftime("%Y-%m-%d %H:%M:%S") %> GMT">
11
11
  <meta name="keywords" content="<%= @keyword %> ">
12
- <meta name="description" content="<%= @config.home_description %>">
13
- <link rel="stylesheet" href="theme/base.css" type="text/css" media="all">
14
- <link rel="stylesheet" href="<%= @config.css_theme_path %>" title="<%= @config.home_title %>" type="text/css" media="all">
12
+ <meta name="description" content="<%= @config.home_description() %>">
13
+ <link rel="stylesheet" href="theme/base.css" type="text/css" media="all">
14
+ <link rel="stylesheet" href="<%= @config.css_theme_path %>" title="<%= @config.home_title %>" type="text/css" media="all">
15
15
  <title><%= @config.home_title %></title>
16
16
 
17
17
  <style type="text/css">
18
18
  .title{
19
19
  font-size: 30pt;
20
20
  }
21
- .title_2:hover{
22
- font-size: 40pt;
23
- color: black;
24
- }
25
- .page{
21
+ .page{
26
22
  font-size: 20pt;
27
23
  clear: both;
28
24
  }
29
25
  code{
30
26
  font-size: 20pt;
31
27
  color: white;
32
- background-color: black;
28
+ background-color: #FFFFFF;
33
29
  }
34
30
  a:visited{
35
31
  color: #FF0000;
36
32
  }
37
- #page_a:hover{
33
+ #page_a{
38
34
  font-size: 30pt;
39
35
  color: black;
40
36
  }
41
37
  .menu{
42
38
  font-size: 25pt;
43
- width: 25%;
39
+ width: 20%;
44
40
  float: left;
45
41
  }
46
42
  .reset{
@@ -59,7 +55,7 @@ header = '<!doctype html>
59
55
  </head>
60
56
 
61
57
  <body>
62
- <a class= "title" href="<%= @config.top_home_page %>"><p class="title_2" style="text-align: center"><%= @config.home_title %></p></a>
58
+ <a class= "title" href="<%= @config.top_home_page %>"><p style="text-align: center"><%= @config.home_title %></p></a>
63
59
  <hr>
64
60
  '
65
61
 
@@ -75,20 +71,24 @@ body = '
75
71
  <p>ページ</p>
76
72
  </center>
77
73
 
78
-
79
74
  <div class="left1"><p> </p></div>
80
75
  <div class="menu"><a href="./book/index.html">Book</a></div>
81
76
  <div class="menu"><a href="./freesoft/index.html">FreeSoft</a></div>
82
- <div class="menu"><a href="./download/index.html">Download</a></div>
83
-
77
+ <div class="menu"><a href="./Software/index.html">Software</a></div>
78
+ <div class="menu"><a href="./JW_CAD/index.html">JW_CAD</a></div>
84
79
 
85
80
  <div class="reset"></div>
86
81
 
87
-
88
82
  <div class="left1">
89
- <p>ページ</p>
90
- </div>
91
83
 
84
+ <% @changelogmemo.each{|key, items| %>
85
+ <% items.each{|item| %>
86
+ <%= item.get_year() %>
87
+ <% } %>
88
+ <% } %>
89
+
90
+
91
+ </div>
92
92
 
93
93
  <div class="left2">
94
94
 
@@ -115,7 +115,6 @@ body = '
115
115
  </center>
116
116
  '
117
117
 
118
-
119
118
  day_body = ""
120
119
  day_body = '
121
120
 
@@ -154,7 +153,6 @@ day_body = '
154
153
  </body>
155
154
  '
156
155
 
157
-
158
156
  footer = ""
159
157
  footer = '
160
158
  </body>
@@ -165,13 +163,13 @@ footer = '
165
163
 
166
164
  # ディレクトリの確認
167
165
  if Dir.exist?("./CharuConfig/template") == false then
168
- # ディレクトリの作成
166
+ # ディレクトリの作成
169
167
  Dir.mkdir('CharuConfig/template')
170
168
  end
171
169
 
172
170
  # header
173
171
  if File.exist?("./CharuConfig/template/header.erb") == false then
174
- File.open("./CharuConfig/template/header.erb", "w:utf-8") do |f|
172
+ File.open("./CharuConfig/template/header.erb", "w:utf-8") do |f|
175
173
  f.puts(header)
176
174
  end
177
175
  else
@@ -180,7 +178,7 @@ end
180
178
 
181
179
  # footer
182
180
  if File.exist?("./CharuConfig/template/footer.erb") == false then
183
- File.open("./CharuConfig/template/footer.erb", "w:utf-8") do |f|
181
+ File.open("./CharuConfig/template/footer.erb", "w:utf-8") do |f|
184
182
  f.puts(footer)
185
183
  end
186
184
  else
@@ -189,7 +187,7 @@ end
189
187
 
190
188
  # body
191
189
  if File.exist?("./CharuConfig/template/body.erb") == false then
192
- File.open("./CharuConfig/template/body.erb", "w:utf-8") do |f|
190
+ File.open("./CharuConfig/template/body.erb", "w:utf-8") do |f|
193
191
  f.puts(body)
194
192
  end
195
193
  else
@@ -198,10 +196,9 @@ end
198
196
 
199
197
  # day_body
200
198
  if File.exist?("./CharuConfig/template/day_body.erb") == false then
201
- File.open("./CharuConfig/template/day_body.erb", "w:utf-8") do |f|
199
+ File.open("./CharuConfig/template/day_body.erb", "w:utf-8") do |f|
202
200
  f.puts(day_body)
203
201
  end
204
202
  else
205
203
  @day_body = File.open("./CharuConfig/template/day_body.erb").read
206
204
  end
207
-
data/lib/Charu/version.rb CHANGED
@@ -1,5 +1,5 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
 
3
3
  module Charu
4
- VERSION = "0.0.12"
4
+ VERSION = "0.0.16"
5
5
  end
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/bash
2
+
3
+ #作成日時:2018-05-31
4
+
5
+ bundle exec Charu
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Charu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - ShiccaRorl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-26 00:00:00.000000000 Z
11
+ date: 2018-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,22 +52,8 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
- - !ruby/object:Gem::Dependency
56
- name: redcarpet
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  description: 'ChangeLogを日記にしているなら便利かも。ChangeLogMemoとは?[横着プログラミング 第1回: Unixのメモ技術](http://0xcc.net/unimag/1/)[Change
70
- Log メモを試してみよう](http://at-aka.blogspot.jp/p/change-log.html) CSSは[tDiary](http://www.tdiary.org/)のが使えます。'
56
+ Log メモを試してみよう](http://at-aka.blogspot.jp/p/change-log.html) CSSは[tDiary](http://www.tdiary.org/)のが使えます。FTPアップロードに「lftp」使っています。パブリックの[Public]:のカテゴリーが付いていないもの以外はHTML化しないです。'
71
57
  email:
72
58
  - shicca.rorl@gmail.com
73
59
  executables:
@@ -84,6 +70,7 @@ files:
84
70
  - Charu.gemspec
85
71
  - Execution-Cygwin.sh
86
72
  - Execution-Windows.cmd
73
+ - Execution-linux.sh
87
74
  - Gemfile
88
75
  - LICENSE.txt
89
76
  - README.md
@@ -100,7 +87,8 @@ files:
100
87
  - lib/Charu/Sitemap.rb
101
88
  - lib/Charu/Template.rb
102
89
  - lib/Charu/version.rb
103
- homepage: https://rubygems.org/gems/Charu
90
+ - 起動_Linux.sh
91
+ homepage: https://github.com/ShiccaRorl/CharuRuby
104
92
  licenses:
105
93
  - MIT
106
94
  metadata: {}
@@ -119,8 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
107
  - !ruby/object:Gem::Version
120
108
  version: '0'
121
109
  requirements: []
122
- rubyforge_project:
123
- rubygems_version: 2.5.2.1
110
+ rubygems_version: 3.0.1
124
111
  signing_key:
125
112
  specification_version: 4
126
113
  summary: ChangeLogMemo Html Converter