texsc 0.5.1 → 0.6.0

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
  SHA256:
3
- metadata.gz: 5c17175ccf4ff188118c169998a047fcffff963bba7bb6c0091e8009ab649765
4
- data.tar.gz: 676f6c7eb559122c01aa94850f26341486ca3d69c171a23a8b79a987179919e4
3
+ metadata.gz: 1a0b900b5f83d63e4125937fd67a0ee1f633278fe34a5a38393057fa4a604019
4
+ data.tar.gz: 2dc1b9b642e1789a7f4bdc0441c46f3bed2de18e4c59fefa93ae313ec19ed208
5
5
  SHA512:
6
- metadata.gz: 4c63654aeaf9750b6b4084d112b0ccfd5c3460f679e8361027e2955d0c10a48c714bd8e3d177249fc5d14119697d5cea4544d551e3d5208d9589bfacf89841f2
7
- data.tar.gz: b0714b11c3c1dcb4eff8463314c5bf195f373c034dba9600aa1a5c732cc30fcd1b3911970157d5c843d0d5cc67543502629f036c8d4b7861b18444b0fd036aae
6
+ metadata.gz: b943bf18daae7bbb2d1af521a6fc2c4e2477347b4c661a90a4a0cc1f97264fa776afadecf0a68422846b48bec9abdbb241f39ddc8df362067b53077ed56a11e3
7
+ data.tar.gz: cc92c623781f8989dab859ebd07df50cd7c7757ca8f678ddc3be4c6da9065e1610fc8e29735d95a73fff715be3284e2065e897a3362b534ccc04f7c4618c529e
data/bin/texsc CHANGED
@@ -21,7 +21,7 @@
21
21
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  # SOFTWARE.
23
23
 
24
- VERSION = '0.5.1'
24
+ VERSION = '0.6.0'
25
25
 
26
26
  STDOUT.sync = true
27
27
 
@@ -66,7 +66,8 @@ Options are:"
66
66
  rescue Slop::Error => ex
67
67
  raise ex.message
68
68
  end
69
- raise 'Try --help' if opts.arguments.empty?
69
+ candidates = opts.arguments
70
+ candidates += Dir['*.tex'] if candidates.empty?
70
71
  if opts[:pws]
71
72
  log.debug("PWS with an additional dictionary is here: #{opts[:pws]}")
72
73
  opts[:pws] = File.expand_path(opts[:pws])
@@ -75,7 +76,7 @@ Options are:"
75
76
  end
76
77
  errors = 0
77
78
  files = 0
78
- opts.arguments.each do |f|
79
+ candidates.each do |f|
79
80
  tex = File.read(f)
80
81
  ignores = opts[:ignore].map do |e|
81
82
  c, o = e.split(':')
data/features/cli.feature CHANGED
@@ -14,7 +14,7 @@ Feature: Command Line Processing
14
14
  How are you, my dear friend?
15
15
  \end{document}
16
16
  """
17
- When I run bin/texsc with "article.tex"
17
+ When I run bin/texsc with ""
18
18
  Then Exit code is zero
19
19
  And Stdout contains "No spelling errors found in 1 file(s)"
20
20
 
data/texsc.gemspec CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
32
32
  s.rubygems_version = '2.2'
33
33
  s.required_ruby_version = '>= 2.3'
34
34
  s.name = 'texsc'
35
- s.version = '0.5.1'
35
+ s.version = '0.6.0'
36
36
  s.license = 'MIT'
37
37
  s.summary = 'Spell Checker for LaTeX'
38
38
  s.description = 'Simple command-line spell checker for LaTeX documents'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: texsc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-28 00:00:00.000000000 Z
11
+ date: 2021-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
173
  requirements: []
174
- rubygems_version: 3.0.1
174
+ rubygems_version: 3.1.2
175
175
  signing_key:
176
176
  specification_version: 2
177
177
  summary: Spell Checker for LaTeX