design_system 0.8.0 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2df0ff381525e15513457d76f8d2a44852ee4e64fcca301ae96cdbfb207a98fc
4
- data.tar.gz: 2a8c01fee4df51855a47a996f1061132f01335e7df72fe9911867a4c5f01a668
3
+ metadata.gz: 478d3c38c6d1dd43f4b5ed7e9544d7ae6d9bbea41a8384620eb0ccfd0fd96a70
4
+ data.tar.gz: bc749e01626f266e808870de95898c3ba85bc735966b6c985e6c500f5d7aa7c2
5
5
  SHA512:
6
- metadata.gz: fabfc45353d5c2148d201e98464277692146da0eecc46417aa7ad2ff46719fe00030823746cbeecbf63021702a85d5aafddfa12e267d671e8b3b786f4cd21a97
7
- data.tar.gz: aa747e752e7f645c15c4dcd62c18005a0144a1530ddb16b99b2aeb1208d7f816c7dec27fedc4fd85acf975c14d76fe9da8b94a0d76c5879a481ec7208dc10bdb
6
+ metadata.gz: 50b126c593d06eb5d52572b6c01e9f5c6337784fa905175e8704c0f9250a283a66a8a076914b0b72a7f20c2f6c1171732a09a34197544177255b4838d04c68e7
7
+ data.tar.gz: e065b64424239c5bed9f7e1c500ebafc5708a7f7fb4e7e368bee7304e650115a95c3afdd1794793cf2173b18cb456101c9c827f804e5fce9316369b66bab6745
data/Rakefile CHANGED
@@ -15,6 +15,11 @@ class JsBuilder
15
15
  def self.build(watch: false)
16
16
  require 'fileutils'
17
17
 
18
+ sh 'npm install'
19
+
20
+ # Remove all old builds
21
+ FileUtils.rm_rf(Dir.glob('public/design_system/static/design_system-*'))
22
+
18
23
  output_dir = "public/design_system/static/design_system-#{DesignSystem::VERSION}"
19
24
  mkdir_p(output_dir)
20
25
 
@@ -45,3 +50,15 @@ namespace :js do
45
50
  JsBuilder.build(watch: true)
46
51
  end
47
52
  end
53
+
54
+ desc 'Deploy the gem to RubyGems.org'
55
+ task :deploy_to_rubygems do
56
+ # Raise an error if the static files are not built
57
+ unless Dir.exist?("public/design_system/static/design_system-#{DesignSystem::VERSION}")
58
+ raise "Static files not built. Please run `rake js:build` before deploying."
59
+ end
60
+
61
+ sh 'gem build'
62
+
63
+ sh "gem push design_system-#{DesignSystem::VERSION}.gem"
64
+ end
@@ -1,3 +1,3 @@
1
1
  module DesignSystem
2
- VERSION = '0.8.0'.freeze
2
+ VERSION = '0.8.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: design_system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filis Liu
@@ -446,7 +446,7 @@ files:
446
446
  - lib/tasks/design_system_tasks.rake
447
447
  - lib/tasks/govuk.rake
448
448
  - lib/tasks/nhsuk.rake
449
- - public/design_system/static/design_system-0.7.0/design_system.js
449
+ - public/design_system/static/design_system-0.8.1/design_system.js
450
450
  - public/design_system/static/govuk-frontend-5.11.1/fonts/bold-affa96571d-v2.woff
451
451
  - public/design_system/static/govuk-frontend-5.11.1/fonts/bold-b542beb274-v2.woff2
452
452
  - public/design_system/static/govuk-frontend-5.11.1/fonts/light-94a07e06a1-v2.woff2
@@ -509,7 +509,7 @@ metadata:
509
509
  allowed_push_host: https://rubygems.org
510
510
  homepage_uri: https://github.com/HealthDataInsight/design_system
511
511
  source_code_uri: https://github.com/HealthDataInsight/design_system
512
- changelog_uri: https://github.com/HealthDataInsight/design_system/CHANGELOG.md
512
+ changelog_uri: https://github.com/HealthDataInsight/design_system/blob/main/CHANGELOG.md
513
513
  rubygems_mfa_required: 'true'
514
514
  post_install_message:
515
515
  rdoc_options: []