WWWCHtmlConverter 0.0.2 → 0.0.3
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/Gemfile.lock +38 -0
- data/lib/WWWCHtmlConverter/WWWCHTMLConverterLib.rb +5 -17
- data/lib/WWWCHtmlConverter/version.rb +1 -1
- data/lib/WWWCHtmlConverter.rb +4 -8
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 173e7c30dea4fea7d7072c83cf62669e2e29253e85ad2dac580524e41412df1b
|
4
|
+
data.tar.gz: ed0f4c31c2fe3f2199719f3d99fdac6b26f9e7cb490b2b095f6b91e4c3477b13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a546a1be305db70f4c908c12682577cff926d7a6f4772a3fddd6ce35f8072ccce74c59b31d47f198765fd6d1ed95889e78f0bfd5ace46fe20dc390b6f94e063e
|
7
|
+
data.tar.gz: a0c115bc28db1db807fdf3fee1e53ffb5a38a90aeb17f76dae7f89b1780cd00fdc0f769a4a3406d1f363c17c4746be8318095f7dd42ba3d478d2b767e6d2840e
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
WWWCHtmlConverter (0.0.3)
|
5
|
+
thor
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
diff-lcs (1.3)
|
11
|
+
rake (10.5.0)
|
12
|
+
rspec (3.7.0)
|
13
|
+
rspec-core (~> 3.7.0)
|
14
|
+
rspec-expectations (~> 3.7.0)
|
15
|
+
rspec-mocks (~> 3.7.0)
|
16
|
+
rspec-core (3.7.1)
|
17
|
+
rspec-support (~> 3.7.0)
|
18
|
+
rspec-expectations (3.7.0)
|
19
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
20
|
+
rspec-support (~> 3.7.0)
|
21
|
+
rspec-mocks (3.7.0)
|
22
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
+
rspec-support (~> 3.7.0)
|
24
|
+
rspec-support (3.7.1)
|
25
|
+
thor (0.20.0)
|
26
|
+
|
27
|
+
PLATFORMS
|
28
|
+
ruby
|
29
|
+
|
30
|
+
DEPENDENCIES
|
31
|
+
WWWCHtmlConverter!
|
32
|
+
bundler (~> 1.16)
|
33
|
+
rake (~> 10.0)
|
34
|
+
rspec (~> 3.0)
|
35
|
+
thor
|
36
|
+
|
37
|
+
BUNDLED WITH
|
38
|
+
1.16.0
|
@@ -1,6 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
p 'a'.encoding
|
2
|
+
|
4
3
|
|
5
4
|
require "erb"
|
6
5
|
require "thor"
|
@@ -9,7 +8,7 @@ module WWWCHTMLConverter
|
|
9
8
|
# Your code goes here...
|
10
9
|
class CommandLine < Thor
|
11
10
|
attr_accessor :wwwc
|
12
|
-
desc "in_to
|
11
|
+
desc "in_to WWWCのディレクトリ", "out アウトプットディレクトリ"
|
13
12
|
def initialize()
|
14
13
|
@wwwc = WWWC.new()
|
15
14
|
end
|
@@ -89,7 +88,7 @@ module WWWCHTMLConverter
|
|
89
88
|
Dir.glob("Item.dat/**/*").each{|dir|
|
90
89
|
wwwc = WWWC_HTML_Converter.new
|
91
90
|
wwwc.item_date_pach = dir
|
92
|
-
|
91
|
+
p dir.encode(Encoding::SJIS)
|
93
92
|
}
|
94
93
|
|
95
94
|
# ディレクトリリスト作成
|
@@ -239,7 +238,7 @@ module WWWCHTMLConverter
|
|
239
238
|
|
240
239
|
# データベース
|
241
240
|
@db_file_name = ARGV[0]
|
242
|
-
|
241
|
+
#@db = Sequel.sqlite(@db_file_name)
|
243
242
|
|
244
243
|
# データベースからデータ取得
|
245
244
|
dataset = @db[:index].where(:Private => false).order(:Datetime)
|
@@ -263,17 +262,6 @@ module WWWCHTMLConverter
|
|
263
262
|
|
264
263
|
end
|
265
264
|
|
266
|
-
def keyword()
|
267
|
-
@keywords = @db[:keyword].select(:Keyword).all
|
268
|
-
|
269
|
-
@keyword = ""
|
270
|
-
@keywords.each{|i|
|
271
|
-
i.each{|key, value|
|
272
|
-
@keyword = value + ", " + @keyword}
|
273
|
-
}
|
274
|
-
@keyword.encode!("UTF-8")
|
275
|
-
end
|
276
|
-
|
277
265
|
def create_body()
|
278
266
|
# くっつける
|
279
267
|
|
@@ -346,5 +334,5 @@ module WWWCHTMLConverter
|
|
346
334
|
end
|
347
335
|
end
|
348
336
|
|
349
|
-
link = WWWC_HTML_Converter::Link.new(ARGV[0], ARGV[1]) #
|
337
|
+
#link = WWWC_HTML_Converter::Link.new(ARGV[0], ARGV[1]) #
|
350
338
|
|
data/lib/WWWCHtmlConverter.rb
CHANGED
@@ -1,21 +1,17 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
require "WWWCHtmlConverter/version"
|
4
|
-
require "WWWCHtmlConverter/
|
5
|
-
require
|
4
|
+
#require "WWWCHtmlConverter/WWWCHTMLConverterLib"
|
5
|
+
require "tk"
|
6
6
|
|
7
7
|
module WWWCHtmlConverter
|
8
8
|
|
9
9
|
# Your code goes here...
|
10
10
|
|
11
11
|
|
12
|
-
def tk()
|
13
|
-
|
14
|
-
|
15
|
-
end
|
16
12
|
end
|
17
13
|
|
18
|
-
wwwc_html_converter = WWWCHTMLConverter::WWWCHTMLConverter.new
|
14
|
+
#wwwc_html_converter = WWWCHTMLConverter::WWWCHTMLConverter.new
|
19
15
|
|
20
16
|
|
21
17
|
lavel_1 = TkLabel.new(text: "WWWC path")
|
@@ -31,4 +27,4 @@ button_2 = TkButton.new(text: "キャンセル")
|
|
31
27
|
button_2.pack
|
32
28
|
|
33
29
|
|
34
|
-
Tk.mainloop
|
30
|
+
Tk.mainloop
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: WWWCHtmlConverter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ShiccaRorl
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- ".travis.yml"
|
81
81
|
- CODE_OF_CONDUCT.md
|
82
82
|
- Gemfile
|
83
|
+
- Gemfile.lock
|
83
84
|
- LICENSE.txt
|
84
85
|
- README.md
|
85
86
|
- Rakefile
|