fishplate 1.0.4 → 1.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: 295c6cfa7b9265f5b84c922a973534ba2596af0a015f9ccf01c9a367f7b621ed
4
- data.tar.gz: 81e90f4f03bfde196124ffece057607545f18c4accf774d159d2c4c02e510da0
3
+ metadata.gz: 34c5c7465470b446a28ee88c8b202cec4fc744ecace1692cb24eb9bfb255f781
4
+ data.tar.gz: 659d828b7287e68807b8212edd655b9caeb05c204e5ff1926d709bc1995ed3a8
5
5
  SHA512:
6
- metadata.gz: 0105e225bd794e1fd1aae12d2e7416befa15979d62415ac1774287a4129620080cd8ec7d1217bba4f524c147f724a906092a59f64cd773fdb10ae90a9b25c0f1
7
- data.tar.gz: a9ed160c759f29a6bcef93b952efcc28fd9a5102af6404caf676120c4e74b0aba0031fb3fa8b5a971713fb43d92e6c7abe124e8ab5ee5b771587c1e7f8847f4e
6
+ metadata.gz: 888cda2d7bf52020f48bc2b6a487fbfb24c79888e443025469887732f36454754be5be252b977cb632c7248a5bb1bc0229b9c38736acdd1797cf8cb0a52262e0
7
+ data.tar.gz: 93baf883a64281babf62738b5698460eaa447891285eb1c3087d6b9ca0339a1a018ec15d3378d6e1b9e0d3ce0ba225765256469a2ef85c58af64e2aed643b494
data/.bundler-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.9
@@ -3,16 +3,14 @@ version: 1
3
3
  update_configs:
4
4
  - package_manager: "ruby:bundler"
5
5
  directory: "/"
6
- update_schedule: "monthly"
6
+ update_schedule: "daily"
7
7
  commit_message:
8
8
  prefix: "[dependabot]"
9
9
  allowed_updates:
10
10
  - match:
11
- update_type: "all"
11
+ dependency_type: "all"
12
+ update_type: "security"
12
13
  automerged_updates:
13
14
  - match:
14
- dependency_type: "development"
15
- update_type: "all"
16
- - match:
17
- dependency_type: "production"
18
- update_type: "all"
15
+ dependency_type: "all"
16
+ update_type: "security:patch"
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to track an issue that has been identified
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Mutation/Query**
24
+
25
+ **URL and HTTP method (for non-GQL):**
26
+
27
+ **Sentry or Logs URL:**
28
+
29
+ **User/authentication details**
30
+ Impacted user name or service account
31
+
32
+ **Additional context**
33
+ Add any other context about the problem here.
@@ -0,0 +1 @@
1
+ blank_issues_enabled: false
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: New story
3
+ about: Add a new story for implementation
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the solution**
11
+ A clear and concise description of what you want to happen.
12
+ When will this feature be done?
13
+
14
+ **Describe the users**
15
+ Who are we building this feature for?
16
+
17
+ **Additional context**
18
+ Add any other context or screenshots about the feature request here.
19
+ Link to any applicable documents describing the feature.
20
+
21
+ **Designs**
22
+ Link to any applicable designs on Invision.
@@ -0,0 +1,18 @@
1
+ ## Description
2
+ <!--- Describe your changes in detail -->
3
+
4
+ ## Related issue(s)
5
+ <!--- GH issue number -->
6
+
7
+ ## Motivation and Context
8
+ <!--- Why is this change required? What problem does it solve? -->
9
+ <!--- If it fixes an open issue, please link to the issue here. -->
10
+
11
+ ## How Has This Been Tested?
12
+ <!--- Please describe in detail how you tested your changes. -->
13
+
14
+ ## Screenshots (if appropriate):
15
+ <!--- Please add any screenshots of the feature. -->
16
+
17
+ ## Related PRs
18
+ <!--- Please add links to any related PRs (backend, component packages, etc). -->
@@ -0,0 +1,16 @@
1
+ # automatically approve PRs submitted by Dependabot or Renofidev
2
+ # this will allow Dependabot to automatically merge dependency update PRs where CI passes
3
+ # from: https://github.com/hmarr/auto-approve-action
4
+ name: Auto approve dependency upgrades PRs
5
+
6
+ on:
7
+ pull_request
8
+
9
+ jobs:
10
+ auto-approve:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: hmarr/auto-approve-action@v2.0.0
14
+ if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev'
15
+ with:
16
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -0,0 +1,19 @@
1
+ name: automerge
2
+ on:
3
+ pull_request_review:
4
+ types:
5
+ - submitted
6
+ check_suite:
7
+ types:
8
+ - completed
9
+ status: {}
10
+ jobs:
11
+ automerge:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: automerge
15
+ uses: "pascalgn/automerge-action@v0.12.0"
16
+ env:
17
+ GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
18
+ MERGE_METHOD: squash
19
+ MERGE_DELETE_BRANCH: true
data/.travis.yml CHANGED
@@ -5,6 +5,7 @@ cache: bundler
5
5
  rvm:
