activeadmin_mitosis_editor 0.1.0 → 0.1.8
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/CHANGELOG.md +49 -4
- data/README.md +1 -0
- data/RELEASE.md +52 -33
- data/activeadmin_mitosis_editor.gemspec +2 -0
- data/lib/activeadmin_mitosis_editor/railtie.rb +28 -3
- data/lib/activeadmin_mitosis_editor/version.rb +1 -1
- data/lib/generators/mitosis_editor/styles_generator.rb +2 -2
- data/package.json +13 -0
- data/pnpm-lock.yaml +1407 -0
- data/script/sync-version +21 -0
- metadata +10 -7
- data/script/bump-version +0 -78
- /data/vendor/assets/stylesheets/{theme-dark.min.css → theme-dark.css} +0 -0
- /data/vendor/assets/stylesheets/{theme-light.min.css → theme-light.css} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f2efd71213b6c8163dbcbf60cf9f54f9b85b6d841d9003209a0436d08a6d1afd
|
|
4
|
+
data.tar.gz: 121234a5372e8eeb40bcefce3223e0b5ee35dca663f6a7d416019eed2d5ef6e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9cba0e266e33829f878df630f1189bddd1abcd60e6336057a4a480fc257e005b8aadd2ff6f7eab84272a3c7099fe6e3314cbf578f54c82899790dd9308e7f26f
|
|
7
|
+
data.tar.gz: a1c5612eb6232a16c2d06088f8cf850ed2650450af26fc28dbfe5091c071fecb88ead167c09be9633d2ab0718d01c07a5d04fb62bc7ad39e34b38177c4fe9840
|
data/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,56 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
|
+
### [0.1.8](https://github.com/codxse/mitosis-active-admin/compare/v0.1.5...v0.1.8) (2026-02-17)
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* fix CI release 1 ([bc04724](https://github.com/codxse/mitosis-active-admin/commit/bc04724a3e30670b8eeebe6c7194ab92e8fbf6f0))
|
|
11
|
+
* fix initializer ([357760d](https://github.com/codxse/mitosis-active-admin/commit/357760dbcb16dcc12a5cde5c56b6c491a89db834))
|
|
12
|
+
* test release workflow ([b4810b7](https://github.com/codxse/mitosis-active-admin/commit/b4810b7fae54bda9637082772035d10e4f4bd838))
|
|
13
|
+
|
|
14
|
+
### [0.1.7](https://github.com/codxse/mitosis-active-admin/compare/v0.1.5...v0.1.7) (2026-02-17)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* test release workflow ([b4810b7](https://github.com/codxse/mitosis-active-admin/commit/b4810b7fae54bda9637082772035d10e4f4bd838))
|
|
20
|
+
|
|
21
|
+
### [0.1.6](https://github.com/codxse/mitosis-active-admin/compare/v0.1.5...v0.1.6) (2026-02-17)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* test release workflow ([b4810b7](https://github.com/codxse/mitosis-active-admin/commit/b4810b7fae54bda9637082772035d10e4f4bd838))
|
|
27
|
+
|
|
28
|
+
### [0.1.5](https://github.com/codxse/mitosis-active-admin/compare/v0.1.4...v0.1.5) (2026-02-17)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* fix initializer ([357760d](https://github.com/codxse/mitosis-active-admin/commit/357760dbcb16dcc12a5cde5c56b6c491a89db834))
|
|
34
|
+
|
|
35
|
+
## [0.1.5] - 2026-02-17
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
-
|
|
39
|
+
|
|
40
|
+
## [0.1.4] - 2026-02-17
|
|
41
|
+
|
|
42
|
+
### Added
|
|
43
|
+
-
|
|
44
|
+
|
|
45
|
+
## [0.1.3] - 2026-02-17
|
|
46
|
+
|
|
47
|
+
### Added
|
|
48
|
+
-
|
|
49
|
+
|
|
50
|
+
## [0.1.1] - 2026-02-17
|
|
51
|
+
|
|
52
|
+
### Added
|
|
53
|
+
-
|
|
9
54
|
|
|
10
55
|
## [0.1.0] - 2025-02-15
|
|
11
56
|
|
data/README.md
CHANGED
data/RELEASE.md
CHANGED
|
@@ -4,39 +4,65 @@ This document describes how to release new versions of the gem.
|
|
|
4
4
|
|
|
5
5
|
## Version Bumping
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The project uses [standard-version](https://github.com/conventional-changelog/standard-version) to automate versioning and changelog generation based on [conventional commits](https://www.conventionalcommits.org/).
|
|
8
|
+
|
|
9
|
+
### Commit Message Format
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
<type>(<scope>): <description>
|
|
13
|
+
|
|
14
|
+
[optional body]
|
|
15
|
+
|
|
16
|
+
[optional footer(s)]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Types:**
|
|
20
|
+
- `feat:` → minor version bump
|
|
21
|
+
- `fix:` → patch version bump
|
|
22
|
+
- `feat!:` or `BREAKING CHANGE:` → major version bump
|
|
23
|
+
- `chore:`, `docs:`, `refactor:`, etc. → no version bump
|
|
24
|
+
|
|
25
|
+
### Release Process
|
|
8
26
|
|
|
9
27
|
```bash
|
|
10
|
-
|
|
28
|
+
# Make your changes and commit them
|
|
29
|
+
git commit -m "fix: resolve editor initialization issue"
|
|
30
|
+
git commit -m "feat: add dark theme support"
|
|
31
|
+
|
|
32
|
+
# Run standard-version to bump version, generate changelog, and create tag
|
|
33
|
+
npx standard-version
|
|
11
34
|
```
|
|
12
35
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
36
|
+
This will:
|
|
37
|
+
1. Analyze commits since last tag
|
|
38
|
+
2. Determine bump type (major/minor/patch)
|
|
39
|
+
3. Update `package.json` version
|
|
40
|
+
4. Generate CHANGELOG entries from commits
|
|
41
|
+
5. Sync version to Ruby (`lib/activeadmin_mitosis_editor/version.rb`)
|
|
42
|
+
6. Create a git tag (e.g., v0.1.8)
|
|
17
43
|
|
|
18
|
-
|
|
44
|
+
### Publish to RubyGems
|
|
19
45
|
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
ruby script/bump-version patch
|
|
23
|
-
```
|
|
46
|
+
After running standard-version:
|
|
24
47
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
```
|
|
48
|
+
```bash
|
|
49
|
+
# Push commits and tags
|
|
50
|
+
git push --follow-tags origin master
|
|
29
51
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
52
|
+
# Build and publish the gem
|
|
53
|
+
gem build *.gemspec
|
|
54
|
+
gem push activeadmin_mitosis_editor-X.X.X.gem
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Manual Release
|
|
34
58
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
59
|
+
If you need manual control over versioning:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# Specify the version type explicitly
|
|
63
|
+
npx standard-version --release-as minor
|
|
64
|
+
npx standard-version --release-as 2.0.0
|
|
65
|
+
```
|
|
40
66
|
|
|
41
67
|
## GitHub Actions Release
|
|
42
68
|
|
|
@@ -63,18 +89,11 @@ You can manually trigger a release from the GitHub Actions UI:
|
|
|
63
89
|
|
|
64
90
|
## Requirements
|
|
65
91
|
|
|
92
|
+
- Node.js 18+ (for standard-version)
|
|
66
93
|
- Ruby 3.3+
|
|
67
94
|
- RubyGems account with API key
|
|
68
95
|
- `RUBYGEMS_API_KEY` secret in GitHub repository settings
|
|
69
96
|
|
|
70
97
|
## CHANGELOG
|
|
71
98
|
|
|
72
|
-
The CHANGELOG.md
|
|
73
|
-
|
|
74
|
-
When bumping version, add entries under `## [Unreleased]` with appropriate change type:
|
|
75
|
-
- `### Added` - new features
|
|
76
|
-
- `### Changed` - changes to existing functionality
|
|
77
|
-
- `### Deprecated` - soon-to-be removed features
|
|
78
|
-
- `### Removed` - removed features
|
|
79
|
-
- `### Fixed` - bug fixes
|
|
80
|
-
- `### Security` - security fixes
|
|
99
|
+
The CHANGELOG.md is automatically generated by standard-version based on conventional commits. See [Keep a Changelog](https://keepachangelog.com/) for format details.
|
|
@@ -8,6 +8,8 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
spec.summary = "A split-view markdown editor input for ActiveAdmin"
|
|
9
9
|
spec.description = "Wraps mitosis-js as a custom input for ActiveAdmin forms"
|
|
10
10
|
spec.license = "MIT"
|
|
11
|
+
spec.homepage = "https://github.com/codxse/mitosis-active-admin"
|
|
12
|
+
spec.metadata["source_code_uri"] = "https://github.com/codxse/mitosis-active-admin"
|
|
11
13
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|\.git)}) }
|
|
12
14
|
spec.require_paths = ["lib"]
|
|
13
15
|
|
|
@@ -1,7 +1,32 @@
|
|
|
1
1
|
module ActiveAdminMitosisEditor
|
|
2
2
|
class Engine < Rails::Engine
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
#
|
|
3
|
+
# Add gem assets to the asset pipeline
|
|
4
|
+
# App assets take precedence - gem assets are added at the END
|
|
5
|
+
# so Rails finds app's version first (if it exists)
|
|
6
|
+
initializer "activeadmin_mitosis_editor.assets" do
|
|
7
|
+
Rails.application.config.assets.paths <<
|
|
8
|
+
root.join("vendor/assets/stylesheets").to_s
|
|
9
|
+
Rails.application.config.assets.paths <<
|
|
10
|
+
root.join("vendor/assets/javascripts").to_s
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
initializer "activeadmin_mitosis_editor.formtastic_custom_inputs" do
|
|
14
|
+
require "activeadmin_mitosis_editor/inputs/mitosis_editor_input"
|
|
15
|
+
|
|
16
|
+
Formtastic::Inputs.send(:include, Module.new do
|
|
17
|
+
def self.included(base)
|
|
18
|
+
base.extend(ClassMethods)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
module ClassMethods
|
|
22
|
+
def custom_input_class(name, class_name)
|
|
23
|
+
@custom_input_classes ||= {}
|
|
24
|
+
@custom_input_classes[name.to_sym] = class_name
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end)
|
|
28
|
+
|
|
29
|
+
Formtastic::Inputs::MitosisEditorInput = ActiveAdminMitosisEditor::Inputs::MitosisEditorInput
|
|
30
|
+
end
|
|
6
31
|
end
|
|
7
32
|
end
|
|
@@ -9,9 +9,9 @@ module MitosisEditor
|
|
|
9
9
|
def copy_css_files
|
|
10
10
|
copy_file "mitosis-editor.css",
|
|
11
11
|
"app/assets/stylesheets/mitosis-editor.css"
|
|
12
|
-
copy_file "theme-light.
|
|
12
|
+
copy_file "theme-light.css",
|
|
13
13
|
"app/assets/stylesheets/theme-light.css"
|
|
14
|
-
copy_file "theme-dark.
|
|
14
|
+
copy_file "theme-dark.css",
|
|
15
15
|
"app/assets/stylesheets/theme-dark.css"
|
|
16
16
|
end
|
|
17
17
|
|
data/package.json
ADDED