string_master 0.1.0 → 0.2.0

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.
data/README.markdown CHANGED
@@ -18,7 +18,7 @@ Usage
18
18
 
19
19
  Say you got this string
20
20
 
21
- s = "Hello, glorious owner of the website\nI hope <you> like my message"
21
+ s = "Hello, glorious owner of the website\nI hope <b>you</b> like my message"
22
22
 
23
23
  Oh my god, what am I going to do with it?
24
24
 
@@ -30,7 +30,8 @@ Oh my god, what am I going to do with it?
30
30
 
31
31
  Result:
32
32
 
33
- Hello, glorious owner of the website\nI hope &lt;you&gt; like my message
33
+ Hello, glorious owner of the website
34
+ I hope &lt;you&gt; like my message
34
35
 
35
36
  Fuck yeah.
36
37
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -125,7 +125,7 @@ class StringMaster
125
125
  # Appends characters (if specified in :append) to the end of the cut string.
126
126
  def cut(length, cut_at, options = {})
127
127
  append = options[:append] || ''
128
- @modified_string.size > (length) ? @modified_string = @modified_string.mb_chars[0...cut_at] + '...' : @modified_message
128
+ @modified_string.size > (length) ? @modified_string = @modified_string.mb_chars[0...cut_at] + append : @modified_message
129
129
  self
130
130
  end
131
131
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{string_master}
8
- s.version = "0.1.0"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Roman Snitko}]
12
- s.date = %q{2011-06-20}
11
+ s.authors = ["Roman Snitko"]
12
+ s.date = %q{2011-07-19}
13
13
  s.description = %q{Because every time I create a new webapp, I think about how I should process user-generated content. Should convert urls to links and images? Should I allow certain tags? Should I convert all new lines to *br* tags? Well, now all that is as simple as calling a single method.}
14
14
  s.email = %q{roman.snitko@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -35,9 +35,9 @@ Gem::Specification.new do |s|
35
35
  "string_master.gemspec"
36
36
  ]
37
37
  s.homepage = %q{http://github.com/snitko/string_master}
38
- s.licenses = [%q{MIT}]
39
- s.require_paths = [%q{lib}]
40
- s.rubygems_version = %q{1.8.5}
38
+ s.licenses = ["MIT"]
39
+ s.require_paths = ["lib"]
40
+ s.rubygems_version = %q{1.6.2}
41
41
  s.summary = %q{Most common string manipulations for a webapp}
42
42
 
43
43
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-06-20 00:00:00.000000000Z
12
+ date: 2011-07-19 00:00:00.000000000 +04:00
13
+ default_executable:
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: actionpack
16
- requirement: &29018580 !ruby/object:Gem::Requirement
17
+ requirement: &25321960 !ruby/object:Gem::Requirement
17
18
  none: false
18
19
  requirements:
19
20
  - - ! '>='
@@ -21,10 +22,10 @@ dependencies:
21
22
  version: '0'
22
23
  type: :runtime
23
24
  prerelease: false
24
- version_requirements: *29018580
25
+ version_requirements: *25321960
25
26
  - !ruby/object:Gem::Dependency
26
27
  name: bundler
27
- requirement: &28880380 !ruby/object:Gem::Requirement
28
+ requirement: &25321400 !ruby/object:Gem::Requirement
28
29
  none: false
29
30
  requirements:
30
31
  - - ! '>='
@@ -32,10 +33,10 @@ dependencies:
32
33
  version: '0'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *28880380
36
+ version_requirements: *25321400
36
37
  - !ruby/object:Gem::Dependency
37
38
  name: jeweler
38
- requirement: &28879880 !ruby/object:Gem::Requirement
39
+ requirement: &25320640 !ruby/object:Gem::Requirement
39
40
  none: false
40
41
  requirements:
41
42
  - - ! '>='
@@ -43,10 +44,10 @@ dependencies:
43
44
  version: '0'
44
45
  type: :development
45
46
  prerelease: false
46
- version_requirements: *28879880
47
+ version_requirements: *25320640
47
48
  - !ruby/object:Gem::Dependency
48
49
  name: rcov
49
- requirement: &28879360 !ruby/object:Gem::Requirement
50
+ requirement: &25319940 !ruby/object:Gem::Requirement
50
51
  none: false
51
52
  requirements:
52
53
  - - ! '>='
@@ -54,10 +55,10 @@ dependencies:
54
55
  version: '0'
55
56
  type: :development
56
57
  prerelease: false
57
- version_requirements: *28879360
58
+ version_requirements: *25319940
58
59
  - !ruby/object:Gem::Dependency
59
60
  name: rspec
60
- requirement: &28878880 !ruby/object:Gem::Requirement
61
+ requirement: &25319220 !ruby/object:Gem::Requirement
61
62
  none: false
62
63
  requirements:
63
64
  - - ! '>='
@@ -65,7 +66,7 @@ dependencies:
65
66
  version: '0'
66
67
  type: :development
67
68
  prerelease: false
68
- version_requirements: *28878880
69
+ version_requirements: *25319220
69
70
  description: Because every time I create a new webapp, I think about how I should
70
71
  process user-generated content. Should convert urls to links and images? Should
71
72
  I allow certain tags? Should I convert all new lines to *br* tags? Well, now all
@@ -93,6 +94,7 @@ files:
93
94
  - spec/lib/string_master/string_master_spec.rb
94
95
  - spec/spec_helper.rb
95
96
  - string_master.gemspec
97
+ has_rdoc: true
96
98
  homepage: http://github.com/snitko/string_master
97
99
  licenses:
98
100
  - MIT
@@ -108,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
110
  version: '0'
109
111
  segments:
110
112
  - 0
111
- hash: 1089321753322408665
113
+ hash: 1092428496328507081
112
114
  required_rubygems_version: !ruby/object:Gem::Requirement
113
115
  none: false
114
116
  requirements:
@@ -117,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
119
  version: '0'
118
120
  requirements: []
119
121
  rubyforge_project:
120
- rubygems_version: 1.8.5
122
+ rubygems_version: 1.6.2
121
123
  signing_key:
122
124
  specification_version: 3
123
125
  summary: Most common string manipulations for a webapp