fishplate 1.0.3 → 1.1.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: '039ef352eadb1966d08aa130372f479976a6b72891f683186447908285b89f98'
4
- data.tar.gz: c1c80a271177db421ea4010f0df0205abd2bedb847ba428edfc958ce2987883d
3
+ metadata.gz: 6dba59d1794fd6223fdc2dbbc70b7d858ac594b0009cf3bfa4cbbde8decb5b2a
4
+ data.tar.gz: 87137068574dae905b2e12099eef0f3044fec8ca1be527a2c1cf016482bd9a75
5
5
  SHA512:
6
- metadata.gz: a9423c1f220e127f4bd8f26676fcf34f0754f689e7b79b3017295bdc73d62c679bfb963dc672efbef2704c156214255258c89f5200241610bd76282fd946bc69
7
- data.tar.gz: 2cdc17c717193a57f8b3e585c851f2c639d3edc31ca0ba98e2981663618e07c8e6356a550ca8e0e6b8ba5e566d7b78ee1b7c3b27cf9f888f06100ee38f7842eb
6
+ metadata.gz: 8ce4e57904bb2600792c4bf07e33b55e4fc65e9f530d4408d5690f7fe92aeb5c4d288fbb6d55b2aa26d3e4272d3ac77074bedb3f1f986bbc2a9a69c0bb868f10
7
+ data.tar.gz: 820ef56f33a7518924c75164fe82ae82145df0b90f5930dd149598ebf9a547e3ccb5b125b3e3b72a79be4b5b2d1c575cd2d0d7df02aea108af85f06cba2ad624
@@ -9,10 +9,3 @@ update_configs:
9
9
  allowed_updates:
10
10
  - match:
11
11
  update_type: "all"
12
- automerged_updates:
13
- - match:
14
- dependency_type: "development"
15
- update_type: "all"
16
- - match:
17
- dependency_type: "production"
18
- update_type: "all"
@@ -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
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 Dependabot 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]'
15
+ with:
16
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -3,8 +3,9 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.5
7
6
  - 2.6
7
+ - 2.7
8
8
  before_install: gem install bundler
9
9
  script:
10
- - bundle exec rake
10
+ - bundle exec rake spec
11
+ - bundle exec rake rubocop
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fishplate (1.0.3)
4
+ fishplate (1.1.1)
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.1.1)
16
- activemodel (6.0.2.1)
17
- activesupport (= 6.0.2.1)
18
- activerecord (6.0.2.1)
19
- activemodel (= 6.0.2.1)
20
- activesupport (= 6.0.2.1)
21
- activesupport (6.0.2.1)
15
+ a9n (1.2.2)
16
+ activemodel (6.0.3.2)
17
+ activesupport (= 6.0.3.2)
18
+ activerecord (6.0.3.2)
19
+ activemodel (= 6.0.3.2)
20
+ activesupport (= 6.0.3.2)
21
+ activesupport (6.0.3.2)
22
22
  concurrent-ruby (~> 1.0, >= 1.0.2)
23
23
  i18n (>= 0.7, < 2)
24
24
  minitest (~> 5.1)
25
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)
26
+ zeitwerk (~> 2.2, >= 2.2.2)
27
+ ast (2.4.1)
28
+ coderay (1.1.3)
29
+ concurrent-ruby (1.1.7)
30
+ diff-lcs (1.4.4)
31
+ i18n (1.8.5)
32
32
  concurrent-ruby (~> 1.0)
33
- jaro_winkler (1.5.4)
34
- method_source (0.9.2)
35
- minitest (5.14.0)
36
- parallel (1.19.1)
37
- parser (2.7.0.3)
38
- ast (~> 2.4.0)
39
- pry (0.12.2)
40
- coderay (~> 1.1.0)
41
- method_source (~> 0.9.0)
33
+ method_source (1.0.0)
34
+ minitest (5.14.2)
35
+ parallel (1.19.2)
36
+ parser (2.7.1.4)
37
+ ast (~> 2.4.1)
38
+ pry (0.13.1)
39
+ coderay (~> 1.1)
40
+ method_source (~> 1.0)
42
41
  rainbow (3.0.0)
43
42
  rake (13.0.1)
43
+ regexp_parser (1.7.1)
44
44
  rexml (3.2.4)
45
45
  rspec (3.9.0)
46
46
  rspec-core (~> 3.9.0)
47
47
  rspec-expectations (~> 3.9.0)
48
48
  rspec-mocks (~> 3.9.0)
49
- rspec-core (3.9.1)
50
- rspec-support (~> 3.9.1)
51
- rspec-expectations (3.9.0)
49
+ rspec-core (3.9.2)
50
+ rspec-support (~> 3.9.3)
51
+ rspec-expectations (3.9.2)
52
52
  diff-lcs (>= 1.2.0, < 2.0)
