lovely-rufus 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lovely-rufus (0.0.1)
4
+ lovely-rufus (0.0.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
- minitest (2.11.3)
9
+ minitest (2.11.4)
10
10
  rake (0.9.2.2)
11
11
 
12
12
  PLATFORMS
@@ -9,7 +9,7 @@ module LovelyRufus class Wrapper
9
9
  end
10
10
 
11
11
  def wrapped max_width = 72
12
- return @paras.join "\n\n" if @paras.map(&:size).max < max_width
12
+ return '' if @paras.all? &:empty?
13
13
 
14
14
  @paras.map do |para|
15
15
  best = wrap_para_to_width para, max_width
data/lovely-rufus.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'lovely-rufus'
3
- gem.version = '0.0.1'
3
+ gem.version = '0.0.2'
4
4
  gem.summary = 'lovely-rufus: text wrapper'
5
5
  gem.homepage = 'http://github.com/chastell/lovely-rufus'
6
6
  gem.author = 'Piotr Szotkowski'
@@ -25,6 +25,13 @@
25
25
  Well, the old ones go mmmmmbbbbzzzzttteeeeeep as they start up
26
26
  and the new ones go whupwhupwhupwhooopwhooooopwhooooooommmmmmmmmm.
27
27
 
28
+ # unwrapping works with quoted text
29
+ - input: |-
30
+ > For some reason recently lovely-rufus
31
+ > versions can’t wrap.
32
+ output: |-
33
+ > For some reason recently lovely-rufus versions can’t wrap.
34
+
28
35
  # wraps long input to 72 characters by default
29
36
  - input: The Ballyshannon foundered off the coast of Cariboo, And down in fathoms many went the captain and the crew;
30
37
  output: |-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lovely-rufus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-20 00:00:00.000000000 Z
12
+ date: 2012-03-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &15366780 !ruby/object:Gem::Requirement
16
+ requirement: &19234340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *15366780
24
+ version_requirements: *19234340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: minitest
27
- requirement: &15366180 !ruby/object:Gem::Requirement
27
+ requirement: &19233820 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '2.3'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *15366180
35
+ version_requirements: *19233820
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &15365660 !ruby/object:Gem::Requirement
38
+ requirement: &19233320 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *15365660
46
+ version_requirements: *19233320
47
47
  description:
48
48
  email: chastell@chastell.net
49
49
  executables: