dopstick 0.0.7 โ†’ 0.0.11

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: 32408bef26c9cac4f69fd929fa86a84c0ad7eab9528573f649c720d57c1b7e7d
4
- data.tar.gz: e412045ce7e9ea82ecd9bdbd74fa7863be86a62aac87ebdf397104e34c85a0b5
3
+ metadata.gz: d662e29058ffc041d2864b5088c62070df5e19065e8c02d9befb146181e7cd76
4
+ data.tar.gz: 7ef797a5ed0fb5ed4373fef51680bc1882359740b4fb941334d2ced9d7750cd9
5
5
  SHA512:
6
- metadata.gz: 90f33a149c994f693d5fce46ee19de6f7656d28378bd1147fc572010f630ec8b9ca06c2f4bdc8c34163525a5ad58760de72e00c06b9337f56d646ae7139b9b76
7
- data.tar.gz: aeca3ecf5d6324b50139f1461b760769ae11015430078d8c72ff25e8f3a3436ea7ffdb3fe952b7d29ef097b6b6788c5ce7f093978cea3be0fcb4f875fe28b50d
6
+ metadata.gz: 6263d71ca2f5937587b40fccda804034fd2c8e5b8cf0bedeafc4e334122ae21257e63cadcf21e3b48bfcb176721521daca60ff607bf713ed2caaa4a108fffc25
7
+ data.tar.gz: 13521c47d326f71f0d757103f04d9bcffaea071476a47460751ca3eebdb734e1e824aaa31490ea2dc1b786b094f63ebf3f21edd2e754f566f3e95105d6717b08
data/lib/dopstick/cli.rb CHANGED
@@ -48,7 +48,7 @@ module Dopstick
48
48
  desc: "Set the codebase namespace. By default, it's inferred from " \
49
49
  "the gem name."
50
50
  option :ruby_versions,
51
- default: %w[2.7 3.0],
51
+ default: %w[2.7 3.0 3.1],
52
52
  type: :array,
53
53
  desc: "Set Ruby versions that are officially supported. Multiple " \
54
54
  "versions must separated by space."
@@ -1,4 +1,4 @@
1
1
  # These are supported funding model platforms
2
-
2
+ ---
3
3
  github: [<%= options.github_user %>]
4
4
  custom: ["https://paypal.me/<%= options.paypal_user %>/๐Ÿ•"]
@@ -0,0 +1,5 @@
1
+ ---
2
+ contact_links:
3
+ - name: "๐Ÿคจ Q&A"
4
+ url: <%= options.github_url %>/discussions/new?category=q-a
5
+ about: Have a question? Ask it away here!
@@ -51,6 +51,8 @@ module Dopstick
51
51
  template "feature_request.erb",
52
52
  ".github/ISSUE_TEMPLATE/feature_request.md"
53
53
  template "pull_request.erb", ".github/PULL_REQUEST_TEMPLATE.md"
54
+ template "issue_template_config.erb",
55
+ ".github/ISSUE_TEMPLATE/config.yml"
54
56
  template "dependabot.erb", ".github/dependabot.yml"
55
57
  template "codeowners.erb", ".github/CODEOWNERS"
56
58
  end
@@ -1,7 +1,6 @@
1
1
  # <%= options.package_name %>
2
2
 
