hokipoki 0.7.0 → 0.7.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: 4fdce824f42ae5123c16881e6750eea924cff8b6b2cd498f4329050411994d18
4
- data.tar.gz: 8b150ca5b979b06b4265db8c0cdb873045dece1d85b39ac440b436919a096bd0
3
+ metadata.gz: a28a93f7a63fe34c78ad0a7a8cbafd7b580394706ad0aed259b1f5c2d7577f55
4
+ data.tar.gz: 8e848a028577835f20bf1b950b4089efc58d858ec88e2f4a8fc892539ba6f4e4
5
5
  SHA512:
6
- metadata.gz: '018c838374788cbd86af2fafe917568925b59cf6e137026c35326b4f2d137a4fe585939367c5c7935ac1e5719bd026a8ebe909742be45a45cf9e28a23b303bf9'
7
- data.tar.gz: 216d2b1790a380a03e68c7895e450442679c00cb766226c3dc5c84d3cc0f442c2e18e4332d76a8463e7c5ae2438e753bce140767ef7bd722a91892a16973507e
6
+ metadata.gz: f7e2f1efc86028b124b4b3ef2e84fbf374c446321e8e6ad377f4bd97cff86e79751eb8edaa8e356b44f77495e6ad520643e453b98fa734cc9652c1d004df9b7d
7
+ data.tar.gz: 4d84834ef11b9cc98400cf9269e01df1ac6b89f2f2bc8d7162a1fc4f751ddf399e9d090916d2db0cc1c11c05c599dd1383663e17b9dec849d571f5f80f17e5b3
@@ -306,12 +306,26 @@ module Hokipoki
306
306
  config_addition = <<~RUBY
307
307
 
308
308
  # Parasite attachment enabled
309
- config.parasite_attachment = true
310
- config.parasite_type = '#{options[:parasite_type]}'
309
+ Rails.application.configure do |config|
310
+ config.parasite_attachment = true
311
+ config.parasite_type = '#{options[:parasite_type]}'
312
+ end
311
313
  RUBY
312
314
 
313
315
  append_to_file main_config_file, config_addition
314
316
  say "📝 Updated main hokipoki config", :green
317
+ else
318
+ # Create the config file if it doesn't exist
319
+ create_file main_config_file, <<~RUBY
320
+ # HokiPoki Configuration
321
+
322
+ Rails.application.configure do |config|
323
+ # Parasite attachment enabled
324
+ config.parasite_attachment = true
325
+ config.parasite_type = '#{options[:parasite_type]}'
326
+ end
327
+ RUBY
328
+ say "📝 Created hokipoki config with parasite settings", :green
315
329
  end
316
330
  end
317
331
 
@@ -1,3 +1,3 @@
1
1
  module Hokipoki
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
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.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rails Utilities