6
6
  - 2.6
7
7
  - 2.7
8
+ - 3.0
8
9
  before_install: gem install bundler
9
10
  script:
10
11
  - bundle exec rake spec
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- # Specify your gem's dependencies in fishplate.gemspec
4
3
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fishplate (1.0.4)
4
+ fishplate (1.1.2)
5
5
  a9n (~> 1.0)
6
6
  activemodel (~> 6.0)
7
7
  activerecord (~> 6.0)
@@ -12,70 +12,73 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- a9n (1.2.1)
16
- activemodel (6.0.2.2)
17
- activesupport (= 6.0.2.2)
18
- activerecord (6.0.2.2)
19
- activemodel (= 6.0.2.2)
20
- activesupport (= 6.0.2.2)
21
- activesupport (6.0.2.2)
15
+ a9n (1.2.2)
16
+ activemodel (6.1.3)
17
+ activesupport (= 6.1.3)
18
+ activerecord (6.1.3)
19
+ activemodel (= 6.1.3)
20
+ activesupport (= 6.1.3)
21
+ activesupport (6.1.3)
22
22
  concurrent-ruby (~> 1.0, >= 1.0.2)
23
- i18n (>= 0.7, < 2)
24
- minitest (~> 5.1)
25
- tzinfo (~> 1.1)
26
- zeitwerk (~> 2.2)
27
- ast (2.4.0)
28
- coderay (1.1.2)
29
- concurrent-ruby (1.1.6)
30
- diff-lcs (1.3)
31
- i18n (1.8.2)
23
+ i18n (>= 1.6, < 2)
24
+ minitest (>= 5.1)
25
+ tzinfo (~> 2.0)
26
+ zeitwerk (~> 2.3)
27
+ ast (2.4.2)
28
+ coderay (1.1.3)
29
+ concurrent-ruby (1.1.8)
30
+ diff-lcs (1.4.4)
31
+ i18n (1.8.9)
32
32
  concurrent-ruby (~> 1.0)
33
- jaro_winkler (1.5.4)
34
33
  method_source (1.0.0)
35
- minitest (5.14.0)
36
- parallel (1.19.1)
37
- parser (2.7.0.5)
38
- ast (~> 2.4.0)
39
- pry (0.13.0)
34
+ minitest (5.14.3)
35
+ parallel (1.20.1)
36
+ parser (3.0.0.0)
37
+ ast (~> 2.4.1)
38
+ pry (0.14.0)
40
39
  coderay (~> 1.1)
41
40
  method_source (~> 1.0)
42
41
  rainbow (3.0.0)
43
- rake (13.0.1)
42
+ rake (13.0.3)
43
+ regexp_parser (2.0.3)
44
44
  rexml (3.2.4)
45
- rspec (3.9.0)
46
- rspec-core (~> 3.9.0)
47
- rspec-expectations (~> 3.9.0)
48
- rspec-mocks (~> 3.9.0)
49
- rspec-core (3.9.1)
50
- rspec-support (~> 3.9.1)
51
- rspec-expectations (3.9.1)
45
+ rspec (3.10.0)
46
+ rspec-core (~> 3.10.0)
47
+ rspec-expectations (~> 3.10.0)
48
+ rspec-mocks (~> 3.10.0)
49
+ rspec-core (3.10.1)
50
+ rspec-support (~> 3.10.0)
51
+ rspec-expectations (3.10.1)
52
52
  diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.9.0)
54
- rspec-mocks (3.9.1)
53
+ rspec-support (~> 3.10.0)
54
+ rspec-mocks (3.10.2)
55
55
  diff-lcs (>= 1.2.0, < 2.0)
