dopstick 0.0.6 → 0.0.7

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: 17fe9695f451b433549bf25b5d8d5484388771739fc32333c4d3a4a6bcfa9348
4
- data.tar.gz: 4791e172a00147a6e7e920eff00e15b26c6ec73d3964a4854e91847989049da3
3
+ metadata.gz: 32408bef26c9cac4f69fd929fa86a84c0ad7eab9528573f649c720d57c1b7e7d
4
+ data.tar.gz: e412045ce7e9ea82ecd9bdbd74fa7863be86a62aac87ebdf397104e34c85a0b5
5
5
  SHA512:
6
- metadata.gz: 65edec1f5c5d373b5ead2dd1631fe4b5638cd396a11d10ad727e35ac6fc8f010134a06f9fb0c4b27b4b95ef62fb9d4556abfe2123252e3d933a07a36348065f1
7
- data.tar.gz: df7abe336abf35acaea9cc3e295cd547a5c376f448ffe80e9862d909d78b15d3ad300930c376c50c0a0ee2d5f3415b9a18b595ec75e9ff2ee94a7752aaf86ada
6
+ metadata.gz: 90f33a149c994f693d5fce46ee19de6f7656d28378bd1147fc572010f630ec8b9ca06c2f4bdc8c34163525a5ad58760de72e00c06b9337f56d646ae7139b9b76
7
+ data.tar.gz: aeca3ecf5d6324b50139f1461b760769ae11015430078d8c72ff25e8f3a3436ea7ffdb3fe952b7d29ef097b6b6788c5ce7f093978cea3be0fcb4f875fe28b50d
data/.github/FUNDING.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  # These are supported funding model platforms
2
-
2
+ ---
3
3
  github: [fnando]
4
4
  custom: ["https://www.paypal.me/nandovieira/🍕"]
@@ -0,0 +1,15 @@
1
+ ---
2
+ # Documentation:
3
+ # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
4
+
5
+ version: 2
6
+ updates:
7
+ - package-ecosystem: "github-actions"
8
+ directory: "/"
9
+ schedule:
10
+ interval: "daily"
11
+
12
+ - package-ecosystem: bundler
13
+ directory: "/"
14
+ schedule:
15
+ interval: "daily"
@@ -1,15 +1,11 @@
1
+ ---
1
2
  name: Tests
2
3
 
3
4
  on:
4
5
  pull_request:
5
- branches:
6
- - main
7
6
  push:
8
- branches:
9
- - main
10
-
11
- schedule:
12
- - cron: "0 10 * * *"
7
+ workflow_dispatch:
8
+ inputs: {}
13
9
 
14
10
  jobs:
15
11
  build:
@@ -18,23 +14,25 @@ jobs:
18
14
  strategy:
19
15
  fail-fast: false
20
16
  matrix:
21
- ruby: [2.6.x, 2.7.x]
17
+ ruby: ["2.7", "3.0"]
22
18
  gemfile:
23
19
  - Gemfile
24
20
 
25
21
  steps:
26
- - uses: actions/checkout@v1
22
+ - uses: actions/checkout@v2.4.0
27
23
 
28
24
  - uses: actions/cache@v2
29
25
  with:
30
26
  path: vendor/bundle
31
27
  key: >
32
- ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles(matrix.gemfile) }}
28
+ ${{ runner.os }}-${{ matrix.ruby }}-gems-${{
29
+ hashFiles(matrix.gemfile) }}
33
30
  restore-keys: >
34
- ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles(matrix.gemfile) }}
31
+ ${{ runner.os }}-${{ matrix.ruby }}-gems-${{
32
+ hashFiles(matrix.gemfile) }}
35
33
 
36
34
  - name: Set up Ruby
37
- uses: actions/setup-ruby@v1
35
+ uses: ruby/setup-ruby@v1
38
36
  with:
39
37
  ruby-version: ${{ matrix.ruby }}
40
38
 
data/.rubocop.yml CHANGED
@@ -3,7 +3,7 @@ inherit_gem:
3
3
  rubocop-fnando: .rubocop.yml
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.6
6
+ TargetRubyVersion: 2.7
7
7
  NewCops: enable
