activity_stream_client 0.0.12 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/models/activity_stream/activity.rb +7 -8
- metadata +17 -25
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 62ceecb925b5552363ccc4116eac273df1860b218fad681a4f53d097b055ebbb
|
4
|
+
data.tar.gz: eb6e3963efbc5e6beb9d35b4c730f0709be25c4399f86263f44d2762df85668c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9d29a414e725b0d4088decfe2865d4a3d383205647074bc4d6980014eea9d62b5db7ca23e315e07e49d1b2ffddd4b91e1a46c59c10989867788832ae913d379b
|
7
|
+
data.tar.gz: 1bbb2dee6765ebed3c65b4767c5477e986816972e4dbd9d9458dc45b0ed9abe46e52dbefa0da7fff8bb60a906511064488642115a97f51533cfe904a6878c92e
|
@@ -8,6 +8,7 @@ module ActivityStream
|
|
8
8
|
:content,
|
9
9
|
:generator,
|
10
10
|
:verb,
|
11
|
+
:data,
|
11
12
|
:target_id,
|
12
13
|
:target_type,
|
13
14
|
:object_id,
|
@@ -39,12 +40,11 @@ module ActivityStream
|
|
39
40
|
|
40
41
|
attr_accessor :cached_object
|
41
42
|
def object
|
42
|
-
if cached_object.present?
|
43
|
-
cached_object
|
44
|
-
elsif local?
|
43
|
+
if !cached_object.present? && local?
|
45
44
|
klass = self.object_type.camelize.constantize
|
46
45
|
self.cached_object = klass.find(object_id) if klass.exists?(object_id)
|
47
46
|
end
|
47
|
+
cached_object
|
48
48
|
end
|
49
49
|
|
50
50
|
def local_deleted_object?
|
@@ -53,13 +53,12 @@ module ActivityStream
|
|
53
53
|
|
54
54
|
attr_accessor :cached_target
|
55
55
|
def target
|
56
|
-
if cached_target.present?
|
57
|
-
cached_target
|
58
|
-
elsif local?
|
56
|
+
if !cached_target.present? && local?
|
59
57
|
klass = target_type.camelize.constantize
|
60
|
-
self.cached_target = klass.find(
|
58
|
+
self.cached_target = klass.find(target_id) if klass.exists?(target_id)
|
61
59
|
end
|
60
|
+
cached_target
|
62
61
|
end
|
63
62
|
|
64
63
|
end
|
65
|
-
end
|
64
|
+
end
|
metadata
CHANGED
@@ -1,48 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activity_stream_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Dwayne Macgowan
|
9
|
-
autorequire:
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2021-09-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: railties
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '3.1'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '3.1'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: logical_model
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '='
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.
|
33
|
+
version: 0.7.1
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '='
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.
|
40
|
+
version: 0.7.1
|
46
41
|
description: This is client library for padma-ActivityStream-ws
|
47
42
|
email:
|
48
43
|
- dwaynemac@gmail.com
|
@@ -52,32 +47,29 @@ extra_rdoc_files: []
|
|
52
47
|
files:
|
53
48
|
- app/models/activity_stream/activity.rb
|
54
49
|
- app/models/activity_stream/merge.rb
|
50
|
+
- config/initializers/activity_stream_client.rb
|
55
51
|
- lib/activity_stream/railties.rb
|
56
52
|
- lib/activity_stream_client.rb
|
57
|
-
- config/initializers/activity_stream_client.rb
|
58
53
|
homepage: ''
|
59
54
|
licenses: []
|
60
|
-
|
55
|
+
metadata: {}
|
56
|
+
post_install_message:
|
61
57
|
rdoc_options: []
|
62
58
|
require_paths:
|
63
59
|
- lib
|
64
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
61
|
requirements:
|
67
|
-
- -
|
62
|
+
- - ">="
|
68
63
|
- !ruby/object:Gem::Version
|
69
64
|
version: '0'
|
70
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
66
|
requirements:
|
73
|
-
- -
|
67
|
+
- - ">="
|
74
68
|
- !ruby/object:Gem::Version
|
75
69
|
version: '0'
|
76
70
|
requirements: []
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
specification_version: 3
|
71
|
+
rubygems_version: 3.0.3.1
|
72
|
+
signing_key:
|
73
|
+
specification_version: 4
|
81
74
|
summary: Client library for padma-ActivityStream-ws
|
82
75
|
test_files: []
|
83
|
-
has_rdoc:
|