56
- rspec-support (~> 3.9.0)
57
- rspec-support (3.9.2)
58
- rubocop (0.81.0)
59
- jaro_winkler (~> 1.5.1)
56
+ rspec-support (~> 3.10.0)
57
+ rspec-support (3.10.2)
58
+ rubocop (1.10.0)
60
59
  parallel (~> 1.10)
61
- parser (>= 2.7.0.1)
60
+ parser (>= 3.0.0.0)
62
61
  rainbow (>= 2.2.2, < 4.0)
62
+ regexp_parser (>= 1.8, < 3.0)
63
63
  rexml
64
+ rubocop-ast (>= 1.2.0, < 2.0)
64
65
  ruby-progressbar (~> 1.7)
65
- unicode-display_width (>= 1.4.0, < 2.0)
66
- rubocop-performance (1.5.2)
67
- rubocop (>= 0.71.0)
68
- rubocop-rspec (1.38.1)
69
- rubocop (>= 0.68.1)
70
- ruby-progressbar (1.10.1)
66
+ unicode-display_width (>= 1.4.0, < 3.0)
67
+ rubocop-ast (1.4.1)
68
+ parser (>= 2.7.1.5)
69
+ rubocop-rake (0.5.1)
70
+ rubocop
71
+ rubocop-rspec (2.2.0)
72
+ rubocop (~> 1.0)
73
+ rubocop-ast (>= 1.1.0)
74
+ ruby-progressbar (1.11.0)
71
75
  sqlite3 (1.4.2)
72
- thread_safe (0.3.6)
73
- tzinfo (1.2.7)
74
- thread_safe (~> 0.1)
75
- tzinfo-data (1.2019.3)
76
+ tzinfo (2.0.4)
77
+ concurrent-ruby (~> 1.0)
78
+ tzinfo-data (1.2021.1)
76
79
  tzinfo (>= 1.0.0)
77
- unicode-display_width (1.7.0)
78
- zeitwerk (2.3.0)
80
+ unicode-display_width (2.0.0)
81
+ zeitwerk (2.4.2)
79
82
 
80
83
  PLATFORMS
81
84
  ruby
@@ -87,9 +90,9 @@ DEPENDENCIES
87
90
  rake
88
91
  rspec
89
92
  rubocop
90
- rubocop-performance
93
+ rubocop-rake
91
94
  rubocop-rspec
92
95
  sqlite3
93
96
 
94
97
  BUNDLED WITH
95
- 2.1.4
98
+ 2.2.3
data/README.md CHANGED
@@ -43,7 +43,7 @@ Fishplate.load_tasks
43
43
  Available rake tasks are:
44
44
  ```
45
45
  rake console # Run application console
46
- rake generate:migration[name] # Generate new migration with name given, e.g
46
+ rake generate:migration[name] # Generate new migration with name given, e.g rake generate:migration[CreateUsers]
47
47
 
48
48
  rake db:create # Creates the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:create:all to create all databases in the config). Wi...
49
49
  rake db:drop # Drops the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:drop:all to drop all databases in the config). Without ...
@@ -65,17 +65,6 @@ rake db:structure:load # Recreates the databases from the struc
65
65
  rake db:version # Retrieves the current schema version number
66
66
  ```
67
67
 
68
- When `rubocop` is available:
69
- ```
70
- rake rubocop # Run RuboCop
71
- rake rubocop:auto_correct # Auto-correct RuboCop offenses
72
- ```
73
-
74
- When `rspec` is available:
75
- ```
76
- rake spec # Run RSpec code examples
77
- ```
78
-
79
68
  ## Contributing
80
69
 
81
70
  Bug reports and pull requests are welcome on GitHub at https://github.com/RenoFi/fishplate. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
data/fishplate.gemspec CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.add_development_dependency 'rake'
37
37
  spec.add_development_dependency 'rspec'
38
38
  spec.add_development_dependency 'rubocop'
39
- spec.add_development_dependency 'rubocop-performance'
39
+ spec.add_development_dependency 'rubocop-rake'
40
40
  spec.add_development_dependency 'rubocop-rspec'
41
41
  spec.add_development_dependency 'sqlite3'
42
42
  end
data/lib/fishplate.rb CHANGED
@@ -18,7 +18,7 @@ module Fishplate
18
18
  def load_tasks
