rails_app_version 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: c349aa9229b34d82b9649759bc0bf6874ac3ec0f395f1a4d7bdd82a0ecfcbcc4
4
- data.tar.gz: fa57ffd7636b51b2dfcabda06d3d387a6e5c1d2145a024d99ba6026f36258b7c
3
+ metadata.gz: 381e86a1a9a44077393c49d8f813c3ddab906e0672021d5498fac963bf2640b7
4
+ data.tar.gz: 5826b91f6d12cd73f08ac4a7a6f987021f0b82303f126e22d5cd608168318ec6
5
5
  SHA512:
6
- metadata.gz: 20034d4a7cd45ccf939ee1501ff6b5313e066e852565d635d2e711a22ce12ab102c3e1a538580476cb188882a916df7a014c9c329f42b94eef39bcf8a84b44cb
7
- data.tar.gz: 5b6b218c9ddf5bf17c6a40cdf8c37eb78c84489e9ede694765083122fbe5d874b8c8d3c7e6c29a154ebb2d7df8f0b4707288b1640aecd9a3a0c79289e4772fc9
6
+ metadata.gz: e522072844c9469560d3d199b2797cf0d9a494771e6df31fbba1349a4ba21d8b219c31443381080e803808c77df1a26b150886b744a053485131ddc7851d322f
7
+ data.tar.gz: 5b1926f667890b37c4e58e52879623338bca9cf9b10c62ff25a2b730a0f0ddbd0cd9075dad7773457bca6d6675e0e9f3cbaf307e41b3788b297074e23f7ad94c
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsAppVersion
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "rails"
4
+ require "rails/application"
3
5
  require "rails_app_version/version"
4
6
 
5
7
  module RailsAppVersion
@@ -20,11 +22,6 @@ module RailsAppVersion
20
22
  @version = @app_config[:version]
21
23
  @environment = @app_config[:environment] || Rails.env
22
24
  end
23
- initializer "patch_application" do |app|
24
- # Inject the module into the application
25
- app.class.send(:include, RailsAppVersion::AppVersion)
26
- app.class.send(:include, RailsAppVersion::AppEnvironment)
27
- end
28
25
  end
29
26
 
30
27
  module AppVersion
@@ -51,3 +48,7 @@ module RailsAppVersion
51
48
  end
52
49
  end
53
50
  end
51
+
52
+
53
+ Rails::Application.include RailsAppVersion::AppVersion
54
+ Rails::Application.include RailsAppVersion::AppEnvironment
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_app_version
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
  - Abdelkader Boudih
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-14 00:00:00.000000000 Z
11
+ date: 2024-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties