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.
- data/CHANGELOG.rdoc +2 -0
- data/Rakefile +1 -1
- data/lib/activerecord_ext.rb +1 -1
- data/lib/string.rb +8 -0
- data/mh_extensions.gemspec +14 -14
- metadata +5 -5
data/CHANGELOG.rdoc
CHANGED
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.
|
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"
|
data/lib/activerecord_ext.rb
CHANGED
@@ -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.
|
18
|
+
self.updated_by=author if self.updated_by.blank?
|
19
19
|
super author
|
20
20
|
end
|
21
21
|
end
|
data/lib/string.rb
CHANGED
@@ -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
|
|
data/mh_extensions.gemspec
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
|
-
s.name =
|
5
|
-
s.version = "0.1.6.
|
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 = [
|
9
|
-
s.date =
|
10
|
-
s.description =
|
11
|
-
s.email =
|
12
|
-
s.extra_rdoc_files = [
|
13
|
-
s.files = [
|
14
|
-
s.homepage =
|
15
|
-
s.rdoc_options = [
|
16
|
-
s.require_paths = [
|
17
|
-
s.rubyforge_project =
|
18
|
-
s.rubygems_version =
|
19
|
-
s.summary =
|
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.
|
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:
|
12
|
+
date: 2012-03-02 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: babosa
|
16
|
-
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: *
|
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.
|
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
|