53
53
  rspec-support (~> 3.9.0)
54
54
  rspec-mocks (3.9.1)
55
55
  diff-lcs (>= 1.2.0, < 2.0)
56
56
  rspec-support (~> 3.9.0)
57
- rspec-support (3.9.2)
58
- rubocop (0.80.0)
59
- jaro_winkler (~> 1.5.1)
57
+ rspec-support (3.9.3)
58
+ rubocop (0.90.0)
60
59
  parallel (~> 1.10)
61
- parser (>= 2.7.0.1)
60
+ parser (>= 2.7.1.1)
62
61
  rainbow (>= 2.2.2, < 4.0)
62
+ regexp_parser (>= 1.7)
63
63
  rexml
64
+ rubocop-ast (>= 0.3.0, < 1.0)
64
65
  ruby-progressbar (~> 1.7)
65
- unicode-display_width (>= 1.4.0, < 1.7)
66
- rubocop-performance (1.5.2)
67
- rubocop (>= 0.71.0)
68
- rubocop-rspec (1.38.1)
69
- rubocop (>= 0.68.1)
66
+ unicode-display_width (>= 1.4.0, < 2.0)
67
+ rubocop-ast (0.3.0)
68
+ parser (>= 2.7.1.4)
69
+ rubocop-performance (1.7.1)
70
+ rubocop (>= 0.82.0)
71
+ rubocop-rspec (1.43.2)
72
+ rubocop (~> 0.87)
70
73
  ruby-progressbar (1.10.1)
71
74
  sqlite3 (1.4.2)
72
75
  thread_safe (0.3.6)
73
- tzinfo (1.2.6)
76
+ tzinfo (1.2.7)
74
77
  thread_safe (~> 0.1)
75
- tzinfo-data (1.2019.3)
78
+ tzinfo-data (1.2020.1)
76
79
  tzinfo (>= 1.0.0)
77
- unicode-display_width (1.6.1)
78
- zeitwerk (2.2.2)
80
+ unicode-display_width (1.7.0)
81
+ zeitwerk (2.4.0)
79
82
 
80
83
  PLATFORMS
81
84
  ruby
@@ -92,4 +95,4 @@ DEPENDENCIES
92
95
  sqlite3
93
96
 
94
97
  BUNDLED WITH
95
- 1.17.3
98
+ 2.1.4
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
- # Fishplate
1
+ [![Gem Version](https://badge.fury.io/rb/fishplate.svg)](https://rubygems.org/gems/fishplate)
2
+ [![Build Status](https://travis-ci.org/RenoFi/fishplate.svg?branch=master)](https://travis-ci.org/RenoFi/fishplate)
2
3
 
3
- Fishplate is a library to run `ActiveRecord` without `railties` gem
4
+ # fishplate
5
+
6
+ `fishplate` is a library to run `ActiveRecord` without `railties` gem
4
7
 
5
8
  ![fishplate](https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Fishplate_UK_2006.jpg/440px-Fishplate_UK_2006.jpg "Fishplate")
6
9
 
@@ -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!
@@ -18,7 +18,8 @@ namespace :generate do
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.3".freeze
2
+ VERSION = "1.1.1".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.3
4
+ version: 1.1.1
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-02-28 00:00:00.000000000 Z
11
+ date: 2020-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: a9n
@@ -206,7 +206,7 @@ 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: []
@@ -214,6 +214,11 @@ extensions: []
214
214
  extra_rdoc_files: []
215
215
  files:
216
216
  - ".dependabot/config.yml"
217
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
218
+ - ".github/ISSUE_TEMPLATE/config.yml"
219
+ - ".github/ISSUE_TEMPLATE/story.md"
220
+ - ".github/PULL_REQUEST_TEMPLATE.md"
221
+ - ".github/workflows/auto-approve.yml"
217
222
  - ".gitignore"
218
223
  - ".rspec"
219
224
  - ".travis.yml"
@@ -234,7 +239,7 @@ licenses:
234
239
  metadata:
235
240
  homepage_uri: https://github.com/RenoFi/fishplate
236
241
  source_code_uri: https://github.com/RenoFi/fishplate
237
- post_install_message:
242
+ post_install_message:
238
243
  rdoc_options: []
239
244
  require_paths:
240
245
  - lib
@@ -249,8 +254,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
254
  - !ruby/object:Gem::Version
250
255
  version: '0'
251
256
  requirements: []
252
- rubygems_version: 3.0.6
253
- signing_key:
257
+ rubygems_version: 3.1.2
258
+ signing_key:
254
259
  specification_version: 4
255
260
  summary: Fishplate is a library allowing running ActiveRecord without Railties.
256
261
  test_files: []