19
19
  Kernel.load 'active_record/railties/databases.rake'
20
20
  Kernel.load File.expand_path('fishplate/tasks.rake', __dir__)
21
- A9n.root.join('lib/tasks').glob('*.rake').sort.each { |f| Kernel.load f }
21
+ A9n.root.join('lib/tasks').glob('**/*.rake').sort.each { |f| Kernel.load f }
22
22
  end
23
23
 
24
24
  def database_configuration
@@ -36,7 +36,7 @@ module Fishplate
36
36
  attr_writer :logger
37
37
 
38
38
  def logger
39
- @logger ||= ::Logger.new(STDOUT)
39
+ @logger ||= ::Logger.new($stdout)
40
40
  end
41
41
 
42
42
  def setup!
@@ -12,13 +12,14 @@ task console: :environment do
12
12
  IRB.start
13
13
  end
14
14
 
15
- desc "Generate new migration with name given, example: rake generate:migration[CreateUsers]"
16
15
  namespace :generate do
16
+ desc "Generate new migration with name given, example: rake generate:migration[CreateUsers]"
17
17
  task :migration, [:name] do |name, args|
18
18
  klass = args[:name].tr('-', '_').camelize
19
19
  number = ActiveRecord::Migration.next_migration_number(0)
20
20
  file_name = "#{number}_#{klass.underscore}.rb"
21
- file_path = A9n.root.join("db/migrate", file_name)
21
+ relative_file_path = File.join("db/migrate", file_name)
22
+ file_path = A9n.root.join(relative_file_path)
22
23
  content = <<-CONTENT
23
24
  |class #{klass} < ActiveRecord::Migration[#{ActiveRecord::Migration.current_version}]
24
25
  | def change
@@ -26,19 +27,6 @@ namespace :generate do
26
27
  |end
27
28
  CONTENT
28
29
  File.open(file_path, "w+") { |f| f.write(content.gsub(/( +\|)/, '')) }
30
+ puts "Created migration file: #{relative_file_path}"
29
31
  end
30
32
  end
31
-
32
- begin
33
- require "rspec/core/rake_task"
34
- RSpec::Core::RakeTask.new(:spec)
35
- rescue LoadError
36
- # ignore
37
- end
38
-
39
- begin
40
- require "rubocop/rake_task"
41
- RuboCop::RakeTask.new
42
- rescue LoadError
43
- # ignore
44
- end
@@ -1,3 +1,3 @@
1
1
  module Fishplate
2
- VERSION = "1.0.4".freeze
2
+ VERSION = "1.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fishplate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-03 00:00:00.000000000 Z
11
+ date: 2021-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: a9n
@@ -165,7 +165,7 @@ dependencies:
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: rubocop-performance
168
+ name: rubocop-rake
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
@@ -206,14 +206,21 @@ dependencies:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
- description:
209
+ description:
210
210
  email:
211
211
  - knapo@knapo.net
212
212
  executables: []
213
213
  extensions: []
214
214
  extra_rdoc_files: []
215
215
  files:
216
+ - ".bundler-version"
216
217
  - ".dependabot/config.yml"
218
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
219
+ - ".github/ISSUE_TEMPLATE/config.yml"
220
+ - ".github/ISSUE_TEMPLATE/story.md"
221
+ - ".github/PULL_REQUEST_TEMPLATE.md"
222
+ - ".github/workflows/auto-approve.yml"
223
+ - ".github/workflows/auto-merge.yml"
217
224
  - ".gitignore"
218
225
  - ".rspec"
219
226
  - ".travis.yml"
@@ -234,7 +241,7 @@ licenses:
234
241
  metadata:
235
242
  homepage_uri: https://github.com/RenoFi/fishplate
236
243
  source_code_uri: https://github.com/RenoFi/fishplate
237
- post_install_message:
244
+ post_install_message:
238
245
  rdoc_options: []
239
246
  require_paths:
240
247
  - lib
@@ -249,8 +256,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
256
  - !ruby/object:Gem::Version
250
257
  version: '0'
251
258
  requirements: []
252
- rubygems_version: 3.1.2
253
- signing_key:
259
+ rubygems_version: 3.2.3
260
+ signing_key:
254
261
  specification_version: 4
255
262
  summary: Fishplate is a library allowing running ActiveRecord without Railties.
256
263
  test_files: []