8
8
  Exclude:
9
9
  - tmp/**/*
data/CHANGELOG.md CHANGED
@@ -11,7 +11,13 @@ Prefix your message with one of the following:
11
11
  - [Security] in case of vulnerabilities.
12
12
  -->
13
13
 
14
- ## Unreleased
14
+ ## v0.0.7 - 2021-12-04
15
+
16
+ - [Fixed] Set proper package ecosystem on dependabot's config file.
17
+ - [Changed] Update ruby default versions to 2.7 and 3.0.
18
+ - [Changed] Update node default versions to 16 and 17.
19
+
20
+ ## v0.0.6 - 2020-12-09
15
21
 
16
22
  - [Fixed] Babel loader's order is backwards, so TypeScript first, then
17
23
  JavaScript.
data/dopstick.gemspec CHANGED
@@ -7,12 +7,13 @@ Gem::Specification.new do |spec|
7
7
  spec.version = Dopstick::VERSION
8
8
  spec.authors = ["Nando Vieira"]
9
9
  spec.email = ["me@fnando.com"]
10
+ spec.metadata = {"rubygems_mfa_required" => "true"}
10
11
 
11
12
  spec.summary = "Generate a project skeleton for creating a Ruby/NPM " \
12
13
  "package."
13
14
  spec.description = spec.summary
14
15
  spec.license = "MIT"
15
- spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
16
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
16
17
 
17
18
  github_url = "https://github.com/fnando/dopstick"
18
19
  github_tree_url = "#{github_url}/tree/v#{spec.version}"
data/lib/dopstick/cli.rb CHANGED
@@ -48,12 +48,12 @@ 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.6 2.7],
51
+ default: %w[2.7 3.0],
52
52
  type: :array,
53
53
  desc: "Set Ruby versions that are officially supported. Multiple " \
54
54
  "versions must separated by space."
55
55
  option :node_versions,
56
- default: %w[14.x 12.x],
56
+ default: %w[16.x 17.x],
57
57
  type: :array,
58
58
  desc: "Set Node versions that are officially supported. Multiple " \
59
59
  "versions must separated by space."
@@ -9,7 +9,7 @@ updates:
9
9
  schedule:
10
10
  interval: "daily"
11
11
 
12
- - package-ecosystem: "bundler"
12
+ - package-ecosystem: <%= dependabot_package_ecosystem %>
13
13
  directory: "/"
14
14
  schedule:
15
15
  interval: "daily"
@@ -115,12 +115,12 @@ module Dopstick
115
115
  content = []
116
116
 
117
117
  options.namespace_names.each_with_index do |name, count|
118
- content << (" " * count) + "module #{name}"
118
+ content << ((" " * count) + "module #{name}")
119
119
  end
120
120
 
121
121
  spacer = skip_content_spaces ? "" : " "
122
122
 
123
- content << (spacer * options.namespace_size) + yield
123
+ content << ((spacer * options.namespace_size) + yield)
124
124
 
125
125
  (options.namespace_size - 1).downto(0) do |count|
126
126
  content << "#{' ' * count}end"
@@ -153,6 +153,19 @@ module Dopstick
153
153
  File.read("#{self.class.source_root}/#{file}")
154
154
  ).result(binding)
155
155
  end
156
+
157
+ def dependabot_package_ecosystem
158
+ "bundler"
159
+ end
160
+
161
+ def ruby_versions_for_workflow
162
+ options.ruby_versions.map do |v|
163
+ canonical_segments = ::Gem::Version.new(v).canonical_segments
164
+ canonical_segments << 0 if canonical_segments.size < 2
165
+
166
+ canonical_segments.join(".").inspect
167
+ end.join(", ")
168
+ end
156
169
  end
157
170
  end
158
171
  end
@@ -7,6 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.version = <%= options.namespace %>::VERSION
8
8
  spec.authors = [<%= options.user_name.inspect %>]
9
9
  spec.email = [<%= options.user_email.inspect %>]
10
+ spec.metadata = {"rubygems_mfa_required" => "true"}
10
11
 
