action-store 0.4.4 → 1.0.0

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: ed5b51fa932124248255c6fd858b1030cdc27c0a7ec8a716147d68411d2b4d82
4
- data.tar.gz: 838a6621072a34b97137d63eaed9b97da9182d497da32a51783588ad8cc2bd04
3
+ metadata.gz: c50599726c2919bd3a8dc50ad0591150bad0c831e666dcefdca1ff2297159781
4
+ data.tar.gz: fd867adfc5eee592b323379d1622ddc80f0f98e88e27e85c521ddd70171cf190
5
5
  SHA512:
6
- metadata.gz: 0317b5ce5fc6119ed467292654bebf0c224a8892a29450f0ab9907062706df8e11728b610b4ed06ed5873ff2a049d922032b6134f91f3e6eec36af71fff18160
7
- data.tar.gz: 99b359f4bcd545392c0d68eb8ff9444ccd7e35c14f9803755e884ba710055a06e311651f5fbb0f8fbb7a00abc96573e5772cd863c2d3ce5a9a8078e2bec1bc08
6
+ metadata.gz: 99341754765a283b278ee0844e37a23bb50711d2a082b51c274b457a87a45e37f90b1ea2dadc4303d8a911a6d09bf3325f7e86e1cc127cbccb2100975cddd3b4
7
+ data.tar.gz: f102b00586c9e18446876bf8de8b15d8003e326eb345fdc2835ceef1797421524fd2e4133477008f544d06a56e7f517e4db5f1c91052b8bcedc057cf2b15446e
@@ -1,3 +1,9 @@
1
+ 1.1.0
2
+ -----
3
+
4
+ - Require Rails >= 5.2.
5
+ - Fix primary key for use `bigint` column type.
6
+
1
7
  0.4.3
2
8
  -----
3
9
 
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  begin
3
4
  require "bundler/setup"
4
5
  rescue LoadError
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # Auto generate with action-store gem.
3
4
  class Action < ActiveRecord::Base
4
5
  include ActionStore::Model
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # ActionStore Config
3
4
  ActionStore.configure do
4
5
  end
@@ -1,13 +1,14 @@
1
1
  # frozen_string_literal: true
2
- class CreateActions < ActiveRecord::Migration[5.0]
2
+
3
+ class CreateActions < ActiveRecord::Migration[5.2]
3
4
  def change
4
5
  create_table :actions do |t|
5
6
  t.string :action_type, null: false
6
7
  t.string :action_option
7
8
  t.string :target_type
8
- t.integer :target_id
9
+ t.bigint :target_id
9
10
  t.string :user_type
10
- t.integer :user_id
11
+ t.bigint :user_id
11
12
 
12
13
  t.timestamps
13
14
  end
@@ -1,4 +1,4 @@
1
- class AddUniqueIndexToActions < ActiveRecord::Migration[5.0]
1
+ class AddUniqueIndexToActions < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_index :actions, [:action_type, :target_type, :target_id, :user_type, :user_id], unique: true, name: :uk_action_target_user
4
4
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "action_store/version"
3
4
  require "action_store/configuration"
4
5
  require "action_store/engine"
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module ActionStore
3
4
  class Configuration
4
5
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module ActionStore
3
4
  class Engine < ::Rails::Engine
4
5
  isolate_namespace ActionStore
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module ActionStore
3
4
  module Mixin
4
5
  extend ActiveSupport::Concern
@@ -133,7 +134,6 @@ module ActionStore
133
134
  end
134
135
 
135
136
  private
136
-
137
137
  def define_relations(action)
138
138
  target_klass = action[:target_klass]
139
139
  action_type = action[:action_type]
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module ActionStore
3
4
  module Model
4
5
  extend ActiveSupport::Concern
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module ActionStore
3
- VERSION = "0.4.4"
4
+ VERSION = "1.0.0"
4
5
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "rails/generators"
3
4
  module ActionStore
4
5
  module Generators
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action-store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5'
19
+ version: '5.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '7'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '5'
29
+ version: '5.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '7'
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  requirements: []
130
- rubygems_version: 3.0.1
130
+ rubygems_version: 3.0.3
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Store difference kind of actions (Like, Follow, Star, Block ...) in one table.