mh_extensions 0.1.5.2 → 0.1.5.3
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 +11 -0
- data/mh_extensions.gemspec +2 -2
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
data/CHANGELOG.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('mh_extensions', '0.1.5.
|
5
|
+
Echoe.new('mh_extensions', '0.1.5.3') do |p|
|
6
6
|
p.description = "Package of usefull ruby basic classes (and not only) extensions"
|
7
7
|
p.url = "https://github.com/mensfeld/MH-Extensions"
|
8
8
|
p.author = "Maciej Mensfeld"
|
data/lib/activerecord_ext.rb
CHANGED
@@ -29,6 +29,17 @@ end
|
|
29
29
|
|
30
30
|
ActiveRecord::Base.send(:include, ArMH::Extensions)
|
31
31
|
|
32
|
+
# Lil workaround 4 Rails development evn
|
33
|
+
if Rails.env == 'development'
|
34
|
+
class ActiveRecord::Base
|
35
|
+
after_initialize :mh_extensions
|
36
|
+
|
37
|
+
def mh_extensions
|
38
|
+
self.class.mh_extensions
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
32
43
|
class Railtie < Rails::Railtie
|
33
44
|
initializer "app.trigger_extensions_4_all_ar_models" do |app|
|
34
45
|
app.config.after_initialize do
|
data/mh_extensions.gemspec
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{mh_extensions}
|
5
|
-
s.version = "0.1.5.
|
5
|
+
s.version = "0.1.5.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Maciej Mensfeld"]
|
9
9
|
s.cert_chain = ["/home/mencio/.cert_keys/gem-public_cert.pem"]
|
10
|
-
s.date = %q{2011-04-
|
10
|
+
s.date = %q{2011-04-18}
|
11
11
|
s.description = %q{Package of usefull ruby basic classes (and not only) extensions}
|
12
12
|
s.email = %q{maciej@mensfeld.pl}
|
13
13
|
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/string_ext.rb", "lib/txt_file_handler.rb"]
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: mh_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.5.
|
5
|
+
version: 0.1.5.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Maciej Mensfeld
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
BH3YFsdk
|
32
32
|
-----END CERTIFICATE-----
|
33
33
|
|
34
|
-
date: 2011-04-
|
34
|
+
date: 2011-04-18 00:00:00 +02:00
|
35
35
|
default_executable:
|
36
36
|
dependencies: []
|
37
37
|
|
metadata.gz.sig
CHANGED
Binary file
|