fcom 0.4.3 → 0.5.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: 542153066039ad8c2be4c2613c603af71bcd261b7ca9c07ca50d8e0d1657a19f
4
- data.tar.gz: 0e9b8ba5049ad6e830b543fc334f456d02f0f4c2346b44ba7acda51a14159630
3
+ metadata.gz: 76006d9745d812f88cb460c6817a1a3f310e1fb90f9f5f1374f7cd49537756ba
4
+ data.tar.gz: 1ffba8aad35e878b5771641cfa0a605c45b4cf08c7b4c0198f0aef4cf1a01b7a
5
5
  SHA512:
6
- metadata.gz: 8a4a0f6b58356965805b570b52b33bfba71b6fbd8f1a9e4c9bebf5ab2b0a69feef55d1bfb73dd034c03b5de9810d1f6ddb34e18407c864628ead211f4d95b687
7
- data.tar.gz: 14ff3e0608ed6f6d58e8da2ca857fc0fca31cdb7caecaea20ec66dbe8fd7d1bf85df5d48e33e8120b7546c66e76ac65fac83757e54629800a0f6bd460ad70f0d
6
+ metadata.gz: 61515990022d72f64cb504fc77dd3782171d971c7168702cec540dbfd82f72e3e6d3a7594e8aee2a775291c41e37c171438b91cd9984ec8f26331a187365cf51
7
+ data.tar.gz: 3725d0d63beb578cf593e08afeb006754c2137262c729501a6400a8667cd75af63fdbab35696020ffdc62ca7c9e47276a01d8cedff484994e0b204b952bf82d9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.5.0 (2023-06-20)
2
+ - Switch from `colorize` to `rainbow` for colored terminal output
3
+
1
4
  ## v0.4.3 (2023-05-30)
2
5
  ### Changed
3
6
  - Move from Memoist to MemoWise
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fcom (0.4.3)
4
+ fcom (0.5.0)
5
5
  activesupport (>= 6, < 8)
6
- colorize (~> 0.8)
7
6
  memo_wise (>= 1.7, < 2)
7
+ rainbow (>= 3.0, < 4)
8
8
  slop (~> 4.8)
9
9
 
10
10
  GEM
@@ -18,28 +18,28 @@ GEM
18
18
  ast (2.4.2)
19
19
  byebug (11.1.3)
20
20
  coderay (1.1.3)
21
- colorize (0.8.1)
22
21
  concurrent-ruby (1.2.2)
23
22
  diff-lcs (1.5.0)
24
- i18n (1.13.0)
23
+ i18n (1.14.1)
25
24
  concurrent-ruby (~> 1.0)
26
25
  json (2.6.3)
27
26
  memo_wise (1.7.0)
28
- memoist (0.16.2)
29
27
  method_source (1.0.0)
30
- minitest (5.18.0)
28
+ minitest (5.18.1)
31
29
  parallel (1.23.0)
32
- parser (3.2.2.1)
30
+ parser (3.2.2.3)
33
31
  ast (~> 2.4.1)
32
+ racc
34
33
  pry (0.14.2)
35
34
  coderay (~> 1.1)
36
35
  method_source (~> 1.0)
37
36
  pry-byebug (3.10.1)
38
37
  byebug (~> 11.0)
39
38
  pry (>= 0.13, < 0.15)
39
+ racc (1.7.0)
40
40
  rainbow (3.1.1)
41
41
  rake (13.0.6)
42
- regexp_parser (2.8.0)
42
+ regexp_parser (2.8.1)
43
43
  rexml (3.2.5)
44
44
  rspec (3.12.0)
45
45
  rspec-core (~> 3.12.0)
@@ -54,17 +54,17 @@ GEM
54
54
  diff-lcs (>= 1.2.0, < 2.0)
55
55
  rspec-support (~> 3.12.0)
56
56
  rspec-support (3.12.0)
57
- rubocop (1.51.0)
57
+ rubocop (1.52.1)
58
58
  json (~> 2.3)
59
59
  parallel (~> 1.10)
60
- parser (>= 3.2.0.0)
60
+ parser (>= 3.2.2.3)
61
61
  rainbow (>= 2.2.2, < 4.0)
62
62
  regexp_parser (>= 1.8, < 3.0)
63
63
  rexml (>= 3.2.5, < 4.0)
64
64
  rubocop-ast (>= 1.28.0, < 2.0)
65
65
  ruby-progressbar (~> 1.7)
66
66
  unicode-display_width (>= 2.4.0, < 3.0)
67
- rubocop-ast (1.28.1)
67
+ rubocop-ast (1.29.0)
68
68
  parser (>= 3.2.1.0)
69
69
  rubocop-capybara (2.18.0)
70
70
  rubocop (~> 1.41)
@@ -80,10 +80,10 @@ GEM
80
80
  rubocop-capybara (~> 2.17)
81
81
  rubocop-factory_bot (~> 2.22)
82
82
  ruby-progressbar (1.13.0)
83
- runger_release_assistant (0.4.0)
83
+ runger_release_assistant (0.5.0)
84
84
  activesupport (>= 6, < 8)
85
- colorize (~> 0.8)
86
- memoist (~> 0.16)
85
+ memo_wise (>= 1.7, < 2)
86
+ rainbow (>= 3.0, < 4)
87
87
  slop (~> 4.8)
88
88
  runger_style (0.3.0)
89
89
  rubocop (>= 1.38.0, < 2)
data/fcom.gemspec CHANGED
@@ -33,8 +33,8 @@ Gem::Specification.new do |spec|
33
33
  spec.require_paths = ['lib']
34
34
 
35
35
  spec.add_dependency('activesupport', '>= 6', '< 8')
36
- spec.add_dependency('colorize', '~> 0.8')
37
36
  spec.add_dependency('memo_wise', '>= 1.7', '< 2')
37
+ spec.add_dependency('rainbow', '>= 3.0', '< 4')
38
38
  spec.add_dependency('slop', '~> 4.8')
39
39
 
40
40
  spec.required_ruby_version = '>= 3.2'
data/lib/fcom/parser.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ using Rainbow
4
+
3
5
  # This class parses (and then reprints some of) STDIN according to the options passed to `fcom`.
4
6
  class Fcom::Parser
5
7
  include ::Fcom::OptionsHelpers
data/lib/fcom/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  # rubocop:disable Style/StaticClass
4
4
  class Fcom
5
- VERSION = '0.4.3'
5
+ VERSION = '0.5.0'
6
6
  end
7
7
  # rubocop:enable Style/StaticClass
data/lib/fcom.rb CHANGED
@@ -1,11 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'active_support/all'
4
- require 'colorize'
5
4
  require 'memo_wise'
5
+ require 'rainbow/refinement'
6
6
  require 'slop'
7
7
  require 'yaml'
8
8
 
9
+ using Rainbow
10
+
9
11
  # This `Fcom` class is the namespace within which most of the gem's code is written.
10
12
  # We need to define the class before requiring the modules.
11
13
  # rubocop:disable Lint/EmptyClass
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fcom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-30 00:00:00.000000000 Z
11
+ date: 2023-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -31,39 +31,45 @@ dependencies:
31
31
  - !ruby/object:Gem::Version
32
32
  version: '8'
33
33
  - !ruby/object:Gem::Dependency
34
- name: colorize
34
+ name: memo_wise
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '0.8'
39
+ version: '1.7'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '2'
40
43
  type: :runtime
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
44
- - - "~>"
47
+ - - ">="
45
48
  - !ruby/object:Gem::Version
46
- version: '0.8'
49
+ version: '1.7'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '2'
47
53
  - !ruby/object:Gem::Dependency
48
- name: memo_wise
54
+ name: rainbow
49
55
  requirement: !ruby/object:Gem::Requirement
50
56
  requirements:
51
57
  - - ">="
52
58
  - !ruby/object:Gem::Version
53
- version: '1.7'
59
+ version: '3.0'
54
60
  - - "<"
55
61
  - !ruby/object:Gem::Version
56
- version: '2'
62
+ version: '4'
57
63
  type: :runtime
58
64
  prerelease: false
59
65
  version_requirements: !ruby/object:Gem::Requirement
60
66
  requirements:
61
67
  - - ">="
62
68
  - !ruby/object:Gem::Version
63
- version: '1.7'
69
+ version: '3.0'
64
70
  - - "<"
65
71
  - !ruby/object:Gem::Version
66
- version: '2'
72
+ version: '4'
67
73
  - !ruby/object:Gem::Dependency
68
74
  name: slop
69
75
  requirement: !ruby/object:Gem::Requirement