sitespec 1.2.1 → 1.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 077e20d274bf51c797cec0b75f2f730611987c94
4
- data.tar.gz: 5cded99d5edbd043d82892e6dbf5392722cddb5b
2
+ SHA256:
3
+ metadata.gz: 98f56962c81e12a637ef65dacf37619753999749367aa0892743d1b9ec210c4a
4
+ data.tar.gz: 94e6153ed164155f2d0df4e163c947df983963a53c335ea7aad95e886bcce329
5
5
  SHA512:
6
- metadata.gz: 98f3c3a1697281f1342218eee566c520a0f8f178461e2ae42cc0d0013b48a1fd64331dc3a4aef154b6ba27133b3200fd2ee4a0a5e73375baf4fa031378f4dbfb
7
- data.tar.gz: 2412cb9e37e49ed010b427778f3f157fb835d10f111c9c62f19a090825d67980e9f5b609061f36c06c25ee1b98d04a7cde5cc98e64f7d95ff98388ef3f150af1
6
+ metadata.gz: 8df0c3e6edf44a6a87beee921ffd9f119fbfeaff51d9f8d652c3e65e1638929d18cbf496cbdd3c2713b0dff23a127726bdf9b37b11a72a49e027b6495cc409ee
7
+ data.tar.gz: 9c8ef831ee773bae021b41343e989a84379266608819729824f3031eadc79d76b06cf6f6018a6edb5dd9deb84e413d2cf86202ef40041a915fcaa96ac435604f
@@ -0,0 +1,23 @@
1
+ changelog:
2
+ categories:
3
+ - title: Added
4
+ labels:
5
+ - add
6
+ - title: Changed
7
+ labels:
8
+ - change
9
+ - title: Deprecated
10
+ labels:
11
+ - deprecate
12
+ - title: Fixed
13
+ labels:
14
+ - fix
15
+ - title: Removed
16
+ labels:
17
+ - remove
18
+ - title: Security
19
+ labels:
20
+ - security
21
+ - title: Others
22
+ labels:
23
+ - "*"
@@ -0,0 +1,37 @@
1
+ # This file is machine-generated by `gh actions-lock`.
2
+ # Do not edit by hand; run `gh actions-lock` to update.
3
+ # Docs: https://gh.io/actions-lockfile
4
+ version: 'v0.0.3'
5
+ workflows:
6
+ '.github/workflows/bump-request.yml':
7
+ - 'actions/checkout@v7.0.1'
8
+ - 'r7kamura/bump-request@v0.7.1'
9
+ - 'ruby/setup-ruby@v1.336.0'
10
+ '.github/workflows/release.yml': []
11
+ '.github/workflows/test.yml':
12
+ - 'actions/checkout@v7.0.1'
13
+ - 'ruby/setup-ruby@v1.336.0'
14
+ dependencies:
15
+ 'actions/checkout@v7.0.1':
16
+ ref: 'v7.0.1'
17
+ commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
18
+ owner_id: 44036562
19
+ repo_id: 197814629
20
+ 'actions/setup-node@v7.1.0':
21
+ ref: 'v7.1.0'
22
+ commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1'
23
+ owner_id: 44036562
24
+ repo_id: 189476904
25
+ 'r7kamura/bump-request@v0.7.1':
26
+ ref: 'v0.7.1'
27
+ commit: 'sha1-b27937188d404bc0c2fd442403e6de1d20f9b349'
28
+ owner_id: 111689
29
+ repo_id: 533135195
30
+ uses:
31
+ - 'actions/checkout@v7.0.1'
32
+ - 'actions/setup-node@v7.1.0'
33
+ 'ruby/setup-ruby@v1.336.0':
34
+ ref: 'v1.336.0'
35
+ commit: 'sha1-de492cf36cbab201753d720ce4f4e336cd688c94'
36
+ owner_id: 210414
37
+ repo_id: 231208785
@@ -0,0 +1,26 @@
1
+ name: bump-request
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: Version to change to.
8
+ required: true
9
+ type: string
10
+
11
+ jobs:
12
+ run:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v7.0.1
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1.336.0
18
+ with:
19
+ ruby-version: 3.3
20
+ bundler-cache: true
21
+ - uses: r7kamura/bump-request@v0.7.1
22
+ with:
23
+ command: |
24
+ sed -i -r 's/([0-9]+\.[0-9]+\.[0-9]+)/${{ inputs.version }}/' lib/*/version.rb
25
+ bundle install
26
+ version: ${{ inputs.version }}
@@ -0,0 +1,11 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ release:
10
+ uses: r7kamura/workflows/.github/workflows/gem-release.yml@main
11
+ if: github.repository_owner == 'r7kamura'
@@ -0,0 +1,24 @@
1
+ name: test
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - main
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby:
15
+ - '3.3'
16
+ - '3.4'
17
+ - '4.0'
18
+ steps:
19
+ - uses: actions/checkout@v7.0.1
20
+ - uses: ruby/setup-ruby@v1.336.0
21
+ with:
22
+ ruby-version: ${{ matrix.ruby }}
23
+ bundler-cache: true
24
+ - run: bundle exec rake
data/Rakefile CHANGED
@@ -1 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -1,3 +1,3 @@
1
1
  module Sitespec
2
- VERSION = "1.2.1"
2
+ VERSION = "1.3.0"
3
3
  end
data/sitespec.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
15
15
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
16
16
  spec.require_paths = ["lib"]
17
- spec.required_ruby_version = ">= 2.0.0"
17
+ spec.required_ruby_version = ">= 3.3"
18
18
 
19
19
  spec.add_dependency "rack-test"
20
20
  spec.add_dependency "rspec", ">= 3.0.0"
@@ -15,7 +15,8 @@ module Sitespec
15
15
  disable :logging
16
16
 
17
17
  get "/stylesheets/all.css" do
18
- scss :all
18
+ content_type :css
19
+ render :scss, :all, layout: false
19
20
  end
20
21
 
21
22
  get "/" do
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sitespec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2015-08-18 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rack-test
@@ -136,15 +135,18 @@ dependencies:
136
135
  - - ">="
137
136
  - !ruby/object:Gem::Version
138
137
  version: '0'
139
- description:
140
138
  email:
141
139
  - r7kamura@gmail.com
142
140
  executables: []
143
141
  extensions: []
144
142
  extra_rdoc_files: []
145
143
  files:
144
+ - ".github/release.yml"
145
+ - ".github/workflows/actions.lock"
146
+ - ".github/workflows/bump-request.yml"
147
+ - ".github/workflows/release.yml"
148
+ - ".github/workflows/test.yml"
146
149
  - ".gitignore"
147
- - CHANGELOG.md
148
150
  - Gemfile
149
151
  - LICENSE.txt
150
152
  - README.md
@@ -168,7 +170,6 @@ homepage: https://github.com/r7kamura/sitespec
168
170
  licenses:
169
171
  - MIT
170
172
  metadata: {}
171
- post_install_message:
172
173
  rdoc_options: []
173
174
  require_paths:
174
175
  - lib
@@ -176,16 +177,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
177
  requirements:
177
178
  - - ">="
178
179
  - !ruby/object:Gem::Version
179
- version: 2.0.0
180
+ version: '3.3'
180
181
  required_rubygems_version: !ruby/object:Gem::Requirement
181
182
  requirements:
182
183
  - - ">="
183
184
  - !ruby/object:Gem::Version
184
185
  version: '0'
185
186
  requirements: []
186
- rubyforge_project:
187
- rubygems_version: 2.4.5
188
- signing_key:
187
+ rubygems_version: 4.0.20
189
188
  specification_version: 4
190
189
  summary: Generate static site from your rack application & test files
191
190
  test_files:
@@ -198,4 +197,3 @@ test_files:
198
197
  - spec/support/application/views/index.slim
199
198
  - spec/support/application/views/layouts/application.slim
200
199
  - spec/support/application/views/show.slim
201
- has_rdoc:
data/CHANGELOG.md DELETED
@@ -1,27 +0,0 @@
1
- ## 1.2.1
2
- - Use request.path_info instead of request.path
3
-
4
- ## 1.2.0
5
- - Allow users to generate index.html by putting trailing slash
6
-
7
- ## 1.1.0
8
- - Add auto_complete_html_path configuration (default: true)
9
-
10
- ## 1.0.0
11
- - Renewal with Ruby 2, RSpec 3, and rack-test
12
-
13
- ## 0.0.5
14
- - Fix dependent RSpec version
15
-
16
- ## 0.0.4
17
- - Support Ruby 1.9.x
18
-
19
- ## 0.0.3
20
- - Fix rspec gem dependency
21
-
22
- ## 0.0.2
23
- - Pretty RSpec formatter
24
-
25
- ## 0.0.1
26
- - Basic features to generate files from request spec
27
- - The 1st release on 2013-11-15