bake-modernize 0.4.1 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bake/modernize/actions.rb +2 -3
- data/bake/modernize/gemspec.rb +5 -6
- data/lib/bake/modernize.rb +1 -1
- data/lib/bake/modernize/version.rb +1 -1
- data/template/actions/.github/workflows/development.yml +2 -3
- data/template/actions/.github/workflows/documentation.yml +32 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40b223501be00c3377a67c1bb8c34eaf8d582f000bc45890b155d3b5f68b9d0e
|
4
|
+
data.tar.gz: e59a9fd48e8f3928578a745a96290a382462e37b43fd4a0bf4fd3572b17ff55a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6478b8400dde08a209a50a148e0d8e2cc046df6ce91761ff141a116f8b665feb52f1370f47470f64d4e65b5431d97803754eff93de178ab80de4bc4ee646db46
|
7
|
+
data.tar.gz: 9b20af012af1353130e71b37f94387481fcd2a9c009cbc2bdbc8637251b8cd2c1b47f52b25ad6126be26bcbe7b18a25ff26872a1d4fce488e84defc7574e73c8
|
data/bake/modernize/actions.rb
CHANGED
@@ -18,8 +18,7 @@ def update(root:)
|
|
18
18
|
Bake::Modernize.copy_template(template_root, root)
|
19
19
|
|
20
20
|
readme_path = File.expand_path("README.md", root)
|
21
|
-
|
22
|
-
self.update_badges(readme_path, repository_url)
|
21
|
+
update_badges(readme_path, repository_url(root))
|
23
22
|
end
|
24
23
|
|
25
24
|
private
|
@@ -33,7 +32,7 @@ def repository_url(root)
|
|
33
32
|
end
|
34
33
|
end
|
35
34
|
|
36
|
-
def badge_for(repository_url
|
35
|
+
def badge_for(repository_url)
|
37
36
|
"[](#{repository_url}/actions?workflow=Development)"
|
38
37
|
end
|
39
38
|
|
data/bake/modernize/gemspec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
# Rewrite the current gemspec.
|
3
3
|
def gemspec
|
4
|
-
path =
|
4
|
+
path = default_gemspec_path
|
5
5
|
buffer = StringIO.new
|
6
6
|
|
7
7
|
update(path: path, output: buffer)
|
@@ -11,11 +11,11 @@ end
|
|
11
11
|
|
12
12
|
# Rewrite the specified gemspec.
|
13
13
|
# @param
|
14
|
-
def update(path:
|
14
|
+
def update(path: default_gemspec_path, output: $stdout)
|
15
15
|
spec = Gem::Specification.load(path)
|
16
16
|
|
17
17
|
root = File.dirname(path)
|
18
|
-
version_path =
|
18
|
+
version_path = version_path(root)
|
19
19
|
|
20
20
|
constant = File.read(version_path)
|
21
21
|
.scan(/module\s+(.*?)$/)
|
@@ -76,10 +76,9 @@ def update(path: self.default_gemspec_path, output: $stdout)
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
-
if spec.
|
79
|
+
if spec.runtime_dependencies.any?
|
80
80
|
output.puts "\t"
|
81
|
-
spec.
|
82
|
-
next unless dependency.type == :runtime
|
81
|
+
spec.runtime_dependencies.sort.each do |dependency|
|
83
82
|
output.puts "\tspec.add_dependency #{format_dependency(dependency)}"
|
84
83
|
end
|
85
84
|
end
|
data/lib/bake/modernize.rb
CHANGED
@@ -17,6 +17,7 @@ jobs:
|
|
17
17
|
- 2.5
|
18
18
|
- 2.6
|
19
19
|
- 2.7
|
20
|
+
- 3.0
|
20
21
|
|
21
22
|
experimental: [false]
|
22
23
|
env: [""]
|
@@ -37,9 +38,7 @@ jobs:
|
|
37
38
|
- uses: ruby/setup-ruby@v1
|
38
39
|
with:
|
39
40
|
ruby-version: ${{matrix.ruby}}
|
40
|
-
|
41
|
-
- name: Install dependencies
|
42
|
-
run: ${{matrix.env}} bundle install
|
41
|
+
bundler-cache: true
|
43
42
|
|
44
43
|
- name: Run tests
|
45
44
|
timeout-minutes: 5
|
@@ -0,0 +1,32 @@
|
|
1
|
+
name: Documentation
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
deploy:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- uses: ruby/setup-ruby@v1
|
15
|
+
env:
|
16
|
+
BUNDLE_WITH: maintenance
|
17
|
+
with:
|
18
|
+
ruby-version: 2.7
|
19
|
+
bundler-cache: true
|
20
|
+
|
21
|
+
- name: Installing packages
|
22
|
+
run: sudo apt-get install wget
|
23
|
+
|
24
|
+
- name: Generate documentation
|
25
|
+
timeout-minutes: 5
|
26
|
+
run: bundle exec bake utopia:project:static
|
27
|
+
|
28
|
+
- name: Deploy to GitHub Pagess
|
29
|
+
uses: JamesIves/github-pages-deploy-action@4.0.0
|
30
|
+
with:
|
31
|
+
branch: gh-pages
|
32
|
+
folder: docs
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bake-modernize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- lib/bake/modernize.rb
|
109
109
|
- lib/bake/modernize/version.rb
|
110
110
|
- template/actions/.github/workflows/development.yml
|
111
|
+
- template/actions/.github/workflows/documentation.yml
|
111
112
|
- template/editorconfig/.editorconfig
|
112
113
|
- template/readme/README.md
|
113
114
|
homepage: https://github.com/ioquatix/bake-modernize
|