label 0.2.0 → 1.0.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 +4 -4
- data/lib/label/description_formatter.rb +1 -1
- data/lib/label/version.rb +1 -1
- data/spec/label/description_formatter_spec.rb +6 -1
- data/spec/label_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3cb8dd7f6e176205dd916805f27fc9576243c502
|
|
4
|
+
data.tar.gz: 81cf12e1c110932e1af612d7c770129bd45e544d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b97d902c5b9e68e4aefec5fecf62e3ab56b1d525353c9523bd05865d97454a5d1b35cd5bca784e0357f1e30e85897ac7fcb2e2ad6e960224a30d5c30ec2eb668
|
|
7
|
+
data.tar.gz: 788f03140ac59c48825f264df0ccf9b1da4eb50d045c94ccfb5bca3b61f85a4e381a0a6346b67c3a81495ebf31aeb771f80ac412fbd7b6f9a55872d38613f981
|
data/lib/label/version.rb
CHANGED
|
@@ -14,6 +14,11 @@ describe Label::DescriptionFormatter do
|
|
|
14
14
|
expect(format(description)).to eq "# #{description}"
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
it 'ignores dots that do not end a sentence' do
|
|
18
|
+
description = "Ruby 2.0 is awesome"
|
|
19
|
+
expect(format(description)).to eq "# #{description}"
|
|
20
|
+
end
|
|
21
|
+
|
|
17
22
|
context 'with long descriptions' do
|
|
18
23
|
it 'returns the first sentence (ended by ".") for long descriptions' do
|
|
19
24
|
long_description = "Nokogiri (é\u008B¸) is an HTML, XML, SAX, and Reader "+
|
|
@@ -43,7 +48,7 @@ describe Label::DescriptionFormatter do
|
|
|
43
48
|
it 'returns the first sentence in multiple lines when this is too long' do
|
|
44
49
|
long_description = "\\Unicorn is an HTTP server for Rack applications "+
|
|
45
50
|
"designed to only serve\nfast clients on low-latency, high-bandwidth "+
|
|
46
|
-
"connections and take\nadvantage of features in Unix/Unix-like kernels."+
|
|
51
|
+
"connections and take\nadvantage of features in Unix/Unix-like kernels. "+
|
|
47
52
|
"Slow clients should\nonly be served by placing a reverse proxy capable"+
|
|
48
53
|
" of fully buffering\nboth the the request and response in between "+
|
|
49
54
|
"\\Unicorn and slow clients."
|
data/spec/label_spec.rb
CHANGED
|
@@ -41,7 +41,7 @@ describe Label do
|
|
|
41
41
|
allow(subject).to receive(:describe).with("unicorn", nil).and_return(
|
|
42
42
|
"\\Unicorn is an HTTP server for Rack applications "+
|
|
43
43
|
"designed to only serve\nfast clients on low-latency, high-bandwidth "+
|
|
44
|
-
"connections and take\nadvantage of features in Unix/Unix-like kernels."+
|
|
44
|
+
"connections and take\nadvantage of features in Unix/Unix-like kernels. "+
|
|
45
45
|
"Slow clients should\nonly be served by placing a reverse proxy capable"+
|
|
46
46
|
" of fully buffering\nboth the the request and response in between "+
|
|
47
47
|
"\\Unicorn and slow clients."
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: label
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Johannes Gorset
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|