active_delivery 0.4.3 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +58 -1
  3. data/LICENSE.txt +19 -17
  4. data/README.md +503 -32
  5. data/lib/.rbnext/3.0/active_delivery/base.rb +124 -0
  6. data/lib/.rbnext/3.0/active_delivery/callbacks.rb +97 -0
  7. data/lib/.rbnext/3.0/active_delivery/lines/base.rb +63 -0
  8. data/lib/.rbnext/3.0/active_delivery/lines/mailer.rb +25 -0
  9. data/lib/.rbnext/3.1/active_delivery/base.rb +124 -0
  10. data/lib/.rbnext/3.1/active_delivery/lines/base.rb +63 -0
  11. data/lib/abstract_notifier/async_adapters/active_job.rb +27 -0
  12. data/lib/abstract_notifier/async_adapters.rb +16 -0
  13. data/lib/abstract_notifier/base.rb +178 -0
  14. data/lib/abstract_notifier/testing/minitest.rb +51 -0
  15. data/lib/abstract_notifier/testing/rspec.rb +164 -0
  16. data/lib/abstract_notifier/testing.rb +49 -0
  17. data/lib/abstract_notifier/version.rb +5 -0
  18. data/lib/abstract_notifier.rb +74 -0
  19. data/lib/active_delivery/base.rb +156 -27
  20. data/lib/active_delivery/callbacks.rb +25 -25
  21. data/lib/active_delivery/ext/string_constantize.rb +24 -0
  22. data/lib/active_delivery/lines/base.rb +24 -17
  23. data/lib/active_delivery/lines/mailer.rb +7 -18
  24. data/lib/active_delivery/lines/notifier.rb +53 -0
  25. data/lib/active_delivery/raitie.rb +9 -0
  26. data/lib/active_delivery/testing/rspec.rb +59 -12
  27. data/lib/active_delivery/testing.rb +19 -5
  28. data/lib/active_delivery/version.rb +1 -1
  29. data/lib/active_delivery.rb +8 -0
  30. metadata +61 -56
  31. data/.gem_release.yml +0 -3
  32. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -24
  33. data/.github/ISSUE_TEMPLATE/feature_request.md +0 -24
  34. data/.github/PULL_REQUEST_TEMPLATE.md +0 -23
  35. data/.github/workflows/docs-lint.yml +0 -72
  36. data/.github/workflows/rspec-jruby.yml +0 -35
  37. data/.github/workflows/rspec.yml +0 -51
  38. data/.github/workflows/rubocop.yml +0 -21
  39. data/.gitignore +0 -43
  40. data/.mdlrc +0 -1
  41. data/.rspec +0 -2
  42. data/.rubocop-md.yml +0 -16
  43. data/.rubocop.yml +0 -28
  44. data/Gemfile +0 -17
  45. data/RELEASING.md +0 -43
  46. data/Rakefile +0 -20
  47. data/active_delivery.gemspec +0 -35
  48. data/forspell.dict +0 -8
  49. data/gemfiles/jruby.gemfile +0 -5
  50. data/gemfiles/rails42.gemfile +0 -8
  51. data/gemfiles/rails5.gemfile +0 -5
  52. data/gemfiles/rails50.gemfile +0 -8
  53. data/gemfiles/rails6.gemfile +0 -5
  54. data/gemfiles/railsmaster.gemfile +0 -6
  55. data/gemfiles/rubocop.gemfile +0 -4
  56. data/lefthook.yml +0 -18
  57. data/lib/active_delivery/action_mailer/parameterized.rb +0 -92
@@ -18,25 +18,39 @@ module ActiveDelivery
18
18
  Thread.current.thread_variable_get(:active_delivery_testing) == true
19
19
  end
20
20
 
21
- def track(delivery, event, args, options)
22
- store << [delivery, event, args, options]
21
+ def track(delivery, options)
22
+ store << [delivery, options]
23
+ end
24
+
25
+ def track_line(line)
26
+ lines << line
23
27
  end
24
28
 
25
29
  def store
26
- @store ||= []
30
+ Thread.current.thread_variable_get(:active_delivery_testing_store) || Thread.current.thread_variable_set(:active_delivery_testing_store, [])
31
+ end
32
+
33
+ def lines
34
+ Thread.current.thread_variable_get(:active_delivery_testing_lines) || Thread.current.thread_variable_set(:active_delivery_testing_lines, [])
27
35
  end
28
36
 
29
37
  def clear
