bake-modernize 0.8.2 → 0.9.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: 824851e66cc9aacb56cf0b26ae62341e7f72d8c3b045222f56ff8ca00680c1e4
4
- data.tar.gz: fc12a7b4dc55c3087e0c5c64f07c0b8d5888757f1bf240a3045b3c8bc793fbde
3
+ metadata.gz: 75c75ec487952e6ce97c8ffbbf8c4de7d3d656eaf7a9e49e656b71a96b5405b7
4
+ data.tar.gz: 67d94eb1b42c359de608198b8eee416922ed7759a18b26858a98e88136fea044
5
5
  SHA512:
6
- metadata.gz: 024c5c4e49bca3b130ef0ab80bddd4c15833fce28bc6b55b13da339587c44265a6edb9704038127c71b6397b1c8c502f0a9714b0c004a2ffd1a6f4750487ecc5
7
- data.tar.gz: 9ceb5a1edf91ed8f9a05e1ad5c405b50bc669290c6761903cce2e78a18866557d823f8f82aecde25272e0eddbb59bb01deaa636e1254c73e4a4f8004513905bd
6
+ metadata.gz: a49d876f77bb583e292957111984f7d981ad4c7a7e2e0383db211d633e3de57d705903ba756383b0948bdbacd5784f9ce34eaa8efdc07787466a807df698cb7c
7
+ data.tar.gz: 3988ea8f27d4aafdd8d3780c7098f372702fd114d3c4d95c3fc722dbf7940a7b2e9050d191df169fceb9ebd91434d7ee87b960816056d8ddd084dc1c023127f9
checksums.yaml.gz.sig CHANGED
Binary file
@@ -109,17 +109,28 @@ private
109
109
  def directory_glob_for(spec, paths = spec.files)
110
110
  directories = {}
111
111
  root = File.dirname(spec.loaded_from)
112
+ dotfiles = false
112
113
 
113
114
  paths.each do |path|
114
115
  directory, _ = path.split(File::SEPARATOR, 2)
116
+ basename = File.basename(path)
115
117
 
116
118
  full_path = File.expand_path(directory, root)
119
+
117
120
  if File.directory?(full_path)
118
121
  directories[directory] = true
119
122
  end
123
+
124
+ if basename.start_with?('.')
125
+ dotfiles = true
126
+ end
120
127
  end
121
128
 
122
- return "Dir.glob('{#{directories.keys.join(',')}}/**/*', File::FNM_DOTMATCH, base: __dir__)"
129
+ if dotfiles
130
+ return "Dir.glob('{#{directories.keys.join(',')}}/**/*', File::FNM_DOTMATCH, base: __dir__)"
131
+ else
132
+ return "Dir['{#{directories.keys.join(',')}}/**/*', base: __dir__]"
133
+ end
123
134
  end
124
135
 
125
136
  def format_dependency(dependency)
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Bake
22
22
  module Modernize
23
- VERSION = "0.8.2"
23
+ VERSION = "0.9.1"
24
24
  end
25
25
  end
@@ -0,0 +1,57 @@
1
+ name: Coverage
2
+
3
+ on: [push, pull_request]
4
+
5
+ permissions:
6
+ contents: read
7
+
8
+ env:
9
+ CONSOLE_OUTPUT: Text
10
+ COVERAGE: PartialSummary
11
+
12
+ jobs:
13
+ test:
14
+ name: ${{matrix.ruby}} on ${{matrix.os}}
15
+ runs-on: ${{matrix.os}}-latest
16
+
17
+ strategy:
18
+ matrix:
19
+ os:
20
+ - ubuntu
21
+ - macos
22
+
23
+ ruby:
24
+ - "3.1"
25
+
26
+ steps:
27
+ - uses: actions/checkout@v3
28
+ - uses: ruby/setup-ruby@v1
29
+ with:
30
+ ruby-version: ${{matrix.ruby}}
31
+ bundler-cache: true
32
+
33
+ - name: Run tests
34
+ timeout-minutes: 5
35
+ run: bundle exec rspec
36
+
37
+ - uses: actions/upload-artifact@v2
38
+ with:
39
+ name: coverage-${{matrix.os}}-${{matrix.ruby}}
40
+ path: .covered.db
41
+
42
+ validate:
43
+ needs: test
44
+ runs-on: ubuntu-latest
45
+
46
+ steps:
47
+ - uses: actions/checkout@v3
48
+ - uses: ruby/setup-ruby@v1
49
+ with:
50
+ ruby-version: "3.1"
51
+ bundler-cache: true
52
+
53
+ - uses: actions/download-artifact@v3
54
+
55
+ - name: Validate coverage
56
+ timeout-minutes: 5
57
+ run: bundle exec bake covered:validate --paths */.covered.db \;
@@ -2,6 +2,12 @@ name: Development
2
2
 
