grape-starter 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +14 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +50 -1
- data/Gemfile +2 -2
- data/grape-starter.gemspec +1 -1
- data/lib/starter/builder/names.rb +2 -0
- data/lib/starter/builder/templates/activerecord.rb +4 -2
- data/lib/starter/version.rb +1 -1
- data/template/.rubocop.yml +49 -0
- data/template/Gemfile +1 -1
- data/template/spec/spec_helper.rb +1 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0319aad1d8c7ee2391228d9406510f7154c20bc1499ad236747f3296bdd60e1
|
4
|
+
data.tar.gz: d7c5675719b83d4b00c1c6a79c18be5548cfa9c03e02d20d0951547d384a9add
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9fd4c6a7b26fa0cbe7243d389446a2f7076e5fdc2ea2363d20283c10998bf8963544a86f7fa57cb1d77f169d2cda8a22e70d9726f3f685b30e07388f58a789c
|
7
|
+
data.tar.gz: eac255d57b207a70a02782f3ddcb3d4adddee53c794b9886a2cea4d00688910e25700af1fc5c456f7b382c201ebbff5585fe429498f305b00a0bca728a9b4c8a
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
3
|
+
# Please see the documentation for all configuration options:
|
4
|
+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
5
|
+
|
6
|
+
version: 2
|
7
|
+
updates:
|
8
|
+
- package-ecosystem: "bundler" # See documentation for possible values
|
9
|
+
directory: "/" # Location of package manifests
|
10
|
+
schedule:
|
11
|
+
interval: "weekly"
|
12
|
+
day: "friday"
|
13
|
+
assignees:
|
14
|
+
- "LeFnord"
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -5,9 +5,9 @@ AllCops:
|
|
5
5
|
- '**/bin/**/*'
|
6
6
|
- '**/tmp/**/*'
|
7
7
|
- '**/script/**/*'
|
8
|
-
# - '**/template/**/*'
|
9
8
|
- '**/template/api/**'
|
10
9
|
- grape-starter.gemspec
|
10
|
+
- template/spec/spec-helper.rb
|
11
11
|
UseCache: true
|
12
12
|
TargetRubyVersion: 2.7
|
13
13
|
|
@@ -40,6 +40,7 @@ Style/AsciiComments:
|
|
40
40
|
Style/Documentation:
|
41
41
|
Enabled: false
|
42
42
|
|
43
|
+
# introduced in 0.88
|
43
44
|
Layout/EmptyLinesAroundAttributeAccessor:
|
44
45
|
Enabled: true
|
45
46
|
Layout/SpaceAroundMethodCallOperator:
|
@@ -68,3 +69,51 @@ Style/RedundantRegexpEscape:
|
|
68
69
|
Enabled: true
|
69
70
|
Style/SlicingWithRange:
|
70
71
|
Enabled: true
|
72
|
+
|
73
|
+
# introduced in 0.89
|
74
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
75
|
+
Enabled: true
|
76
|
+
Lint/DuplicateElsifCondition:
|
77
|
+
Enabled: true
|
78
|
+
Lint/DuplicateRescueException:
|
79
|
+
Enabled: true
|
80
|
+
Lint/EmptyConditionalBody:
|
81
|
+
Enabled: true
|
82
|
+
Lint/FloatComparison:
|
83
|
+
Enabled: true
|
84
|
+
Lint/MissingSuper:
|
85
|
+
Enabled: true
|
86
|
+
Lint/OutOfRangeRegexpRef:
|
87
|
+
Enabled: true
|
88
|
+
Lint/SelfAssignment:
|
89
|
+
Enabled: true
|
90
|
+
Lint/TopLevelReturnWithArgument:
|
91
|
+
Enabled: true
|
92
|
+
Lint/UnreachableLoop:
|
93
|
+
Enabled: true
|
94
|
+
Style/AccessorGrouping:
|
95
|
+
Enabled: false
|
96
|
+
Style/ArrayCoercion:
|
97
|
+
Enabled: true
|
98
|
+
Style/BisectedAttrAccessor:
|
99
|
+
Enabled: true
|
100
|
+
Style/CaseLikeIf:
|
101
|
+
Enabled: true
|
102
|
+
Style/ExplicitBlockArgument:
|
103
|
+
Enabled: true
|
104
|
+
Style/GlobalStdStream:
|
105
|
+
Enabled: true
|
106
|
+
Style/HashAsLastArrayItem:
|
107
|
+
Enabled: true
|
108
|
+
Style/HashLikeCase:
|
109
|
+
Enabled: true
|
110
|
+
Style/OptionalBooleanParameter:
|
111
|
+
Enabled: true
|
112
|
+
Style/RedundantAssignment:
|
113
|
+
Enabled: true
|
114
|
+
Style/RedundantFileExtensionInRequire:
|
115
|
+
Enabled: true
|
116
|
+
Style/SingleArgumentDig:
|
117
|
+
Enabled: true
|
118
|
+
Style/StringConcatenation:
|
119
|
+
Enabled: true
|
data/Gemfile
CHANGED
@@ -5,12 +5,12 @@ source 'http://rubygems.org'
|
|
5
5
|
gemspec
|
6
6
|
|
7
7
|
group :development, :test do
|
8
|
-
gem 'grape', '~> 1.
|
8
|
+
gem 'grape', '~> 1.4'
|
9
9
|
gem 'pry', platforms: [:mri]
|
10
10
|
gem 'pry-byebug', platforms: [:mri]
|
11
11
|
gem 'rack-cors', require: false
|
12
12
|
gem 'rack-test', require: false
|
13
|
-
gem 'rake', '~>
|
13
|
+
gem 'rake', '~> 13.0'
|
14
14
|
gem 'rspec', '~> 3.8'
|
15
15
|
gem 'rspec-command'
|
16
16
|
end
|
data/grape-starter.gemspec
CHANGED
@@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
|
|
26
26
|
|
27
27
|
spec.add_dependency 'gli', '~> 2.19'
|
28
28
|
spec.add_dependency 'activesupport', '~> 6.0'
|
29
|
-
spec.add_dependency 'rubocop', '~> 0.
|
29
|
+
spec.add_dependency 'rubocop', '~> 0.89'
|
30
30
|
spec.add_dependency 'awesome_print', '~> 1.8'
|
31
31
|
end
|
@@ -24,9 +24,11 @@ module Starter
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
+
# rubocop:disable Style/StringConcatenation
|
27
28
|
def base_file_name
|
28
29
|
@resource.tr('/', '-').downcase + '.rb'
|
29
30
|
end
|
31
|
+
# rubocop:enable Style/StringConcatenation
|
30
32
|
|
31
33
|
def base_spec_name
|
32
34
|
base_file_name.gsub(/.rb$/, '_spec.rb')
|
@@ -9,6 +9,8 @@ module Starter
|
|
9
9
|
|
10
10
|
def initializer
|
11
11
|
<<-FILE.strip_heredoc
|
12
|
+
# frozen_string_literal: true
|
13
|
+
|
12
14
|
require 'yaml'
|
13
15
|
require 'erb'
|
14
16
|
require 'active_record'
|
@@ -71,14 +73,14 @@ module Starter
|
|
71
73
|
gem 'standalone_migrations'
|
72
74
|
|
73
75
|
# DB stuff
|
74
|
-
gem 'activerecord', '
|
76
|
+
gem 'activerecord', '>= 6'
|
75
77
|
gem 'pg'
|
76
78
|
FILE
|
77
79
|
end
|
78
80
|
|
79
81
|
def migration(klass_name, resource)
|
80
82
|
<<-FILE.strip_heredoc
|
81
|
-
class Create#{klass_name} < ActiveRecord::Migration[
|
83
|
+
class Create#{klass_name} < ActiveRecord::Migration[6.0]
|
82
84
|
def change
|
83
85
|
create_table :#{resource} do |t|
|
84
86
|
|
data/lib/starter/version.rb
CHANGED
data/template/.rubocop.yml
CHANGED
@@ -25,6 +25,7 @@ Style/AsciiComments:
|
|
25
25
|
Style/Documentation:
|
26
26
|
Enabled: false
|
27
27
|
|
28
|
+
# introduced in 0.88
|
28
29
|
Layout/EmptyLinesAroundAttributeAccessor:
|
29
30
|
Enabled: true
|
30
31
|
Layout/SpaceAroundMethodCallOperator:
|
@@ -53,3 +54,51 @@ Style/RedundantRegexpEscape:
|
|
53
54
|
Enabled: true
|
54
55
|
Style/SlicingWithRange:
|
55
56
|
Enabled: true
|
57
|
+
|
58
|
+
# introduced in 0.89
|
59
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
60
|
+
Enabled: true
|
61
|
+
Lint/DuplicateElsifCondition:
|
62
|
+
Enabled: true
|
63
|
+
Lint/DuplicateRescueException:
|
64
|
+
Enabled: true
|
65
|
+
Lint/EmptyConditionalBody:
|
66
|
+
Enabled: true
|
67
|
+
Lint/FloatComparison:
|
68
|
+
Enabled: true
|
69
|
+
Lint/MissingSuper:
|
70
|
+
Enabled: true
|
71
|
+
Lint/OutOfRangeRegexpRef:
|
72
|
+
Enabled: true
|
73
|
+
Lint/SelfAssignment:
|
74
|
+
Enabled: true
|
75
|
+
Lint/TopLevelReturnWithArgument:
|
76
|
+
Enabled: true
|
77
|
+
Lint/UnreachableLoop:
|
78
|
+
Enabled: true
|
79
|
+
Style/AccessorGrouping:
|
80
|
+
Enabled: false
|
81
|
+
Style/ArrayCoercion:
|
82
|
+
Enabled: true
|
83
|
+
Style/BisectedAttrAccessor:
|
84
|
+
Enabled: true
|
85
|
+
Style/CaseLikeIf:
|
86
|
+
Enabled: true
|
87
|
+
Style/ExplicitBlockArgument:
|
88
|
+
Enabled: true
|
89
|
+
Style/GlobalStdStream:
|
90
|
+
Enabled: true
|
91
|
+
Style/HashAsLastArrayItem:
|
92
|
+
Enabled: true
|
93
|
+
Style/HashLikeCase:
|
94
|
+
Enabled: true
|
95
|
+
Style/OptionalBooleanParameter:
|
96
|
+
Enabled: true
|
97
|
+
Style/RedundantAssignment:
|
98
|
+
Enabled: true
|
99
|
+
Style/RedundantFileExtensionInRequire:
|
100
|
+
Enabled: true
|
101
|
+
Style/SingleArgumentDig:
|
102
|
+
Enabled: true
|
103
|
+
Style/StringConcatenation:
|
104
|
+
Enabled: true
|
data/template/Gemfile
CHANGED
@@ -6,8 +6,7 @@ require 'rack/test'
|
|
6
6
|
require File.expand_path('../config/application', __dir__)
|
7
7
|
|
8
8
|
grape_starter_gem = Gem::Specification.find_by_name('grape-starter').gem_dir
|
9
|
-
|
10
|
-
Dir[grape_starter_gem + '/lib/starter/rspec/**/*.rb'].sort.each { |f| require f }
|
9
|
+
Dir["#{grape_starter_gem}/lib/starter/rspec/**/*.rb"].sort.each { |f| require f }
|
11
10
|
|
12
11
|
RSpec.configure do |config|
|
13
12
|
include Rack::Test::Methods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape-starter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LeFnord
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.89'
|
48
48
|
type: :runtime
|
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: '0.
|
54
|
+
version: '0.89'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: awesome_print
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -74,6 +74,7 @@ executables:
|
|
74
74
|
extensions: []
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
|
+
- ".github/dependabot.yml"
|
77
78
|
- ".github/workflows/ruby.yml"
|
78
79
|
- ".gitignore"
|
79
80
|
- ".inch.yml"
|