obscured-timeline 1.0.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d7714e756691ef1550a44925f24d5320b47449d3efb95f48e8f831358a0df7b
4
- data.tar.gz: 1ef1dd35afbade7e6d8cfc52778fa57852dd2a6ed0cd987644472db422264b9d
3
+ metadata.gz: 1447820986bf6596f042c6e064895132a080963c8d58158700bd666e650c006d
4
+ data.tar.gz: fe24411da07748b6c2695cb7c68a74c7086d20731eaa7a7fbf9a5868f508c5b2
5
5
  SHA512:
6
- metadata.gz: 2f9e3d1b1b4a269260f104275a2adf270746eae39bc2d963d74a0a7e7b423b8fe67e65b9401a1fa2852766382b43ead0ddcf1a1b1e0888ef9624cab0f424b9e0
7
- data.tar.gz: c57bdb25503548ff482f1f7897fd9afca4613fb11b243e13c6426ebf8bac38d389e6f0617b984a14c979978e07c10743793b2ef8334a4ce3c0fe739aef8c1df2
6
+ metadata.gz: 33e371294f6382f26553e2fda78aa4cc3db2b04450c4bb176e9ac6d56b8774522295cc9f815cf0f3074678bc353188992e22c793be6d89edf56613b2afe97bdb
7
+ data.tar.gz: ead94bd46cca9541340fe5d5f64ab656427bcf69de7c565d6a38623564e32dcf6b8df1a8b5146e9b88f1fd0c7872a8c715d070a335398bb7f0ea5b5ed0a4b2ad
@@ -1,30 +1,41 @@
1
- name: Ruby Gem
1
+ name: Publish
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ master ]
6
- pull_request:
7
- branches: [ master ]
5
+ branches:
6
+ - master
8
7
 
9
8
  jobs:
10
- build:
11
- name: Build + Publish
9
+ publish:
12
10
  runs-on: ubuntu-latest
13
-
14
11
  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}}"
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.0.0)
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.1.4
72
+ 2.2.17
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Gem Version](https://badge.fury.io/rb/obscured-timeline.svg)](https://badge.fury.io/rb/obscured-timeline)
1
2
  [![Vulnerabilities](https://snyk.io/test/github/gonace/obscured.timeline/badge.svg)](https://snyk.io/test/github/gonace/obscured.timeline)
2
3
  [![Build Status](https://travis-ci.org/gonace/Obscured.Timeline.svg?branch=master)](https://travis-ci.org/gonace/Obscured.Timeline)
3
4
  [![Test Coverage](https://codeclimate.com/github/gonace/Obscured.Timeline/badges/coverage.svg)](https://codeclimate.com/github/gonace/Obscured.Timeline)
@@ -12,7 +12,7 @@ require 'obscured-timeline/record'
12
12
  require 'obscured-timeline/service'
13
13
  require 'obscured-timeline/tracker'
14
14
 
15
- module Mongoid
15
+ module Obscured
16
16
  module Timeline
17
17
  end
18
18
  end
@@ -3,7 +3,7 @@
3
3
  require 'mongoid'
4
4
  require 'mongoid_search'
5
5
 
6
- module Mongoid
6
+ module Obscured
7
7
  module Timeline
8
8
  module Record
9
9
  extend ActiveSupport::Concern
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Mongoid
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 Mongoid::Timeline::Record
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 Mongoid
5
+ module Obscured
6
6
  module Timeline
7
7
  module Tracker
8
8
  extend ActiveSupport::Concern
9
9
 
10
10
  class Record
11
- include Mongoid::Timeline::Record
11
+ include Obscured::Timeline::Record
12
12
  end
13
13
 
14
14
  # Adds event to the x_timeline collection for document. This is
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Mongoid
3
+ module Obscured
4
4
  module Timeline
5
- VERSION = '1.0.1'
5
+ VERSION = '1.4.0'.freeze
6
6
  end
7
7
  end
@@ -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 = Mongoid::Timeline::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 Mongoid::Timeline::Service::Account do
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) { Mongoid::Timeline::Service::Account.new }
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: Mongoid::Timeline::Record do
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' }
@@ -2,7 +2,7 @@ module Obscured
2
2
  class Account
3
3
  include Mongoid::Document
4
4
  include Mongoid::Timestamps
5
- include Mongoid::Timeline::Tracker
5
+ include Obscured::Timeline::Tracker
6
6
 
7
7
  store_in collection: "accounts"
8
8
 
@@ -1,8 +1,8 @@
1
- module Mongoid
1
+ module Obscured
2
2
  module Timeline
3
3
  module Service
4
4
  class Account
5
- include Mongoid::Timeline::Service::Base
5
+ include Obscured::Timeline::Service::Base
6
6
  end
7
7
  end
8
8
  end
@@ -2,7 +2,7 @@ module Obscured
2
2
  class Organization
3
3
  include Mongoid::Document
4
4
  include Mongoid::Timestamps
5
- include Mongoid::Timeline::Tracker
5
+ include Obscured::Timeline::Tracker
6
6
 
7
7
  store_in collection: "organizations"
8
8
 
@@ -5,7 +5,7 @@ require_relative 'helpers/account_document'
5
5
  require_relative 'helpers/organization_document'
6
6
 
7
7
 
8
- describe Mongoid::Timeline::Tracker do
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) }
@@ -4,7 +4,7 @@ require_relative 'setup'
4
4
  require_relative 'helpers/account_document'
5
5
 
6
6
 
7
- describe Mongoid::Timeline::Tracker do
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.1
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