activityutils 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{History.md → CHANGELOG.md} +0 -0
- data/Manifest.txt +1 -1
- data/README.md +16 -14
- data/Rakefile +4 -4
- data/lib/activityutils.rb +3 -1
- data/lib/activityutils/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c68074500e69550328c162927e8989c9a2d1727
|
4
|
+
data.tar.gz: 9847cc23dcb287d93e02abece0570cd7e524da09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb4b97f27bdfadbec4ccaa580b33e2468ee43683b782bded509b9767a8764d87f8306585be785212af2a8ba635dbbb2996ebbfba92314ac5b1f44856b78a927f
|
7
|
+
data.tar.gz: 277d950deddbe202da35aee057a4d7096e461fa78a8d678412d549662d7d3396103cf33819ce5f76be33aaf28c20031e09ed118b409762a2b26db4f2840e2b9c
|
data/{History.md → CHANGELOG.md}
RENAMED
File without changes
|
data/Manifest.txt
CHANGED
data/README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
activityutils gems - activity (timeline) utilities
|
4
4
|
|
5
|
-
* home :: [github.com/
|
6
|
-
* bugs :: [github.com/
|
5
|
+
* home :: [github.com/rubycoco/activityutils](https://github.com/rubycoco/activityutils)
|
6
|
+
* bugs :: [github.com/rubycoco/activityutils/issues](https://github.com/rubycoco/activityutils/issues)
|
7
7
|
* gem :: [rubygems.org/gems/activityutils](https://rubygems.org/gems/activityutils)
|
8
8
|
* rdoc :: [rubydoc.info/gems/activityutils](http://rubydoc.info/gems/activityutils)
|
9
9
|
|
@@ -17,7 +17,7 @@ TBD
|
|
17
17
|
|
18
18
|
### Database Schemas
|
19
19
|
|
20
|
-
|
20
|
+
```
|
21
21
|
create_table :activity_engine_activities do |t|
|
22
22
|
t.integer :user_id
|
23
23
|
t.string :subject_type, index: true, null: false
|
@@ -26,11 +26,11 @@ create_table :activity_engine_activities do |t|
|
|
26
26
|
t.text :message
|
27
27
|
t.timestamps
|
28
28
|
end
|
29
|
-
|
29
|
+
```
|
30
30
|
|
31
31
|
(source: [ndlib/activity_engine](https://github.com/ndlib/activity_engine/blob/master/db/migrate/20130722162331_create_activity_engine_activities.rb))
|
32
32
|
|
33
|
-
|
33
|
+
```
|
34
34
|
create_table :activities do |t|
|
35
35
|
t.integer :user_id, :limit => 10
|
36
36
|
t.string :action, :limit => 50
|
@@ -38,11 +38,11 @@ create_table :activities do |t|
|
|
38
38
|
t.string :item_type
|
39
39
|
t.datetime :created_at
|
40
40
|
end
|
41
|
-
|
41
|
+
```
|
42
42
|
|
43
43
|
(source: [bborn/communityengine](https://github.com/bborn/communityengine/blob/master/db/migrate/039_create_activities_table.rb))
|
44
44
|
|
45
|
-
|
45
|
+
```
|
46
46
|
create_table :activities do |t|
|
47
47
|
t.references :user # who performed the activity
|
48
48
|
t.boolean :public, :default => true
|
@@ -51,12 +51,12 @@ create_table :activities do |t|
|
|
51
51
|
t.string :action # what action was performed on the item (create, destroy, update, etc)
|
52
52
|
t.timestamps
|
53
53
|
end
|
54
|
-
|
54
|
+
```
|
55
55
|
|
56
56
|
(source: [timothyf/EngineY](https://github.com/timothyf/EngineY/blob/master/db/migrate/20090116165201_create_activities.rb))
|
57
57
|
|
58
58
|
|
59
|
-
|
59
|
+
```
|
60
60
|
create_table :activities do |t|
|
61
61
|
t.integer :person_id
|
62
62
|
t.boolean :public
|
@@ -64,12 +64,12 @@ create_table :activities do |t|
|
|
64
64
|
t.string :item_type
|
65
65
|
t.timestamps
|
66
66
|
end
|
67
|
-
|
67
|
+
```
|
68
68
|
|
69
69
|
(source: [insoshi/insoshi](https://github.com/insoshi/insoshi/blob/master/db/migrate/010_create_events_and_feed.rb))
|
70
70
|
|
71
71
|
|
72
|
-
|
72
|
+
```
|
73
73
|
create_table :activities do |t|
|
74
74
|
t.belongs_to :trackable, :polymorphic => true
|
75
75
|
t.belongs_to :owner, :polymorphic => true
|
@@ -78,11 +78,11 @@ create_table :activities do |t|
|
|
78
78
|
t.belongs_to :recipient, :polymorphic => true
|
79
79
|
t.timestamps
|
80
80
|
end
|
81
|
-
|
81
|
+
```
|
82
82
|
|
83
83
|
(source: [pokonski/public_activity](https://github.com/pokonski/public_activity/blob/master/lib/generators/public_activity/migration/templates/migration.rb))
|
84
84
|
|
85
|
-
|
85
|
+
```
|
86
86
|
create_table :activity_logs do |t|
|
87
87
|
t.integer :user_id
|
88
88
|
t.integer :loggable_id
|
@@ -93,13 +93,15 @@ create_table :activity_logs do |t|
|
|
93
93
|
t.text :data
|
94
94
|
t.timestamps
|
95
95
|
end
|
96
|
-
|
96
|
+
```
|
97
97
|
|
98
98
|
(source: [JonErikDSuero/activitylog](https://github.com/JonErikDSuero/activitylog/blob/master/lib/generators/activity_log/templates/create_activity_logs.rb))
|
99
99
|
|
100
100
|
|
101
101
|
TBD
|
102
102
|
|
103
|
+
|
104
|
+
|
103
105
|
## License
|
104
106
|
|
105
107
|
The `activityutils` scripts are dedicated to the public domain.
|
data/Rakefile
CHANGED
@@ -8,23 +8,23 @@ Hoe.spec 'activityutils' do
|
|
8
8
|
self.summary = 'activityutils - activity (timeline) utilities'
|
9
9
|
self.description = summary
|
10
10
|
|
11
|
-
self.urls = ['https://github.com/
|
11
|
+
self.urls = ['https://github.com/rubycoco/activityutils']
|
12
12
|
|
13
13
|
self.author = 'Gerald Bauer'
|
14
14
|
self.email = 'wwwmake@googlegroups.com'
|
15
15
|
|
16
16
|
# switch extension to .markdown for gihub formatting
|
17
17
|
self.readme_file = 'README.md'
|
18
|
-
self.history_file = '
|
18
|
+
self.history_file = 'CHANGELOG.md'
|
19
19
|
|
20
20
|
self.extra_deps = [
|
21
|
-
['logutils', '>= 0.
|
21
|
+
['logutils', '>= 0.6.1']
|
22
22
|
]
|
23
23
|
|
24
24
|
self.licenses = ['Public Domain']
|
25
25
|
|
26
26
|
self.spec_extras = {
|
27
|
-
:
|
27
|
+
required_ruby_version: '>= 2.2.2'
|
28
28
|
}
|
29
29
|
|
30
30
|
end
|
data/lib/activityutils.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activityutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logutils
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.6.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.6.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -57,11 +57,11 @@ email: wwwmake@googlegroups.com
|
|
57
57
|
executables: []
|
58
58
|
extensions: []
|
59
59
|
extra_rdoc_files:
|
60
|
-
-
|
60
|
+
- CHANGELOG.md
|
61
61
|
- Manifest.txt
|
62
62
|
- README.md
|
63
63
|
files:
|
64
|
-
-
|
64
|
+
- CHANGELOG.md
|
65
65
|
- Manifest.txt
|
66
66
|
- README.md
|
67
67
|
- Rakefile
|
@@ -72,7 +72,7 @@ files:
|
|
72
72
|
- lib/activityutils/server/public/style.css
|
73
73
|
- lib/activityutils/server/views/index.erb
|
74
74
|
- lib/activityutils/version.rb
|
75
|
-
homepage: https://github.com/
|
75
|
+
homepage: https://github.com/rubycoco/activityutils
|
76
76
|
licenses:
|
77
77
|
- Public Domain
|
78
78
|
metadata: {}
|
@@ -86,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 2.2.2
|
90
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
92
|
- - ">="
|