hokipoki 0.8.1 → 0.8.2

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: 442a9a68f04339c19320537ec38cf109012d2d9c779b4f9a4426ec5feb19d927
4
- data.tar.gz: a7a7b96a3f842fd092409e4c6fd721c6a196c89a25f6db32b4173bb99362e600
3
+ metadata.gz: a3e90b9d154db9191acdd7edc681417cc7777b492797a77e72505be3e99e78dc
4
+ data.tar.gz: 05f6175e3485d3ce9f2ba58fd05dc1c8c0ed53fa007ac81f775ee31205347f8b
5
5
  SHA512:
6
- metadata.gz: 38c2e9156e49bb5ab24f053e003b84fc22291032cda88a22d183bb60073e2f5c2943c9c51370c09b11c65e094d43c20a0bada082e69c55ef4c49bc867958e035
7
- data.tar.gz: 369bd8d52c249f864104dae9f2d7657653fca40372d2778889b38503fb72ca70fbeb0a3e8711a44632a5aac98caecb03007ff90d864e17261f0f54280f897ba4
6
+ metadata.gz: dbbcd2354d6ee442d8fbda7a0065692792d8863c8332d7ba88dc389064b9f86ab71a7eb23908059f6c2e06a1ac7f3eb9722273f3f9c44a9d338363b8c6f2590c
7
+ data.tar.gz: 9ec6addf3ee80855af9e12d5ce6e3989d5c396467bac53ebdf51933766994563c64dc3e48570dcdb10e12031ae660ac033b20e83956750dc36d0b68762b1ea2f
@@ -306,15 +306,14 @@ module Hokipoki
306
306
  file_content = File.read(main_config_file)
307
307
 
308
308
  if file_content.include?('Hokipoki.configure')
309
- # Add to existing Hokipoki.configure block
310
- gsub_file main_config_file, /(Hokipoki\.configure do \|config\|.*?)(end)/m do |match|
311
- existing_config = $1
312
- existing_config + <<~RUBY
309
+ # Add to existing Hokipoki.configure block - insert before the final 'end'
310
+ insert_into_file main_config_file, before: /^end\s*$/ do
311
+ <<~RUBY
312
+
313
313
  # Parasite attachment enabled
314
314
  config.parasite_attachment = true
315
315
  config.parasite_type = '#{options[:parasite_type]}'
316
316
  RUBY
317
- + $2
318
317
  end
319
318
  else
320
319
  # Add new Hokipoki.configure block
@@ -1,3 +1,3 @@
1
1
  module Hokipoki
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hokipoki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rails Utilities