fishplate 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dependabot/config.yml +11 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +33 -0
- data/.github/ISSUE_TEMPLATE/config.yml +1 -0
- data/.github/ISSUE_TEMPLATE/story.md +22 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +18 -0
- data/.github/workflows/auto-approve.yml +16 -0
- data/.travis.yml +3 -2
- data/Gemfile.lock +47 -39
- data/README.md +5 -2
- data/Rakefile +1 -1
- data/fishplate.gemspec +9 -8
- data/lib/fishplate.rb +1 -1
- data/lib/fishplate/tasks.rake +6 -18
- data/lib/fishplate/version.rb +1 -1
- metadata +27 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8968d487f477079be030787a9199e6db99dc5eb726cd2ca53622127deafb6308
|
4
|
+
data.tar.gz: cc06cfadc4d773fed70c0112d172c1de2fc9f04433fe7937886795dd56e1ca65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 071ba015e16ab5fdd673e421780baaeb0efc4df60db7fcfed9ad53b769e1156980e5655855b286439f56e37b5eee70484a6205c4e87e9bbf8fcad81787a4fa2a
|
7
|
+
data.tar.gz: 37365510510a6647fae646d6a5bc99de6e36c017bdf7d7ea071352574be708d27deb29106d3476c954a10074b7a1e298c1988a686af7208f91043c4b609918f9
|
@@ -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 }}"
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fishplate (1.0
|
4
|
+
fishplate (1.1.0)
|
5
5
|
a9n (~> 1.0)
|
6
6
|
activemodel (~> 6.0)
|
7
7
|
activerecord (~> 6.0)
|
@@ -12,66 +12,73 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
a9n (1.
|
16
|
-
activemodel (6.0.2
|
17
|
-
activesupport (= 6.0.2
|
18
|
-
activerecord (6.0.2
|
19
|
-
activemodel (= 6.0.2
|
20
|
-
activesupport (= 6.0.2
|
21
|
-
activesupport (6.0.2
|
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.
|
28
|
-
coderay (1.1.
|
29
|
-
concurrent-ruby (1.1.
|
30
|
-
diff-lcs (1.
|
31
|
-
i18n (1.8.
|
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
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
method_source (~> 0.9.0)
|
33
|
+
method_source (1.0.0)
|
34
|
+
minitest (5.14.1)
|
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
|
+
rexml (3.2.4)
|
44
45
|
rspec (3.9.0)
|
45
46
|
rspec-core (~> 3.9.0)
|
46
47
|
rspec-expectations (~> 3.9.0)
|
47
48
|
rspec-mocks (~> 3.9.0)
|
48
|
-
rspec-core (3.9.
|
49
|
-
rspec-support (~> 3.9.
|
50
|
-
rspec-expectations (3.9.
|
49
|
+
rspec-core (3.9.2)
|
50
|
+
rspec-support (~> 3.9.3)
|
51
|
+
rspec-expectations (3.9.2)
|
51
52
|
diff-lcs (>= 1.2.0, < 2.0)
|
52
53
|
rspec-support (~> 3.9.0)
|
53
|
-
rspec-mocks (3.9.
|
54
|
+
rspec-mocks (3.9.1)
|
54
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
56
|
rspec-support (~> 3.9.0)
|
56
|
-
rspec-support (3.9.
|
57
|
-
rubocop (0.
|
58
|
-
jaro_winkler (~> 1.5.1)
|
57
|
+
rspec-support (3.9.3)
|
58
|
+
rubocop (0.89.1)
|
59
59
|
parallel (~> 1.10)
|
60
|
-
parser (>= 2.
|
60
|
+
parser (>= 2.7.1.1)
|
61
61
|
rainbow (>= 2.2.2, < 4.0)
|
62
|
+
regexp_parser (>= 1.7)
|
63
|
+
rexml
|
64
|
+
rubocop-ast (>= 0.3.0, < 1.0)
|
62
65
|
ruby-progressbar (~> 1.7)
|
63
|
-
unicode-display_width (>= 1.4.0, <
|
64
|
-
rubocop-
|
65
|
-
|
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.42.0)
|
72
|
+
rubocop (>= 0.87.0)
|
66
73
|
ruby-progressbar (1.10.1)
|
67
74
|
sqlite3 (1.4.2)
|
68
75
|
thread_safe (0.3.6)
|
69
|
-
tzinfo (1.2.
|
76
|
+
tzinfo (1.2.7)
|
70
77
|
thread_safe (~> 0.1)
|
71
|
-
tzinfo-data (1.
|
78
|
+
tzinfo-data (1.2020.1)
|
72
79
|
tzinfo (>= 1.0.0)
|
73
|
-
unicode-display_width (1.
|
74
|
-
zeitwerk (2.
|
80
|
+
unicode-display_width (1.7.0)
|
81
|
+
zeitwerk (2.4.0)
|
75
82
|
|
76
83
|
PLATFORMS
|
77
84
|
ruby
|
@@ -84,7 +91,8 @@ DEPENDENCIES
|
|
84
91
|
rspec
|
85
92
|
rubocop
|
86
93
|
rubocop-performance
|
94
|
+
rubocop-rspec
|
87
95
|
sqlite3
|
88
96
|
|
89
97
|
BUNDLED WITH
|
90
|
-
1.
|
98
|
+
2.1.4
|
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
-
|
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
|
-
|
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
|
|
data/Rakefile
CHANGED
data/fishplate.gemspec
CHANGED
@@ -3,14 +3,14 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
require 'fishplate/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name
|
7
|
-
spec.version
|
8
|
-
spec.authors
|
9
|
-
spec.email
|
6
|
+
spec.name = 'fishplate'
|
7
|
+
spec.version = Fishplate::VERSION
|
8
|
+
spec.authors = ['Krzysztof Knapik']
|
9
|
+
spec.email = ['knapo@knapo.net']
|
10
10
|
|
11
|
-
spec.summary
|
11
|
+
spec.summary = 'Fishplate is a library allowing running ActiveRecord without Railties.'
|
12
12
|
spec.homepage = 'https://github.com/RenoFi/fishplate'
|
13
|
-
spec.license
|
13
|
+
spec.license = 'MIT'
|
14
14
|
|
15
15
|
spec.metadata['homepage_uri'] = 'https://github.com/RenoFi/fishplate'
|
16
16
|
spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/fishplate'
|
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.files = Dir.chdir(__dir__) do
|
19
19
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
|
20
20
|
end
|
21
|
-
spec.bindir
|
22
|
-
spec.executables
|
21
|
+
spec.bindir = 'exe'
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
25
|
spec.required_ruby_version = '>= 2.6'
|
@@ -37,5 +37,6 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_development_dependency 'rspec'
|
38
38
|
spec.add_development_dependency 'rubocop'
|
39
39
|
spec.add_development_dependency 'rubocop-performance'
|
40
|
+
spec.add_development_dependency 'rubocop-rspec'
|
40
41
|
spec.add_development_dependency 'sqlite3'
|
41
42
|
end
|
data/lib/fishplate.rb
CHANGED
data/lib/fishplate/tasks.rake
CHANGED
@@ -15,30 +15,18 @@ end
|
|
15
15
|
desc "Generate new migration with name given, example: rake generate:migration[CreateUsers]"
|
16
16
|
namespace :generate do
|
17
17
|
task :migration, [:name] do |name, args|
|
18
|
-
klass
|
19
|
-
number
|
18
|
+
klass = args[:name].tr('-', '_').camelize
|
19
|
+
number = ActiveRecord::Migration.next_migration_number(0)
|
20
20
|
file_name = "#{number}_#{klass.underscore}.rb"
|
21
|
-
|
22
|
-
|
21
|
+
relative_file_path = File.join("db/migrate", file_name)
|
22
|
+
file_path = A9n.root.join(relative_file_path)
|
23
|
+
content = <<-CONTENT
|
23
24
|
|class #{klass} < ActiveRecord::Migration[#{ActiveRecord::Migration.current_version}]
|
24
25
|
| def change
|
25
26
|
| end
|
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
|
data/lib/fishplate/version.rb
CHANGED
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
|
+
version: 1.1.0
|
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-
|
11
|
+
date: 2020-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: a9n
|
@@ -178,6 +178,20 @@ dependencies:
|
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: rubocop-rspec
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
181
195
|
- !ruby/object:Gem::Dependency
|
182
196
|
name: sqlite3
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,13 +206,19 @@ dependencies:
|
|
192
206
|
- - ">="
|
193
207
|
- !ruby/object:Gem::Version
|
194
208
|
version: '0'
|
195
|
-
description:
|
209
|
+
description:
|
196
210
|
email:
|
197
211
|
- knapo@knapo.net
|
198
212
|
executables: []
|
199
213
|
extensions: []
|
200
214
|
extra_rdoc_files: []
|
201
215
|
files:
|
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"
|
202
222
|
- ".gitignore"
|
203
223
|
- ".rspec"
|
204
224
|
- ".travis.yml"
|
@@ -219,7 +239,7 @@ licenses:
|
|
219
239
|
metadata:
|
220
240
|
homepage_uri: https://github.com/RenoFi/fishplate
|
221
241
|
source_code_uri: https://github.com/RenoFi/fishplate
|
222
|
-
post_install_message:
|
242
|
+
post_install_message:
|
223
243
|
rdoc_options: []
|
224
244
|
require_paths:
|
225
245
|
- lib
|
@@ -234,8 +254,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
254
|
- !ruby/object:Gem::Version
|
235
255
|
version: '0'
|
236
256
|
requirements: []
|
237
|
-
rubygems_version: 3.
|
238
|
-
signing_key:
|
257
|
+
rubygems_version: 3.1.2
|
258
|
+
signing_key:
|
239
259
|
specification_version: 4
|
240
260
|
summary: Fishplate is a library allowing running ActiveRecord without Railties.
|
241
261
|
test_files: []
|