playpath_rails 0.1.1 → 0.1.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: 2e5ab5d5c4afc526c183ae6436a55e7560f3af87c5f7d5a478d6608c6346625d
4
- data.tar.gz: c1fcd5c787be950c3cd9379cdca59b7cb6313a6fe6a2faae177157123dca4205
3
+ metadata.gz: ac9097b1267cb10d0bfab681f55a99b943b672aef202204d8a0af3a4be6bd6b5
4
+ data.tar.gz: d16c7e7393a6779303b3568c177a945aec790f8ad0ada4aba6393359d4fb9a1a
5
5
  SHA512:
6
- metadata.gz: fc1c36c9224140d045df0c54b6d798dc4f3776888126c3b107669d7ce5bdea2effa68e4bff815e22d592c2e9fa29757ba9afe02714ade055eca1e5c294a60b60
7
- data.tar.gz: 166c3ddc43552c6c89f57934f3f4fccd3f857877ac4603cfa877cac8f71d285f4257e903ba0d3baa5c6c4d07973468f895476a84937485558e43aacf998642b8
6
+ metadata.gz: bb6decc4bfb9d6e7a17aa3cb4a594341c79641cefe65f577f782bfad1572c8da4250d0ea6d9bad1750a07e1a9f1157f7a9a149987072942c1e6d8cb6b818bbcd
7
+ data.tar.gz: '07879dd854cbd51d41c89574aa148f58f921264cd3ce09be5fae52db87447e47229258c18f1e26da8f8b277d8853b3b3533cc04ea33206068c2f351b049096ef'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlaypathRails
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
@@ -5,7 +5,13 @@ require_relative 'playpath_rails/errors'
5
5
  require_relative 'playpath_rails/client'
6
6
  require_relative 'playpath_rails/synchronizable'
7
7
  require_relative 'playpath_rails/rag'
8
- require_relative 'playpath_rails/railtie' if defined?(Rails)
8
+
9
+ # Load railtie if Rails is available
10
+ begin
11
+ require_relative 'playpath_rails/railtie' if defined?(Rails::Railtie)
12
+ rescue LoadError
13
+ # Silently ignore if Rails is not available
14
+ end
9
15
 
10
16
  module PlaypathRails
11
17
  class Error < StandardError; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playpath_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joran Kikke