merit 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/merit/controller_extensions.rb +1 -1
- data/lib/merit/model_additions.rb +4 -1
- data/lib/merit/models/active_record/sash.rb +1 -1
- data/merit.gemspec +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -38,7 +38,7 @@ module Merit
|
|
38
38
|
granted = log.split('|').select{|log| log =~ /badge_granted_to_action_user/ }
|
39
39
|
granted.each do |badge|
|
40
40
|
badge_id = badge.split(':').last.to_i
|
41
|
-
flash[:merit] = t('merit.flashs.badge_granted', :badge => Badge.find(badge_id).name)
|
41
|
+
flash[:merit] = t('merit.flashs.badge_granted', :badge => t("badges.#{Badge.find(badge_id).name}.name"))
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
@@ -3,7 +3,10 @@ module Merit
|
|
3
3
|
|
4
4
|
module ClassMethods
|
5
5
|
def has_merit(options = {})
|
6
|
-
|
6
|
+
# :dependent => destroy may raise
|
7
|
+
# ERROR: update or delete on table "sashes" violates foreign key constraint "users_sash_id_fk"
|
8
|
+
# https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1079-belongs_to-dependent-destroy-should-destroy-self-before-assocation
|
9
|
+
belongs_to :sash
|
7
10
|
|
8
11
|
if Merit.orm == :mongo_mapper
|
9
12
|
plugin Merit
|
data/merit.gemspec
CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.description = "Manage badges, points and rankings (reputation) of resources in a Rails application."
|
5
5
|
s.homepage = "http://github.com/tute/merit"
|
6
6
|
s.files = `git ls-files`.split("\n").reject{|f| f =~ /^\./ }
|
7
|
-
s.version =
|
7
|
+
s.version = '0.10.1'
|
8
8
|
s.authors = ["Tute Costa"]
|
9
9
|
s.email = 'tutecosta@gmail.com'
|
10
10
|
s.add_dependency 'ambry', '~> 0.3.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ambry
|