content_pack_rails 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90c33ee64e4e7ea2421576a6823caea245440f67463e81dc48659623b7750b44
4
- data.tar.gz: 0dc6cc0eb064a649dd7202126d84e4bef39e15205846d85d146cf172d266d372
3
+ metadata.gz: 8d7a3eaa15d894f901857b7f1fb609219777a46ab41241de2da90a9c7fcdf6a6
4
+ data.tar.gz: 8da6f119eee95b9fada767afa4d5583940b8d3c0a13cbdfd47fbebb5733964a1
5
5
  SHA512:
6
- metadata.gz: 41e944509a627bc355d91b88e2051171103a5e28cf762397041c513586595a1cd891d9d683e7a23b65b7f9a8822bd146b65d6ba33779dec869e0c1b39bfb55a2
7
- data.tar.gz: cf9b69b15b88bd77824141ebd481545008e53c44997f8061d7818b347572a992670d5f93c9800e8e7e3fcd4b68e192b89de1c23cb1db0febd11a515659854bc1
6
+ metadata.gz: cdfc6cc67ad7bbd8270cfa21b43fccee2cc9b063954bbb9a72312b28f85343fa3d7bbae22c0274eec469a346d258f7f51a7bf907209553197fff7f53998f6104
7
+ data.tar.gz: 0f2a33e6fe84235b7f9bb09201851c78633171fe57d8904526ecc1cc4fe29ad38d768a2d3d474d06cfc27f0d1fbbd17c972fd32cdda5a6df8387d7cc75cde829
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1 (2021-12-08)
4
+
5
+ ### Bug Fixes
6
+
7
+ * make sure getter helpers return instance of ActiveSupport::SafeBuffer
8
+
3
9
  ## 0.2.0 (2021-12-03)
4
10
 
5
11
  ### Features
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.license = "MIT"
11
11
 
12
12
  spec.metadata["source_code_uri"] = spec.homepage
13
- spec.metadata["changelog_uri"] = "https://github.com/a-bohush/content_pack_rails/blob/main/README.md"
13
+ spec.metadata["changelog_uri"] = "https://github.com/a-bohush/content_pack_rails/blob/main/CHANGELOG.md"
14
14
  spec.extra_rdoc_files = ['README.md']
15
15
  # Specify which files should be added to the gem when it is released.
16
16
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -1,3 +1,3 @@
1
1
  module ContentPackRails
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -16,8 +16,8 @@ module ContentPackRails
16
16
  end
17
17
 
18
18
  define_method "provide_#{configs[:pack_name]}" do
19
- instance_variable_get(:"@_#{configs[:pack_name]}_ids").inject("") do |acc, id|
20
- acc.concat(content_for(id))
19
+ instance_variable_get(:"@_#{configs[:pack_name]}_ids").inject(nil) do |acc, id|
20
+ acc ? acc.safe_concat(content_for(id)) : content_for(id)
21
21
  end
22
22
  end
23
23
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: content_pack_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Bohush
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-03 00:00:00.000000000 Z
11
+ date: 2021-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -66,7 +66,7 @@ licenses:
66
66
  - MIT
67
67
  metadata:
68
68
  source_code_uri: https://github.com/a-bohush/content_pack_rails.git
69
- changelog_uri: https://github.com/a-bohush/content_pack_rails/blob/main/README.md
69
+ changelog_uri: https://github.com/a-bohush/content_pack_rails/blob/main/CHANGELOG.md
70
70
  post_install_message:
71
71
  rdoc_options: []
72
72
  require_paths: