lovely_rufus 0.3.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +3 -0
- data/.reek +0 -13
- data/Gemfile.lock +20 -23
- data/README.md +4 -4
- data/certs/chastell.pem +21 -0
- data/lovely_rufus.gemspec +11 -3
- metadata +31 -8
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8a7506b842cfa774ae330401ec749a62a747f45
|
4
|
+
data.tar.gz: 2b87ba178ae72ff65d1d5fc0034e8b792af0cc72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f001a856ce6dbf2352e041c0523fa279dfb7f29c887e943341fe788e94df76686a2122e0570a872b24911751a059a6c51599d17ac5573af011a537e330dbb30d
|
7
|
+
data.tar.gz: 1be429a0ad375e82961bbfa99bc230577b81ccc5cc192c494922cbdbb5b4556d8e879348c44228f506ce26ba60801b249a71c8d022b787ff4afe19d565b137f5
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
data/.reek
CHANGED
@@ -1,15 +1,2 @@
|
|
1
|
-
DuplicateMethodCall:
|
2
|
-
exclude:
|
3
|
-
- LovelyRufus::Layers::BasicWrapper#call
|
4
|
-
|
5
|
-
FeatureEnvy:
|
6
|
-
exclude:
|
7
|
-
- LovelyRufus::Layers::BasicWrapper#call
|
8
|
-
- LovelyRufus::Layers::OneLetterGluer#call
|
9
|
-
|
10
1
|
IrresponsibleModule:
|
11
2
|
enabled: false
|
12
|
-
|
13
|
-
UncommunicativeVariableName:
|
14
|
-
exclude:
|
15
|
-
- LovelyRufus::Layers::HangoutWrapper#hangout_line
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lovely_rufus (0.
|
4
|
+
lovely_rufus (1.0.0)
|
5
5
|
private_attr (~> 1.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -11,13 +11,11 @@ GEM
|
|
11
11
|
adamantium (0.2.0)
|
12
12
|
ice_nine (~> 0.11.0)
|
13
13
|
memoizable (~> 0.4.0)
|
14
|
-
ast (2.
|
14
|
+
ast (2.1.0)
|
15
15
|
astrolabe (1.3.1)
|
16
16
|
parser (~> 2.2)
|
17
17
|
bogus (0.1.6)
|
18
18
|
dependor (>= 0.0.4)
|
19
|
-
celluloid (0.16.0)
|
20
|
-
timers (~> 4.0.0)
|
21
19
|
concord (0.1.5)
|
22
20
|
adamantium (~> 0.2.0)
|
23
21
|
equalizer (~> 0.0.9)
|
@@ -25,43 +23,42 @@ GEM
|
|
25
23
|
diff-lcs (1.2.5)
|
26
24
|
equalizer (0.0.11)
|
27
25
|
ffi (1.9.10)
|
28
|
-
hitimes (1.2.2)
|
29
26
|
ice_nine (0.11.1)
|
30
|
-
listen (
|
31
|
-
celluloid (~> 0.16.0)
|
27
|
+
listen (3.0.4)
|
32
28
|
rb-fsevent (>= 0.9.3)
|
33
29
|
rb-inotify (>= 0.9)
|
34
30
|
memoizable (0.4.2)
|
35
31
|
thread_safe (~> 0.3, >= 0.3.1)
|
36
|
-
minitest (5.
|
37
|
-
minitest-focus (1.1.
|
32
|
+
minitest (5.8.2)
|
33
|
+
minitest-focus (1.1.2)
|
38
34
|
minitest (>= 4, < 6)
|
39
|
-
parser (2.2.
|
35
|
+
parser (2.2.3.0)
|
40
36
|
ast (>= 1.1, < 3.0)
|
41
37
|
powerpack (0.1.1)
|
42
38
|
private_attr (1.1.0)
|
43
39
|
procto (0.0.2)
|
44
40
|
rainbow (2.0.0)
|
45
41
|
rake (10.4.2)
|
46
|
-
rb-fsevent (0.9.
|
42
|
+
rb-fsevent (0.9.6)
|
47
43
|
rb-inotify (0.9.5)
|
48
44
|
ffi (>= 0.5.0)
|
49
|
-
reek (3.
|
50
|
-
parser (~> 2.2.2.5)
|
45
|
+
reek (3.6.0)
|
46
|
+
parser (~> 2.2, >= 2.2.2.5)
|
47
|
+
private_attr (~> 1.1)
|
51
48
|
rainbow (~> 2.0)
|
52
49
|
unparser (~> 0.2.2)
|
53
|
-
rerun (0.
|
54
|
-
listen (~>
|
55
|
-
rubocop (0.
|
50
|
+
rerun (0.11.0)
|
51
|
+
listen (~> 3.0)
|
52
|
+
rubocop (0.35.1)
|
56
53
|
astrolabe (~> 1.3)
|
57
|
-
parser (>= 2.2.
|
54
|
+
parser (>= 2.2.3.0, < 3.0)
|
58
55
|
powerpack (~> 0.1)
|
59
56
|
rainbow (>= 1.99.1, < 3.0)
|
60
|
-
ruby-progressbar (~> 1.
|
57
|
+
ruby-progressbar (~> 1.7)
|
58
|
+
tins (<= 1.6.0)
|
61
59
|
ruby-progressbar (1.7.5)
|
62
60
|
thread_safe (0.3.5)
|
63
|
-
|
64
|
-
hitimes
|
61
|
+
tins (1.6.0)
|
65
62
|
unparser (0.2.4)
|
66
63
|
abstract_type (~> 0.0.7)
|
67
64
|
adamantium (~> 0.2.0)
|
@@ -81,8 +78,8 @@ DEPENDENCIES
|
|
81
78
|
minitest-focus (~> 1.1)
|
82
79
|
rake (~> 10.1)
|
83
80
|
reek (~> 3.1)
|
84
|
-
rerun (~> 0.
|
85
|
-
rubocop (~> 0.
|
81
|
+
rerun (~> 0.11.0)
|
82
|
+
rubocop (~> 0.35.0)
|
86
83
|
|
87
84
|
BUNDLED WITH
|
88
|
-
1.10.
|
85
|
+
1.10.6
|
data/README.md
CHANGED
@@ -14,21 +14,21 @@ Lovely Rufus can be used from the command-line by piping text through the `lovel
|
|
14
14
|
The Ballyshannon foundered off the coast of Cariboo,
|
15
15
|
And down in fathoms many went the captain and the crew;
|
16
16
|
|
17
|
-
Lovely Rufus can also be used from Ruby code through the `
|
17
|
+
Lovely Rufus can also be used from Ruby code through the `wrap` method:
|
18
18
|
|
19
19
|
$ irb
|
20
20
|
>> require 'lovely_rufus'
|
21
21
|
>> text = 'The Ballyshannon foundered off the coast of Cariboo, And down in fathoms many went the captain and the crew;'
|
22
|
-
>> puts LovelyRufus
|
22
|
+
>> puts LovelyRufus.wrap(text)
|
23
23
|
The Ballyshannon foundered off the coast of Cariboo,
|
24
24
|
And down in fathoms many went the captain and the crew;
|
25
25
|
|
26
|
-
Note that `
|
26
|
+
Note that `wrap` can take optional desired width:
|
27
27
|
|
28
28
|
$ irb
|
29
29
|
>> require 'lovely_rufus'
|
30
30
|
>> text = 'The Ballyshannon foundered off the coast of Cariboo, And down in fathoms many went the captain and the crew;'
|
31
|
-
>> puts LovelyRufus
|
31
|
+
>> puts LovelyRufus.wrap(text, width: 15)
|
32
32
|
The
|
33
33
|
Ballyshannon
|
34
34
|
foundered off
|
data/certs/chastell.pem
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMREwDwYDVQQDDAhjaGFz
|
3
|
+
dGVsbDEYMBYGCgmSJomT8ixkARkWCGNoYXN0ZWxsMRMwEQYKCZImiZPyLGQBGRYD
|
4
|
+
bmV0MB4XDTE1MTEwOTIxMTMwOVoXDTE2MTEwODIxMTMwOVowQjERMA8GA1UEAwwI
|
5
|
+
Y2hhc3RlbGwxGDAWBgoJkiaJk/IsZAEZFghjaGFzdGVsbDETMBEGCgmSJomT8ixk
|
6
|
+
ARkWA25ldDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMcf6OF3mi6D
|
7
|
+
UedwY2A6fYEQF2bJVYQxV8fWHA5Q2R6y7Eg0hM80Q0yod7pJxlJTpnAPzuIl1u4y
|
8
|
+
hhfa/Vz0u6PVRhBYQ/Bcj9UEwgiXcy3P4ybINDeDt7GRVs3R9rRoT1aAsb5RCS0z
|
9
|
+
u/JKS2RcAS5XPpFow3Cfs5A/pM2NLsR/zeiaKg8rRB59A/tWw26F+YTaWfPAPFGv
|
10
|
+
d6af29NKWQh+EPkX1JwwtSwjKfVOeFr0csC6QLWKpp1z/7Lla8d3px426Ccjca0I
|
11
|
+
5VwtQeZ5LClTjqaYyH7vSojpOtgRuvVKspZ2jfe1KZq9jz//a/rSUrFcPlEQuXQp
|
12
|
+
i8E3TKoJrW0CAwEAAaN9MHswCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O
|
13
|
+
BBYEFLi/J921Nb53s8GKtKptC08QmHnwMCAGA1UdEQQZMBeBFWNoYXN0ZWxsQGNo
|
14
|
+
YXN0ZWxsLm5ldDAgBgNVHRIEGTAXgRVjaGFzdGVsbEBjaGFzdGVsbC5uZXQwDQYJ
|
15
|
+
KoZIhvcNAQEFBQADggEBAA+rUbXujzqDv8WE7kkiJadQhxldq/cRhaJDMKSWF3/H
|
16
|
+
6PL/Me8zq8Ok7/pQtxBvAhKcy3DdsH0q5pyPHoMrYySxEo9lNXLvwCPsi21rR53b
|
17
|
+
2w5rBytYCxrhsXISKwCkBYwVwtICafZ8VtRbD3pgnsPv+9NYJJ/rN4Z34doWM7oK
|
18
|
+
CAfY6o0LcY+qmvqLvqpweyoO73wkfKGUSz1a09dJfAP5aIREQDvpYrWx2ZoDrAct
|
19
|
+
srwnZ6g5uTvNbd0I1SnvnCJJ5y5iPvJIBlnGb3QZ77y2XXCOy3Yc0rjK7A8bQt5t
|
20
|
+
xOlyYMPKhWx2IqEip+J7PBpBwMnxIPhTcNlFOj8mSa0=
|
21
|
+
-----END CERTIFICATE-----
|
data/lovely_rufus.gemspec
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
require 'English'
|
2
|
+
require 'pathname'
|
3
|
+
|
1
4
|
Gem::Specification.new do |gem|
|
2
5
|
gem.author = 'Piotr Szotkowski'
|
3
6
|
gem.description = 'An executable and a Ruby library for wrapping ' \
|
@@ -7,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
7
10
|
gem.license = 'AGPL-3.0'
|
8
11
|
gem.name = 'lovely_rufus'
|
9
12
|
gem.summary = 'lovely_rufus: text wrapper'
|
10
|
-
gem.version = '0.
|
13
|
+
gem.version = '1.0.0'
|
11
14
|
|
12
15
|
gem.required_ruby_version = '~> 2.1'
|
13
16
|
|
@@ -15,6 +18,11 @@ Gem::Specification.new do |gem|
|
|
15
18
|
gem.executables = gem.files.grep(%r{^bin/}).map { |path| File.basename(path) }
|
16
19
|
gem.test_files = gem.files.grep(%r{^test/.*\.rb$})
|
17
20
|
|
21
|
+
gem.cert_chain = ['certs/chastell.pem']
|
22
|
+
if Pathname.new($PROGRAM_NAME).basename == Pathname.new('gem')
|
23
|
+
gem.signing_key = Pathname.new('~/.ssh/gem-private_key.pem').expand_path
|
24
|
+
end
|
25
|
+
|
18
26
|
gem.add_dependency 'private_attr', '~> 1.1'
|
19
27
|
|
20
28
|
gem.add_development_dependency 'bogus', '~> 0.1.4'
|
@@ -22,6 +30,6 @@ Gem::Specification.new do |gem|
|
|
22
30
|
gem.add_development_dependency 'minitest-focus', '~> 1.1'
|
23
31
|
gem.add_development_dependency 'rake', '~> 10.1'
|
24
32
|
gem.add_development_dependency 'reek', '~> 3.1'
|
25
|
-
gem.add_development_dependency 'rerun', '~> 0.
|
26
|
-
gem.add_development_dependency 'rubocop', '~> 0.
|
33
|
+
gem.add_development_dependency 'rerun', '~> 0.11.0'
|
34
|
+
gem.add_development_dependency 'rubocop', '~> 0.35.0'
|
27
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lovely_rufus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Szotkowski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|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L/Me8zq8Ok7/pQtxBvAhKcy3DdsH0q5pyPHoMrYySxEo9lNXLvwCPsi21rR53b
|
28
|
+
2w5rBytYCxrhsXISKwCkBYwVwtICafZ8VtRbD3pgnsPv+9NYJJ/rN4Z34doWM7oK
|
29
|
+
CAfY6o0LcY+qmvqLvqpweyoO73wkfKGUSz1a09dJfAP5aIREQDvpYrWx2ZoDrAct
|
30
|
+
srwnZ6g5uTvNbd0I1SnvnCJJ5y5iPvJIBlnGb3QZ77y2XXCOy3Yc0rjK7A8bQt5t
|
31
|
+
xOlyYMPKhWx2IqEip+J7PBpBwMnxIPhTcNlFOj8mSa0=
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2015-11-10 00:00:00.000000000 Z
|
12
34
|
dependencies:
|
13
35
|
- !ruby/object:Gem::Dependency
|
14
36
|
name: private_attr
|
@@ -100,28 +122,28 @@ dependencies:
|
|
100
122
|
requirements:
|
101
123
|
- - "~>"
|
102
124
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
125
|
+
version: 0.11.0
|
104
126
|
type: :development
|
105
127
|
prerelease: false
|
106
128
|
version_requirements: !ruby/object:Gem::Requirement
|
107
129
|
requirements:
|
108
130
|
- - "~>"
|
109
131
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
132
|
+
version: 0.11.0
|
111
133
|
- !ruby/object:Gem::Dependency
|
112
134
|
name: rubocop
|
113
135
|
requirement: !ruby/object:Gem::Requirement
|
114
136
|
requirements:
|
115
137
|
- - "~>"
|
116
138
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
139
|
+
version: 0.35.0
|
118
140
|
type: :development
|
119
141
|
prerelease: false
|
120
142
|
version_requirements: !ruby/object:Gem::Requirement
|
121
143
|
requirements:
|
122
144
|
- - "~>"
|
123
145
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
146
|
+
version: 0.35.0
|
125
147
|
description: An executable and a Ruby library for wrapping paragraphs of text.
|
126
148
|
email: chastell@chastell.net
|
127
149
|
executables:
|
@@ -139,6 +161,7 @@ files:
|
|
139
161
|
- README.md
|
140
162
|
- Rakefile
|
141
163
|
- bin/lovely-rufus
|
164
|
+
- certs/chastell.pem
|
142
165
|
- lib/lovely_rufus.rb
|
143
166
|
- lib/lovely_rufus/cli_wrapper.rb
|
144
167
|
- lib/lovely_rufus/layers/basic_wrapper.rb
|
@@ -184,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
207
|
version: '0'
|
185
208
|
requirements: []
|
186
209
|
rubyforge_project:
|
187
|
-
rubygems_version: 2.
|
210
|
+
rubygems_version: 2.5.0
|
188
211
|
signing_key:
|
189
212
|
specification_version: 4
|
190
213
|
summary: 'lovely_rufus: text wrapper'
|
metadata.gz.sig
ADDED
Binary file
|