merit 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS.md +4 -0
- data/lib/merit/generators/active_record/merit_generator.rb +1 -1
- data/lib/merit/generators/install_generator.rb +4 -1
- data/lib/merit/generators/merit_generator.rb +4 -1
- data/lib/merit/generators/remove_generator.rb +4 -1
- data/lib/merit/generators/templates/merit.erb +1 -1
- data/merit.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81342bb2e6b393dca1eed04fb9918e964d7add7e4a5144da975deb98fa05651e
|
4
|
+
data.tar.gz: 6b942ef093394de05ad17ddc74b2c802ed3e4e648f4452b1497b0e1a3521eefb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9054350196c3dbb3d9a4542519a100f1ee1f34bc8bd2374de067fea912910afb1d795c78bd120e9b5007c2032dd0aecb4d113e21d7470232f00be15c2fe41c88
|
7
|
+
data.tar.gz: e86554c92ac022a624a911a2e5cdb81562cde41babc2c2fa195aa78e4c264ef389db106c5907ba05f7db6bb4f4ce9a276d57d49b34d78138eee6c633dbed655c
|
data/NEWS.md
CHANGED
@@ -4,7 +4,6 @@ module Merit
|
|
4
4
|
module Generators
|
5
5
|
class InstallGenerator < ::Rails::Generators::Base
|
6
6
|
source_root File.expand_path('../templates', __FILE__)
|
7
|
-
hook_for :orm
|
8
7
|
|
9
8
|
desc 'Copy config and rules files'
|
10
9
|
def copy_migrations_and_model
|
@@ -13,6 +12,10 @@ module Merit
|
|
13
12
|
template 'merit_point_rules.erb', 'app/models/merit/point_rules.rb'
|
14
13
|
template 'merit_rank_rules.erb', 'app/models/merit/rank_rules.rb'
|
15
14
|
end
|
15
|
+
|
16
|
+
def run_active_record_generators
|
17
|
+
invoke 'merit:active_record:install'
|
18
|
+
end
|
16
19
|
end
|
17
20
|
end
|
18
21
|
end
|
@@ -4,7 +4,6 @@ module Merit
|
|
4
4
|
module Generators
|
5
5
|
class MeritGenerator < ::Rails::Generators::NamedBase
|
6
6
|
source_root File.expand_path('../templates', __FILE__)
|
7
|
-
hook_for :orm
|
8
7
|
|
9
8
|
def inject_merit_content
|
10
9
|
if model_exists?
|
@@ -12,6 +11,10 @@ module Merit
|
|
12
11
|
end
|
13
12
|
end
|
14
13
|
|
14
|
+
def run_active_record_generators
|
15
|
+
invoke 'merit:active_record:merit'
|
16
|
+
end
|
17
|
+
|
15
18
|
private
|
16
19
|
|
17
20
|
def model_exists?
|
@@ -4,7 +4,10 @@ module Merit
|
|
4
4
|
module Generators
|
5
5
|
class RemoveGenerator < ::Rails::Generators::NamedBase
|
6
6
|
source_root File.expand_path('../templates', __FILE__)
|
7
|
-
|
7
|
+
|
8
|
+
def run_active_record_generators
|
9
|
+
invoke 'merit:active_record:remove'
|
10
|
+
end
|
8
11
|
|
9
12
|
private
|
10
13
|
|
@@ -6,7 +6,7 @@ Merit.setup do |config|
|
|
6
6
|
# Add application observers to get notifications when reputation changes.
|
7
7
|
# config.add_observer 'MyObserverClassName'
|
8
8
|
|
9
|
-
# Define :user_model_name. This model will be used to
|
9
|
+
# Define :user_model_name. This model will be used to grant badge if no
|
10
10
|
# `:to` option is given. Default is 'User'.
|
11
11
|
# config.user_model_name = 'User'
|
12
12
|
|
data/merit.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.files = `git ls-files`.split("\n").reject{|f| f =~ /^\./ }
|
7
7
|
s.test_files = `git ls-files -- test/*`.split("\n")
|
8
8
|
s.license = 'MIT'
|
9
|
-
s.version = '4.0.
|
9
|
+
s.version = '4.0.1'
|
10
10
|
s.authors = ["Tute Costa"]
|
11
11
|
s.email = 'tutecosta@gmail.com'
|
12
12
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tute Costa
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ambry
|
@@ -265,7 +265,7 @@ homepage: https://github.com/merit-gem/merit
|
|
265
265
|
licenses:
|
266
266
|
- MIT
|
267
267
|
metadata: {}
|
268
|
-
post_install_message:
|
268
|
+
post_install_message:
|
269
269
|
rdoc_options: []
|
270
270
|
require_paths:
|
271
271
|
- lib
|
@@ -281,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
281
281
|
version: '0'
|
282
282
|
requirements: []
|
283
283
|
rubygems_version: 3.0.3
|
284
|
-
signing_key:
|
284
|
+
signing_key:
|
285
285
|
specification_version: 4
|
286
286
|
summary: Reputation engine for Rails apps
|
287
287
|
test_files:
|