comfortable_media_surfer 3.1.5 → 3.1.7
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/claude-code-review.yml +44 -0
- data/.github/workflows/claude.yml +50 -0
- data/CHANGELOG.md +27 -1
- data/Gemfile +1 -1
- data/app/models/comfy/cms/page.rb +1 -1
- data/lib/comfortable_media_surfer/content/tags/date.rb +1 -1
- data/lib/comfortable_media_surfer/content/tags/datetime.rb +1 -1
- data/lib/comfortable_media_surfer/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 82cc04ded1ab45ebaee87c076559b1cbb153f05b61b9f6f09a256990aba5e0e1
|
|
4
|
+
data.tar.gz: 00b4dfc432bc3e02a0a29e3073744855cb87d875f011fb3877b57ba533c73eec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb3349e9bae97d3f418900a6279b75962aa0954be578b5cade8c1f6a0d4e1a9931f84a04fba491822d4c6be07cce4964a6878f2513b55a06d0f8f49f38b5c7b1
|
|
7
|
+
data.tar.gz: 2cff7d5ffd2ed5df84fa154ebe2bcf8f4cf98d15b4012b5af2891f4842783cdff8a4bee5651b7819cb2991be33fb0c79f1955ef5f6b9e0b71bd5af11c1d9f1ba
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Claude Code Review
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, synchronize, ready_for_review, reopened]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
claude-review:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
pull-requests: write
|
|
13
|
+
issues: write
|
|
14
|
+
id-token: write
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout repository
|
|
18
|
+
uses: actions/checkout@v6
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 1
|
|
21
|
+
|
|
22
|
+
- name: Run Claude Code Review
|
|
23
|
+
id: claude-review
|
|
24
|
+
uses: anthropics/claude-code-action@v1
|
|
25
|
+
with:
|
|
26
|
+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
|
27
|
+
prompt: |
|
|
28
|
+
REPO: ${{ github.repository }}
|
|
29
|
+
PR NUMBER: ${{ github.event.pull_request.number }}
|
|
30
|
+
|
|
31
|
+
Please review this pull request with a focus on:
|
|
32
|
+
- Code quality and best practices
|
|
33
|
+
- Potential bugs or issues
|
|
34
|
+
- Security implications
|
|
35
|
+
- Performance considerations
|
|
36
|
+
|
|
37
|
+
Note: The PR branch is already checked out in the current working directory.
|
|
38
|
+
|
|
39
|
+
Use `gh pr comment` for top-level feedback.
|
|
40
|
+
Use `mcp__github_inline_comment__create_inline_comment` to highlight specific code issues.
|
|
41
|
+
Only post GitHub comments - don't submit review text as messages.
|
|
42
|
+
|
|
43
|
+
claude_args: |
|
|
44
|
+
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: Claude Code
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
issue_comment:
|
|
5
|
+
types: [created]
|
|
6
|
+
pull_request_review_comment:
|
|
7
|
+
types: [created]
|
|
8
|
+
issues:
|
|
9
|
+
types: [opened, assigned]
|
|
10
|
+
pull_request_review:
|
|
11
|
+
types: [submitted]
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
claude:
|
|
15
|
+
if: |
|
|
16
|
+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
|
|
17
|
+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
|
|
18
|
+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
|
|
19
|
+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
permissions:
|
|
22
|
+
contents: read
|
|
23
|
+
pull-requests: read
|
|
24
|
+
issues: read
|
|
25
|
+
id-token: write
|
|
26
|
+
actions: read # Required for Claude to read CI results on PRs
|
|
27
|
+
steps:
|
|
28
|
+
- name: Checkout repository
|
|
29
|
+
uses: actions/checkout@v4
|
|
30
|
+
with:
|
|
31
|
+
fetch-depth: 1
|
|
32
|
+
|
|
33
|
+
- name: Run Claude Code
|
|
34
|
+
id: claude
|
|
35
|
+
uses: anthropics/claude-code-action@v1
|
|
36
|
+
with:
|
|
37
|
+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
|
38
|
+
|
|
39
|
+
# This is an optional setting that allows Claude to read CI results on PRs
|
|
40
|
+
additional_permissions: |
|
|
41
|
+
actions: read
|
|
42
|
+
|
|
43
|
+
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
|
|
44
|
+
# prompt: 'Update the pull request description to include a summary of changes.'
|
|
45
|
+
|
|
46
|
+
# Optional: Add claude_args to customize behavior and configuration
|
|
47
|
+
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
|
|
48
|
+
# or https://code.claude.com/docs/en/cli-reference for available options
|
|
49
|
+
# claude_args: '--allowed-tools Bash(gh pr:*)'
|
|
50
|
+
|
data/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,30 @@ For all changes prior to the inception of this project, see the [Release History
|
|
|
12
12
|
|
|
13
13
|
## [Unreleased]
|
|
14
14
|
|
|
15
|
+
## [v3.1.6] - 2026-02-19
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Claude code workflow
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- problem creating root/home page from [P5 45](https://github.com/shakacode/comfortable-media-surfer/pull/45)
|
|
24
|
+
|
|
25
|
+
## [v3.1.5] - 2026-01-08
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- Rails 8.1 compatibility
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- Strip possible spaces around exclude page slugs, from [PR 42](https://github.com/shakacode/comfortable-media-surfer/pull/42)
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- gem updates for propshaft, brakeman, rubocop, haml-rails
|
|
38
|
+
|
|
15
39
|
## [v3.1.4] - 2025-07-14
|
|
16
40
|
|
|
17
41
|
### Fixed
|
|
@@ -101,7 +125,9 @@ First release of `comfortable_media_surfer`. This new gem is a revival of [Comfo
|
|
|
101
125
|
|
|
102
126
|
- Rebranded **ComfortableMexicanSofa** as **ComfortableMediaSurfer** in order to publish new gem (database table names and schema have not changed).
|
|
103
127
|
|
|
104
|
-
[Unreleased]: https://github.com/shakacode/comfortable-media-surfer/compare/v3.1.
|
|
128
|
+
[Unreleased]: https://github.com/shakacode/comfortable-media-surfer/compare/v3.1.6...master
|
|
129
|
+
[v3.1.6]: https://github.com/shakacode/comfortable-media-surfer/compare/v3.1.5...v3.1.6
|
|
130
|
+
[v3.1.5]: https://github.com/shakacode/comfortable-media-surfer/compare/v3.1.4...v3.1.5
|
|
105
131
|
[v3.1.4]: https://github.com/shakacode/comfortable-media-surfer/compare/v3.1.3...v3.1.4
|
|
106
132
|
[v3.1.3]: https://github.com/shakacode/comfortable-media-surfer/compare/v3.1.2...v3.1.3
|
|
107
133
|
[v3.1.2]: https://github.com/shakacode/comfortable-media-surfer/compare/v3.1.1...v3.1.2
|
data/Gemfile
CHANGED
|
@@ -36,7 +36,7 @@ group :test do
|
|
|
36
36
|
gem 'ostruct'
|
|
37
37
|
gem 'puma'
|
|
38
38
|
gem 'rails-controller-testing', '~> 1.0.5'
|
|
39
|
-
gem 'rubocop', '~> 1.
|
|
39
|
+
gem 'rubocop', '~> 1.84.0', require: false
|
|
40
40
|
gem 'rubocop-minitest'
|
|
41
41
|
gem 'rubocop-rails'
|
|
42
42
|
gem 'simplecov', '~> 0.22.0', require: false
|
|
@@ -36,7 +36,7 @@ class Comfy::Cms::Page < ActiveRecord::Base
|
|
|
36
36
|
presence: true,
|
|
37
37
|
uniqueness: { scope: :parent_id },
|
|
38
38
|
unless: ->(p) {
|
|
39
|
-
p.site && (p.site.pages.
|
|
39
|
+
p.site && (!p.site.pages.exists? || p.site.pages.root == self)
|
|
40
40
|
}
|
|
41
41
|
validate :validate_target_page
|
|
42
42
|
validate :validate_format_of_unescaped_slug
|
|
@@ -7,7 +7,7 @@ class ComfortableMediaSurfer::Content::Tags::Date < ComfortableMediaSurfer::Cont
|
|
|
7
7
|
def form_field(object_name, view, index)
|
|
8
8
|
name = "#{object_name}[fragments_attributes][#{index}][datetime]"
|
|
9
9
|
options = { id: form_field_id, class: 'form-control', data: { 'cms-date' => true } }
|
|
10
|
-
value = content.present? ? content.
|
|
10
|
+
value = content.present? ? content.to_fs(:db) : ''
|
|
11
11
|
input = view.send(:text_field_tag, name, value, options)
|
|
12
12
|
|
|
13
13
|
yield input
|
|
@@ -30,7 +30,7 @@ class ComfortableMediaSurfer::Content::Tags::Datetime < ComfortableMediaSurfer::
|
|
|
30
30
|
def form_field(object_name, view, index)
|
|
31
31
|
name = "#{object_name}[fragments_attributes][#{index}][datetime]"
|
|
32
32
|
options = { id: form_field_id, class: 'form-control', data: { 'cms-datetime' => true } }
|
|
33
|
-
value = content.present? ? content.
|
|
33
|
+
value = content.present? ? content.to_fs(:db) : ''
|
|
34
34
|
input = view.send(:text_field_tag, name, value, options)
|
|
35
35
|
|
|
36
36
|
yield input
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: comfortable_media_surfer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.
|
|
4
|
+
version: 3.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Oleg Khabarov
|
|
@@ -211,6 +211,8 @@ files:
|
|
|
211
211
|
- ".github/dependabot.yml"
|
|
212
212
|
- ".github/issue_template.md"
|
|
213
213
|
- ".github/pull_request_template.md"
|
|
214
|
+
- ".github/workflows/claude-code-review.yml"
|
|
215
|
+
- ".github/workflows/claude.yml"
|
|
214
216
|
- ".github/workflows/coveralls.yml"
|
|
215
217
|
- ".github/workflows/rubyonrails.yml"
|
|
216
218
|
- ".gitignore"
|