word_wrap 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6bed1b27447155f0f5e043578f34575d1085e8ae
4
- data.tar.gz: 09d3be25f57cc210a25d10409db9f3f37553bb9b
3
+ metadata.gz: 97e65a495b6f2ab99437d44d8565e98d79eddd7f
4
+ data.tar.gz: 04a1ea0995806340c097402e05849f88213fd286
5
5
  SHA512:
6
- metadata.gz: 46c847775b94f223e5987a6859aba87cd4f703d28f841b4a264d9f49aba2b5dcab6935651eb495eb0e0eea13dbe41a54cd364734a2bf65bd3fe02be6643f9947
7
- data.tar.gz: 254ab4e7b1d4cc3abaee28ffc8233dc6743732f901e0864a52df2f09f0e39c5069fdc7811bc2ad24b49f7af41eb7783fd13937ec6c306e75c585c1071622c8e5
6
+ metadata.gz: 64b90daf593b8bb1beb61d1507afd601c7eb5e32d90b15a88a3f2a9ee56830ff8dc59629991c8e88f2e93d182163b7b876c528c4beb79ec2589ba19e7082b318
7
+ data.tar.gz: 3ae6e1ca2d5751e3725e30d85510f6a1f14813b88190108d5e3dad5eb5948db3c55ed130fdad6492f8b494137706902414e89ce6512df7a6cd5b10afeb116f25
data/lib/word_wrap.rb CHANGED
@@ -14,19 +14,19 @@ module WordWrap
14
14
  end
15
15
 
16
16
  class String
17
- def wrap(width=DEFAULT_WIDTH)
17
+ def wrap(width=WordWrap::DEFAULT_WIDTH)
18
18
  WordWrap.ww(self, width, false)
19
19
  end
20
20
 
21
- def wrap!(width=DEFAULT_WIDTH)
21
+ def wrap!(width=WordWrap::DEFAULT_WIDTH)
22
22
  replace wrap(width)
23
23
  end
24
24
 
25
- def fit(width=DEFAULT_WIDTH)
25
+ def fit(width=WordWrap::DEFAULT_WIDTH)
26
26
  WordWrap.ww(self, width, true)
27
27
  end
28
28
 
29
- def fit!(width=DEFAULT_WIDTH)
29
+ def fit!(width=WordWrap::DEFAULT_WIDTH)
30
30
  replace fit(width)
31
31
  end
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module WordWrap
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: word_wrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Radek Pazdera
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-02 00:00:00.000000000 Z
11
+ date: 2015-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: |-
@@ -63,7 +63,7 @@ executables:
63
63
  extensions: []
64
64
  extra_rdoc_files: []
65
65
  files:
66
- - .gitignore
66
+ - ".gitignore"
67
67
  - Gemfile
68
68
  - LICENSE.txt
69
69
  - README.md
@@ -84,19 +84,20 @@ require_paths:
84
84
  - lib
85
85
  required_ruby_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - '>='
92
+ - - ">="
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.0.3
97
+ rubygems_version: 2.2.2
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Simple tool for word-wrapping text
101
101
  test_files:
102
102
  - spec/ww_spec.rb
103
+ has_rdoc: