lovely_rufus 1.0.1 → 1.1.0
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 +5 -5
- data/.overcommit.yml +4 -0
- data/.reek.yml +3 -0
- data/.rubocop.yml +14 -8
- data/.tool-versions +1 -0
- data/.travis.yml +11 -4
- data/README.md +1 -1
- data/Rakefile +2 -4
- data/bin/lovely-rufus +0 -2
- data/gems.locked +99 -0
- data/{Gemfile → gems.rb} +0 -2
- data/lib/lovely_rufus/cli_wrapper.rb +0 -2
- data/lib/lovely_rufus/layers/basic_wrapper.rb +0 -2
- data/lib/lovely_rufus/layers/code_comment_stripper.rb +0 -2
- data/lib/lovely_rufus/layers/email_quote_stripper.rb +1 -3
- data/lib/lovely_rufus/layers/hangout_wrapper.rb +21 -22
- data/lib/lovely_rufus/layers/layer.rb +1 -3
- data/lib/lovely_rufus/layers/one_letter_gluer.rb +1 -3
- data/lib/lovely_rufus/layers/quote_stripper.rb +1 -3
- data/lib/lovely_rufus/settings.rb +0 -2
- data/lib/lovely_rufus/text_wrapper.rb +14 -14
- data/lib/lovely_rufus/wrap.rb +1 -3
- data/lib/lovely_rufus.rb +0 -4
- data/lovely_rufus.gemspec +9 -16
- data/test/lovely_rufus/cli_wrapper_test.rb +4 -6
- data/test/lovely_rufus/layers/basic_wrapper_test.rb +7 -9
- data/test/lovely_rufus/layers/code_comment_stripper_test.rb +17 -19
- data/test/lovely_rufus/layers/email_quote_stripper_test.rb +20 -22
- data/test/lovely_rufus/layers/hangout_wrapper_test.rb +6 -8
- data/test/lovely_rufus/layers/one_letter_gluer_test.rb +3 -5
- data/test/lovely_rufus/settings_test.rb +2 -4
- data/test/lovely_rufus/text_wrapper_test.rb +7 -9
- data/test/lovely_rufus/wrap_test.rb +0 -2
- data/test/lovely_rufus_test.rb +5 -5
- data/test/test_helper.rb +10 -15
- metadata +28 -74
- checksums.yaml.gz.sig +0 -0
- data/.reek +0 -2
- data/.ruby-version +0 -1
- data/Gemfile.lock +0 -77
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -2
@@ -1,5 +1,3 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
require_relative '../../test_helper'
|
4
2
|
require_relative '../../../lib/lovely_rufus/layers/code_comment_stripper'
|
5
3
|
require_relative '../../../lib/lovely_rufus/wrap'
|
@@ -9,20 +7,20 @@ module LovelyRufus
|
|
9
7
|
describe CodeCommentStripper do
|
10
8
|
describe '#call' do
|
11
9
|
it 'strips comments and adjusts width before calling the next layer' do
|
12
|
-
commented =
|
10
|
+
commented = <<~end
|
13
11
|
# to the extreme I rock a mic like a vandal
|
14
12
|
# light up a stage and wax a chump like a candle
|
15
13
|
end
|
16
|
-
uncommented =
|
14
|
+
uncommented = <<~end
|
17
15
|
to the extreme I rock a mic like a vandal
|
18
16
|
light up a stage and wax a chump like a candle
|
19
17
|
end
|
20
|
-
CodeCommentStripper.must_pass_to_next Wrap[commented, width: 72],
|
21
|
-
|
18
|
+
_(CodeCommentStripper).must_pass_to_next Wrap[commented, width: 72],
|
19
|
+
Wrap[uncommented, width: 70]
|
22
20
|
end
|
23
21
|
|
24
22
|
it 'adds comments back in (and adjusts width) before returning' do
|
25
|
-
text =
|
23
|
+
text = <<~end
|
26
24
|
# take heed, ’cause I’m a lyrical poet
|
27
25
|
# Miami’s on the scene just in case you didn’t know it
|
28
26
|
end
|
@@ -31,7 +29,7 @@ module LovelyRufus
|
|
31
29
|
end
|
32
30
|
|
33
31
|
it 'does not touch non-commented texts' do
|
34
|
-
text =
|
32
|
+
text = <<~end
|
35
33
|
my town, that created all the bass sound
|
36
34
|
enough to shake and kick holes in the ground
|
37
35
|
end
|
@@ -45,46 +43,46 @@ module LovelyRufus
|
|
45
43
|
end
|
46
44
|
|
47
45
|
it 'strips // code comments' do
|
48
|
-
commented =
|
46
|
+
commented = <<~end
|
49
47
|
// so fast other DJs say ‘damn!’
|
50
48
|
// if my rhyme was a drug I’d sell it by the gram
|
51
49
|
end
|
52
|
-
uncommented =
|
50
|
+
uncommented = <<~end
|
53
51
|
so fast other DJs say ‘damn!’
|
54
52
|
if my rhyme was a drug I’d sell it by the gram
|
55
53
|
end
|
56
|
-
CodeCommentStripper.must_pass_to_next Wrap[commented, width: 72],
|
57
|
-
|
54
|
+
_(CodeCommentStripper).must_pass_to_next Wrap[commented, width: 72],
|
55
|
+
Wrap[uncommented, width: 69]
|
58
56
|
end
|
59
57
|
|
60
58
|
it 'only considers homogenous characters as comments' do
|
61
|
-
commented =
|
59
|
+
commented = <<~end
|
62
60
|
# /if there was a problem,
|
63
61
|
# yo – I’ll solve it!/
|
64
62
|
end
|
65
|
-
uncommented =
|
63
|
+
uncommented = <<~end
|
66
64
|
/if there was a problem,
|
67
65
|
yo – I’ll solve it!/
|
68
66
|
end
|
69
|
-
CodeCommentStripper.must_pass_to_next Wrap[commented, width: 72],
|
70
|
-
|
67
|
+
_(CodeCommentStripper).must_pass_to_next Wrap[commented, width: 72],
|
68
|
+
Wrap[uncommented, width: 70]
|
71
69
|
end
|
72
70
|
|
73
71
|
it 'strips initial space indentation' do
|
74
72
|
indented = Wrap[' // check out the hook', width: 72]
|
75
73
|
passed = Wrap['check out the hook', width: 67]
|
76
|
-
CodeCommentStripper.must_pass_to_next indented, passed
|
74
|
+
_(CodeCommentStripper).must_pass_to_next indented, passed
|
77
75
|
end
|
78
76
|
|
79
77
|
it 'strips initial tab indentation' do
|
80
78
|
indented = Wrap["\t# while my DJ revolves it", width: 72]
|
81
79
|
stripped = Wrap['while my DJ revolves it', width: 69]
|
82
|
-
CodeCommentStripper.must_pass_to_next indented, stripped
|
80
|
+
_(CodeCommentStripper).must_pass_to_next indented, stripped
|
83
81
|
end
|
84
82
|
|
85
83
|
it 'pays proper homage to K&R' do
|
86
84
|
not_commented = Wrap['#define ASSERT(msg, cond) // TODO']
|
87
|
-
CodeCommentStripper.must_pass_to_next not_commented, not_commented
|
85
|
+
_(CodeCommentStripper).must_pass_to_next not_commented, not_commented
|
88
86
|
end
|
89
87
|
end
|
90
88
|
end
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
require_relative '../../test_helper'
|
4
2
|
require_relative '../../../lib/lovely_rufus/layers/email_quote_stripper'
|
5
3
|
require_relative '../../../lib/lovely_rufus/wrap'
|
@@ -9,20 +7,20 @@ module LovelyRufus
|
|
9
7
|
describe EmailQuoteStripper do
|
10
8
|
describe '#call' do
|
11
9
|
it 'strips quotes and adjusts width before calling the next layer' do
|
12
|
-
quoted =
|
10
|
+
quoted = <<~end
|
13
11
|
> to the extreme I rock a mic like a vandal
|
14
12
|
> light up a stage and wax a chump like a candle
|
15
13
|
end
|
16
|
-
unquoted =
|
14
|
+
unquoted = <<~end
|
17
15
|
to the extreme I rock a mic like a vandal
|
18
16
|
light up a stage and wax a chump like a candle
|
19
17
|
end
|
20
|
-
EmailQuoteStripper.must_pass_to_next Wrap[quoted, width: 72],
|
21
|
-
|
18
|
+
_(EmailQuoteStripper).must_pass_to_next Wrap[quoted, width: 72],
|
19
|
+
Wrap[unquoted, width: 70]
|
22
20
|
end
|
23
21
|
|
24
22
|
it 'adds quotes back in (and adjusts width) before returning' do
|
25
|
-
quoted =
|
23
|
+
quoted = <<~end
|
26
24
|
> take heed, ’cause I’m a lyrical poet
|
27
25
|
> Miami’s on the scene just in case you didn’t know it
|
28
26
|
end
|
@@ -31,7 +29,7 @@ module LovelyRufus
|
|
31
29
|
end
|
32
30
|
|
33
31
|
it 'does not touch non-quoted texts' do
|
34
|
-
plain =
|
32
|
+
plain = <<~end
|
35
33
|
my town, that created all the bass sound
|
36
34
|
enough to shake and kick holes in the ground
|
37
35
|
end
|
@@ -45,38 +43,38 @@ module LovelyRufus
|
|
45
43
|
end
|
46
44
|
|
47
45
|
it 'strips multilevel quotes' do
|
48
|
-
quoted =
|
46
|
+
quoted = <<~end
|
49
47
|
>> ’cause my style’s like a chemical spill
|
50
48
|
>> feasible rhymes that you can vision and feel
|
51
49
|
end
|
52
|
-
unquoted =
|
50
|
+
unquoted = <<~end
|
53
51
|
’cause my style’s like a chemical spill
|
54
52
|
feasible rhymes that you can vision and feel
|
55
53
|
end
|
56
|
-
EmailQuoteStripper.must_pass_to_next Wrap[quoted, width: 72],
|
57
|
-
|
54
|
+
_(EmailQuoteStripper).must_pass_to_next Wrap[quoted, width: 72],
|
55
|
+
Wrap[unquoted, width: 69]
|
58
56
|
end
|
59
57
|
|
60
58
|
it 'strips broken quotes properly' do
|
61
|
-
quoted =
|
59
|
+
quoted = <<~end
|
62
60
|
> > >conducted and formed this is a hell of a concept
|
63
61
|
> > >we make it hype and you want to step with this
|
64
62
|
end
|
65
|
-
unquoted =
|
63
|
+
unquoted = <<~end
|
66
64
|
conducted and formed this is a hell of a concept
|
67
65
|
we make it hype and you want to step with this
|
68
66
|
end
|
69
|
-
EmailQuoteStripper.must_pass_to_next Wrap[quoted, width: 72],
|
70
|
-
|
67
|
+
_(EmailQuoteStripper).must_pass_to_next Wrap[quoted, width: 72],
|
68
|
+
Wrap[unquoted, width: 68]
|
71
69
|
end
|
72
70
|
|
73
71
|
it 'fixes broken quotes when adding them back in' do
|
74
|
-
quoted =
|
72
|
+
quoted = <<~end
|
75
73
|
> > >Shay plays on the fade,
|
76
74
|
> > >slice like a ninja
|
77
75
|
> > >cut like a razor blade
|
78
76
|
end
|
79
|
-
fixed =
|
77
|
+
fixed = <<~end
|
80
78
|
>>> Shay plays on the fade,
|
81
79
|
>>> slice like a ninja
|
82
80
|
>>> cut like a razor blade
|
@@ -86,16 +84,16 @@ module LovelyRufus
|
|
86
84
|
end
|
87
85
|
|
88
86
|
it 'only considers homogenous characters as comments' do
|
89
|
-
quoted =
|
87
|
+
quoted = <<~end
|
90
88
|
> /if there was a problem,
|
91
89
|
> yo – I’ll solve it!/
|
92
90
|
end
|
93
|
-
unquoted =
|
91
|
+
unquoted = <<~end
|
94
92
|
/if there was a problem,
|
95
93
|
yo – I’ll solve it!/
|
96
94
|
end
|
97
|
-
EmailQuoteStripper.must_pass_to_next Wrap[quoted, width: 72],
|
98
|
-
|
95
|
+
_(EmailQuoteStripper).must_pass_to_next Wrap[quoted, width: 72],
|
96
|
+
Wrap[unquoted, width: 70]
|
99
97
|
end
|
100
98
|
end
|
101
99
|
end
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
require_relative '../../test_helper'
|
4
2
|
require_relative '../../../lib/lovely_rufus/layers/hangout_wrapper'
|
5
3
|
require_relative '../../../lib/lovely_rufus/wrap'
|
@@ -9,11 +7,11 @@ module LovelyRufus
|
|
9
7
|
describe HangoutWrapper do
|
10
8
|
describe '#call' do
|
11
9
|
it 'removes hangouts from the text' do
|
12
|
-
text =
|
10
|
+
text = <<~end
|
13
11
|
I go crazy when I hear a cymbal and
|
14
12
|
a hi-hat with a souped-up tempo
|
15
13
|
end
|
16
|
-
wrap =
|
14
|
+
wrap = <<~end
|
17
15
|
I go crazy when I hear a cymbal
|
18
16
|
and a hi-hat with a souped-up tempo
|
19
17
|
end
|
@@ -22,15 +20,15 @@ module LovelyRufus
|
|
22
20
|
end
|
23
21
|
|
24
22
|
it 'passes the fixed text to the next layer and returns its outcome' do
|
25
|
-
final =
|
26
|
-
layer =
|
27
|
-
|
23
|
+
final = mock.quacks_like_instance_of(Wrap)
|
24
|
+
layer = mock.quacks_like_instance_of(Layer)
|
25
|
+
layer.expects(:call).with(instance_of(Wrap)).returns(final)
|
28
26
|
wrapped = HangoutWrapper.new(layer).call(Wrap["I O\nU", width: 4])
|
29
27
|
_(wrapped).must_equal final
|
30
28
|
end
|
31
29
|
|
32
30
|
it 'doesn’t let the last line to hang out' do
|
33
|
-
text =
|
31
|
+
text = <<~end
|
34
32
|
Just found out the Finnish term for grammar Nazi is pilkunnussija.
|
35
33
|
Direct translation: comma fucker. You’re welcome.
|
36
34
|
end
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
require_relative '../../test_helper'
|
4
2
|
require_relative '../../../lib/lovely_rufus/layers/one_letter_gluer'
|
5
3
|
require_relative '../../../lib/lovely_rufus/wrap'
|
@@ -23,9 +21,9 @@ module LovelyRufus
|
|
23
21
|
end
|
24
22
|
|
25
23
|
it 'passes the fixed text to the next layer and returns its outcome' do
|
26
|
-
final =
|
27
|
-
layer =
|
28
|
-
|
24
|
+
final = mock.quacks_like_instance_of(Wrap)
|
25
|
+
layer = mock.quacks_like_instance_of(Layer)
|
26
|
+
layer.expects(:call).with(Wrap['I O U', width: 69]).returns(final)
|
29
27
|
glued = OneLetterGluer.new(layer).call(Wrap['I O U', width: 69])
|
30
28
|
_(glued).must_equal final
|
31
29
|
end
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
require_relative '../test_helper'
|
4
2
|
require_relative '../../lib/lovely_rufus/settings'
|
5
3
|
|
@@ -11,11 +9,11 @@ module LovelyRufus
|
|
11
9
|
end
|
12
10
|
|
13
11
|
it 'can be set via --width' do
|
14
|
-
_(Settings.new(%w
|
12
|
+
_(Settings.new(%w[--width=42]).width).must_equal 42
|
15
13
|
end
|
16
14
|
|
17
15
|
it 'can be set via -w' do
|
18
|
-
_(Settings.new(%w
|
16
|
+
_(Settings.new(%w[-w 42]).width).must_equal 42
|
19
17
|
end
|
20
18
|
end
|
21
19
|
end
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
require 'yaml'
|
4
2
|
require_relative '../test_helper'
|
5
3
|
require_relative '../../lib/lovely_rufus/text_wrapper'
|
@@ -9,8 +7,8 @@ module LovelyRufus
|
|
9
7
|
describe '.wrap' do
|
10
8
|
it 'wraps the passed String to 72 characters by default' do
|
11
9
|
short = 'all right: stop, collaborate and listen'
|
12
|
-
long = short
|
13
|
-
wrap =
|
10
|
+
long = "#{short} – Ice is back with a brand new invention"
|
11
|
+
wrap = <<~end
|
14
12
|
all right: stop, collaborate and listen
|
15
13
|
– Ice is back with a brand new invention
|
16
14
|
end
|
@@ -20,12 +18,12 @@ module LovelyRufus
|
|
20
18
|
|
21
19
|
it 'wraps the passed String to the given number of characters' do
|
22
20
|
input = 'something grabs a hold of me tightly; ' \
|
23
|
-
|
24
|
-
_(TextWrapper.wrap(input, width: 40)).must_equal
|
21
|
+
'flow like a harpoon – daily and nightly'
|
22
|
+
_(TextWrapper.wrap(input, width: 40)).must_equal <<~end
|
25
23
|
something grabs a hold of me tightly;
|
26
24
|
flow like a harpoon – daily and nightly
|
27
25
|
end
|
28
|
-
_(TextWrapper.wrap(input, width: 21)).must_equal
|
26
|
+
_(TextWrapper.wrap(input, width: 21)).must_equal <<~end
|
29
27
|
something grabs
|
30
28
|
a hold of me tightly;
|
31
29
|
flow like a harpoon
|
@@ -34,7 +32,7 @@ module LovelyRufus
|
|
34
32
|
end
|
35
33
|
|
36
34
|
it 'rewraps a String from zero' do
|
37
|
-
broken =
|
35
|
+
broken = <<~end
|
38
36
|
turn off
|
39
37
|
the lights and I’ll glow
|
40
38
|
end
|
@@ -45,7 +43,7 @@ module LovelyRufus
|
|
45
43
|
it 'supports all the example use-cases' do
|
46
44
|
path = File.expand_path('text_wrapper_test.yml', __dir__)
|
47
45
|
YAML.load_file(path).each do |spec|
|
48
|
-
width = spec.fetch('width'
|
46
|
+
width = spec.fetch('width', 72)
|
49
47
|
wrap = "#{spec['output']}\n"
|
50
48
|
_(TextWrapper.wrap(spec['input'], width: width)).must_equal wrap
|
51
49
|
end
|
data/test/lovely_rufus_test.rb
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
require_relative 'test_helper'
|
4
2
|
require_relative '../lib/lovely_rufus'
|
3
|
+
require_relative '../lib/lovely_rufus/text_wrapper'
|
5
4
|
|
6
5
|
describe LovelyRufus do
|
7
6
|
describe '.wrap' do
|
8
|
-
let(:text_wrapper) {
|
7
|
+
let(:text_wrapper) { mock.quacks_like(LovelyRufus::TextWrapper) }
|
9
8
|
|
10
9
|
it 'offloads the wrapping to TextWrapper' do
|
11
|
-
|
10
|
+
text_wrapper.stubs(:wrap).with('Ice Ice Baby', width: 7)
|
11
|
+
.returns("Ice Ice\nBaby\n")
|
12
12
|
_(LovelyRufus.wrap('Ice Ice Baby', text_wrapper: text_wrapper, width: 7))
|
13
13
|
.must_equal "Ice Ice\nBaby\n"
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'wraps the passed String to 72 characters by default' do
|
17
|
+
text_wrapper.expects(:wrap).with('Ice Ice Baby', width: 72)
|
17
18
|
LovelyRufus.wrap 'Ice Ice Baby', text_wrapper: text_wrapper
|
18
|
-
_(text_wrapper).must_have_received :wrap, ['Ice Ice Baby', { width: 72 }]
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,30 +1,25 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
ENV['MT_NO_EXPECTATIONS'] = 'true'
|
4
|
-
require 'bundler/setup'
|
5
2
|
require 'minitest/autorun'
|
6
3
|
require 'minitest/focus'
|
7
4
|
require 'minitest/pride'
|
8
|
-
require '
|
9
|
-
require 'lovely_rufus'
|
5
|
+
require 'mocha/minitest'
|
10
6
|
require_relative '../lib/lovely_rufus/layers/layer'
|
11
7
|
require_relative '../lib/lovely_rufus/wrap'
|
12
8
|
|
13
|
-
|
14
|
-
config.
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
end
|
9
|
+
Mocha.configure do |config|
|
10
|
+
config.display_matching_invocations_on_failure = true
|
11
|
+
config.strict_keyword_argument_matching = true
|
12
|
+
config.stubbing_method_on_non_mock_object = :prevent
|
13
|
+
config.stubbing_method_unnecessarily = :prevent
|
14
|
+
config.stubbing_non_existent_method = :prevent
|
15
|
+
config.stubbing_non_public_method = :prevent
|
21
16
|
end
|
22
17
|
|
23
18
|
module CustomAssertions
|
24
19
|
def assert_passes_to_next(subject, called_with, to_be_passed)
|
25
|
-
next_layer =
|
20
|
+
next_layer = mock.quacks_like_instance_of(LovelyRufus::Layers::Layer)
|
21
|
+
next_layer.expects(:call).with(to_be_passed).returns(LovelyRufus::Wrap.new)
|
26
22
|
subject.new(next_layer).call called_with
|
27
|
-
assert_received next_layer, :call, [to_be_passed]
|
28
23
|
end
|
29
24
|
end
|
30
25
|
|
metadata
CHANGED
@@ -1,51 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lovely_rufus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Szotkowski
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMREwDwYDVQQDDAhjaGFz
|
14
|
-
dGVsbDEYMBYGCgmSJomT8ixkARkWCGNoYXN0ZWxsMRMwEQYKCZImiZPyLGQBGRYD
|
15
|
-
bmV0MB4XDTE1MTEwOTIxMTMwOVoXDTE2MTEwODIxMTMwOVowQjERMA8GA1UEAwwI
|
16
|
-
Y2hhc3RlbGwxGDAWBgoJkiaJk/IsZAEZFghjaGFzdGVsbDETMBEGCgmSJomT8ixk
|
17
|
-
ARkWA25ldDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMcf6OF3mi6D
|
18
|
-
UedwY2A6fYEQF2bJVYQxV8fWHA5Q2R6y7Eg0hM80Q0yod7pJxlJTpnAPzuIl1u4y
|
19
|
-
hhfa/Vz0u6PVRhBYQ/Bcj9UEwgiXcy3P4ybINDeDt7GRVs3R9rRoT1aAsb5RCS0z
|
20
|
-
u/JKS2RcAS5XPpFow3Cfs5A/pM2NLsR/zeiaKg8rRB59A/tWw26F+YTaWfPAPFGv
|
21
|
-
d6af29NKWQh+EPkX1JwwtSwjKfVOeFr0csC6QLWKpp1z/7Lla8d3px426Ccjca0I
|
22
|
-
5VwtQeZ5LClTjqaYyH7vSojpOtgRuvVKspZ2jfe1KZq9jz//a/rSUrFcPlEQuXQp
|
23
|
-
i8E3TKoJrW0CAwEAAaN9MHswCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O
|
24
|
-
BBYEFLi/J921Nb53s8GKtKptC08QmHnwMCAGA1UdEQQZMBeBFWNoYXN0ZWxsQGNo
|
25
|
-
YXN0ZWxsLm5ldDAgBgNVHRIEGTAXgRVjaGFzdGVsbEBjaGFzdGVsbC5uZXQwDQYJ
|
26
|
-
KoZIhvcNAQEFBQADggEBAA+rUbXujzqDv8WE7kkiJadQhxldq/cRhaJDMKSWF3/H
|
27
|
-
6PL/Me8zq8Ok7/pQtxBvAhKcy3DdsH0q5pyPHoMrYySxEo9lNXLvwCPsi21rR53b
|
28
|
-
2w5rBytYCxrhsXISKwCkBYwVwtICafZ8VtRbD3pgnsPv+9NYJJ/rN4Z34doWM7oK
|
29
|
-
CAfY6o0LcY+qmvqLvqpweyoO73wkfKGUSz1a09dJfAP5aIREQDvpYrWx2ZoDrAct
|
30
|
-
srwnZ6g5uTvNbd0I1SnvnCJJ5y5iPvJIBlnGb3QZ77y2XXCOy3Yc0rjK7A8bQt5t
|
31
|
-
xOlyYMPKhWx2IqEip+J7PBpBwMnxIPhTcNlFOj8mSa0=
|
32
|
-
-----END CERTIFICATE-----
|
33
|
-
date: 2016-09-02 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2025-05-19 00:00:00.000000000 Z
|
34
12
|
dependencies:
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: bogus
|
37
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: 0.1.4
|
42
|
-
type: :development
|
43
|
-
prerelease: false
|
44
|
-
version_requirements: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - "~>"
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: 0.1.4
|
49
13
|
- !ruby/object:Gem::Dependency
|
50
14
|
name: minitest
|
51
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,61 +39,61 @@ dependencies:
|
|
75
39
|
- !ruby/object:Gem::Version
|
76
40
|
version: '1.1'
|
77
41
|
- !ruby/object:Gem::Dependency
|
78
|
-
name:
|
42
|
+
name: mocha
|
79
43
|
requirement: !ruby/object:Gem::Requirement
|
80
44
|
requirements:
|
81
45
|
- - "~>"
|
82
46
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
47
|
+
version: '2.7'
|
84
48
|
type: :development
|
85
49
|
prerelease: false
|
86
50
|
version_requirements: !ruby/object:Gem::Requirement
|
87
51
|
requirements:
|
88
52
|
- - "~>"
|
89
53
|
- !ruby/object:Gem::Version
|
90
|
-
version: '
|
54
|
+
version: '2.7'
|
91
55
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
56
|
+
name: rake
|
93
57
|
requirement: !ruby/object:Gem::Requirement
|
94
58
|
requirements:
|
95
59
|
- - "~>"
|
96
60
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
61
|
+
version: '13.0'
|
98
62
|
type: :development
|
99
63
|
prerelease: false
|
100
64
|
version_requirements: !ruby/object:Gem::Requirement
|
101
65
|
requirements:
|
102
66
|
- - "~>"
|
103
67
|
- !ruby/object:Gem::Version
|
104
|
-
version: '
|
68
|
+
version: '13.0'
|
105
69
|
- !ruby/object:Gem::Dependency
|
106
|
-
name:
|
70
|
+
name: reek
|
107
71
|
requirement: !ruby/object:Gem::Requirement
|
108
72
|
requirements:
|
109
73
|
- - "~>"
|
110
74
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
75
|
+
version: '6.0'
|
112
76
|
type: :development
|
113
77
|
prerelease: false
|
114
78
|
version_requirements: !ruby/object:Gem::Requirement
|
115
79
|
requirements:
|
116
80
|
- - "~>"
|
117
81
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
82
|
+
version: '6.0'
|
119
83
|
- !ruby/object:Gem::Dependency
|
120
84
|
name: rubocop
|
121
85
|
requirement: !ruby/object:Gem::Requirement
|
122
86
|
requirements:
|
123
87
|
- - "~>"
|
124
88
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
89
|
+
version: '1.0'
|
126
90
|
type: :development
|
127
91
|
prerelease: false
|
128
92
|
version_requirements: !ruby/object:Gem::Requirement
|
129
93
|
requirements:
|
130
94
|
- - "~>"
|
131
95
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
96
|
+
version: '1.0'
|
133
97
|
description: An executable and a Ruby library for wrapping paragraphs of text.
|
134
98
|
email: chastell@chastell.net
|
135
99
|
executables:
|
@@ -137,17 +101,18 @@ executables:
|
|
137
101
|
extensions: []
|
138
102
|
extra_rdoc_files: []
|
139
103
|
files:
|
140
|
-
- ".
|
104
|
+
- ".overcommit.yml"
|
105
|
+
- ".reek.yml"
|
141
106
|
- ".rubocop.yml"
|
142
|
-
- ".
|
107
|
+
- ".tool-versions"
|
143
108
|
- ".travis.yml"
|
144
|
-
- Gemfile
|
145
|
-
- Gemfile.lock
|
146
109
|
- LICENCE
|
147
110
|
- README.md
|
148
111
|
- Rakefile
|
149
112
|
- bin/lovely-rufus
|
150
113
|
- certs/chastell.pem
|
114
|
+
- gems.locked
|
115
|
+
- gems.rb
|
151
116
|
- lib/lovely_rufus.rb
|
152
117
|
- lib/lovely_rufus/cli_wrapper.rb
|
153
118
|
- lib/lovely_rufus/layers/basic_wrapper.rb
|
@@ -175,9 +140,10 @@ files:
|
|
175
140
|
- test/test_helper.rb
|
176
141
|
homepage: http://github.com/chastell/lovely_rufus
|
177
142
|
licenses:
|
178
|
-
- AGPL-3.0
|
179
|
-
metadata:
|
180
|
-
|
143
|
+
- AGPL-3.0-or-later
|
144
|
+
metadata:
|
145
|
+
rubygems_mfa_required: 'true'
|
146
|
+
post_install_message:
|
181
147
|
rdoc_options: []
|
182
148
|
require_paths:
|
183
149
|
- lib
|
@@ -185,27 +151,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
185
151
|
requirements:
|
186
152
|
- - "~>"
|
187
153
|
- !ruby/object:Gem::Version
|
188
|
-
version: '
|
154
|
+
version: '3.0'
|
189
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
156
|
requirements:
|
191
157
|
- - ">="
|
192
158
|
- !ruby/object:Gem::Version
|
193
159
|
version: '0'
|
194
160
|
requirements: []
|
195
|
-
|
196
|
-
|
197
|
-
signing_key:
|
161
|
+
rubygems_version: 3.5.23
|
162
|
+
signing_key:
|
198
163
|
specification_version: 4
|
199
164
|
summary: 'lovely_rufus: text wrapper'
|
200
|
-
test_files:
|
201
|
-
- test/lovely_rufus/cli_wrapper_test.rb
|
202
|
-
- test/lovely_rufus/layers/basic_wrapper_test.rb
|
203
|
-
- test/lovely_rufus/layers/code_comment_stripper_test.rb
|
204
|
-
- test/lovely_rufus/layers/email_quote_stripper_test.rb
|
205
|
-
- test/lovely_rufus/layers/hangout_wrapper_test.rb
|
206
|
-
- test/lovely_rufus/layers/one_letter_gluer_test.rb
|
207
|
-
- test/lovely_rufus/settings_test.rb
|
208
|
-
- test/lovely_rufus/text_wrapper_test.rb
|
209
|
-
- test/lovely_rufus/wrap_test.rb
|
210
|
-
- test/lovely_rufus_test.rb
|
211
|
-
- test/test_helper.rb
|
165
|
+
test_files: []
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data/.reek
DELETED
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.3
|