rails_app_version 0.2.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_app_version/version.rb +1 -1
- data/lib/rails_app_version.rb +12 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 521458301f505b418494a8ff6cc39fe5f40c4b192f2cfb5f8183186c3161101d
|
4
|
+
data.tar.gz: c5ac04bdaaff5a942e831511df3a8eeed9b564cfbcd213e05cf79a0140a1325a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68e00da37bc81058bd32825d1d02a4a96bff4383a5d457bae668a01fa4f5b1c929dc8cbb9d3b6b874688802691b2a7591185305a0125ce6c1526d9c31e80d066
|
7
|
+
data.tar.gz: f9e53048da586ed9c9d8c7927bc840144dbb7e3f13655b09da398368b88c3cb401ca8d7a3b926696d58b3439de7c2941d5fb0d7157616d45a348bb86f6d732ff
|
data/lib/rails_app_version.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
require "rails"
|
4
4
|
require "rails/application"
|
5
5
|
require "rails_app_version/version"
|
6
|
+
require "action_controller/railtie"
|
6
7
|
|
7
8
|
module RailsAppVersion
|
8
9
|
class Version < Gem::Version
|
@@ -34,6 +35,17 @@ module RailsAppVersion
|
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
38
|
+
# Console
|
39
|
+
console do
|
40
|
+
# rubocop:disable Rails/Output
|
41
|
+
puts "Welcome to the Rails console!"
|
42
|
+
puts "Ruby version: #{RUBY_VERSION}"
|
43
|
+
puts "Application environment: #{Rails.application.env}"
|
44
|
+
puts "Application version: #{Rails.application.version}"
|
45
|
+
puts "To exit, press `Ctrl + D`."
|
46
|
+
# rubocop:enable Rails/Output
|
47
|
+
end
|
48
|
+
|
37
49
|
initializer "fetch_config" do |app|
|
38
50
|
@app_config = begin
|
39
51
|
app.config_for(:app_version, env: Rails.env)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_app_version
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdelkader Boudih
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: appraisal
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: Get the version of your Rails app
|
42
56
|
email:
|
43
57
|
- terminale@gmail.com
|