3
3
  [![Tests](<%= options.github_url %>/workflows/ruby-tests/badge.svg)](https://github.com/fnando/<%= options.package_name %>)
4
- [![Code Climate](https://codeclimate.com/github/<%= options.github_user %>/<%= options.package_name %>/badges/gpa.svg)](https://codeclimate.com/github/<%= options.github_user %>/<%= options.package_name %>)
5
4
  [![Gem](https://img.shields.io/gem/v/<%= options.package_name %>.svg)](https://rubygems.org/gems/<%= options.package_name %>)
6
5
  [![Gem](https://img.shields.io/gem/dt/<%= options.package_name %>.svg)](https://rubygems.org/gems/<%= options.package_name %>)
7
6
 
@@ -5,6 +5,9 @@ inherit_gem:
5
5
  AllCops:
6
6
  TargetRubyVersion: <%= options.oldest_ruby_version.split(".").take(2).join(".") %>
7
7
  NewCops: enable
8
+ Exclude:
9
+ - vendor/**/*
10
+ - gemfiles/**/*
8
11
  <%- if options.package_name.include?("-") -%>
9
12
  Naming/FileName:
10
13
  Exclude:
@@ -1,8 +1,11 @@
1
+ ---
1
2
  name: ruby-tests
2
3
 
3
4
  on:
4
- pull_request:
5
+ pull_request_target:
5
6
  push:
7
+ branches:
8
+ - main
6
9
  workflow_dispatch:
7
10
  inputs: {}
8
11
 
@@ -10,6 +13,9 @@ jobs:
10
13
  build:
11
14
  name: Tests with Ruby ${{ matrix.ruby }} and ${{ matrix.gemfile }}
12
15
  runs-on: "ubuntu-latest"
16
+ if: |
17
+ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target' ||
18
+ github.actor != 'dependabot[bot]'
13
19
  strategy:
14
20
  fail-fast: false
15
21
  matrix:
@@ -35,8 +41,6 @@ jobs:
35
41
  path: vendor/bundle
36
42
  key: >
37
43
  ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles(matrix.gemfile) }}
38
- restore-keys: >
39
- ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles(matrix.gemfile) }}
40
44
 
41
45
  - name: Set up Ruby
42
46
  uses: ruby/setup-ruby@v1
@@ -63,8 +67,10 @@ jobs:
63
67
 
64
68
  - name: Run Tests
65
69
  env:
70
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
71
+ <%- if options.active_record? -%>
66
72
  PGHOST: localhost
67
73
  PGUSER: postgres
68
- BUNDLE_GEMFILE: ${{ matrix.gemfile }}
74
+ <%- end -%>
69
75
  run: |
70
76
  bundle exec rake
@@ -56,6 +56,8 @@ module Dopstick
56
56
  template "feature_request.erb",
57
57
  ".github/ISSUE_TEMPLATE/feature_request.md"
58
58
  template "pull_request.erb", ".github/PULL_REQUEST_TEMPLATE.md"
59
+ template "issue_template_config.erb",
60
+ ".github/ISSUE_TEMPLATE/config.yml"
59
61
  template "dependabot.erb", ".github/dependabot.yml"
60
62
  template "codeowners.erb", ".github/CODEOWNERS"
61
63
  end
@@ -71,6 +73,7 @@ module Dopstick
71
73
  @fnando/eslint-config-codestyle
72
74
  @typescript-eslint/eslint-plugin
73
75
  @typescript-eslint/parser
76
+ @types/jest
74
77
  babel-loader
75
78
  babel-plugin-module-resolver
76
79
  eslint
@@ -1,9 +1,8 @@
1
1
  # <%= options.package_name %>
2
2
 
3
3
  [![Tests](<%= options.github_url %>/workflows/node-tests/badge.svg)](https://github.com/fnando/<%= options.package_name %>)
4
- [![Code Climate](https://codeclimate.com/github/<%= options.github_user %>/<%= options.package_name %>/badges/gpa.svg)](https://codeclimate.com/github/<%= options.github_user %>/<%= options.package_name %>)
5
- [![NPM](https://img.shields.io/npm/v/<%= options.package_name %>.svg)](https://npmjs.org/packages/<%= options.package_name %>)
6
- [![NPM](https://img.shields.io/npm/dt/<%= options.package_name %>.svg)](https://npmjs.org/packages/<%= options.package_name %>)
4
+ [![NPM](https://img.shields.io/npm/v/<%= options.package_name %>.svg)](https://npmjs.org/package/<%= options.package_name %>)
5
+ [![NPM](https://img.shields.io/npm/dt/<%= options.package_name %>.svg)](https://npmjs.org/package/<%= options.package_name %>)
7
6
 
8
7
  <%= options.description %>
9
8
 
@@ -23,7 +22,7 @@ yarn add <%= options.package_name %>
23
22
 
24
23
  ## Usage
25
24
 
26
- TODO: Write gem usage
25
+ TODO: Write package usage
27
26
 
28
27
  ## Maintainer
29
28
 
@@ -1,23 +1,21 @@
1
+ ---
1
2
  name: node-tests
2
3
 
3
4
  on:
4
- pull_request:
5
- branches:
6
- - main
5
+ pull_request_target:
7
6
  push:
8
7
  branches:
9
8
  - main
10
-
11
- schedule:
12
- - cron: "0 10 * * *"
13
-
14
9
  workflow_dispatch:
15
- inputs: {}
10
+ inputs: {}
16
11
 
17
12
  jobs:
18
13
  build:
19
14
  name: Tests with Node ${{ matrix.node }}
20
15
  runs-on: "ubuntu-latest"
16
+ if: |
17
+ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target' ||
18
+ github.actor != 'dependabot[bot]'
21
19
  strategy:
22
20
  fail-fast: false
23
21
  matrix:
@@ -30,9 +28,7 @@ jobs:
30
28
  with:
31
29
  path: vendor/bundle
32
30
  key: >
33
- ${{ runner.os }}-${{ matrix.node }}-npm-${{ hashFiles("package.json") }}
34
- restore-keys: >
35
- ${{ runner.os }}-${{ matrix.node }}-npm-${{ hashFiles("package.json") }}
31
+ ${{ runner.os }}-${{ matrix.node }}-npm-${{ hashFiles('package.json') }}
36
32
 
37
33
  - name: Set up Node
38
34
  uses: actions/setup-node@v2-beta
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dopstick
4
- VERSION = "0.0.7"
4
+ VERSION = "0.0.11"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dopstick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-05 00:00:00.000000000 Z
11
+ date: 2022-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -164,6 +164,7 @@ files:
164
164
  - lib/dopstick/generator/base/templates/funding.erb
165
165
  - lib/dopstick/generator/base/templates/gitignore.erb
166
166
  - lib/dopstick/generator/base/templates/issue.erb
167
+ - lib/dopstick/generator/base/templates/issue_template_config.erb
167
168
  - lib/dopstick/generator/base/templates/license.erb
168
169
  - lib/dopstick/generator/base/templates/pull_request.erb
169
170
  - lib/dopstick/generator/base/templates/setup.erb
@@ -210,10 +211,10 @@ metadata:
210
211
  rubygems_mfa_required: 'true'
211
212
  homepage_uri: https://github.com/fnando/dopstick
212
213
  bug_tracker_uri: https://github.com/fnando/dopstick/issues
213
- source_code_uri: https://github.com/fnando/dopstick/tree/v0.0.7
214
- changelog_uri: https://github.com/fnando/dopstick/tree/v0.0.7/CHANGELOG.md
215
- documentation_uri: https://github.com/fnando/dopstick/tree/v0.0.7/README.md
216
- license_uri: https://github.com/fnando/dopstick/tree/v0.0.7/LICENSE.md
214
+ source_code_uri: https://github.com/fnando/dopstick/tree/v0.0.11
215
+ changelog_uri: https://github.com/fnando/dopstick/tree/v0.0.11/CHANGELOG.md
216
+ documentation_uri: https://github.com/fnando/dopstick/tree/v0.0.11/README.md
217
+ license_uri: https://github.com/fnando/dopstick/tree/v0.0.11/LICENSE.md
217
218
  post_install_message:
218
219
  rdoc_options: []
219
220
  require_paths:
@@ -229,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
230
  - !ruby/object:Gem::Version
230
231
  version: '0'
231
232
  requirements: []
232
- rubygems_version: 3.2.32
233
+ rubygems_version: 3.3.3
233
234
  signing_key:
234
235
  specification_version: 4
235
236
  summary: Generate a project skeleton for creating a Ruby/NPM package.