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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0e1584c8287352150fb7ec886112dadb191da1dda84f12221c17d02b9ea3b56
4
- data.tar.gz: 6db5ea73e99f2d7ee20bbbe14d9e2ff36752dd32e8f4487345fd252966c7bd34
3
+ metadata.gz: 6d7714e756691ef1550a44925f24d5320b47449d3efb95f48e8f831358a0df7b
4
+ data.tar.gz: 1ef1dd35afbade7e6d8cfc52778fa57852dd2a6ed0cd987644472db422264b9d
5
5
  SHA512:
6
- metadata.gz: d447fec014fe51a9d58397bccbc79b0754fccf8102e80fe3a36a4ec2b111101a3958b11baa6415c237f9724f8c00727d0bedd075987894b2f8b38653eba3801f
7
- data.tar.gz: a457a5e1aac0222ab6c3b144294faf4c64b0621f11fed394cdd2a069aaf1c59b6535e45bfe186a023922e5ad34c0a8f5ee0d6ee3ce69bd75797d901aab752fbc
6
+ metadata.gz: 2f9e3d1b1b4a269260f104275a2adf270746eae39bc2d963d74a0a7e7b423b8fe67e65b9401a1fa2852766382b43ead0ddcf1a1b1e0888ef9624cab0f424b9e0
7
+ data.tar.gz: c57bdb25503548ff482f1f7897fd9afca4613fb11b243e13c6426ebf8bac38d389e6f0617b984a14c979978e07c10743793b2ef8334a4ce3c0fe739aef8c1df2
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "06:00"
8
+ timezone: Europe/Stockholm
9
+ open-pull-requests-limit: 10
10
+ reviewers:
11
+ - gonace
@@ -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.6.3
1
+ 2.7.2
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source 'http://rubygems.org'
3
+ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in obscured-timeline.gemspec
6
6
  gemspec
data/Gemfile.lock CHANGED
@@ -7,55 +7,56 @@ PATH
7
7
  mongoid_search
8
8
 
9
9
  GEM
10
- remote: http://rubygems.org/
10
+ remote: https://rubygems.org/
11
11
  specs:
12
- activemodel (6.0.2.2)
13
- activesupport (= 6.0.2.2)
14
- activesupport (6.0.2.2)
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 (>= 0.7, < 2)
17
- minitest (~> 5.1)
18
- tzinfo (~> 1.1)
19
- zeitwerk (~> 2.2)
20
- bson (4.8.2)
21
- concurrent-ruby (1.1.6)
22
- diff-lcs (1.3)
23
- docile (1.3.2)
24
- factory_bot (5.1.1)
25
- activesupport (>= 4.2.0)
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.2)
27
+ i18n (1.8.10)
28
28
  concurrent-ruby (~> 1.0)
29
- minitest (5.14.0)
30
- mongo (2.11.4)
31
- bson (>= 4.4.2, < 5.0.0)
32
- mongoid (7.1.0)
33
- activemodel (>= 5.1, < 6.1)
34
- mongo (>= 2.7.0, < 3.0.0)
35
- mongoid_search (0.3.6)
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 (>= 3.0.0)
38
- rspec (3.9.0)
39
- rspec-core (~> 3.9.0)
40
- rspec-expectations (~> 3.9.0)
41
- rspec-mocks (~> 3.9.0)
42
- rspec-core (3.9.1)
43
- rspec-support (~> 3.9.1)
44
- rspec-expectations (3.9.1)
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.9.0)
47
- rspec-mocks (3.9.1)
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.9.0)
50
- rspec-support (3.9.2)
51
- simplecov (0.18.5)
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
- simplecov-html (0.12.2)
55
- thread_safe (0.3.6)
56
- tzinfo (1.2.6)
57
- thread_safe (~> 0.1)
58
- zeitwerk (2.3.0)
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', :git => 'https://github.com/gonace/Obscured.Timeline.git', :branch => 'master'
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
+ ```
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Mongoid
4
4
  module Timeline
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
  end
7
7
  end
@@ -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.description = 'Mongoid extension to handles a timeline of events for an entity (e.g. User)'
15
- gem.summary = 'Mongoid extension that adds the ability to handle events in a timeline for a entity (e.g. User)'
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'
@@ -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: :payment) }
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.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: 2020-03-20 00:00:00.000000000 Z
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: Mongoid extension to handles a timeline of events for an entity (e.g.
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.0.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
- a entity (e.g. User)
157
+ an entity (e.g. User).
154
158
  test_files:
155
159
  - spec/account_service_spec.rb
156
160
  - spec/config/mongoid.yml