muck-profiles 0.1.17 → 0.1.18
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/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/active_record/acts/muck_profile.rb +2 -2
- data/lib/active_record/has/muck_profile.rb +1 -1
- data/muck-profiles.gemspec +5 -2
- data/test/rails_root/config/environment.rb +5 -4
- metadata +12 -2
data/Rakefile
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.18
|
|
@@ -70,8 +70,8 @@ module ActiveRecord
|
|
|
70
70
|
# Sanitize content before saving. This prevent XSS attacks and other malicious html.
|
|
71
71
|
def sanitize_attributes
|
|
72
72
|
if self.sanitize_level
|
|
73
|
-
self.about = Sanitize.clean(self.about, self.sanitize_level)
|
|
74
|
-
self.location = Sanitize.clean(self.location, self.sanitize_level)
|
|
73
|
+
self.about = Sanitize.clean(self.about, self.sanitize_level) unless self.about.blank?
|
|
74
|
+
self.location = Sanitize.clean(self.location, self.sanitize_level) unless self.location.blank?
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
@@ -11,7 +11,7 @@ module ActiveRecord
|
|
|
11
11
|
|
|
12
12
|
has_one :profile, :dependent => :destroy
|
|
13
13
|
accepts_nested_attributes_for :profile, :allow_destroy => true
|
|
14
|
-
after_create {|user| user.create_profile
|
|
14
|
+
after_create {|user| user.create_profile unless user.profile}
|
|
15
15
|
delegate :photo, :to => :profile
|
|
16
16
|
|
|
17
17
|
include ActiveRecord::Has::MuckProfile::InstanceMethods
|
data/muck-profiles.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{muck-profiles}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.18"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Justin Ball", "Joel Duffin"]
|
|
12
|
-
s.date = %q{2009-
|
|
12
|
+
s.date = %q{2009-12-02}
|
|
13
13
|
s.description = %q{Profile engine for the muck system.}
|
|
14
14
|
s.email = %q{justin@tatemae.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -472,16 +472,19 @@ Gem::Specification.new do |s|
|
|
|
472
472
|
s.add_runtime_dependency(%q<muck-users>, [">= 0"])
|
|
473
473
|
s.add_runtime_dependency(%q<geokit>, [">= 0"])
|
|
474
474
|
s.add_runtime_dependency(%q<paperclip>, [">= 0"])
|
|
475
|
+
s.add_runtime_dependency(%q<sanitize>, [">= 0"])
|
|
475
476
|
else
|
|
476
477
|
s.add_dependency(%q<muck-engine>, [">= 0"])
|
|
477
478
|
s.add_dependency(%q<muck-users>, [">= 0"])
|
|
478
479
|
s.add_dependency(%q<geokit>, [">= 0"])
|
|
479
480
|
s.add_dependency(%q<paperclip>, [">= 0"])
|
|
481
|
+
s.add_dependency(%q<sanitize>, [">= 0"])
|
|
480
482
|
end
|
|
481
483
|
else
|
|
482
484
|
s.add_dependency(%q<muck-engine>, [">= 0"])
|
|
483
485
|
s.add_dependency(%q<muck-users>, [">= 0"])
|
|
484
486
|
s.add_dependency(%q<geokit>, [">= 0"])
|
|
485
487
|
s.add_dependency(%q<paperclip>, [">= 0"])
|
|
488
|
+
s.add_dependency(%q<sanitize>, [">= 0"])
|
|
486
489
|
end
|
|
487
490
|
end
|
|
@@ -17,11 +17,12 @@ Rails::Initializer.run do |config|
|
|
|
17
17
|
config.time_zone = 'UTC'
|
|
18
18
|
config.gem "authlogic"
|
|
19
19
|
config.gem "searchlogic"
|
|
20
|
-
config.gem
|
|
20
|
+
config.gem "geokit"
|
|
21
|
+
config.gem "sanitize"
|
|
21
22
|
config.gem 'will_paginate'
|
|
22
23
|
config.gem "bcrypt-ruby", :lib => "bcrypt"
|
|
23
|
-
config.gem
|
|
24
|
-
config.gem
|
|
25
|
-
config.gem
|
|
24
|
+
config.gem "paperclip"
|
|
25
|
+
config.gem "muck-engine", :lib => 'muck_engine'
|
|
26
|
+
config.gem "muck-users", :lib => 'muck_users'
|
|
26
27
|
config.plugin_locators << TestGemLocator
|
|
27
28
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: muck-profiles
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Ball
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2009-
|
|
13
|
+
date: 2009-12-02 00:00:00 -07:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
@@ -53,6 +53,16 @@ dependencies:
|
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: "0"
|
|
55
55
|
version:
|
|
56
|
+
- !ruby/object:Gem::Dependency
|
|
57
|
+
name: sanitize
|
|
58
|
+
type: :runtime
|
|
59
|
+
version_requirement:
|
|
60
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
61
|
+
requirements:
|
|
62
|
+
- - ">="
|
|
63
|
+
- !ruby/object:Gem::Version
|
|
64
|
+
version: "0"
|
|
65
|
+
version:
|
|
56
66
|
description: Profile engine for the muck system.
|
|
57
67
|
email: justin@tatemae.com
|
|
58
68
|
executables: []
|