runby_pace 0.62.5 → 0.62.7

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: 8cb58d1ac4623c06550f153afd1cee669a6f316b49d379b45ec4c88fb35eecf5
4
- data.tar.gz: 546c69917c804069b4b4145c79cabd1133e8c8edf498b43162948511d86b0a8e
3
+ metadata.gz: ce0c92ac52fd11f0dc3ab011a76b26dd2316e7b42419e00b2c097a13f40304ce
4
+ data.tar.gz: f8c1100fe6554bdb77d690b6b0bffd4ee975f9a2b1b2ddb2137e6600f290896a
5
5
  SHA512:
6
- metadata.gz: 237f8a225483d6044683cd09bb9fea8ef2029e560ef52143a0a8b585daf76825a86f8aa16872e0fc1bca66373eb7c0b696d0efe455dd0f791324673ee1dc02ed
7
- data.tar.gz: 06ab48bfca04de8b81beb8f7228b1db55ccb592b02368e43daea76d539b99d062fa3a179244fd9f547783143058eeca74a69c6968b60e20548533ea3d682efa2
6
+ metadata.gz: 5549a73a1fc0db1d5357a65385d92454478701c6fc1147060f1ca47deec00031da37cdf5d0e61cfd188e28f475ce8f5848a9d2990930a55dacdff1e458fe52e1
7
+ data.tar.gz: fc7ca6f8505d6512d6a87ac14b84263f8aaa7a896c84c90ff334eda0f22e26b7f1a1bd0ef25f236494191e617c14ae67cc14882781c1c8842aae874ee138f871
data/Rakefile CHANGED
@@ -3,6 +3,8 @@
3
3
  require 'bundler/gem_tasks'
4
4
  require 'rspec/core/rake_task'
5
5
 
6
+ require_relative 'lib/runby_pace/utility/warning_suppressant'
7
+
6
8
  RSpec::Core::RakeTask.new(:spec)
7
9
 
8
10
  task default: :build
@@ -51,18 +53,10 @@ task :gen_version_number do
51
53
  template.gsub!('__VERSION__', version)
52
54
  version_file_path = File.join(path, 'version.g.rb')
53
55
  File.write(version_file_path, template)
54
- with_no_warnings do
56
+ Runby.with_no_warnings do
55
57
  # Silencing warnings about redefining constants, since it's intentional
56
58
  load version_file_path
57
59
  Runby::VERSION = Runby::GENERATED_VERSION
58
60
  end
59
61
  puts "\e[32m__TEXT__\e[0m".gsub('__TEXT__', "Version: #{Runby::VERSION}")
60
62
  end
61
-
62
- def with_no_warnings
63
- warning_level = $VERBOSE
64
- $VERBOSE = nil
65
- result = yield
66
- $VERBOSE = warning_level
67
- result
68
- end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Runby
4
+ def self.with_no_warnings
5
+ warning_level = $VERBOSE
6
+ $VERBOSE = nil
7
+ result = yield
8
+ $VERBOSE = warning_level
9
+ result
10
+ end
11
+ end
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative 'utility/warning_suppressant'
4
+
3
5
  module Runby
4
- GENERATED_VERSION = '__VERSION__'
6
+ with_no_warnings do
7
+ GENERATED_VERSION = '__VERSION__'
8
+ end
5
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runby_pace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.62.5
4
+ version: 0.62.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ty Walls
@@ -102,6 +102,7 @@ files:
102
102
  - lib/runby_pace/speed.rb
103
103
  - lib/runby_pace/speed_range.rb
104
104
  - lib/runby_pace/utility/parameter_sanitizer.rb
105
+ - lib/runby_pace/utility/warning_suppressant.rb
105
106
  - lib/runby_pace/version.g.rb
106
107
  - lib/runby_pace/version.rb
107
108
  - lib/runby_pace/version.seed
@@ -112,7 +113,7 @@ homepage: https://github.com/tygerbytes/runby-pace
112
113
  licenses:
113
114
  - MIT
114
115
  metadata:
115
- commit-hash: 5a0c90efcab2f263a4aee03afff092fe1f1c4adf
116
+ commit-hash: 759ccc69385dfc742044b92ddde84c39f4229487
116
117
  post_install_message:
117
118
  rdoc_options: []
118
119
  require_paths: