obscured-timeline 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +11 -0
- data/.github/workflows/publish.yml +30 -0
- data/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +41 -40
- data/README.md +2 -2
- data/lib/obscured-timeline/version.rb +1 -1
- data/obscured-timeline.gemspec +2 -2
- data/spec/tracker_single_spec.rb +1 -1
- metadata +10 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d7714e756691ef1550a44925f24d5320b47449d3efb95f48e8f831358a0df7b
|
4
|
+
data.tar.gz: 1ef1dd35afbade7e6d8cfc52778fa57852dd2a6ed0cd987644472db422264b9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f9e3d1b1b4a269260f104275a2adf270746eae39bc2d963d74a0a7e7b423b8fe67e65b9401a1fa2852766382b43ead0ddcf1a1b1e0888ef9624cab0f424b9e0
|
7
|
+
data.tar.gz: c57bdb25503548ff482f1f7897fd9afca4613fb11b243e13c6426ebf8bac38d389e6f0617b984a14c979978e07c10743793b2ef8334a4ce3c0fe739aef8c1df2
|
@@ -0,0 +1,30 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
name: Build + Publish
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
- name: Set up Ruby 2.7
|
17
|
+
uses: actions/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: 2.7.x
|
20
|
+
|
21
|
+
- name: Publish to RubyGems
|
22
|
+
run: |
|
23
|
+
mkdir -p $HOME/.gem
|
24
|
+
touch $HOME/.gem/credentials
|
25
|
+
chmod 0600 $HOME/.gem/credentials
|
26
|
+
printf -- "---\n:rubygems_api_key: ${RUBYGEMS_AUTH_TOKEN}\n" > $HOME/.gem/credentials
|
27
|
+
gem build *.gemspec
|
28
|
+
gem push *.gem
|
29
|
+
env:
|
30
|
+
RUBYGEMS_AUTH_TOKEN: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.2
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -7,55 +7,56 @@ PATH
|
|
7
7
|
mongoid_search
|
8
8
|
|
9
9
|
GEM
|
10
|
-
remote:
|
10
|
+
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activemodel (6.
|
13
|
-
activesupport (= 6.
|
14
|
-
activesupport (6.
|
12
|
+
activemodel (6.1.3.1)
|
13
|
+
activesupport (= 6.1.3.1)
|
14
|
+
activesupport (6.1.3.1)
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
16
|
-
i18n (>=
|
17
|
-
minitest (
|
18
|
-
tzinfo (~>
|
19
|
-
zeitwerk (~> 2.
|
20
|
-
bson (4.
|
21
|
-
concurrent-ruby (1.1.
|
22
|
-
diff-lcs (1.
|
23
|
-
docile (1.3.
|
24
|
-
factory_bot (
|
25
|
-
activesupport (>=
|
16
|
+
i18n (>= 1.6, < 2)
|
17
|
+
minitest (>= 5.1)
|
18
|
+
tzinfo (~> 2.0)
|
19
|
+
zeitwerk (~> 2.3)
|
20
|
+
bson (4.12.0)
|
21
|
+
concurrent-ruby (1.1.8)
|
22
|
+
diff-lcs (1.4.4)
|
23
|
+
docile (1.3.5)
|
24
|
+
factory_bot (6.1.0)
|
25
|
+
activesupport (>= 5.0.0)
|
26
26
|
fast-stemmer (1.0.2)
|
27
|
-
i18n (1.8.
|
27
|
+
i18n (1.8.10)
|
28
28
|
concurrent-ruby (~> 1.0)
|
29
|
-
minitest (5.14.
|
30
|
-
mongo (2.
|
31
|
-
bson (>= 4.
|
32
|
-
mongoid (7.
|
33
|
-
activemodel (>= 5.1, < 6.
|
34
|
-
mongo (>= 2.
|
35
|
-
mongoid_search (0.
|
29
|
+
minitest (5.14.4)
|
30
|
+
mongo (2.14.0)
|
31
|
+
bson (>= 4.8.2, < 5.0.0)
|
32
|
+
mongoid (7.2.2)
|
33
|
+
activemodel (>= 5.1, < 6.2)
|
34
|
+
mongo (>= 2.10.5, < 3.0.0)
|
35
|
+
mongoid_search (0.4.0)
|
36
36
|
fast-stemmer (~> 1.0.0)
|
37
|
-
mongoid (>=
|
38
|
-
rspec (3.
|
39
|
-
rspec-core (~> 3.
|
40
|
-
rspec-expectations (~> 3.
|
41
|
-
rspec-mocks (~> 3.
|
42
|
-
rspec-core (3.
|
43
|
-
rspec-support (~> 3.
|
44
|
-
rspec-expectations (3.
|
37
|
+
mongoid (>= 5.0.0)
|
38
|
+
rspec (3.10.0)
|
39
|
+
rspec-core (~> 3.10.0)
|
40
|
+
rspec-expectations (~> 3.10.0)
|
41
|
+
rspec-mocks (~> 3.10.0)
|
42
|
+
rspec-core (3.10.1)
|
43
|
+
rspec-support (~> 3.10.0)
|
44
|
+
rspec-expectations (3.10.1)
|
45
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
46
|
-
rspec-support (~> 3.
|
47
|
-
rspec-mocks (3.
|
46
|
+
rspec-support (~> 3.10.0)
|
47
|
+
rspec-mocks (3.10.2)
|
48
48
|
diff-lcs (>= 1.2.0, < 2.0)
|
49
|
-
rspec-support (~> 3.
|
50
|
-
rspec-support (3.
|
51
|
-
simplecov (0.
|
49
|
+
rspec-support (~> 3.10.0)
|
50
|
+
rspec-support (3.10.2)
|
51
|
+
simplecov (0.21.2)
|
52
52
|
docile (~> 1.1)
|
53
53
|
simplecov-html (~> 0.11)
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
54
|
+
simplecov_json_formatter (~> 0.1)
|
55
|
+
simplecov-html (0.12.3)
|
56
|
+
simplecov_json_formatter (0.1.2)
|
57
|
+
tzinfo (2.0.4)
|
58
|
+
concurrent-ruby (~> 1.0)
|
59
|
+
zeitwerk (2.4.2)
|
59
60
|
|
60
61
|
PLATFORMS
|
61
62
|
ruby
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ Obscured timeline adds event to a separate collection for an entity (Document),
|
|
15
15
|
|
16
16
|
##### Add this line to your application's Gemfile
|
17
17
|
```ruby
|
18
|
-
gem 'obscured-timeline'
|
18
|
+
gem 'obscured-timeline'
|
19
19
|
```
|
20
20
|
|
21
21
|
##### Execute
|
@@ -91,4 +91,4 @@ module Obscured
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
end
|
94
|
-
```
|
94
|
+
```
|
data/obscured-timeline.gemspec
CHANGED
@@ -11,8 +11,8 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.licenses = ['MIT']
|
12
12
|
gem.authors = ['Erik Hennerfors']
|
13
13
|
gem.email = ['erik.hennerfors@obscured.se']
|
14
|
-
gem.
|
15
|
-
gem.
|
14
|
+
gem.summary = 'Mongoid extension that adds the ability to handle events in a timeline for an entity (e.g. User).'
|
15
|
+
gem.description = 'Obscured::Timeline is a Mongoid extension adds events to a separate collection for an entity (e.g. User), the naming of the class (Mongoid Document) is used for naming the timeline collection, so if the class is named "Account" the collection name will end up being "account_timeline".'
|
16
16
|
gem.homepage = 'https://github.com/gonace/Obscured.Timeline'
|
17
17
|
|
18
18
|
gem.required_ruby_version = '>= 2'
|
data/spec/tracker_single_spec.rb
CHANGED
@@ -70,7 +70,7 @@ describe Mongoid::Timeline::Tracker do
|
|
70
70
|
end
|
71
71
|
|
72
72
|
context 'with limit and type' do
|
73
|
-
let(:response) { account.search_events(account.id, limit: 10, type: :
|
73
|
+
let(:response) { account.search_events(account.id, limit: 10, type: :comment) }
|
74
74
|
|
75
75
|
it { expect(response.count).to eq(10) }
|
76
76
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: obscured-timeline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Hennerfors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -94,8 +94,10 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
description:
|
98
|
-
User)
|
97
|
+
description: Obscured::Timeline is a Mongoid extension adds events to a separate collection
|
98
|
+
for an entity (e.g. User), the naming of the class (Mongoid Document) is used for
|
99
|
+
naming the timeline collection, so if the class is named "Account" the collection
|
100
|
+
name will end up being "account_timeline".
|
99
101
|
email:
|
100
102
|
- erik.hennerfors@obscured.se
|
101
103
|
executables: []
|
@@ -103,6 +105,8 @@ extensions: []
|
|
103
105
|
extra_rdoc_files: []
|
104
106
|
files:
|
105
107
|
- ".codeclimate.yml"
|
108
|
+
- ".github/dependabot.yml"
|
109
|
+
- ".github/workflows/publish.yml"
|
106
110
|
- ".gitignore"
|
107
111
|
- ".rubocop.yml"
|
108
112
|
- ".ruby-gemset"
|
@@ -146,11 +150,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
150
|
- !ruby/object:Gem::Version
|
147
151
|
version: '0'
|
148
152
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
153
|
+
rubygems_version: 3.1.6
|
150
154
|
signing_key:
|
151
155
|
specification_version: 4
|
152
156
|
summary: Mongoid extension that adds the ability to handle events in a timeline for
|
153
|
-
|
157
|
+
an entity (e.g. User).
|
154
158
|
test_files:
|
155
159
|
- spec/account_service_spec.rb
|
156
160
|
- spec/config/mongoid.yml
|