nhkore 0.3.1 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +81 -3
- data/README.md +505 -9
- data/Rakefile +48 -8
- data/lib/nhkore.rb +1 -22
- data/lib/nhkore/app.rb +3 -1
- data/lib/nhkore/article.rb +24 -7
- data/lib/nhkore/article_scraper.rb +21 -16
- data/lib/nhkore/cli/news_cmd.rb +3 -2
- data/lib/nhkore/cli/search_cmd.rb +2 -2
- data/lib/nhkore/cli/sift_cmd.rb +9 -112
- data/lib/nhkore/datetime_parser.rb +342 -0
- data/lib/nhkore/dict_scraper.rb +1 -1
- data/lib/nhkore/lib.rb +59 -0
- data/lib/nhkore/news.rb +13 -4
- data/lib/nhkore/scraper.rb +21 -9
- data/lib/nhkore/search_link.rb +37 -19
- data/lib/nhkore/search_scraper.rb +1 -0
- data/lib/nhkore/sifter.rb +106 -51
- data/lib/nhkore/util.rb +12 -21
- data/lib/nhkore/variator.rb +1 -0
- data/lib/nhkore/version.rb +1 -1
- data/nhkore.gemspec +12 -7
- metadata +21 -5
data/lib/nhkore/variator.rb
CHANGED
data/lib/nhkore/version.rb
CHANGED
data/nhkore.gemspec
CHANGED
@@ -49,16 +49,21 @@ Gem::Specification.new() do |spec|
|
|
49
49
|
spec.bindir = 'bin'
|
50
50
|
spec.executables = [spec.name]
|
51
51
|
|
52
|
-
spec.files =
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
52
|
+
spec.files = [
|
53
|
+
Dir.glob(File.join("{#{spec.require_paths.join(',')}}",'**','*.{erb,rb}')),
|
54
|
+
Dir.glob(File.join(spec.bindir,'*')),
|
55
|
+
Dir.glob(File.join('{test,yard}','**','*.{erb,rb}')),
|
56
|
+
%W( Gemfile #{spec.name}.gemspec Rakefile ),
|
57
|
+
%w( CHANGELOG.md LICENSE.txt README.md ),
|
58
|
+
].flatten()
|
57
59
|
|
58
60
|
spec.required_ruby_version = '>= 2.4'
|
59
61
|
|
60
|
-
spec.requirements
|
62
|
+
spec.requirements = [
|
63
|
+
'Nokogiri: https://www.nokogiri.org/tutorials/installing_nokogiri.html',
|
64
|
+
]
|
61
65
|
|
66
|
+
spec.add_runtime_dependency 'attr_bool' ,'~> 0.1' # For attr_accessor?/attr_reader?
|
62
67
|
spec.add_runtime_dependency 'bimyou_segmenter' ,'~> 1.2' # For splitting Japanese sentences into words
|
63
68
|
spec.add_runtime_dependency 'cri' ,'~> 2.15' # For CLI commands/options
|
64
69
|
spec.add_runtime_dependency 'down' ,'~> 5.1' # For downloading files (GetCmd)
|
@@ -66,7 +71,7 @@ Gem::Specification.new() do |spec|
|
|
66
71
|
spec.add_runtime_dependency 'http-cookie' ,'~> 1.0' # For parsing/setting cookies (BingScraper/Scraper)
|
67
72
|
spec.add_runtime_dependency 'japanese_deinflector' ,'~> 0.0' # For unconjugating Japanese words (plain/dictionary form)
|
68
73
|
spec.add_runtime_dependency 'nokogiri' ,'~> 1.10' # For scraping/hacking
|
69
|
-
spec.add_runtime_dependency 'psychgus' ,'~> 1.
|
74
|
+
spec.add_runtime_dependency 'psychgus' ,'~> 1.3' # For styling Psych YAML
|
70
75
|
spec.add_runtime_dependency 'public_suffix' ,'~> 4.0' # For parsing URL domain names
|
71
76
|
spec.add_runtime_dependency 'rainbow' ,'~> 3.0' # For CLI color output
|
72
77
|
spec.add_runtime_dependency 'rubyzip' ,'~> 2.3' # For extracting Zip files (GetCmd)
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nhkore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Bradley Whited (@esotericpig)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: attr_bool
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.1'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bimyou_segmenter
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +128,14 @@ dependencies:
|
|
114
128
|
requirements:
|
115
129
|
- - "~>"
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version: '1.
|
131
|
+
version: '1.3'
|
118
132
|
type: :runtime
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
136
|
- - "~>"
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version: '1.
|
138
|
+
version: '1.3'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: public_suffix
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -343,12 +357,14 @@ files:
|
|
343
357
|
- lib/nhkore/cli/news_cmd.rb
|
344
358
|
- lib/nhkore/cli/search_cmd.rb
|
345
359
|
- lib/nhkore/cli/sift_cmd.rb
|
360
|
+
- lib/nhkore/datetime_parser.rb
|
346
361
|
- lib/nhkore/defn.rb
|
347
362
|
- lib/nhkore/dict.rb
|
348
363
|
- lib/nhkore/dict_scraper.rb
|
349
364
|
- lib/nhkore/entry.rb
|
350
365
|
- lib/nhkore/error.rb
|
351
366
|
- lib/nhkore/fileable.rb
|
367
|
+
- lib/nhkore/lib.rb
|
352
368
|
- lib/nhkore/missingno.rb
|
353
369
|
- lib/nhkore/news.rb
|
354
370
|
- lib/nhkore/polisher.rb
|
@@ -374,7 +390,7 @@ metadata:
|
|
374
390
|
changelog_uri: https://github.com/esotericpig/nhkore/blob/master/CHANGELOG.md
|
375
391
|
homepage_uri: https://github.com/esotericpig/nhkore
|
376
392
|
source_code_uri: https://github.com/esotericpig/nhkore
|
377
|
-
post_install_message: " \n NHKore v0.3.
|
393
|
+
post_install_message: " \n NHKore v0.3.6\n \n You can now use [nhkore] on the
|
378
394
|
command line.\n \n Homepage: https://github.com/esotericpig/nhkore\n \n Code:
|
379
395
|
\ https://github.com/esotericpig/nhkore\n Changelog: https://github.com/esotericpig/nhkore/blob/master/CHANGELOG.md\n
|
380
396
|
\ Bugs: https://github.com/esotericpig/nhkore/issues\n \n"
|