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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6eb20322a22a9deea5805d592055c2665125861
4
- data.tar.gz: 8155230d47972e417a0493f88f0af7a07bfc9d3f
3
+ metadata.gz: bbb2c262852624eb1084671025dcf196f3ddf143
4
+ data.tar.gz: 46b91478574a81dc5ec53ef51a4a33334187cd82
5
5
  SHA512:
6
- metadata.gz: c040bc7898f29bfa65e9a16ec0dd92846e0b772de01a2ac06f12ad3a3c3991c260c32c2f5cadd4341509bca40737631f7ae79d76c70da0e06763300107588e03
7
- data.tar.gz: 68222ac8ebc89779e6ed45d4f87eb34e79e359a1d1ce27201d2e4aeeefe387fbcf7385ccd28c24b4c7c4b8ae959ba6e9124cb9e0a9ed1ca940778f66e54bcb36
6
+ metadata.gz: 797839b723b19544d281b1969a95535d076dc86d78d3abded0fc3355387820fe3a2e33233ce11dded67b9070d4474c0bd7b3c5d2eb7904ac322f69482516e9ef
7
+ data.tar.gz: 1b540de62175c407b36f1c197793f47f2e5610ef76e4f7fe79143f243869d8ec8e093a34afbc5df9d493158034750c1da2f0cf1a4f97abb3d2fcfc923d318423
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source "http://rubygems.org"
3
3
  gem "actionpack"
4
4
 
5
5
  group :development do
6
- gem "bundler"
7
- gem "jeweler"
6
+ gem "bundler", "~> 1.0"
7
+ gem "jeweler", "~> 2.3.4", git: 'git@github.com:technicalpickles/jeweler.git'
8
8
  gem "rspec"
9
9
  end
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.3.8)
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.1)
46
+ faraday (0.9.2)
30
47
  multipart-post (>= 1.2, < 3)
31
- git (1.2.9.1)
32
- github_api (0.12.3)
48
+ git (1.3.0)
49
+ github_api (0.11.3)
33
50
  addressable (~> 2.3)
34
- descendants_tracker (~> 0.0.4)
51
+ descendants_tracker (~> 0.0.1)
35
52
  faraday (~> 0.8, < 0.10)
36
- hashie (>= 3.3)
53
+ hashie (>= 1.2)
37
54
  multi_json (>= 1.7.5, < 2.0)
38
- nokogiri (~> 1.6.3)
55
+ nokogiri (~> 1.6.0)
39
56
  oauth2
40
- hashie (3.4.2)
41
- highline (1.7.2)
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.1)
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.11.2)
59
- multi_xml (0.5.5)
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.0.0)
64
- faraday (>= 0.8, < 0.10)
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 (~> 1.2)
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 (10.4.2)
81
- rdoc (4.2.0)
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.11
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
@@ -6,7 +6,7 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "string_master"
9
- s.version = "0.3.11"
9
+ s.version = "0.3.12"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
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.11
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: 2015-08-18 00:00:00.000000000 Z
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: '0'
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: '0'
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.4.5
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