30
38
  store.clear
39
+ lines.clear
31
40
  end
32
41
  end
33
42
 
34
- def notify(event, *args, **options)
43
+ def perform_notify(delivery, **options)
35
44
  return super unless test?
36
- TestDelivery.track(self, event, args, options)
45
+ TestDelivery.track(delivery, options)
37
46
  nil
38
47
  end
39
48
 
49
+ def notify_line(line, ...)
50
+ res = super
51
+ TestDelivery.track_line(line) if res
52
+ end
53
+
40
54
  def test?
41
55
  TestDelivery.enabled?
42
56
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveDelivery
4
- VERSION = "0.4.3"
4
+ VERSION = "1.0.0.rc2"
5
5
  end
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "ruby-next"
4
+ require "ruby-next/language/setup"
5
+ RubyNext::Language.setup_gem_load_path(transpile: true)
6
+
3
7
  require "active_delivery/version"
4
8
  require "active_delivery/base"
5
9
  require "active_delivery/callbacks" if defined?(ActiveSupport)
@@ -7,4 +11,8 @@ require "active_delivery/callbacks" if defined?(ActiveSupport)
7
11
  require "active_delivery/lines/base"
8
12
  require "active_delivery/lines/mailer" if defined?(ActionMailer)
9
13
 
14
+ require "active_delivery/raitie" if defined?(::Rails::Railtie)
10
15
  require "active_delivery/testing" if ENV["RACK_ENV"] == "test" || ENV["RAILS_ENV"] == "test"
16
+
17
+ require "abstract_notifier"
18
+ require "active_delivery/lines/notifier"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_delivery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 1.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-21 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,100 +16,105 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: '1.15'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: '1.15'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: '3.9'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '3.0'
54
+ version: '3.9'
55
55
  - !ruby/object:Gem::Dependency
56
- name: standard
56
+ name: rspec-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 0.2.0
61
+ version: '4.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '4.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ruby-next
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 0.15.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
67
81
  - !ruby/object:Gem::Version
68
- version: 0.2.0
69
- description: Rails framework for managing all types of notifications in one place
82
+ version: 0.15.0
83
+ description: Ruby and Rails framework for managing all types of notifications in one
84
+ place
70
85
  email:
71
- - dementiev.vm@gmail.com
86
+ - Vladimir Dementyev
72
87
  executables: []
73
88
  extensions: []
74
89
  extra_rdoc_files: []
75
90
  files:
76
- - ".gem_release.yml"
77
- - ".github/ISSUE_TEMPLATE/bug_report.md"
78
- - ".github/ISSUE_TEMPLATE/feature_request.md"
79
- - ".github/PULL_REQUEST_TEMPLATE.md"
80
- - ".github/workflows/docs-lint.yml"
81
- - ".github/workflows/rspec-jruby.yml"
82
- - ".github/workflows/rspec.yml"
83
- - ".github/workflows/rubocop.yml"
84
- - ".gitignore"
85
- - ".mdlrc"
86
- - ".rspec"
87
- - ".rubocop-md.yml"
88
- - ".rubocop.yml"
89
91
  - CHANGELOG.md
90
- - Gemfile
91
92
  - LICENSE.txt
92
93
  - README.md
93
- - RELEASING.md
94
- - Rakefile
95
- - active_delivery.gemspec
96
94
  - bin/console
97
95
  - bin/setup
98
- - forspell.dict
99
- - gemfiles/jruby.gemfile
100
- - gemfiles/rails42.gemfile
101
- - gemfiles/rails5.gemfile
102
- - gemfiles/rails50.gemfile
103
- - gemfiles/rails6.gemfile
104
- - gemfiles/railsmaster.gemfile
105
- - gemfiles/rubocop.gemfile
106
- - lefthook.yml
96
+ - lib/.rbnext/3.0/active_delivery/base.rb
97
+ - lib/.rbnext/3.0/active_delivery/callbacks.rb
98
+ - lib/.rbnext/3.0/active_delivery/lines/base.rb
99
+ - lib/.rbnext/3.0/active_delivery/lines/mailer.rb
100
+ - lib/.rbnext/3.1/active_delivery/base.rb
101
+ - lib/.rbnext/3.1/active_delivery/lines/base.rb
102
+ - lib/abstract_notifier.rb
103
+ - lib/abstract_notifier/async_adapters.rb
104
+ - lib/abstract_notifier/async_adapters/active_job.rb
105
+ - lib/abstract_notifier/base.rb
106
+ - lib/abstract_notifier/testing.rb
107
+ - lib/abstract_notifier/testing/minitest.rb
108
+ - lib/abstract_notifier/testing/rspec.rb
109
+ - lib/abstract_notifier/version.rb
107
110
  - lib/active_delivery.rb
