wrapword 0.1.0 → 0.1.1
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/.DS_Store +0 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +37 -0
- data/Guardfile +6 -0
- data/README.md +1 -1
- data/lib/wrapword/version.rb +1 -1
- data/lib/wrapword.rb +5 -0
- data/wrapword.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4170a772a991523260d15e41df08cbeed9ca5bdd7a35d2aee665865a18893b28
|
4
|
+
data.tar.gz: ec48dc325cb37b44ff40d46908e5a1e008f3ddd1803d811180be1f29411b05fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20c70f3997f7bdd40f4f9d95b77b5167b8fab589793479918aa7c7c548c75c8067350a3ca82a168b5521c01f9b6804c9f3e22b442fe58ad781b4d7bb4a0d774b
|
7
|
+
data.tar.gz: 9015d8381ab225a12a364cf4628752de8ded2e028485ed0d768b6f15c6ee62f138fc6a3338cbc61715618446cef986429bb8410cc397fddcd78f46e06b954a1a
|
data/.DS_Store
CHANGED
Binary file
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -6,8 +6,41 @@ PATH
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
+
coderay (1.1.2)
|
9
10
|
diff-lcs (1.3)
|
11
|
+
ffi (1.9.25)
|
12
|
+
formatador (0.2.5)
|
13
|
+
guard (2.14.2)
|
14
|
+
formatador (>= 0.2.4)
|
15
|
+
listen (>= 2.7, < 4.0)
|
16
|
+
lumberjack (>= 1.0.12, < 2.0)
|
17
|
+
nenv (~> 0.1)
|
18
|
+
notiffany (~> 0.0)
|
19
|
+
pry (>= 0.9.12)
|
20
|
+
shellany (~> 0.0)
|
21
|
+
thor (>= 0.18.1)
|
22
|
+
guard-compat (1.2.1)
|
23
|
+
guard-rspec (4.7.3)
|
24
|
+
guard (~> 2.1)
|
25
|
+
guard-compat (~> 1.1)
|
26
|
+
rspec (>= 2.99.0, < 4.0)
|
27
|
+
listen (3.1.5)
|
28
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
29
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
30
|
+
ruby_dep (~> 1.2)
|
31
|
+
lumberjack (1.0.13)
|
32
|
+
method_source (0.9.0)
|
33
|
+
nenv (0.3.0)
|
34
|
+
notiffany (0.1.1)
|
35
|
+
nenv (~> 0.1)
|
36
|
+
shellany (~> 0.0)
|
37
|
+
pry (0.11.3)
|
38
|
+
coderay (~> 1.1.0)
|
39
|
+
method_source (~> 0.9.0)
|
10
40
|
rake (10.5.0)
|
41
|
+
rb-fsevent (0.10.3)
|
42
|
+
rb-inotify (0.9.10)
|
43
|
+
ffi (>= 0.5.0, < 2)
|
11
44
|
rspec (3.7.0)
|
12
45
|
rspec-core (~> 3.7.0)
|
13
46
|
rspec-expectations (~> 3.7.0)
|
@@ -21,12 +54,16 @@ GEM
|
|
21
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
22
55
|
rspec-support (~> 3.7.0)
|
23
56
|
rspec-support (3.7.1)
|
57
|
+
ruby_dep (1.5.0)
|
58
|
+
shellany (0.0.1)
|
59
|
+
thor (0.20.0)
|
24
60
|
|
25
61
|
PLATFORMS
|
26
62
|
ruby
|
27
63
|
|
28
64
|
DEPENDENCIES
|
29
65
|
bundler (~> 1.16)
|
66
|
+
guard-rspec
|
30
67
|
rake (~> 10.0)
|
31
68
|
rspec (~> 3.0)
|
32
69
|
wrapword!
|
data/Guardfile
ADDED
data/README.md
CHANGED
@@ -32,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
32
|
|
33
33
|
## Contributing
|
34
34
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jpmaHub/wrapword.
|
36
36
|
|
37
37
|
## License
|
38
38
|
|
data/lib/wrapword/version.rb
CHANGED
data/lib/wrapword.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
require "wrapword/version"
|
4
4
|
|
5
5
|
module Wrapword
|
6
|
+
|
6
7
|
def self.wrap(word, limit)
|
7
8
|
return word if word.length <= limit
|
8
9
|
space = limit
|
@@ -13,4 +14,8 @@ module Wrapword
|
|
13
14
|
def self.space(word,limit)
|
14
15
|
word[0...limit].rindex(' ')
|
15
16
|
end
|
17
|
+
|
18
|
+
def self.undo(word)
|
19
|
+
return word.gsub("\n",' ')
|
20
|
+
end
|
16
21
|
end
|
data/wrapword.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["j.p.mohamedabubacker@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = "Wrap words with space and length"
|
13
|
-
spec.homepage = "https://github.com/jpmaHub"
|
13
|
+
spec.homepage = "https://github.com/jpmaHub/wrapword"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wrapword
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaseera Abubacker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- ".travis.yml"
|
66
66
|
- Gemfile
|
67
67
|
- Gemfile.lock
|
68
|
+
- Guardfile
|
68
69
|
- LICENSE.txt
|
69
70
|
- README.md
|
70
71
|
- Rakefile
|
@@ -74,7 +75,7 @@ files:
|
|
74
75
|
- lib/wrapword.rb
|
75
76
|
- lib/wrapword/version.rb
|
76
77
|
- wrapword.gemspec
|
77
|
-
homepage: https://github.com/jpmaHub
|
78
|
+
homepage: https://github.com/jpmaHub/wrapword
|
78
79
|
licenses:
|
79
80
|
- MIT
|
80
81
|
metadata: {}
|