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 +4 -4
- data/lib/rails_app_version/version.rb +1 -1
- data/lib/rails_app_version.rb +6 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 381e86a1a9a44077393c49d8f813c3ddab906e0672021d5498fac963bf2640b7
|
|
4
|
+
data.tar.gz: 5826b91f6d12cd73f08ac4a7a6f987021f0b82303f126e22d5cd608168318ec6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e522072844c9469560d3d199b2797cf0d9a494771e6df31fbba1349a4ba21d8b219c31443381080e803808c77df1a26b150886b744a053485131ddc7851d322f
|
|
7
|
+
data.tar.gz: 5b1926f667890b37c4e58e52879623338bca9cf9b10c62ff25a2b730a0f0ddbd0cd9075dad7773457bca6d6675e0e9f3cbaf307e41b3788b297074e23f7ad94c
|
data/lib/rails_app_version.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2024-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|