108
- - lib/active_delivery/action_mailer/parameterized.rb
109
111
  - lib/active_delivery/base.rb
110
112
  - lib/active_delivery/callbacks.rb
113
+ - lib/active_delivery/ext/string_constantize.rb
111
114
  - lib/active_delivery/lines/base.rb
112
115
  - lib/active_delivery/lines/mailer.rb
116
+ - lib/active_delivery/lines/notifier.rb
117
+ - lib/active_delivery/raitie.rb
113
118
  - lib/active_delivery/testing.rb
114
119
  - lib/active_delivery/testing/rspec.rb
115
120
  - lib/active_delivery/version.rb
@@ -117,12 +122,12 @@ homepage: https://github.com/palkan/active_delivery
117
122
  licenses:
118
123
  - MIT
119
124
  metadata:
120
- bug_tracker_uri: http://github.com/palkan/active_delivery/issues
125
+ bug_tracker_uri: https://github.com/palkan/active_delivery/issues
121
126
  changelog_uri: https://github.com/palkan/active_delivery/blob/master/CHANGELOG.md
122
- documentation_uri: http://github.com/palkan/active_delivery
123
- homepage_uri: http://github.com/palkan/active_delivery
124
- source_code_uri: http://github.com/palkan/active_delivery
125
- post_install_message:
127
+ documentation_uri: https://github.com/palkan/active_delivery
128
+ homepage_uri: https://github.com/palkan/active_delivery
129
+ source_code_uri: https://github.com/palkan/active_delivery
130
+ post_install_message:
126
131
  rdoc_options: []
127
132
  require_paths:
128
133
  - lib
@@ -130,15 +135,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
135
  requirements:
131
136
  - - ">="
132
137
  - !ruby/object:Gem::Version
133
- version: '2.5'
138
+ version: '2.7'
134
139
  required_rubygems_version: !ruby/object:Gem::Requirement
135
140
  requirements:
136
- - - ">="
141
+ - - ">"
137
142
  - !ruby/object:Gem::Version
138
- version: '0'
143
+ version: 1.3.1
139
144
  requirements: []
140
- rubygems_version: 3.0.6
141
- signing_key:
145
+ rubygems_version: 3.4.8
146
+ signing_key:
142
147
  specification_version: 4
143
- summary: Rails framework for managing all types of notifications in one place
148
+ summary: Ruby and Rails framework for managing all types of notifications in one place
144
149
  test_files: []
data/.gem_release.yml DELETED
@@ -1,3 +0,0 @@
1
- bump:
2
- file: lib/active_delivery/version.rb
3
- skip_ci: true
@@ -1,24 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- title: ''
5
- labels: ''
6
- assignees: palkan
7
-
8
- ---
9
-
10
- ## What did you do?
11
-
12
- ## What did you expect to happen?
13
-
14
- ## What actually happened?
15
-
16
- ## Additional context
17
-
18
- ## Environment
19
-
20
- **Ruby Version:**
21
-
22
- **Framework Version (Rails, whatever):**
23
-
24
- **Active Delivery Version:**
@@ -1,24 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: ''
5
- labels: enhancement
6
- assignees: palkan
7
-
8
- ---
9
-
10
- ## Is your feature request related to a problem? Please describe.
11
-
12
- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13
-
14
- ## Describe the solution you'd like
15
-
16
- A clear and concise description of what you want to happen.
17
-
18
- ## Describe alternatives you've considered
19
-
20
- A clear and concise description of any alternative solutions or features you've considered.
21
-
22
- ## Additional context
23
-
24
- Add any other context or screenshots about the feature request here.
@@ -1,23 +0,0 @@
1
- <!--
2
- First of all, thanks for contributing!
3
-
4
- If it's a typo fix or minor documentation update feel free to skip the rest of this template!
5
- -->
6
-
7
- ## What is the purpose of this pull request?
8
-
9
- <!--
10
- If it's a bug fix, then link it to the issue, for example:
11
-
12
- Fixes #xxx
13
- -->
14
-
15
- ## What changes did you make? (overview)
16
-
17
- ## Is there anything you'd like reviewers to focus on?
18
-
19
- ## Checklist
20
-
21
- - [ ] I've added tests for this change
22
- - [ ] I've added a Changelog entry
23
- - [ ] I've updated a documentation
@@ -1,72 +0,0 @@
1
- name: Lint Docs
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- paths:
8
- - "*.md"
9
- - "**/*.md"
10
- pull_request:
11
- paths:
12
- - "*.md"
13
- - "**/*.md"
14
-
15
- jobs:
16
- markdownlint:
17
- runs-on: ubuntu-latest
18
- steps:
19
- - uses: actions/checkout@v2
20
- - uses: ruby/setup-ruby@v1
21
- with:
22
- ruby-version: 2.7
23
- - name: Run Markdown linter
24
- run: |
25
- gem install mdl
26
- mdl *.md
27
- rubocop:
28
- runs-on: ubuntu-latest
29
- steps:
30
- - uses: actions/checkout@v2
31
- - uses: ruby/setup-ruby@v1
32
- with:
33
- ruby-version: 2.7
34
- - name: Lint Markdown files with RuboCop
35
- run: |
36
- gem install bundler
37
- bundle install --gemfile gemfiles/rubocop.gemfile --jobs 4 --retry 3
38
- bundle exec --gemfile gemfiles/rubocop.gemfile rubocop -c .rubocop-md.yml
39
- forspell:
40
- runs-on: ubuntu-latest
41
- steps:
42
- - uses: actions/checkout@v2
43
- - name: Install Hunspell
44
- run: |
45
- sudo apt-get install hunspell
46
- - uses: ruby/setup-ruby@v1
47
- with:
48
- ruby-version: 2.7
49
- - name: Cache installed gems
50
- uses: actions/cache@v1
51
- with:
52
- path: /home/runner/.rubies/ruby-2.7.0/lib/ruby/gems/2.7.0
53
- key: gems-cache-${{ runner.os }}
54
- - name: Install Forspell
55
- run: gem install forspell
56
- - name: Run Forspell
57
- run: forspell *.md .github/**/*.md
58
- liche:
59
- runs-on: ubuntu-latest
60
- env:
61
- GO111MODULE: on
62
- steps:
63
- - uses: actions/checkout@v2
64
- - name: Set up Go
65
- uses: actions/setup-go@v1
66
- with:
67
- go-version: 1.13.x
68
- - name: Run liche
69
- run: |
70
- export PATH=$PATH:$(go env GOPATH)/bin
71
- go get -u github.com/raviqqe/liche
72
- liche README.md CHANGELOG.md
@@ -1,35 +0,0 @@
1
- name: JRuby Build
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- pull_request:
8
-
9
- jobs:
10
- rspec:
11
- runs-on: ubuntu-latest
12
- env:
13
- BUNDLE_JOBS: 4
14
- BUNDLE_RETRY: 3
15
- CI: true
16
- steps:
17
- - uses: actions/checkout@v2
18
- - uses: actions/cache@v1
19
- with:
20
- path: /home/runner/bundle
21
- key: bundle-${{ hashFiles('**/gemfiles/jruby.gemfile') }}-${{ hashFiles('**/*.gemspec') }}
22
- restore-keys: |
23
- bundle-
24
- - uses: ruby/setup-ruby@v1
25
- with:
26
- ruby-version: jruby
27
- - name: Bundle install
28
- run: |
29
- bundle config --global gemfile gemfiles/jruby.gemfile
30
- bundle config path /home/runner/bundle
31
- bundle install
32
- bundle update
33
- - name: Run RSpec
34
- run: |
35
- bundle exec rspec
@@ -1,51 +0,0 @@
1
- name: Build
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- pull_request:
8
-
9
- jobs:
10
- rspec:
11
- runs-on: ubuntu-latest
12
- env:
13
- BUNDLE_JOBS: 4
14
- BUNDLE_RETRY: 3
15
- CI: true
16
- strategy:
17
- fail-fast: false
18
- matrix:
19
- ruby: ["2.7"]
20
- gemfile: [
21
- "gemfiles/rails6.gemfile"
22
- ]
23
- include:
24
- - ruby: "2.5"
25
- gemfile: "gemfiles/rails42.gemfile"
26
- - ruby: "2.6"
27
- gemfile: "gemfiles/rails50.gemfile"
28
- - ruby: "2.6"
29
- gemfile: "gemfiles/rails5.gemfile"
30
- - ruby: "2.7"
31
- gemfile: "gemfiles/railsmaster.gemfile"
32
- steps:
33
- - uses: actions/checkout@v2
34
- - uses: actions/cache@v1
35
- with:
36
- path: /home/runner/bundle
37
- key: bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }}
38
- restore-keys: |
39
- bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}-
40
- - uses: ruby/setup-ruby@v1
41
- with:
42
- ruby-version: ${{ matrix.ruby }}
43
- - name: Bundle install
44
- run: |
45
- bundle config path /home/runner/bundle
46
- bundle config --global gemfile ${{ matrix.gemfile }}
47
- bundle install
48
- bundle update
49
- - name: Run RSpec
50
- run: |
51
- bundle exec rspec
@@ -1,21 +0,0 @@
1
- name: Lint Ruby
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- pull_request:
8
-
9
- jobs:
10
- rubocop:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - uses: actions/checkout@v2
14
- - uses: ruby/setup-ruby@v1
15
- with:
16
- ruby-version: 2.7
17
- - name: Lint Ruby code with RuboCop
18
- run: |
19
- gem install bundler
20
- bundle install --gemfile gemfiles/rubocop.gemfile --jobs 4 --retry 3
21
- bundle exec --gemfile gemfiles/rubocop.gemfile rubocop
data/.gitignore DELETED
@@ -1,43 +0,0 @@
1
- # Numerous always-ignore extensions
2
- *.diff
3
- *.err
4
- *.orig
5
- *.log
6
- *.rej
7
- *.swo
8
- *.swp
9
- *.vi
10
- *~
11
- *.sass-cache
12
- *.iml
13
- .idea/
14
-
15
- # Sublime
16
- *.sublime-project
17
- *.sublime-workspace
18
-
19
- # OS or Editor folders
20
- .DS_Store
21
- .cache
22
- .project
23
- .settings
24
- .tmproj
25
- Thumbs.db
26
-
27
- .bundle/
28
- log/*.log
29
- pkg/
30
- spec/dummy/db/*.sqlite3
31
- spec/dummy/db/*.sqlite3-journal
32
- spec/dummy/tmp/
33
-
34
- Gemfile.lock
35
- Gemfile.local
36
- .rspec
37
- .ruby-version
38
- *.gem
39
-
40
- tmp/
41
- .rbnext/
42
-
43
- gemfiles/*.lock
data/.mdlrc DELETED
@@ -1 +0,0 @@
1
- rules "~MD013", "~MD033", "~MD034", "~MD029", "~MD026", "~MD002"
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- -f d
2
- --color
data/.rubocop-md.yml DELETED
@@ -1,16 +0,0 @@
1
- inherit_from: ".rubocop.yml"
2
-
3
- require:
4
- - rubocop-md
5
-
6
- AllCops:
7
- Include:
8
- - '**/*.md'
9
-
10
- Lint/Void:
11
- Exclude:
12
- - '**/*.md'
13
-
14
- Lint/DuplicateMethods:
15
- Exclude:
16
- - '**/*.md'
data/.rubocop.yml DELETED
@@ -1,28 +0,0 @@
1
- require:
2
- - standard/cop/semantic_blocks
3
-
4
- inherit_gem:
5
- standard: config/base.yml
6
-
7
- AllCops:
8
- Exclude:
9
- - 'bin/*'
10
- - 'tmp/**/*'
11
- - 'Gemfile'
12
- - 'node_modules/**/*'
13
- - 'vendor/**/*'
14
- - 'gemfiles/**/*'
15
- DisplayCopNames: true
16
- TargetRubyVersion: 2.5
17
-
18
- Standard/SemanticBlocks:
19
- Enabled: false
20
-
21
- Style/FrozenStringLiteralComment:
22
- Enabled: true
23
-
24
- Style/TrailingCommaInArrayLiteral:
25
- EnforcedStyleForMultiline: no_comma
26
-
27
- Style/TrailingCommaInHashLiteral:
28
- EnforcedStyleForMultiline: no_comma
data/Gemfile DELETED
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'pry-byebug', platform: :mri
6
-
7
- gemspec
8
-
9
- eval_gemfile "gemfiles/rubocop.gemfile"
10
-
11
- local_gemfile = "#{File.dirname(__FILE__)}/Gemfile.local"
12
-
13
- if File.exist?(local_gemfile)
14
- eval(File.read(local_gemfile)) # rubocop:disable Security/Eval
15
- else
16
- gem "rails", "~> 6.0"
17
- end