content_block_tools 2.1.0 → 2.2.0

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: 225bb65ced69b2b51cb081edfe13a9c6456747d64d3a1f7b561d58dc2c9aa47c
4
- data.tar.gz: 58a80f5c4111e17f38a2eb1baffa6921fea0f7d405a69180423f5599b8473cc6
3
+ metadata.gz: d95412a3ec737416ecb0d2d974c2f5113d160e43d97ba8f4f506008e02da0112
4
+ data.tar.gz: ce284d219102d4294b4e250eedbce6be8890272bf4cfc850841e389a8e7d72ef
5
5
  SHA512:
6
- metadata.gz: 4b9f52c49ce3fe7ee95fcde5c5973e8c8d76c70dbb740fd4f96e0c6a57806c526f82257c0a88f2b9b58c5d404c3835d3dc756c587d49ef0748d1dc9f9f18e96d
7
- data.tar.gz: 197c2203d07a5bb9b16efe787a60d741b28e81eabd7156e5708d1939b363e6a012fff0cc94e2b34f85c9ae414d37c3df84c107a65e5ddab0b1f21f45d01c8037
6
+ metadata.gz: bc16b47625ee69ed16aec061a8c47c1ec0e6ef4bd5f8bedac6568011c1b0ba8c92094601d0f9283e8ed004ec014662200ea6890c4611cc61eab466050b3143c8
7
+ data.tar.gz: ae98f4e61da8a2c05ab3b3e2c6423daa2049235ec3f436dbf5f4e4ab3008c367556f7d5260a6d68ab8d9bee105efc2441cfd5163f881b4fe70eed6accaa1efda
data/README.md CHANGED
@@ -50,20 +50,6 @@ content_block.render
50
50
 
51
51
  For more information, see the [Documentation](https://www.rubydoc.info/github/alphagov/content_block_tools)
52
52
 
53
- ## Development
54
-
55
- ### Running the test suites
56
-
57
- To run the unit tests:
58
- ```
59
- bundle exec rspec
60
- ```
61
-
62
- To run the feature tests:
63
- ```
64
- bundle exec cucumber
65
- ```
66
-
67
53
  ## License
68
54
 
69
55
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -4,7 +4,7 @@ module ContentBlockTools
4
4
  module Pension
5
5
  class AmountPresenter < BasePresenter
6
6
  def render
7
- "£#{field}"
7
+ field.start_with?("£") ? field : "£#{field}"
8
8
  end
9
9
  end
10
10
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContentBlockTools
4
- VERSION = "2.1.0"
4
+ VERSION = "2.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: content_block_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev