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 +4 -4
- data/CHANGELOG.md +6 -0
- data/Rakefile +1 -0
- data/app/models/action.rb +1 -0
- data/config/initializers/action_store.rb +1 -0
- data/db/migrate/20170204035500_create_actions.rb +4 -3
- data/db/migrate/20181121052638_add_unique_index_to_actions.rb +1 -1
- data/lib/action-store.rb +1 -0
- data/lib/action_store/configuration.rb +1 -0
- data/lib/action_store/engine.rb +1 -0
- data/lib/action_store/mixin.rb +1 -1
- data/lib/action_store/model.rb +1 -0
- data/lib/action_store/version.rb +2 -1
- data/lib/generators/action_store/install_generator.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c50599726c2919bd3a8dc50ad0591150bad0c831e666dcefdca1ff2297159781
|
4
|
+
data.tar.gz: fd867adfc5eee592b323379d1622ddc80f0f98e88e27e85c521ddd70171cf190
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99341754765a283b278ee0844e37a23bb50711d2a082b51c274b457a87a45e37f90b1ea2dadc4303d8a911a6d09bf3325f7e86e1cc127cbccb2100975cddd3b4
|
7
|
+
data.tar.gz: f102b00586c9e18446876bf8de8b15d8003e326eb345fdc2835ceef1797421524fd2e4133477008f544d06a56e7f517e4db5f1c91052b8bcedc057cf2b15446e
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
data/app/models/action.rb
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
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.
|
9
|
+
t.bigint :target_id
|
9
10
|
t.string :user_type
|
10
|
-
t.
|
11
|
+
t.bigint :user_id
|
11
12
|
|
12
13
|
t.timestamps
|
13
14
|
end
|
data/lib/action-store.rb
CHANGED
data/lib/action_store/engine.rb
CHANGED
data/lib/action_store/mixin.rb
CHANGED
@@ -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]
|
data/lib/action_store/model.rb
CHANGED
data/lib/action_store/version.rb
CHANGED
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
|
+
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.
|
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.
|