string_master 0.3.11 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +42 -28
- data/VERSION +1 -1
- data/lib/string_master/string_master.rb +2 -2
- data/string_master.gemspec +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbb2c262852624eb1084671025dcf196f3ddf143
|
4
|
+
data.tar.gz: 46b91478574a81dc5ec53ef51a4a33334187cd82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 797839b723b19544d281b1969a95535d076dc86d78d3abded0fc3355387820fe3a2e33233ce11dded67b9070d4474c0bd7b3c5d2eb7904ac322f69482516e9ef
|
7
|
+
data.tar.gz: 1b540de62175c407b36f1c197793f47f2e5610ef76e4f7fe79143f243869d8ec8e093a34afbc5df9d493158034750c1da2f0cf1a4f97abb3d2fcfc923d318423
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git@github.com:technicalpickles/jeweler.git
|
3
|
+
revision: 20ae6a869ac588d479774cb60df896cd6138a6bb
|
4
|
+
specs:
|
5
|
+
jeweler (2.3.4)
|
6
|
+
builder
|
7
|
+
bundler (>= 1.0)
|
8
|
+
git (>= 1.2.5)
|
9
|
+
github_api (~> 0.11.0)
|
10
|
+
highline (>= 1.6.15)
|
11
|
+
nokogiri (>= 1.5.10)
|
12
|
+
psych (~> 2.2)
|
13
|
+
rake
|
14
|
+
rdoc
|
15
|
+
semver2
|
16
|
+
|
1
17
|
GEM
|
2
18
|
remote: http://rubygems.org/
|
3
19
|
specs:
|
@@ -20,52 +36,46 @@ GEM
|
|
20
36
|
minitest (~> 5.1)
|
21
37
|
thread_safe (~> 0.3, >= 0.3.4)
|
22
38
|
tzinfo (~> 1.1)
|
23
|
-
addressable (2.
|
39
|
+
addressable (2.5.0)
|
40
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
24
41
|
builder (3.2.2)
|
25
42
|
descendants_tracker (0.0.4)
|
26
43
|
thread_safe (~> 0.3, >= 0.3.1)
|
27
44
|
diff-lcs (1.2.5)
|
28
45
|
erubis (2.7.0)
|
29
|
-
faraday (0.9.
|
46
|
+
faraday (0.9.2)
|
30
47
|
multipart-post (>= 1.2, < 3)
|
31
|
-
git (1.
|
32
|
-
github_api (0.
|
48
|
+
git (1.3.0)
|
49
|
+
github_api (0.11.3)
|
33
50
|
addressable (~> 2.3)
|
34
|
-
descendants_tracker (~> 0.0.
|
51
|
+
descendants_tracker (~> 0.0.1)
|
35
52
|
faraday (~> 0.8, < 0.10)
|
36
|
-
hashie (>=
|
53
|
+
hashie (>= 1.2)
|
37
54
|
multi_json (>= 1.7.5, < 2.0)
|
38
|
-
nokogiri (~> 1.6.
|
55
|
+
nokogiri (~> 1.6.0)
|
39
56
|
oauth2
|
40
|
-
hashie (3.
|
41
|
-
highline (1.7.
|
57
|
+
hashie (3.5.5)
|
58
|
+
highline (1.7.8)
|
42
59
|
i18n (0.7.0)
|
43
|
-
jeweler (2.0.1)
|
44
|
-
builder
|
45
|
-
bundler (>= 1.0)
|
46
|
-
git (>= 1.2.5)
|
47
|
-
github_api
|
48
|
-
highline (>= 1.6.15)
|
49
|
-
nokogiri (>= 1.5.10)
|
50
|
-
rake
|
51
|
-
rdoc
|
52
60
|
json (1.8.3)
|
53
|
-
jwt (1.5.
|
61
|
+
jwt (1.5.6)
|
54
62
|
loofah (2.0.2)
|
55
63
|
nokogiri (>= 1.5.9)
|
56
64
|
mini_portile (0.6.2)
|
57
65
|
minitest (5.8.0)
|
58
|
-
multi_json (1.
|
59
|
-
multi_xml (0.
|
66
|
+
multi_json (1.12.1)
|
67
|
+
multi_xml (0.6.0)
|
60
68
|
multipart-post (2.0.0)
|
61
69
|
nokogiri (1.6.6.2)
|
62
70
|
mini_portile (~> 0.6.0)
|
63
|
-
oauth2 (1.
|
64
|
-
faraday (>= 0.8, < 0.
|
71
|
+
oauth2 (1.3.1)
|
72
|
+
faraday (>= 0.8, < 0.12)
|
65
73
|
jwt (~> 1.0)
|
66
74
|
multi_json (~> 1.3)
|
67
75
|
multi_xml (~> 0.5)
|
68
|
-
rack (
|
76
|
+
rack (>= 1.2, < 3)
|
77
|
+
psych (2.2.4)
|
78
|
+
public_suffix (2.0.5)
|
69
79
|
rack (1.6.4)
|
70
80
|
rack-test (0.6.3)
|
71
81
|
rack (>= 1.0)
|
@@ -77,8 +87,8 @@ GEM
|
|
77
87
|
rails-deprecated_sanitizer (>= 1.0.1)
|
78
88
|
rails-html-sanitizer (1.0.2)
|
79
89
|
loofah (~> 2.0)
|
80
|
-
rake (
|
81
|
-
rdoc (
|
90
|
+
rake (12.0.0)
|
91
|
+
rdoc (5.1.0)
|
82
92
|
rspec (3.3.0)
|
83
93
|
rspec-core (~> 3.3.0)
|
84
94
|
rspec-expectations (~> 3.3.0)
|
@@ -92,6 +102,7 @@ GEM
|
|
92
102
|
diff-lcs (>= 1.2.0, < 2.0)
|
93
103
|
rspec-support (~> 3.3.0)
|
94
104
|
rspec-support (3.3.0)
|
105
|
+
semver2 (3.4.2)
|
95
106
|
thread_safe (0.3.5)
|
96
107
|
tzinfo (1.2.2)
|
97
108
|
thread_safe (~> 0.1)
|
@@ -101,6 +112,9 @@ PLATFORMS
|
|
101
112
|
|
102
113
|
DEPENDENCIES
|
103
114
|
actionpack
|
104
|
-
bundler
|
105
|
-
jeweler
|
115
|
+
bundler (~> 1.0)
|
116
|
+
jeweler (~> 2.3.4)!
|
106
117
|
rspec
|
118
|
+
|
119
|
+
BUNDLED WITH
|
120
|
+
1.12.4
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.12
|
@@ -71,13 +71,13 @@ class StringMaster
|
|
71
71
|
end
|
72
72
|
|
73
73
|
# Breaks words that are longer than 'length'
|
74
|
-
def break_long_words(length=75, &block)
|
74
|
+
def break_long_words(length=75, break_char=" ", &block)
|
75
75
|
@modified_string.gsub!(/<a [^>]+>|<img [^>]+>|([^\s^\n^\^^\A^\t^\r<]{#{length},}?)|<\/a>/) do |s|
|
76
76
|
if $1
|
77
77
|
ns = block_given? ? yield($1) : $1
|
78
78
|
last_pos, result_string = 0, ''
|
79
79
|
while string = ns[last_pos..(last_pos + length)]
|
80
|
-
result_string += string +
|
80
|
+
result_string += string + break_char
|
81
81
|
last_pos += (length + 1)
|
82
82
|
end
|
83
83
|
result_string
|
data/string_master.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: string_master
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Snitko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -28,30 +28,30 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '1.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
|
-
version: '0'
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jeweler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.3.4
|
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
|
-
version:
|
54
|
+
version: 2.3.4
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.
|
116
|
+
rubygems_version: 2.5.1
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Most common string manipulations for a webapp
|