3
3
  on: [push, pull_request]
4
4
 
5
+ permissions:
6
+ contents: read
7
+
8
+ env:
9
+ CONSOLE_OUTPUT: Text
10
+
5
11
  jobs:
6
12
  test:
7
13
  name: ${{matrix.ruby}} on ${{matrix.os}}
@@ -15,12 +21,11 @@ jobs:
15
21
  - macos
16
22
 
17
23
  ruby:
18
- - "2.6"
19
24
  - "2.7"
20
25
  - "3.0"
26
+ - "3.1"
21
27
 
22
28
  experimental: [false]
23
- env: [""]
24
29
 
25
30
  include:
26
31
  - os: ubuntu
@@ -34,7 +39,7 @@ jobs:
34
39
  experimental: true
35
40
 
36
41
  steps:
37
- - uses: actions/checkout@v2
42
+ - uses: actions/checkout@v3
38
43
  - uses: ruby/setup-ruby@v1
39
44
  with:
40
45
  ruby-version: ${{matrix.ruby}}
@@ -42,4 +47,4 @@ jobs:
42
47
 
43
48
  - name: Run tests
44
49
  timeout-minutes: 5
45
- run: ${{matrix.env}} bundle exec rspec
50
+ run: bundle exec rspec
@@ -1,11 +1,18 @@
1
1
  name: Documentation
2
2
 
3
+ permissions:
4
+ contents: write
5
+
3
6
  on:
4
7
  push:
5
8
  branches:
6
9
  - main
7
10
 
11
+ permissions:
12
+ contents: write
13
+
8
14
  env:
15
+ CONSOLE_OUTPUT: Text
9
16
  BUNDLE_WITH: maintenance
10
17
 
11
18
  jobs:
@@ -13,21 +20,22 @@ jobs:
13
20
  runs-on: ubuntu-latest
14
21
 
15
22
  steps:
16
- - uses: actions/checkout@v2
23
+ - uses: actions/checkout@v3
24
+
17
25
  - uses: ruby/setup-ruby@v1
18
26
  with:
19
- ruby-version: 3.0
27
+ ruby-version: "3.1"
20
28
  bundler-cache: true
21
29
 
22
30
  - name: Installing packages
23
31
  run: sudo apt-get install wget
24
32
 
33
+ - name: Prepare GitHub Pages
34
+ run: bundle exec bake github:pages:prepare --directory docs
35
+
25
36
  - name: Generate documentation
26
37
  timeout-minutes: 5
27
- run: bundle exec bake utopia:project:static
38
+ run: bundle exec bake utopia:project:static --force no
28
39
 
29
- - name: Deploy documentation
30
- uses: JamesIves/github-pages-deploy-action@4.0.0
31
- with:
32
- branch: docs
33
- folder: docs
40
+ - name: Deploy GitHub Pages
41
+ run: bundle exec bake github:pages:commit --directory docs
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-modernize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -37,7 +37,7 @@ cert_chain:
37
37
  RAOsIl+HOBTb252nx1kIRN5hqQx272AJCbCjKx8egcUQKffFVVCI0nye09v5CK+a
38
38
  HiLJ8VOFx6w=
39
39
  -----END CERTIFICATE-----
40
- date: 2022-03-09 00:00:00.000000000 Z
40
+ date: 2022-06-13 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: async-http
@@ -138,6 +138,7 @@ files:
138
138
  - bake/modernize/signing.rb
139
139
  - lib/bake/modernize.rb
140
140
  - lib/bake/modernize/version.rb
141
+ - template/actions/.github/workflows/coverage.yml
141
142
  - template/actions/.github/workflows/development.yml
142
143
  - template/actions/.github/workflows/documentation.yml
143
144
  - template/editorconfig/.editorconfig
@@ -162,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
163
  - !ruby/object:Gem::Version
163
164
  version: '0'
164
165
  requirements: []
165
- rubygems_version: 3.2.32
166
+ rubygems_version: 3.3.7
166
167
  signing_key:
167
168
  specification_version: 4
168
169
  summary: Automatically modernize parts of your project/gem.
metadata.gz.sig CHANGED
Binary file