muck-invites 0.1.4 → 0.1.5
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/VERSION +1 -1
- data/lib/active_record/acts/muck_inviter.rb +2 -1
- data/lib/muck_invites.rb +2 -0
- data/lib/muck_invites/exceptions.rb +5 -0
- data/muck-invites.gemspec +6 -4
- metadata +3 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.5
|
|
@@ -57,7 +57,8 @@ module ActiveRecord
|
|
|
57
57
|
emails = emails.split(/[, ]/) if !emails.is_a?(Array)
|
|
58
58
|
emails = emails.find_all { |email| !email.blank? }
|
|
59
59
|
emails = emails.flatten.collect { |email| email.strip }
|
|
60
|
-
|
|
60
|
+
|
|
61
|
+
raise MuckInvites::Exceptions::NoEmails.new(I18n.t('muck.invites.no_email_error')) if emails.blank?
|
|
61
62
|
check_emails = invitee_emails
|
|
62
63
|
emails.each do |email|
|
|
63
64
|
if !check_emails.include?(email)
|
data/lib/muck_invites.rb
CHANGED
data/muck-invites.gemspec
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
|
-
# DO NOT EDIT THIS FILE
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{muck-invites}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.5"
|
|
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-09}
|
|
13
13
|
s.description = %q{The invite engine for the muck system.}
|
|
14
14
|
s.email = %q{justin@tatemae.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -37,6 +37,7 @@ Gem::Specification.new do |s|
|
|
|
37
37
|
"lib/active_record/acts/muck_invitee.rb",
|
|
38
38
|
"lib/active_record/acts/muck_inviter.rb",
|
|
39
39
|
"lib/muck_invites.rb",
|
|
40
|
+
"lib/muck_invites/exceptions.rb",
|
|
40
41
|
"lib/muck_invites/initialize_routes.rb",
|
|
41
42
|
"lib/muck_invites/tasks.rb",
|
|
42
43
|
"locales/ar.yml",
|
|
@@ -432,3 +433,4 @@ Gem::Specification.new do |s|
|
|
|
432
433
|
s.add_dependency(%q<muck-engine>, [">= 0"])
|
|
433
434
|
end
|
|
434
435
|
end
|
|
436
|
+
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: muck-invites
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Ball, Joel Duffin
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-12-09 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -62,6 +62,7 @@ files:
|
|
|
62
62
|
- lib/active_record/acts/muck_invitee.rb
|
|
63
63
|
- lib/active_record/acts/muck_inviter.rb
|
|
64
64
|
- lib/muck_invites.rb
|
|
65
|
+
- lib/muck_invites/exceptions.rb
|
|
65
66
|
- lib/muck_invites/initialize_routes.rb
|
|
66
67
|
- lib/muck_invites/tasks.rb
|
|
67
68
|
- locales/ar.yml
|