content_block_tools 0.2.1 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72d0cc73cab7bbbf9d8634f8316a8dd14d90cf77192ef85bf8d35f9c66f4e705
4
- data.tar.gz: e46058f351c418d5919b8e0ba6688589797449f5d08defd7247c1adb973fab2a
3
+ metadata.gz: '0096d08b83ee59a496db42789c353d5066bb67fb578e5488f43db2763fc6bb98'
4
+ data.tar.gz: 65f13b4c646f846aabb2fb04df55ea8ae1f9859946dfa547e4be9a9990e166a0
5
5
  SHA512:
6
- metadata.gz: 3594112c9b365a31f6d880569b1ed9ac9b37b9c80afd1292aaf137ab4f153452c9fe0bb2afad9b45ce18cde5720e61eeb21bcd5499e1864bdb029b80144d4eb2
7
- data.tar.gz: 1fd1986efb6f99fff56aca2cc8b25052b31904ab19a468c7f4ba68ca3df8be7e4f7ae1949105785dbc2aa1f2b7e259cece344a220d9030dc1e4b71ee5e608a8c
6
+ metadata.gz: 5bf713af8e94445479cd22a74262c8f83ce15c5c850ce14242a3398c717f8c6a74bcc7eb40ae9c1ea41095d232a03cef9a5d1e9430b6259d243f6e644de67e2a
7
+ data.tar.gz: 3a7f1dc2923151056018c517d2adf8ea9c0be93254b6bf41d3fbb6f9111e46d925afc38f1d934cc5245aede7d827d842c2c5eb70e728fb2c4cdbcef6bec212f4
@@ -6,5 +6,7 @@ on:
6
6
  jobs:
7
7
  autorelease:
8
8
  uses: alphagov/govuk-infrastructure/.github/workflows/autorelease-rubygem.yml@main
9
+ with:
10
+ gem_name: content_block_tools
9
11
  secrets:
10
12
  GH_TOKEN: ${{ secrets.GOVUK_CI_GITHUB_API_TOKEN }}
@@ -40,5 +40,7 @@ jobs:
40
40
  permissions:
41
41
  contents: write
42
42
  uses: alphagov/govuk-infrastructure/.github/workflows/publish-rubygem.yml@main
43
+ with:
44
+ gem_name: content_block_tools
43
45
  secrets:
44
46
  GEM_HOST_API_KEY: ${{ secrets.ALPHAGOV_RUBYGEMS_API_KEY }}
data/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@
7
7
  useful summary for people upgrading their application, not a replication
8
8
  of the commit log.
9
9
 
10
+ ## 0.3.1
11
+
12
+ * Support any Rails version `>= 6` ([#10](https://github.com/alphagov/govuk_content_block_tools/pull/10))
13
+
14
+ ## 0.3.0
15
+
16
+ * Symbolise details hash ([#8](https://github.com/alphagov/content_block_tools/pull/8))
17
+
10
18
  ## 0.2.1
11
19
 
12
20
  * Loosen ActionView dependency ([#7](https://github.com/alphagov/content_block_tools/pull/7))
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "rspec", "3.13.0"
30
30
  spec.add_development_dependency "rubocop-govuk", "5.0.2"
31
31
 
32
- spec.add_dependency "actionview", ">= 6", "< 7.2.2"
32
+ spec.add_dependency "actionview", ">= 6"
33
33
  end
@@ -48,5 +48,9 @@ module ContentBlockTools
48
48
  .fetch(document_type, Presenters::BasePresenter)
49
49
  .new(self).render
50
50
  end
51
+
52
+ def details
53
+ to_h[:details].symbolize_keys
54
+ end
51
55
  end
52
56
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContentBlockTools
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: content_block_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-20 00:00:00.000000000 Z
11
+ date: 2024-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -59,9 +59,6 @@ dependencies:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '6'
62
- - - "<"
63
- - !ruby/object:Gem::Version
64
- version: 7.2.2
65
62
  type: :runtime
66
63
  prerelease: false
67
64
  version_requirements: !ruby/object:Gem::Requirement
@@ -69,9 +66,6 @@ dependencies:
69
66
  - - ">="
70
67
  - !ruby/object:Gem::Version
71
68
  version: '6'
72
- - - "<"
73
- - !ruby/object:Gem::Version
74
- version: 7.2.2
75
69
  description:
76
70
  email:
77
71
  - govuk-dev@digital.cabinet-office.gov.uk