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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ad40eae80694ed08d0c1d66cebcaf83a9b143511f59fd60c40267efc080242e
4
- data.tar.gz: d7193e1d92c8c41fefad21f94324c82cacd0679918cac018cb27fc1aaf1d43c5
3
+ metadata.gz: f2efd71213b6c8163dbcbf60cf9f54f9b85b6d841d9003209a0436d08a6d1afd
4
+ data.tar.gz: 121234a5372e8eeb40bcefce3223e0b5ee35dca663f6a7d416019eed2d5ef6e8
5
5
  SHA512:
6
- metadata.gz: 3fd8c21be7f91bb7f0a53f1457d1661badfb563d8e497cf9d6616ce75d7155380ff8e81a6cc5c2cda8149d185e4e63a9a2b656cf6ca7fa4e0e022f11b2d59d78
7
- data.tar.gz: 4b3051769cebe415c0b54ef9ed21267d03cf430e7819d221e79fa298cd308bde7ec074f5866ed033949cc46c1ffd87ddf0acc70af7f010fb6a98fc72c7ee6f7a
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
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
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
- ## [Unreleased]
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
@@ -124,3 +124,4 @@ Bug reports and pull requests are welcome on GitHub.
124
124
  ## License
125
125
 
126
126
  The gem is available as open source under the terms of the MIT License.
127
+ # test
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
- Use the `bump-version` script to bump the version:
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
- ruby script/bump-version [major|minor|patch]
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
- The script auto-detects the bump type from commit messages:
14
- - `feat!:` or `BREAKING` major
15
- - `feat:` minor
16
- - `fix:` → patch (default)
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
- ## Manual Release
44
+ ### Publish to RubyGems
19
45
 
20
- 1. Bump the version:
21
- ```bash
22
- ruby script/bump-version patch
23
- ```
46
+ After running standard-version:
24
47
 
25
- 2. Build the gem:
26
- ```bash
27
- gem build *.gemspec
28
- ```
48
+ ```bash
49
+ # Push commits and tags
50
+ git push --follow-tags origin master
29
51
 
30
- 3. Publish to RubyGems:
31
- ```bash
32
- gem push activeadmin_mitosis_editor-X.X.X.gem
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
- 4. Create a git tag:
36
- ```bash
37
- git tag vX.X.X
38
- git push origin main --tags
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 follows [Keep a Changelog](https://keepachangelog.com/) format.
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
- # Asset paths are not registered via Railtie to avoid conflicts with app-level
4
- # asset overrides. Applications using this gem should copy the bundled assets
5
- # from vendor/assets to their app/assets/stylesheets/mitosis_editor/ directory.
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
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminMitosisEditor
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.8"
3
3
  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.min.css",
12
+ copy_file "theme-light.css",
13
13
  "app/assets/stylesheets/theme-light.css"
14
- copy_file "theme-dark.min.css",
14
+ copy_file "theme-dark.css",
15
15
  "app/assets/stylesheets/theme-dark.css"
16
16
  end
17
17
 
data/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "activeadmin-mitosis-editor",
3
+ "version": "0.1.8",
4
+ "private": true,
5
+ "devDependencies": {
6
+ "standard-version": "^9.5.0"
7
+ },
8
+ "standard-version": {
9
+ "scripts": {
10
+ "postbump": "ruby script/sync-version"
11
+ }
12
+ }
13
+ }