moj_components 0.1.0 → 0.2.1
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 +12 -1
- data/README.md +12 -5
- data/lib/moj_component/version.rb +1 -1
- data/lib/moj_components.rb +2 -0
- data/{moj-components.gemspec → moj_components.gemspec} +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1e39b172772b1c6ec28043054bee49f2699d2aeeca2c55f05d8e271642db597f
|
|
4
|
+
data.tar.gz: 01e53ab486c36ae93e1ec7342390b7b932b8880bf9813cd6a5db79ed55dbad2a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8630148e33ceae42fc5f02a3845fb1c3d931e380cfc7e7df4cbd8d2dad4a589fc152023524fbed5837051fed7e1c1fea30e36f16dce455182ab8f364c78facf8
|
|
7
|
+
data.tar.gz: dc6124778dd7da6bb302165461d31ac1168c243d0884891b727a3175f08f93758ec5f82cdb179c62405be0e448f815f2ab4c07b48532d481e53cb91ea6cc6d5c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
-
## [0.1
|
|
3
|
+
## [0.2.1] - 2026-07-21
|
|
4
|
+
|
|
5
|
+
- Update workflow so that release.yml will be triggered
|
|
6
|
+
|
|
7
|
+
## [0.2.0] - 2026-07-21
|
|
8
|
+
|
|
9
|
+
- Rename gemspec file to match name of gem
|
|
10
|
+
- Drop support for ruby v3.2 as it is EOL
|
|
11
|
+
- Pin github actions to specific versions and add to dependabot
|
|
12
|
+
- Update Ruby to 4.0.6
|
|
13
|
+
|
|
14
|
+
## [0.1.0] - 2026-07-07
|
|
4
15
|
|
|
5
16
|
- 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
|
|
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
|
|
16
|
+
gem install moj_components
|
|
19
17
|
```
|
|
20
18
|
|
|
21
19
|
Install frontend packages that are used by moj-components:
|
|
@@ -40,12 +38,21 @@ 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
|
|
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
|
|
|
47
|
+
### Ruby versions in this repo
|
|
48
|
+
|
|
49
|
+
- Local gem development uses the version in .ruby-version (currently 3.3.11).
|
|
50
|
+
- The minimum supported Ruby version for consumers is defined in moj_components.gemspec.
|
|
51
|
+
- The dummy Lookbook app deploy/runtime is defined separately in spec/dummy/dockerfile (currently Ruby 4.0.6).
|
|
52
|
+
- CI checks both paths:
|
|
53
|
+
- compatibility across supported Ruby versions for the gem
|
|
54
|
+
- production-style runtime smoke checks for the dummy app/Lookbook
|
|
55
|
+
|
|
49
56
|
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).
|
|
50
57
|
|
|
51
58
|
## Contributing
|
data/lib/moj_components.rb
CHANGED
|
@@ -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.
|
|
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
|
|
4
|
+
version: 0.2.1
|
|
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
|
-
-
|
|
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.
|
|
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.
|
|
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: []
|