parklife 0.6.0 → 0.6.1
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/.github/workflows/examples.yml +64 -0
- data/.github/workflows/tests.yml +1 -45
- data/CHANGELOG.md +4 -0
- data/lib/parklife/templates/static_build.erb +3 -1
- data/lib/parklife/version.rb +1 -1
- data/parklife.gemspec +6 -10
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c94649aadc5cc8fe79a9215950b461adfdf658ec56c396c42d3e69e9e6082d3
|
4
|
+
data.tar.gz: 54c2b0b8c4f8a8a5149d10b5f649d0009e9c9f32201d85acc8960bb595ea1e9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e77cf82affdd32b75f747c2a9a4bc7aaf8df14d0b847470b241b1fb34e3f98b8aea13fdb55430caff5a420e28a5ba0dc6e80d32505e315428317fb42a5fd9d6
|
7
|
+
data.tar.gz: d80856454fb213de0ef217f18518d42bed3f0a4e57b870f22d2e8eaa72b1cec45123e0c84b38f875b6cd85a62f543381437c8e8200cff87a31f3b2683671f94e
|
@@ -0,0 +1,64 @@
|
|
1
|
+
name: Examples
|
2
|
+
|
3
|
+
on: push
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
rack:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
name: Rack example
|
9
|
+
steps:
|
10
|
+
- uses: actions/checkout@v3
|
11
|
+
- uses: ruby/setup-ruby@v1
|
12
|
+
with:
|
13
|
+
bundler-cache: true
|
14
|
+
ruby-version: '2.7'
|
15
|
+
working-directory: examples/rack
|
16
|
+
- run: bundle exec parklife build
|
17
|
+
working-directory: examples/rack
|
18
|
+
- run: test -f build/index.html
|
19
|
+
working-directory: examples/rack
|
20
|
+
|
21
|
+
rails:
|
22
|
+
runs-on: ubuntu-latest
|
23
|
+
name: Rails example
|
24
|
+
steps:
|
25
|
+
- uses: actions/checkout@v3
|
26
|
+
- uses: ruby/setup-ruby@v1
|
27
|
+
with:
|
28
|
+
bundler-cache: true
|
29
|
+
ruby-version: '3.2'
|
30
|
+
working-directory: examples/rails
|
31
|
+
- run: bin/static-build
|
32
|
+
working-directory: examples/rails
|
33
|
+
- run: test -f build/index.html
|
34
|
+
working-directory: examples/rails
|
35
|
+
|
36
|
+
roda:
|
37
|
+
runs-on: ubuntu-latest
|
38
|
+
name: Roda example
|
39
|
+
steps:
|
40
|
+
- uses: actions/checkout@v3
|
41
|
+
- uses: ruby/setup-ruby@v1
|
42
|
+
with:
|
43
|
+
bundler-cache: true
|
44
|
+
ruby-version: '3.2'
|
45
|
+
working-directory: examples/roda
|
46
|
+
- run: bundle exec parklife build
|
47
|
+
working-directory: examples/roda
|
48
|
+
- run: test -f build/index.html
|
49
|
+
working-directory: examples/roda
|
50
|
+
|
51
|
+
sinatra:
|
52
|
+
runs-on: ubuntu-latest
|
53
|
+
name: Sinatra example
|
54
|
+
steps:
|
55
|
+
- uses: actions/checkout@v3
|
56
|
+
- uses: ruby/setup-ruby@v1
|
57
|
+
with:
|
58
|
+
bundler-cache: true
|
59
|
+
ruby-version: '2.7'
|
60
|
+
working-directory: examples/sinatra
|
61
|
+
- run: bundle exec parklife build
|
62
|
+
working-directory: examples/sinatra
|
63
|
+
- run: test -f build/index.html
|
64
|
+
working-directory: examples/sinatra
|
data/.github/workflows/tests.yml
CHANGED
@@ -3,51 +3,6 @@ name: Tests
|
|
3
3
|
on: push
|
4
4
|
|
5
5
|
jobs:
|
6
|
-
example_rack:
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
name: Rack example
|
9
|
-
steps:
|
10
|
-
- uses: actions/checkout@v3
|
11
|
-
- uses: ruby/setup-ruby@v1
|
12
|
-
with:
|
13
|
-
bundler-cache: true
|
14
|
-
ruby-version: '2.7'
|
15
|
-
working-directory: examples/rack
|
16
|
-
- run: bundle exec parklife build
|
17
|
-
working-directory: examples/rack
|
18
|
-
- run: test -f build/index.html
|
19
|
-
working-directory: examples/rack
|
20
|
-
|
21
|
-
example_rails:
|
22
|
-
runs-on: ubuntu-latest
|
23
|
-
name: Rails example
|
24
|
-
steps:
|
25
|
-
- uses: actions/checkout@v3
|
26
|
-
- uses: ruby/setup-ruby@v1
|
27
|
-
with:
|
28
|
-
bundler-cache: true
|
29
|
-
ruby-version: '3.2'
|
30
|
-
working-directory: examples/rails
|
31
|
-
- run: bin/static-build
|
32
|
-
working-directory: examples/rails
|
33
|
-
- run: test -f build/index.html
|
34
|
-
working-directory: examples/rails
|
35
|
-
|
36
|
-
example_sinatra:
|
37
|
-
runs-on: ubuntu-latest
|
38
|
-
name: Sinatra example
|
39
|
-
steps:
|
40
|
-
- uses: actions/checkout@v3
|
41
|
-
- uses: ruby/setup-ruby@v1
|
42
|
-
with:
|
43
|
-
bundler-cache: true
|
44
|
-
ruby-version: '2.7'
|
45
|
-
working-directory: examples/sinatra
|
46
|
-
- run: bundle exec parklife build
|
47
|
-
working-directory: examples/sinatra
|
48
|
-
- run: test -f build/index.html
|
49
|
-
working-directory: examples/sinatra
|
50
|
-
|
51
6
|
rspec:
|
52
7
|
runs-on: ubuntu-latest
|
53
8
|
strategy:
|
@@ -57,6 +12,7 @@ jobs:
|
|
57
12
|
- '3.0'
|
58
13
|
- '3.1'
|
59
14
|
- '3.2'
|
15
|
+
- '3.3'
|
60
16
|
name: Ruby ${{ matrix.ruby }} RSpec
|
61
17
|
steps:
|
62
18
|
- uses: actions/checkout@v3
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## Version 0.6.1 - 2024-08-23
|
2
|
+
|
3
|
+
- Don't error when the public directory doesn't exist <https://github.com/benpickles/parklife/pull/105>
|
4
|
+
|
1
5
|
## Version 0.6.0 - 2023-03-26
|
2
6
|
|
3
7
|
- Allow assigning a URI object to config.base <https://github.com/benpickles/parklife/pull/98>
|
@@ -22,7 +22,9 @@ bundle exec rails assets:precompile
|
|
22
22
|
bundle exec parklife build "$@"
|
23
23
|
|
24
24
|
# Copy all public resources to ./build.
|
25
|
-
|
25
|
+
if [ -d public ]; then
|
26
|
+
cp -R public/* build
|
27
|
+
fi
|
26
28
|
|
27
29
|
# List all files in the build (useful for debugging).
|
28
30
|
find build -type f | sort
|
data/lib/parklife/version.rb
CHANGED
data/parklife.gemspec
CHANGED
@@ -11,19 +11,15 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.email = ['spideryoung@gmail.com']
|
12
12
|
|
13
13
|
spec.summary = 'Convert a Rack app into a static HTML site.'
|
14
|
-
spec.homepage = 'https://
|
14
|
+
spec.homepage = 'https://parklife.dev'
|
15
15
|
spec.license = 'MIT'
|
16
|
-
|
17
|
-
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
-
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
-
spec.metadata = {
|
20
|
-
'changelog_uri' => 'https://github.com/benpickles/parklife/blob/main/CHANGELOG.md',
|
21
|
-
'rubygems_mfa_required' => 'true',
|
22
|
-
'source_code_uri' => 'https://github.com/benpickles/parklife',
|
23
|
-
}
|
24
|
-
|
25
16
|
spec.required_ruby_version = '>= 2.5.0'
|
26
17
|
|
18
|
+
spec.metadata['changelog_uri'] = 'https://github.com/benpickles/parklife/blob/main/CHANGELOG.md'
|
19
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
20
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
21
|
+
spec.metadata['source_code_uri'] = 'https://github.com/benpickles/parklife'
|
22
|
+
|
27
23
|
# Specify which files should be added to the gem when it is released.
|
28
24
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
29
25
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parklife
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Pickles
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -60,6 +60,7 @@ executables:
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
+
- ".github/workflows/examples.yml"
|
63
64
|
- ".github/workflows/tests.yml"
|
64
65
|
- ".gitignore"
|
65
66
|
- ".rspec"
|
@@ -89,11 +90,12 @@ files:
|
|
89
90
|
- lib/parklife/utils.rb
|
90
91
|
- lib/parklife/version.rb
|
91
92
|
- parklife.gemspec
|
92
|
-
homepage: https://
|
93
|
+
homepage: https://parklife.dev
|
93
94
|
licenses:
|
94
95
|
- MIT
|
95
96
|
metadata:
|
96
97
|
changelog_uri: https://github.com/benpickles/parklife/blob/main/CHANGELOG.md
|
98
|
+
homepage_uri: https://parklife.dev
|
97
99
|
rubygems_mfa_required: 'true'
|
98
100
|
source_code_uri: https://github.com/benpickles/parklife
|
99
101
|
post_install_message:
|
@@ -111,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
113
|
- !ruby/object:Gem::Version
|
112
114
|
version: '0'
|
113
115
|
requirements: []
|
114
|
-
rubygems_version: 3.
|
116
|
+
rubygems_version: 3.5.17
|
115
117
|
signing_key:
|
116
118
|
specification_version: 4
|
117
119
|
summary: Convert a Rack app into a static HTML site.
|