fedux_org-stdlib 0.7.16 → 0.7.17
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/fedux_org_stdlib/core_ext/string/underline.rb +10 -0
- data/lib/fedux_org_stdlib/version.rb +1 -1
- data/spec/core_ext/string/underline_spec.rb +19 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 240f671fac277d1dc2adf2cb194d01a81413d71c
|
4
|
+
data.tar.gz: f965cf7fb5772abf3e082a47d1b58eb14d7cecb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d7ebd39d190dbd685d651e40be2aae536968a0a504495f0ebc7343febf05f96631e77ebcf789b112abe677a656a715193cb9f3401273207e0f07f7fc69fbab5
|
7
|
+
data.tar.gz: d5890bdff2c34b7072b1fadc4f1a3c8760ffe53ea2a4570177a407d7f8d37e10f5be6117bc5c402bf1ce2b1acc26a9abf908712b989ff7f0449351a80f7ef6dc
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
require 'fedux_org_stdlib/core_ext/string/underline'
|
4
|
+
|
5
|
+
RSpec.describe 'String#underline' do
|
6
|
+
it 'returns a string which is underlined' do
|
7
|
+
expect('Headline'.underline).to eq <<-EOS.strip_heredoc.chomp
|
8
|
+
Headline
|
9
|
+
--------
|
10
|
+
EOS
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'is possible to change the character used' do
|
14
|
+
expect('Headline'.underline(character: '#')).to eq <<-EOS.strip_heredoc.chomp
|
15
|
+
Headline
|
16
|
+
########
|
17
|
+
EOS
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fedux_org-stdlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Meyer
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- lib/fedux_org_stdlib/core_ext/shellwords.rb
|
69
69
|
- lib/fedux_org_stdlib/core_ext/shellwords/clean.rb
|
70
70
|
- lib/fedux_org_stdlib/core_ext/string.rb
|
71
|
+
- lib/fedux_org_stdlib/core_ext/string/underline.rb
|
71
72
|
- lib/fedux_org_stdlib/environment.rb
|
72
73
|
- lib/fedux_org_stdlib/file_template.rb
|
73
74
|
- lib/fedux_org_stdlib/file_template/exceptions.rb
|
@@ -161,6 +162,7 @@ files:
|
|
161
162
|
- spec/core_ext/hash/list_spec.rb
|
162
163
|
- spec/core_ext/hash/options_spec.rb
|
163
164
|
- spec/core_ext/shellwords/clean_spec.rb
|
165
|
+
- spec/core_ext/string/underline_spec.rb
|
164
166
|
- spec/environment_spec.rb
|
165
167
|
- spec/examples/models/class_based/forbidden_keyword.rb
|
166
168
|
- spec/examples/models/class_based/ignore/ignored.rb
|
@@ -238,6 +240,7 @@ test_files:
|
|
238
240
|
- spec/core_ext/hash/list_spec.rb
|
239
241
|
- spec/core_ext/hash/options_spec.rb
|
240
242
|
- spec/core_ext/shellwords/clean_spec.rb
|
243
|
+
- spec/core_ext/string/underline_spec.rb
|
241
244
|
- spec/environment_spec.rb
|
242
245
|
- spec/examples/models/class_based/forbidden_keyword.rb
|
243
246
|
- spec/examples/models/class_based/ignore/ignored.rb
|