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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f12fcf73c08d447843831ce2387b14fae8302f8d3ec2c08dd3548e471435c2a1
4
- data.tar.gz: 88361140e3a6ac93c378aaf8e38f253864fb2bebc1920b81903fb305c4863631
3
+ metadata.gz: 521458301f505b418494a8ff6cc39fe5f40c4b192f2cfb5f8183186c3161101d
4
+ data.tar.gz: c5ac04bdaaff5a942e831511df3a8eeed9b564cfbcd213e05cf79a0140a1325a
5
5
  SHA512:
6
- metadata.gz: ce3f381f908e7eb51dc36bf82cb0d1f32a521563f93d4c68642cba6f7a6e54a7a460f55333352b0aca4a1348e740f959a08c4333495e20e9e874843edbf2fde6
7
- data.tar.gz: f7a240228914ad118252befd33fcaf60647194da681a72360265c7274715d388026e29815c2bdc025c8cc1014aa6c8a6daa9b6f62aaa70fca1cd65b2afb71071
6
+ metadata.gz: 68e00da37bc81058bd32825d1d02a4a96bff4383a5d457bae668a01fa4f5b1c929dc8cbb9d3b6b874688802691b2a7591185305a0125ce6c1526d9c31e80d066
7
+ data.tar.gz: f9e53048da586ed9c9d8c7927bc840144dbb7e3f13655b09da398368b88c3cb401ca8d7a3b926696d58b3439de7c2941d5fb0d7157616d45a348bb86f6d732ff
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsAppVersion
4
- VERSION = "0.2.1"
4
+ VERSION = "1.0.0"
5
5
  end
@@ -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.2.1
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