obscured-timeline 1.0.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/publish.yml +34 -23
- data/CHANGELOG.md +30 -0
- data/Gemfile.lock +3 -2
- data/README.md +1 -0
- data/lib/obscured-timeline.rb +1 -1
- data/lib/obscured-timeline/record.rb +1 -1
- data/lib/obscured-timeline/service.rb +2 -2
- data/lib/obscured-timeline/tracker.rb +2 -2
- data/lib/obscured-timeline/version.rb +2 -2
- data/obscured-timeline.gemspec +1 -1
- data/spec/account_service_spec.rb +2 -2
- data/spec/factories/event_factory.rb +1 -1
- data/spec/helpers/account_document.rb +1 -1
- data/spec/helpers/account_service.rb +2 -2
- data/spec/helpers/organization_document.rb +1 -1
- data/spec/tracker_multiple_spec.rb +1 -1
- data/spec/tracker_single_spec.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1447820986bf6596f042c6e064895132a080963c8d58158700bd666e650c006d
|
4
|
+
data.tar.gz: fe24411da07748b6c2695cb7c68a74c7086d20731eaa7a7fbf9a5868f508c5b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33e371294f6382f26553e2fda78aa4cc3db2b04450c4bb176e9ac6d56b8774522295cc9f815cf0f3074678bc353188992e22c793be6d89edf56613b2afe97bdb
|
7
|
+
data.tar.gz: ead94bd46cca9541340fe5d5f64ab656427bcf69de7c565d6a38623564e32dcf6b8df1a8b5146e9b88f1fd0c7872a8c715d070a335398bb7f0ea5b5ed0a4b2ad
|
@@ -1,30 +1,41 @@
|
|
1
|
-
name:
|
1
|
+
name: Publish
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
5
|
-
branches:
|
6
|
-
|
7
|
-
branches: [ master ]
|
5
|
+
branches:
|
6
|
+
- master
|
8
7
|
|
9
8
|
jobs:
|
10
|
-
|
11
|
-
name: Build + Publish
|
9
|
+
publish:
|
12
10
|
runs-on: ubuntu-latest
|
13
|
-
|
14
11
|
steps:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
12
|
+
- uses: GoogleCloudPlatform/release-please-action@v2
|
13
|
+
id: release
|
14
|
+
with:
|
15
|
+
release-type: ruby
|
16
|
+
package-name: obscured-timeline
|
17
|
+
bump-minor-pre-major: true
|
18
|
+
version-file: "lib/obscured-timeline/version.rb"
|
19
|
+
# Checkout code if release was created
|
20
|
+
- uses: actions/checkout@v2
|
21
|
+
if: ${{ steps.release.outputs.release_created }}
|
22
|
+
# Setup ruby if a release was created
|
23
|
+
- uses: actions/setup-ruby@v1
|
24
|
+
with:
|
25
|
+
ruby-version: 2.7.x
|
26
|
+
if: ${{ steps.release.outputs.release_created }}
|
27
|
+
# Bundle install
|
28
|
+
- run: bundle install
|
29
|
+
if: ${{ steps.release.outputs.release_created }}
|
30
|
+
# Publish
|
31
|
+
- name: Publish to RubyGems
|
32
|
+
run: |
|
33
|
+
mkdir -p $HOME/.gem
|
34
|
+
touch $HOME/.gem/credentials
|
35
|
+
chmod 0600 $HOME/.gem/credentials
|
36
|
+
printf -- "---\n:rubygems_api_key: ${RUBYGEMS_AUTH_TOKEN}\n" > $HOME/.gem/credentials
|
37
|
+
gem build *.gemspec
|
38
|
+
gem push *.gem
|
39
|
+
env:
|
40
|
+
RUBYGEMS_AUTH_TOKEN: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
41
|
+
if: ${{ steps.release.outputs.release_created }}
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [1.4.0](https://www.github.com/gonace/Obscured.Timeline/compare/v1.3.0...v1.4.0) (2021-05-13)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* Updated namespace ([589e341](https://www.github.com/gonace/Obscured.Timeline/commit/589e341df096caabcc240a6ccc9f4435ef6e003f))
|
9
|
+
|
10
|
+
## [1.3.0](https://www.github.com/gonace/Obscured.Timeline/compare/v1.2.0...v1.3.0) (2021-05-13)
|
11
|
+
|
12
|
+
|
13
|
+
### Features
|
14
|
+
|
15
|
+
* Updated namespace ([5237987](https://www.github.com/gonace/Obscured.Timeline/commit/523798719d4dd75e8f53c03283f99265bc546273))
|
16
|
+
* Updated namespace ([1ee75f5](https://www.github.com/gonace/Obscured.Timeline/commit/1ee75f5c10aa6a31dc56e7a3d763039c16cca365))
|
17
|
+
|
18
|
+
## [1.2.0](https://www.github.com/gonace/Obscured.Timeline/compare/v1.1.0...v1.2.0) (2021-05-13)
|
19
|
+
|
20
|
+
|
21
|
+
### Features
|
22
|
+
|
23
|
+
* Updated namespace ([d8b9e76](https://www.github.com/gonace/Obscured.Timeline/commit/d8b9e768faebfd4452e0ce2c154fd7b04962baf4))
|
24
|
+
|
25
|
+
## [1.1.0](https://www.github.com/gonace/Obscured.Timeline/compare/v1.0.1...v1.1.0) (2021-05-13)
|
26
|
+
|
27
|
+
|
28
|
+
### Features
|
29
|
+
|
30
|
+
* updated bundler and version ([72d80c1](https://www.github.com/gonace/Obscured.Timeline/commit/72d80c108f512ff04e1f5587cd955d4c07d498e5))
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
obscured-timeline (1.
|
4
|
+
obscured-timeline (1.4.0)
|
5
5
|
activesupport
|
6
6
|
mongoid
|
7
7
|
mongoid_search
|
@@ -60,6 +60,7 @@ GEM
|
|
60
60
|
|
61
61
|
PLATFORMS
|
62
62
|
ruby
|
63
|
+
x86_64-linux
|
63
64
|
|
64
65
|
DEPENDENCIES
|
65
66
|
factory_bot
|
@@ -68,4 +69,4 @@ DEPENDENCIES
|
|
68
69
|
simplecov
|
69
70
|
|
70
71
|
BUNDLED WITH
|
71
|
-
2.
|
72
|
+
2.2.17
|
data/README.md
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
[](https://badge.fury.io/rb/obscured-timeline)
|
1
2
|
[](https://snyk.io/test/github/gonace/obscured.timeline)
|
2
3
|
[](https://travis-ci.org/gonace/Obscured.Timeline)
|
3
4
|
[](https://codeclimate.com/github/gonace/Obscured.Timeline)
|
data/lib/obscured-timeline.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
module
|
3
|
+
module Obscured
|
4
4
|
module Timeline
|
5
5
|
module Service
|
6
6
|
module Base
|
@@ -45,7 +45,7 @@ module Mongoid
|
|
45
45
|
end
|
46
46
|
|
47
47
|
class Record
|
48
|
-
include
|
48
|
+
include Obscured::Timeline::Record
|
49
49
|
end
|
50
50
|
end
|
51
51
|
end
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
require 'active_support/concern'
|
4
4
|
|
5
|
-
module
|
5
|
+
module Obscured
|
6
6
|
module Timeline
|
7
7
|
module Tracker
|
8
8
|
extend ActiveSupport::Concern
|
9
9
|
|
10
10
|
class Record
|
11
|
-
include
|
11
|
+
include Obscured::Timeline::Record
|
12
12
|
end
|
13
13
|
|
14
14
|
# Adds event to the x_timeline collection for document. This is
|
data/obscured-timeline.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'obscured-timeline/version'
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |gem|
|
8
8
|
gem.name = 'obscured-timeline'
|
9
|
-
gem.version =
|
9
|
+
gem.version = Obscured::Timeline::VERSION
|
10
10
|
gem.platform = Gem::Platform::RUBY
|
11
11
|
gem.licenses = ['MIT']
|
12
12
|
gem.authors = ['Erik Hennerfors']
|
@@ -5,10 +5,10 @@ require_relative 'helpers/account_document'
|
|
5
5
|
require_relative 'helpers/account_service'
|
6
6
|
|
7
7
|
|
8
|
-
describe
|
8
|
+
describe Obscured::Timeline::Service::Account do
|
9
9
|
let!(:account) { Obscured::Account.new(email: 'homer.simpsons@obscured.se') }
|
10
10
|
let!(:message) { 'Praesent a massa dui. Etiam eget purus consequat, mollis erat et, rhoncus tortor.' }
|
11
|
-
let!(:service) {
|
11
|
+
let!(:service) { Obscured::Timeline::Service::Account.new }
|
12
12
|
|
13
13
|
before(:each) do
|
14
14
|
2.times do
|
@@ -3,7 +3,7 @@
|
|
3
3
|
require_relative '../../lib/obscured-timeline/record'
|
4
4
|
|
5
5
|
FactoryBot.define do
|
6
|
-
factory :event, class:
|
6
|
+
factory :event, class: Obscured::Timeline::Record do
|
7
7
|
type { :comment }
|
8
8
|
message { 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' }
|
9
9
|
producer { 'homer.simpson@obscured.se' }
|
@@ -5,7 +5,7 @@ require_relative 'helpers/account_document'
|
|
5
5
|
require_relative 'helpers/organization_document'
|
6
6
|
|
7
7
|
|
8
|
-
describe
|
8
|
+
describe Obscured::Timeline::Tracker do
|
9
9
|
let!(:account_email) { 'homer.simpson@obscured.se' }
|
10
10
|
let!(:message) { 'Praesent a massa dui. Etiam eget purus consequat, mollis erat et, rhoncus tortor.' }
|
11
11
|
let(:account) { Obscured::Account.new(email: account_email) }
|
data/spec/tracker_single_spec.rb
CHANGED
@@ -4,7 +4,7 @@ require_relative 'setup'
|
|
4
4
|
require_relative 'helpers/account_document'
|
5
5
|
|
6
6
|
|
7
|
-
describe
|
7
|
+
describe Obscured::Timeline::Tracker do
|
8
8
|
let!(:account_email) { 'homer.simpson@obscured.se' }
|
9
9
|
let!(:type) { :comment }
|
10
10
|
let!(:message) { 'Praesent a massa dui. Etiam eget purus consequat, mollis erat et, rhoncus tortor.' }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Hennerfors
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- ".ruby-version"
|
114
114
|
- ".simplecov"
|
115
115
|
- ".travis.yml"
|
116
|
+
- CHANGELOG.md
|
116
117
|
- Gemfile
|
117
118
|
- Gemfile.lock
|
118
119
|
- README.md
|