11
12
  spec.summary = <%= options.description.inspect %>
12
13
  spec.description = spec.summary
@@ -2,14 +2,9 @@ name: ruby-tests
2
2
 
3
3
  on:
4
4
  pull_request:
5
- branches:
6
- - main
7
5
  push:
8
- branches:
9
- - main
10
-
11
- schedule:
12
- - cron: "0 10 * * *"
6
+ workflow_dispatch:
7
+ inputs: {}
13
8
 
14
9
  jobs:
15
10
  build:
@@ -18,7 +13,7 @@ jobs:
18
13
  strategy:
19
14
  fail-fast: false
20
15
  matrix:
21
- ruby: [<%= options.ruby_versions.map {|v| [*Gem::Version.new(v).canonical_segments, "x"].take(3).join(".") }.join(", ") %>]
16
+ ruby: [<%= ruby_versions_for_workflow %>]
22
17
  gemfile:
23
18
  - Gemfile
24
19
 
@@ -44,7 +39,7 @@ jobs:
44
39
  ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles(matrix.gemfile) }}
45
40
 
46
41
  - name: Set up Ruby
47
- uses: actions/setup-ruby@v1
42
+ uses: ruby/setup-ruby@v1
48
43
  with:
49
44
  ruby-version: ${{ matrix.ruby }}
50
45
 
@@ -94,6 +94,12 @@ module Dopstick
94
94
  run "git add .", capture: true
95
95
  end
96
96
  end
97
+
98
+ no_commands do
99
+ def dependabot_package_ecosystem
100
+ "npm"
101
+ end
102
+ end
97
103
  end
98
104
  end
99
105
  end
@@ -11,6 +11,9 @@ on:
11
11
  schedule:
12
12
  - cron: "0 10 * * *"
13
13
 
14
+ workflow_dispatch:
15
+ inputs: {}
16
+
14
17
  jobs:
15
18
  build:
16
19
  name: Tests with Node ${{ matrix.node }}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dopstick
4
- VERSION = "0.0.6"
4
+ VERSION = "0.0.7"
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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-09 00:00:00.000000000 Z
11
+ date: 2021-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -135,6 +135,7 @@ files:
135
135
  - ".github/ISSUE_TEMPLATE/bug_report.md"
136
136
  - ".github/ISSUE_TEMPLATE/feature_request.md"
137
137
  - ".github/PULL_REQUEST_TEMPLATE.md"
138
+ - ".github/dependabot.yml"
138
139
  - ".github/workflows/tests.yml"
139
140
  - ".gitignore"
140
141
  - ".rubocop.yml"
@@ -206,12 +207,13 @@ homepage: https://github.com/fnando/dopstick
206
207
  licenses:
207
208
  - MIT
208
209
  metadata:
210
+ rubygems_mfa_required: 'true'
209
211
  homepage_uri: https://github.com/fnando/dopstick
210
212
  bug_tracker_uri: https://github.com/fnando/dopstick/issues
211
- source_code_uri: https://github.com/fnando/dopstick/tree/v0.0.6
212
- changelog_uri: https://github.com/fnando/dopstick/tree/v0.0.6/CHANGELOG.md
213
- documentation_uri: https://github.com/fnando/dopstick/tree/v0.0.6/README.md
214
- license_uri: https://github.com/fnando/dopstick/tree/v0.0.6/LICENSE.md
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
215
217
  post_install_message:
216
218
  rdoc_options: []
217
219
  require_paths:
@@ -220,14 +222,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
222
  requirements:
221
223
  - - ">="
222
224
  - !ruby/object:Gem::Version
223
- version: 2.6.0
225
+ version: 2.7.0
224
226
  required_rubygems_version: !ruby/object:Gem::Requirement
225
227
  requirements:
226
228
  - - ">="
227
229
  - !ruby/object:Gem::Version
228
230
  version: '0'
229
231
  requirements: []
230
- rubygems_version: 3.1.4
232
+ rubygems_version: 3.2.32
231
233
  signing_key:
232
234
  specification_version: 4
233
235
  summary: Generate a project skeleton for creating a Ruby/NPM package.