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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0ee557f98d45fe9a83d5de23d407e2b36f85f6a5d4204b1ed89fec8bf5c90fb
4
- data.tar.gz: ae393531c2a569a8aece0d533523aaa6fa6e407c4fe4aa3efe96f49d349b3d37
3
+ metadata.gz: 81342bb2e6b393dca1eed04fb9918e964d7add7e4a5144da975deb98fa05651e
4
+ data.tar.gz: 6b942ef093394de05ad17ddc74b2c802ed3e4e648f4452b1497b0e1a3521eefb
5
5
  SHA512:
6
- metadata.gz: c4b48c33d57774076e00d9732ccac73dbb71b1ee1efe87329ba9ee542593e1a8c3823bef1c5c783a45ed46b28cc3eda4626ddefe9683682341ccc8d51bcf9889
7
- data.tar.gz: 0e886c1d895343875d06c537015d4ae14b0723f96d8ddac2a264892b7a3aee0d821f7e6ccb404f68371ac9ca9d5adad78f211b1943747a9bc6dc53361efd6cb6
6
+ metadata.gz: 9054350196c3dbb3d9a4542519a100f1ee1f34bc8bd2374de067fea912910afb1d795c78bd120e9b5007c2032dd0aecb4d113e21d7470232f00be15c2fe41c88
7
+ data.tar.gz: e86554c92ac022a624a911a2e5cdb81562cde41babc2c2fa195aa78e4c264ef389db106c5907ba05f7db6bb4f4ce9a276d57d49b34d78138eee6c633dbed655c
data/NEWS.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  User-visible changes worth mentioning.
4
4
 
5
+ ## 4.0.1
6
+
7
+ - [#351] Fix bug on generating migrations
8
+
5
9
  ## 4.0.0
6
10
 
7
11
  - Stop testing on Rails 5.1
@@ -13,7 +13,7 @@ module Merit
13
13
  end
14
14
 
15
15
  def copy_migrations_and_model
16
- migration_template 'add_merit_fields_to_model.rb',
16
+ migration_template 'add_merit_fields_to_model.erb',
17
17
  "db/migrate/add_merit_fields_to_#{table_name}.rb"
18
18
  end
19
19
 
@@ -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
- hook_for :orm
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 grand badge if no
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
 
@@ -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.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.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-06-02 00:00:00.000000000 Z
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: