alarmable 0.1.1 → 0.1.2

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: c6a03aef2beace3ad258301e0913b514d5b2adf3c6884c68d6fa948ab4d7b955
4
- data.tar.gz: a43392e2e3524bbc1fa6d72ef38c87718db40131795915d955cc4b6e4e7f433a
3
+ metadata.gz: 8407d8b2abfde673a08a43eed7a8528eeffb18c758a0cd99c9fb1415302b0d04
4
+ data.tar.gz: 9932c5802171d9e656033810e1d2634fc0f980b10b0bd7e00f3a00e634c43a10
5
5
  SHA512:
6
- metadata.gz: da7fc0886f83b21bcae6aca9511e92f0ffaf1ead0772c1a7f6c8f0e5ed1e216ad9f43c89f1f16ea928460fa555f2b08785704a98ef1dd0f6a144508fd18cfc10
7
- data.tar.gz: 7831985c4a56d674e6541b2187f301d6e02819f8278cb7d37508cbc7a101317f31ec1dcb060b117912ce04e24456322e87ebee2848e9e83073d5c6402e228530
6
+ metadata.gz: e7eb172811653a246837aafb773f2f0b4def40ba520d08c2ff99da38e794e6596f7f86b8e3dce87e1f4e0de887f17cf323a618ebe53c00f50d2309b609964447
7
+ data.tar.gz: 5baa3c2fcc45a7c3f9c8b1983145dfbd1c514a3161e415fc81be326d7244dc529dcbbb0ead62274a2680a534ce338bf81b9618f23ab482a6ef5323bbeb879d22
@@ -0,0 +1,38 @@
1
+ name: Build Documentation
2
+ on:
3
+ repository_dispatch:
4
+ types: [documentation]
5
+
6
+ concurrency:
7
+ group: 'docs'
8
+
9
+ jobs:
10
+ docs:
11
+ name: Build gem documentation
12
+ runs-on: ubuntu-20.04
13
+ timeout-minutes: 5
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+
17
+ - name: Install the correct Ruby version
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: 2.5
21
+ bundler-cache: true
22
+
23
+ - name: Prepare the virtual environment
24
+ uses: hausgold/actions/ci@master
25
+ with:
26
+ clone_token: '${{ secrets.CLONE_TOKEN }}'
27
+ settings: '${{ github.repository }}'
28
+ target: ci/gem-test
29
+
30
+ - name: Build gem documentation
31
+ run: make docs
32
+
33
+ - name: Upload the code coverage report
34
+ run: coverage
35
+
36
+ - name: Add this job to the commit status
37
+ run: commit-status '${{ job.status }}'
38
+ if: always()
@@ -0,0 +1,71 @@
1
+ name: Test
2
+ on:
3
+ push:
4
+ branches:
5
+ - '**'
6
+ schedule:
7
+ - cron: '0 0 * * MON'
8
+
9
+ concurrency:
10
+ group: '${{ github.ref }}'
11
+ cancel-in-progress: true
12
+
13
+ jobs:
14
+ test:
15
+ name: 'Test the gem (Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }})'
16
+ runs-on: ubuntu-20.04
17
+ timeout-minutes: 5
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ ruby: [2.3, 2.4, 2.5, 2.6]
22
+ rails: [4, '5.0', 5.1, 5.2]
23
+ env:
24
+ BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
25
+ steps:
26
+ - uses: actions/checkout@v2
27
+
28
+ - name: Install the correct Ruby version
29
+ uses: ruby/setup-ruby@v1
30
+ with:
31
+ ruby-version: ${{ matrix.ruby }}
32
+ bundler-cache: true
33
+
34
+ - name: Prepare the virtual environment
35
+ uses: hausgold/actions/ci@master
36
+ with:
37
+ clone_token: '${{ secrets.CLONE_TOKEN }}'
38
+ settings: '${{ github.repository }}'
39
+ target: ci/gem-test
40
+
41
+ - name: Setup mDNS
42
+ run: setup-mdns
43
+
44
+ - name: Start the dependent services
45
+ run: docker-compose up -d db
46
+
47
+ - name: Wait for database to be ready
48
+ run: await-tcp-open 'db.alarmable.local' '5432'
49
+
50
+ - name: Run the gem tests
51
+ run: make test
52
+
53
+ - name: Upload the code coverage report
54
+ run: coverage
55
+
56
+ trigger-docs:
57
+ name: Trigger the documentation upload
58
+ runs-on: ubuntu-20.04
59
+ timeout-minutes: 2
60
+ needs: test
61
+ if: github.ref == 'refs/heads/master'
62
+ steps:
63
+ - name: Prepare the virtual environment
64
+ uses: hausgold/actions/ci@master
65
+ with:
66
+ clone_token: '${{ secrets.CLONE_TOKEN }}'
67
+ settings: '${{ github.repository }}'
68
+ target: ci/noop
69
+
70
+ - name: Trigger the documentation upload
71
+ run: workflow documentation
data/.gitignore CHANGED
@@ -3,7 +3,7 @@
3
3
  /Gemfile.lock
4
4
  /_yardoc/
5
5
  /coverage/
6
- /doc/
6
+ /doc/api/
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
data/.rubocop.yml CHANGED
@@ -8,20 +8,59 @@ Documentation:
8
8
 
9
9
  AllCops:
10
10
  DisplayCopNames: true
11
- TargetRubyVersion: 2.3
11
+ TargetRubyVersion: 2.5
12
+ Exclude:
13
+ - bin/**/*
14
+ - vendor/**/*
15
+ - build/**/*
16
+ - gemfiles/**/*
12
17
 
13
18
  Metrics/BlockLength:
14
19
  Exclude:
15
20
  - Rakefile
21
+ - '*.gemspec'
16
22
  - spec/**/*.rb
17
23
  - '**/*.rake'
24
+ - doc/**/*.rb
18
25
 
19
26
  # Document all the things.
20
27
  Style/DocumentationMethod:
21
28
  Enabled: true
22
29
  RequireForNonPublicMethods: true
23
30
 
31
+ # It's a deliberate idiom in RSpec.
32
+ # See: https://github.com/bbatsov/rubocop/issues/4222
33
+ Lint/AmbiguousBlockAssociation:
34
+ Exclude:
35
+ - "spec/**/*"
36
+
24
37
  # Because +expect_any_instance_of().to have_received()+ is not
25
38
  # supported with the +with(hash_including)+ matchers
26
39
  RSpec/MessageSpies:
27
40
  EnforcedStyle: receive
41
+
42
+ # Because nesting makes sense here to group the feature tests
43
+ # more effective. This increases maintainability.
44
+ RSpec/NestedGroups:
45
+ Max: 4
46
+
47
+ # Disable regular Rails spec paths.
48
+ RSpec/FilePath:
49
+ Enabled: false
50
+
51
+ # Because we just implemented the ActiveRecord API.
52
+ Rails/SkipsModelValidations:
53
+ Enabled: false
54
+
55
+ # We do not have a full Rails application here.
56
+ Rails/ApplicationRecord:
57
+ Enabled: false
58
+
59
+ # We do not have a full Rails application here.
60
+ Rails/ApplicationJob:
61
+ Enabled: false
62
+
63
+ # Because +enqueued_jobs+ is a method not a memoized variable,
64
+ # so when first evaluated it won't change.
65
+ RSpec/ExpectChange:
66
+ Enabled: false
data/.yardopts ADDED
@@ -0,0 +1,6 @@
1
+ --output-dir=doc/api
2
+ --plugin activesupport-concern
3
+ --markup=rdoc
4
+ -
5
+ README.md
6
+ lib/**/*.rb
data/Appraisals CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  appraise 'rails-4' do
2
4
  gem 'activejob', '4.2.10'
3
5
  gem 'activerecord', '4.2.10'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.1.2
2
+
3
+ * Migrated to Github Actions
4
+ * Migrated to our own coverage reporting
5
+
1
6
  ### 0.1.1
2
7
 
3
8
  * Added test coverage reports
File without changes
data/Makefile CHANGED
@@ -25,6 +25,8 @@ RM ?= rm
25
25
  BUNDLE ?= bundle
26
26
  APPRAISAL ?= appraisal
27
27
  RAKE ?= rake
28
+ RUBOCOP ?= rubocop
29
+ YARD ?= yard
28
30
 
29
31
  # Files
30
32
  GEMFILES ?= $(subst _,-,$(patsubst $(GEMFILES_DIR)/%.gemfile,%,\
@@ -53,6 +55,11 @@ all:
53
55
  # test Run the whole test suite
54
56
  # clean Clean the dependencies
55
57
  #
58
+ # docs Generate the Ruby documentation of the library
59
+ # stats Print the code statistics (library and test suite)
60
+ # notes Print all the notes from the code
61
+ # release Release a new Gem version (maintainers only)
62
+ #
56
63
  # shell Run an interactive shell on the container
57
64
  # shell-irb Run an interactive IRB shell on the container
58
65
 
@@ -62,15 +69,26 @@ install:
62
69
  @$(call run-shell,$(BUNDLE) check || $(BUNDLE) install --path $(VENDOR_DIR))
63
70
  @$(call run-shell,$(BUNDLE) exec $(APPRAISAL) install)
64
71
 
65
- test: install
72
+ test: \
73
+ test-specs \
74
+ test-style
75
+
76
+ test-specs:
66
77
  # Run the whole test suite
67
- @$(call run-shell,$(BUNDLE) exec $(RAKE))
78
+ @$(call run-shell,$(BUNDLE) exec $(RAKE) stats spec)
68
79
 
69
80
  $(TEST_GEMFILES): GEMFILE=$(@:test-%=%)
70
81
  $(TEST_GEMFILES):
71
82
  # Run the whole test suite ($(GEMFILE))
72
83
  @$(call run-shell,$(BUNDLE) exec $(APPRAISAL) $(GEMFILE) $(RAKE))
73
84
 
85
+ test-style: \
86
+ test-style-ruby
87
+
88
+ test-style-ruby:
89
+ # Run the static code analyzer (rubocop)
90
+ @$(call run-shell,$(BUNDLE) exec $(RUBOCOP) -a)
91
+
74
92
  clean:
75
93
  # Clean the dependencies
76
94
  @$(RM) -rf $(VENDOR_DIR)
@@ -83,14 +101,27 @@ endif
83
101
 
84
102
  distclean: clean clean-containers
85
103
 
86
- shell: install
104
+ shell:
87
105
  # Run an interactive shell on the container
88
106
  @$(call run-shell,$(BASH) -i)
89
107
 
90
- shell-irb: install
108
+ shell-irb:
91
109
  # Run an interactive IRB shell on the container
92
110
  @$(call run-shell,bin/console)
93
111
 
112
+ docs:
113
+ # Build the API documentation
114
+ @$(call run-shell,$(BUNDLE) exec $(YARD) -q && \
115
+ $(BUNDLE) exec $(YARD) stats --list-undoc --compact)
116
+
117
+ notes:
118
+ # Print the code statistics (library and test suite)
119
+ @$(call run-shell,$(BUNDLE) exec $(RAKE) notes)
120
+
121
+ stats:
122
+ # Print all the notes from the code
123
+ @$(call run-shell,$(BUNDLE) exec $(RAKE) stats)
124
+
94
125
  release:
95
126
  # Release a new gem version
96
127
  @$(BUNDLE) exec $(RAKE) release
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  ![Alarmable](doc/assets/project.svg)
2
2
 
3
- [![Build Status](https://travis-ci.com/hausgold/alarmable.svg?branch=master)](https://travis-ci.com/hausgold/alarmable)
3
+ [![Continuous Integration](https://github.com/hausgold/alarmable/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/hausgold/alarmable/actions/workflows/test.yml)
4
4
  [![Gem Version](https://badge.fury.io/rb/alarmable.svg)](https://badge.fury.io/rb/alarmable)
5
- [![Maintainability](https://api.codeclimate.com/v1/badges/4181ffca902206ff7648/maintainability)](https://codeclimate.com/repos/5cac8b574719e676d50060ee/maintainability)
6
- [![Test Coverage](https://api.codeclimate.com/v1/badges/4181ffca902206ff7648/test_coverage)](https://codeclimate.com/repos/5cac8b574719e676d50060ee/test_coverage)
7
- [![API docs](https://img.shields.io/badge/docs-API-blue.svg)](https://www.rubydoc.info/gems/alarmable)
5
+ [![Test Coverage](https://automate-api.hausgold.de/v1/coverage_reports/alarmable/coverage.svg)](https://knowledge.hausgold.de/coverage)
6
+ [![Test Ratio](https://automate-api.hausgold.de/v1/coverage_reports/alarmable/ratio.svg)](https://knowledge.hausgold.de/coverage)
7
+ [![API docs](https://automate-api.hausgold.de/v1/coverage_reports/alarmable/documentation.svg)](https://www.rubydoc.info/gems/alarmable)
8
8
 
9
9
  This is a reusable alarm concern for Active Record models. It adds support for
10
10
  the automatic maintenance of Active Job's which are scheduled for the given
data/Rakefile CHANGED
@@ -2,7 +2,71 @@
2
2
 
3
3
  require 'bundler/gem_tasks'
4
4
  require 'rspec/core/rake_task'
5
+ require 'rails/code_statistics'
6
+ require 'pp'
5
7
 
6
8
  RSpec::Core::RakeTask.new(:spec)
7
9
 
8
10
  task default: :spec
11
+
12
+ # Load some railties tasks
13
+ load 'rails/tasks/statistics.rake'
14
+ load 'rails/tasks/annotations.rake'
15
+
16
+ # Clear the default statistics directory constant
17
+ #
18
+ # rubocop:disable Style/MutableConstant because we define it
19
+ Object.send(:remove_const, :STATS_DIRECTORIES)
20
+ ::STATS_DIRECTORIES = []
21
+ # rubocop:enable Style/MutableConstant
22
+
23
+ # Monkey patch the Rails +CodeStatistics+ class to support configurable
24
+ # patterns per path. This is reuqired to support top-level only file matches.
25
+ class CodeStatistics
26
+ DEFAULT_PATTERN = /^(?!\.).*?\.(rb|js|coffee|rake)$/.freeze
27
+
28
+ # Pass the possible +pattern+ argument down to the
29
+ # +calculate_directory_statistics+ method call.
30
+ def calculate_statistics
31
+ Hash[@pairs.map do |pair|
32
+ [pair.first, calculate_directory_statistics(*pair[1..-1])]
33
+ end]
34
+ end
35
+
36
+ # Match the pattern against the individual file name and the relative file
37
+ # path. This allows top-level only matches.
38
+ def calculate_directory_statistics(directory, pattern = DEFAULT_PATTERN)
39
+ stats = CodeStatisticsCalculator.new
40
+
41
+ Dir.foreach(directory) do |file_name|
42
+ path = "#{directory}/#{file_name}"
43
+
44
+ if File.directory?(path) && (/^\./ !~ file_name)
45
+ stats.add(calculate_directory_statistics(path, pattern))
46
+ elsif file_name =~ pattern || path =~ pattern
47
+ stats.add_by_file_path(path)
48
+ end
49
+ end
50
+
51
+ stats
52
+ end
53
+ end
54
+
55
+ # Configure all code statistics directories
56
+ vendors = [
57
+ [:unshift, 'Top-levels', 'lib', %r{lib(/alarmable)?/[^/]+\.rb$}],
58
+ [:unshift, 'Top-levels specs', 'spec', %r{spec/[^/]+_spec\.rb$}]
59
+ ].reverse
60
+
61
+ vendors.each do |method, type, dir, pattern|
62
+ ::STATS_DIRECTORIES.send(method, [type, dir, pattern].compact)
63
+ ::CodeStatistics::TEST_TYPES << type if type.include? 'specs'
64
+ end
65
+
66
+ # Setup annotations
67
+ ENV['SOURCE_ANNOTATION_DIRECTORIES'] = 'spec,doc'
68
+
69
+ desc 'Enumerate all annotations'
70
+ task :notes do
71
+ SourceAnnotationExtractor.enumerate '@?OPTIMIZE|@?FIXME|@?TODO', tag: true
72
+ end
data/alarmable.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('../lib', __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'alarmable/version'
6
6
 
@@ -34,8 +34,13 @@ Gem::Specification.new do |spec|
34
34
 
35
35
  spec.add_development_dependency 'appraisal'
36
36
  spec.add_development_dependency 'bundler', '>= 1.16', '< 3'
37
+ spec.add_development_dependency 'pg', '~> 0.18'
38
+ spec.add_development_dependency 'railties', '>= 4.2.0', '< 6.1'
37
39
  spec.add_development_dependency 'rake', '~> 10.0'
38
40
  spec.add_development_dependency 'rspec', '~> 3.0'
39
- spec.add_development_dependency 'pg', '~> 0.18'
40
- spec.add_development_dependency 'simplecov', '~> 0.15'
41
+ spec.add_development_dependency 'rubocop', '~> 0.63.1'
42
+ spec.add_development_dependency 'rubocop-rspec', '~> 1.31'
43
+ spec.add_development_dependency 'simplecov', '< 0.18'
44
+ spec.add_development_dependency 'yard', '~> 0.9.18'
45
+ spec.add_development_dependency 'yard-activesupport-concern', '~> 0.0.1'
41
46
  end
data/docker-compose.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  version: "3"
2
2
  services:
3
3
  db:
4
- image: postgres:9.6
4
+ image: hausgold/postgres:9.6
5
5
  network_mode: bridge
6
6
  ports: ["5432"]
7
7
  volumes:
@@ -10,6 +10,7 @@ services:
10
10
  POSTGRES_USER: postgres
11
11
  POSTGRES_PASSWORD: postgres
12
12
  POSTGRES_DB: alarmable
13
+ MDNS_HOSTNAME: db.alarmable.local
13
14
 
14
15
  test:
15
16
  image: ruby:2.3
@@ -167,7 +167,6 @@ module Alarmable
167
167
  # Initiate a reschedule for each alarm in the alarm settings and
168
168
  # cancel all left-overs.
169
169
  #
170
- # rubocop:disable Rails/SkipsModelValidations because we need to skip them
171
170
  # :reek:TooManyStatements because its already broken down
172
171
  def reschedule_alarm_jobs
173
172
  # Perform the reschedule of all the current alarms.
@@ -189,7 +188,6 @@ module Alarmable
189
188
  # endless create-update loops.
190
189
  update_columns(alarm_jobs: new_alarm_jobs)
191
190
  end
192
- # rubocop:enable Rails/SkipsModelValidations
193
191
 
194
192
  # Reschedule only on updates when the alarm settings are changed.
195
193
  def alarms_update_callback
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alarmable
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alarmable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-12 00:00:00.000000000 Z
11
+ date: 2021-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob
@@ -132,6 +132,40 @@ dependencies:
132
132
  - - "<"
133
133
  - !ruby/object:Gem::Version
134
134
  version: '3'
135
+ - !ruby/object:Gem::Dependency
136
+ name: pg
137
+ requirement: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - "~>"
140
+ - !ruby/object:Gem::Version
141
+ version: '0.18'
142
+ type: :development
143
+ prerelease: false
144
+ version_requirements: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - "~>"
147
+ - !ruby/object:Gem::Version
148
+ version: '0.18'
149
+ - !ruby/object:Gem::Dependency
150
+ name: railties
151
+ requirement: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: 4.2.0
156
+ - - "<"
157
+ - !ruby/object:Gem::Version
158
+ version: '6.1'
159
+ type: :development
160
+ prerelease: false
161
+ version_requirements: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: 4.2.0
166
+ - - "<"
167
+ - !ruby/object:Gem::Version
168
+ version: '6.1'
135
169
  - !ruby/object:Gem::Dependency
136
170
  name: rake
137
171
  requirement: !ruby/object:Gem::Requirement
@@ -161,33 +195,75 @@ dependencies:
161
195
  - !ruby/object:Gem::Version
162
196
  version: '3.0'
163
197
  - !ruby/object:Gem::Dependency
164
- name: pg
198
+ name: rubocop
165
199
  requirement: !ruby/object:Gem::Requirement
166
200
  requirements:
167
201
  - - "~>"
168
202
  - !ruby/object:Gem::Version
169
- version: '0.18'
203
+ version: 0.63.1
170
204
  type: :development
171
205
  prerelease: false
172
206
  version_requirements: !ruby/object:Gem::Requirement
173
207
  requirements:
174
208
  - - "~>"
175
209
  - !ruby/object:Gem::Version
176
- version: '0.18'
210
+ version: 0.63.1
211
+ - !ruby/object:Gem::Dependency
212
+ name: rubocop-rspec
213
+ requirement: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - "~>"
216
+ - !ruby/object:Gem::Version
217
+ version: '1.31'
218
+ type: :development
219
+ prerelease: false
220
+ version_requirements: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - "~>"
223
+ - !ruby/object:Gem::Version
224
+ version: '1.31'
177
225
  - !ruby/object:Gem::Dependency
178
226
  name: simplecov
227
+ requirement: !ruby/object:Gem::Requirement
228
+ requirements:
229
+ - - "<"
230
+ - !ruby/object:Gem::Version
231
+ version: '0.18'
232
+ type: :development
233
+ prerelease: false
234
+ version_requirements: !ruby/object:Gem::Requirement
235
+ requirements:
236
+ - - "<"
237
+ - !ruby/object:Gem::Version
238
+ version: '0.18'
239
+ - !ruby/object:Gem::Dependency
240
+ name: yard
241
+ requirement: !ruby/object:Gem::Requirement
242
+ requirements:
243
+ - - "~>"
244
+ - !ruby/object:Gem::Version
245
+ version: 0.9.18
246
+ type: :development
247
+ prerelease: false
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ requirements:
250
+ - - "~>"
251
+ - !ruby/object:Gem::Version
252
+ version: 0.9.18
253
+ - !ruby/object:Gem::Dependency
254
+ name: yard-activesupport-concern
179
255
  requirement: !ruby/object:Gem::Requirement
180
256
  requirements:
181
257
  - - "~>"
182
258
  - !ruby/object:Gem::Version
183
- version: '0.15'
259
+ version: 0.0.1
184
260
  type: :development
185
261
  prerelease: false
186
262
  version_requirements: !ruby/object:Gem::Requirement
187
263
  requirements:
188
264
  - - "~>"
189
265
  - !ruby/object:Gem::Version
190
- version: '0.15'
266
+ version: 0.0.1
191
267
  description: This is a reusable alarm concern for Active Recordmodels. It adds support
192
268
  for the automatic maintenanceof Active Job's which are scheduled for the givenalarms.
193
269
  email:
@@ -197,16 +273,18 @@ extensions: []
197
273
  extra_rdoc_files: []
198
274
  files:
199
275
  - ".editorconfig"
276
+ - ".github/workflows/documentation.yml"
277
+ - ".github/workflows/test.yml"
200
278
  - ".gitignore"
201
279
  - ".rspec"
202
280
  - ".rubocop.yml"
203
281
  - ".simplecov"
204
- - ".travis.yml"
282
+ - ".yardopts"
205
283
  - Appraisals
206
284
  - CHANGELOG.md
207
285
  - CODE_OF_CONDUCT.md
208
286
  - Gemfile
209
- - LICENSE.txt
287
+ - LICENSE
210
288
  - Makefile
211
289
  - README.md
212
290
  - Rakefile
data/.travis.yml DELETED
@@ -1,36 +0,0 @@
1
- sudo: false
2
-
3
- env:
4
- global:
5
- - CC_TEST_REPORTER_ID=31e005b4d2d190f26dcb055d5ac3a9ccfd492da2c335e5abfafbd438488f8b08
6
-
7
- addons:
8
- postgresql: "9.6"
9
-
10
- services:
11
- - postgresql
12
-
13
- language: ruby
14
- rvm:
15
- - 2.6
16
- - 2.5
17
- - 2.4
18
- - 2.3
19
-
20
- gemfile:
21
- - gemfiles/rails_4.gemfile
22
- - gemfiles/rails_5.0.gemfile
23
- - gemfiles/rails_5.1.gemfile
24
- - gemfiles/rails_5.2.gemfile
25
-
26
- before_install:
27
- - gem install bundler
28
- - psql -c 'create database alarmable;' -U postgres
29
-
30
- before_script:
31
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
32
- - chmod +x ./cc-test-reporter
33
- - ./cc-test-reporter before-build
34
- script: bundle exec rake
35
- after_script:
36
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT