gem_lookup 1.0.0 → 1.0.1

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: 51612222b09b861d0448add7b96f2f83bd9c53df77c9eff3dc8c89ee67c717e2
4
- data.tar.gz: 27ae8d9adf7bf3b18d6d104c3fae84b1e897438b6118ed1fb66c89c42b80daf6
3
+ metadata.gz: 45aaad609d34d93d43bd3f3ca615a3e09c7107de0f0a49480ae84922aeaf3be9
4
+ data.tar.gz: 2f7983be5fc2f02eb61bbb0d67b50efae634584ebfdd9c765656b42f75b05841
5
5
  SHA512:
6
- metadata.gz: 3f044675c1498ab060f2bd121dd9bc96f3953b939090fb1e0f47c7e633c22430ba7c247ad13e9a4692c728f7cdc3c7024aa0cbcdfdf4876fa9a03f3d968c25b9
7
- data.tar.gz: 4691f287d685c9f1b586d480923cacef9cbe4361fbef71d29e50a3dc0bc88416f50ce92ddce2b79ae6bf60932d875969918586988633abb2b8efdfc9e81b00c7
6
+ metadata.gz: 5d54fc1f56378a15d2939625b65db4f67afb162d87d26dd1569219238a886a7e6e82fb897f4560c2b80fb002fa7d6bb6ac1828b8d7d8ab6f7bace87b638f9194
7
+ data.tar.gz: f4dd917a44e2e4cc5c23ac4d1d66047513a9aa4ef00c022e344f1a71c939e31b111880cbdebf3aead2fad41bafa4d4757c17be61328acb26a58c054df726ccbe
data/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog][changelog], and this project adheres to
6
6
  [Semantic Versioning][semver].
7
7
 
8
+ ## [1.0.1] - 2021-07-14
9
+
10
+ ### Fixed
11
+
12
+ * `Bundler.require` is no longer called when `ENV['APP_ENV']` is set to `production`.
13
+ * Zeitwerk ignores specs if `ENV['APP_ENV']` is set to `production`.
14
+ * Add `require_relative 'gem_lookup/version' to `lib/gem_lookup.rb`.
15
+ * Satisfies Zeitwerk's need for the `GemLookup` constant to be defined in the file.
16
+ * Solves a `GemLookup::Help.version` constant check, as this module had not yet been defined.
17
+
8
18
  ## [1.0.0] - 2021-07-14
9
19
 
10
20
  ### Added
data/init/bundler.rb CHANGED
@@ -3,4 +3,4 @@
3
3
  require 'rubygems'
4
4
  require 'bundler'
5
5
 
6
- Bundler.require(:default, ENV['APP_ENV'].to_sym)
6
+ Bundler.require(:default, ENV['APP_ENV'].to_sym) unless ENV['APP_ENV'] == 'production'
data/init/zeitwerk.rb CHANGED
@@ -8,6 +8,9 @@ root_dir = File.expand_path(File.dirname(File.dirname(__FILE__)))
8
8
 
9
9
  loader.push_dir(File.join(root_dir, 'lib'))
10
10
 
11
- loader.push_dir(File.join(root_dir, 'spec'))
12
- loader.ignore(File.join(root_dir, '**', '*_spec.rb'))
11
+ if ENV['APP_ENV'] != 'production'
12
+ loader.push_dir(File.join(root_dir, 'spec'))
13
+ loader.ignore(File.join(root_dir, '**', '*_spec.rb'))
14
+ end
15
+
13
16
  loader.setup
data/lib/gem_lookup.rb CHANGED
@@ -1,3 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative '../booster_pack'
4
+
5
+ # Requiring satisfies Zeitwerk's need for GemLookup to be defined in this file.
6
+ # It also solves a GemLookup::Help.version constant check, as this had yet to be loaded.
7
+ require_relative 'gem_lookup/version'
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GemLookup
4
4
  # @return [String] the current version of the gem.
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
 
7
7
  # @return [String] the name of the gem
8
8
  NAME = 'gem_lookup'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_lookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Mills
@@ -102,7 +102,7 @@ metadata:
102
102
  changelog_uri: https://github.com/trueheart78/gem_lookup/blob/main/CHANGELOG.md
103
103
  documentation_uri: https://github.com/trueheart78/gem_lookup
104
104
  homepage_uri: https://github.com/trueheart78/gem_lookup
105
- source_code_uri: https://github.com/trueheart78/gem_lookup/tree/v1.0.0
105
+ source_code_uri: https://github.com/trueheart78/gem_lookup/tree/v1.0.1
106
106
  post_install_message:
107
107
  rdoc_options: []
108
108
  require_paths: