moj_components 0.1.0 → 0.2.2

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: 3e4fa2ecd83966e2960eb688fc362c0a5d4386411185f6a05ce99204f73627d9
4
- data.tar.gz: 052fb7200237ffa688a96f984cfda666b8759b440d3093f13853ec6ab43abdfe
3
+ metadata.gz: a745711c62e209c0963c446b7aad23f4a977925338b5ba74130fd869326a1bb9
4
+ data.tar.gz: 4aa605e6bdcc14faac5656cff6f31315763f9133ac7f77cb0db590f74c5b47a6
5
5
  SHA512:
6
- metadata.gz: 8e84571009022b8d55594fc9a8775699ce2d4933ce756ca13c30980562c879164bf6c4ea40ade434b360df6b67c3e0e401455d9e6e84863413cfc475ef92863c
7
- data.tar.gz: c286639e39e7cf5e462ee45a700fefab5dd9eae50500fc358fe8d139baf12db46fc78d8d564cb1340157f50744250cb980decf09560955aa11acef01cb379218
6
+ metadata.gz: 28697f44d46d9a2cf411d68f121b12c392af9c416370dc8babdf480293a8887e281d75ffbc8db3d2b58fe1bc1b52a891fcac723271df613388dd7701cc8aebe0
7
+ data.tar.gz: c6b3a23aba051c9f369f4f068f388e3ee39c126a2d6e7239c4a7f4128621cb5d0fbce6791964f9e3fa878e05c5d75331dae11fdc8d87df8911274220c5c644a5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2025-11-04
3
+ ## [0.2.2] - 2026-08-05
4
+
5
+ - Update to separate uat and prod deployments
6
+ - Add explicit resources to deployment
7
+
8
+ ## [0.2.1] - 2026-07-21
9
+
10
+ - Update workflow so that release.yml will be triggered
11
+
12
+ ## [0.2.0] - 2026-07-21
13
+
14
+ - Rename gemspec file to match name of gem
15
+ - Drop support for ruby v3.2 as it is EOL
16
+ - Pin github actions to specific versions and add to dependabot
17
+ - Update Ruby to 4.0.6
18
+
19
+ ## [0.1.0] - 2026-07-07
4
20
 
5
21
  - Initial release
data/README.md CHANGED
@@ -4,18 +4,16 @@ This gem provides reusable components for the [MoJ Design System](https://design
4
4
 
5
5
  ## Installation
6
6
 
7
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
8
-
9
7
  Install the gem and add to the application's Gemfile by executing:
10
8
 
11
9
  ```bash
12
- bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
10
+ bundle add moj_components
13
11
  ```
14
12
 
15
13
  If bundler is not being used to manage dependencies, install the gem by executing:
16
14
 
17
15
  ```bash
18
- gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
16
+ gem install moj_components
19
17
  ```
20
18
 
21
19
  Install frontend packages that are used by moj-components:
@@ -40,13 +38,35 @@ You can render components directly in templates using helper methods provided by
40
38
  ) %>
41
39
  ```
42
40
 
43
- More information about each of the components is available here: X
41
+ More [information about each of the components is available here.](https://moj-components-uat.apps.live.cloud-platform.service.justice.gov.uk/)
44
42
 
45
43
  ## Development
46
44
 
47
45
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
48
46
 
49
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
47
+ To install this gem onto your local machine, run `bundle exec rake install`.
48
+
49
+ ### Ruby versions in this repo
50
+
51
+ - Local gem development uses the version in .ruby-version (currently 3.3.11).
52
+ - The minimum supported Ruby version for consumers is defined in moj_components.gemspec.
53
+ - The dummy Lookbook app deploy/runtime is defined separately in spec/dummy/dockerfile (currently Ruby 4.0.6).
54
+ - CI checks both paths:
55
+ - compatibility across supported Ruby versions for the gem
56
+ - production-style runtime smoke checks for the dummy app/Lookbook
57
+
58
+ ## Releasing
59
+
60
+ Release a new version by running the ["Release gem" workflow](https://github.com/ministryofjustice/moj-components/actions/workflows/release.yml) and entering a version in `X.Y.Z` format (for example, `1.0.0`). The workflow creates a release branch and opens a PR to main for this new version.
61
+
62
+ The release PR updates:
63
+
64
+ - lib/moj_component/version.rb
65
+ - CHANGELOG.md
66
+ - Gemfile.lock
67
+ - spec/dummy/Gemfile.lock
68
+
69
+ After the PR is merged, publish.yml runs automatically, creates and pushes the version tag, and publishes the gem to RubyGems.
50
70
 
51
71
  ## Contributing
52
72
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MojComponent
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.2"
5
5
  Version = VERSION
6
6
  end
@@ -2,3 +2,5 @@
2
2
 
3
3
  require "moj_component/version"
4
4
  require "moj_component/railtie" if defined?(Rails::Railtie)
5
+
6
+ MojComponents = MojComponent unless defined?(MojComponents)
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = "This provides view components for implementing the MoJ Design System."
13
13
  spec.homepage = "https://github.com/ministryofjustice/moj-components"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = ">= 3.2.0"
15
+ spec.required_ruby_version = ">= 3.3.0"
16
16
 
17
17
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
18
18
  spec.metadata["homepage_uri"] = spec.homepage
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moj_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ministry of Justice
@@ -61,7 +61,7 @@ files:
61
61
  - lib/moj_component/railtie.rb
62
62
  - lib/moj_component/version.rb
63
63
  - lib/moj_components.rb
64
- - moj-components.gemspec
64
+ - moj_components.gemspec
65
65
  homepage: https://github.com/ministryofjustice/moj-components
66
66
  licenses:
67
67
  - MIT
@@ -78,14 +78,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: 3.2.0
81
+ version: 3.3.0
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
84
  - - ">="
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubygems_version: 4.0.6
88
+ rubygems_version: 4.0.16
89
89
  specification_version: 4
90
90
  summary: MoJ Components library for Ruby on Rails
91
91
  test_files: []