mh_extensions 0.1.6.0 → 0.1.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ = Version 0.1.6.1
2
+ * Sanitize as a String instance method
1
3
  = Version 0.1.6.0
2
4
  * Moved to Babosa when trimming for to_url method
3
5
  = Version 0.1.5.9
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
3
3
  require 'rake'
4
4
  require 'echoe'
5
5
 
6
- Echoe.new('mh_extensions', '0.1.6.0') do |p|
6
+ Echoe.new('mh_extensions', '0.1.6.1') do |p|
7
7
  p.description = "Package of usefull ruby basic classes (and not only) extensions"
8
8
  p.url = "https://github.com/mensfeld/MH-Extensions"
9
9
  p.author = "Maciej Mensfeld"
@@ -15,7 +15,7 @@ module ArMH
15
15
 
16
16
  if self.column_names.include?('created_by') && self.column_names.include?('updated_by')
17
17
  self.send(:define_method, "created_by=".to_sym) do |author|
18
- self.updated_by=author if self.updated_by.nil? || self.updated_by.to_s.length == 0
18
+ self.updated_by=author if self.updated_by.blank?
19
19
  super author
20
20
  end
21
21
  end
@@ -3,6 +3,14 @@
3
3
 
4
4
  class String
5
5
 
6
+ def sanitize(options={})
7
+ ActionController::Base.helpers.sanitize(self, options)
8
+ end
9
+
10
+ def sanitize!(options={})
11
+ self.replace self.sanitize(options)
12
+ end
13
+
6
14
  # Czy cenzurowano a jesli tak to ile niedobrych słów było
7
15
  @censored_words = false
8
16
 
@@ -1,22 +1,22 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = %q{mh_extensions}
5
- s.version = "0.1.6.0"
4
+ s.name = "mh_extensions"
5
+ s.version = "0.1.6.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = [%q{Maciej Mensfeld}]
9
- s.date = %q{2011-12-07}
10
- s.description = %q{Package of usefull ruby basic classes (and not only) extensions}
11
- s.email = %q{maciej@mensfeld.pl}
12
- s.extra_rdoc_files = [%q{CHANGELOG.rdoc}, %q{README.md}, %q{lib/activerecord_ext.rb}, %q{lib/acts_as_tree_ext.rb}, %q{lib/array.rb}, %q{lib/browser_detector.rb}, %q{lib/date_ext.rb}, %q{lib/hash.rb}, %q{lib/mh_extensions.rb}, %q{lib/rand.rb}, %q{lib/range.rb}, %q{lib/string.rb}, %q{lib/txt_file_handler.rb}]
13
- s.files = [%q{CHANGELOG.rdoc}, %q{Gemfile}, %q{MIT-LICENSE}, %q{Manifest}, %q{README.md}, %q{Rakefile}, %q{init.rb}, %q{lib/activerecord_ext.rb}, %q{lib/acts_as_tree_ext.rb}, %q{lib/array.rb}, %q{lib/browser_detector.rb}, %q{lib/date_ext.rb}, %q{lib/hash.rb}, %q{lib/mh_extensions.rb}, %q{lib/rand.rb}, %q{lib/range.rb}, %q{lib/string.rb}, %q{lib/txt_file_handler.rb}, %q{mh_extensions.gemspec}]
14
- s.homepage = %q{https://github.com/mensfeld/MH-Extensions}
15
- s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Mh_extensions}, %q{--main}, %q{README.md}]
16
- s.require_paths = [%q{lib}]
17
- s.rubyforge_project = %q{mh_extensions}
18
- s.rubygems_version = %q{1.8.5}
19
- s.summary = %q{Package of usefull ruby basic classes (and not only) extensions}
8
+ s.authors = ["Maciej Mensfeld"]
9
+ s.date = "2012-03-02"
10
+ s.description = "Package of usefull ruby basic classes (and not only) extensions"
11
+ s.email = "maciej@mensfeld.pl"
12
+ s.extra_rdoc_files = ["CHANGELOG.rdoc", "README.md", "lib/activerecord_ext.rb", "lib/acts_as_tree_ext.rb", "lib/array.rb", "lib/browser_detector.rb", "lib/date_ext.rb", "lib/hash.rb", "lib/mh_extensions.rb", "lib/rand.rb", "lib/range.rb", "lib/string.rb", "lib/txt_file_handler.rb"]
13
+ s.files = ["CHANGELOG.rdoc", "Gemfile", "MIT-LICENSE", "Manifest", "README.md", "Rakefile", "init.rb", "lib/activerecord_ext.rb", "lib/acts_as_tree_ext.rb", "lib/array.rb", "lib/browser_detector.rb", "lib/date_ext.rb", "lib/hash.rb", "lib/mh_extensions.rb", "lib/rand.rb", "lib/range.rb", "lib/string.rb", "lib/txt_file_handler.rb", "mh_extensions.gemspec"]
14
+ s.homepage = "https://github.com/mensfeld/MH-Extensions"
15
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Mh_extensions", "--main", "README.md"]
16
+ s.require_paths = ["lib"]
17
+ s.rubyforge_project = "mh_extensions"
18
+ s.rubygems_version = "1.8.15"
19
+ s.summary = "Package of usefull ruby basic classes (and not only) extensions"
20
20
 
21
21
  if s.respond_to? :specification_version then
22
22
  s.specification_version = 3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mh_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6.0
4
+ version: 0.1.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-07 00:00:00.000000000Z
12
+ date: 2012-03-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: babosa
16
- requirement: &22053160 !ruby/object:Gem::Requirement
16
+ requirement: &16123020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *22053160
24
+ version_requirements: *16123020
25
25
  description: Package of usefull ruby basic classes (and not only) extensions
26
26
  email: maciej@mensfeld.pl
27
27
  executables: []
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '1.2'
87
87
  requirements: []
88
88
  rubyforge_project: mh_extensions
89
- rubygems_version: 1.8.5
89
+ rubygems_version: 1.8.15
90
90
  signing_key:
91
91
  specification_version: 3
92
92
  summary: Package of usefull ruby basic classes (and not only) extensions