my_utilities 2.0.0 → 3.0.0
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/Gemfile +1 -1
- data/lib/my_utilities/version.rb +1 -1
- data/spec/logger_spec.rb +3 -3
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43a943e8defc4e5eca494b764ea74a0cc81a584a3d6d304d7c9a05ff5828ff61
|
4
|
+
data.tar.gz: fb3642e57391e9212e3de76f6cd84e68fd03f28a3afb69d8b8a733e9a38c30e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a01db1739af361fe49f7d183b9bd801c1a746bab4b50c2140244993b0963714b53c80040702a9b88cff47a21689d318a22123a374bd9ead0416ecc7288d40994
|
7
|
+
data.tar.gz: c57007805e3f0a4ebe945c060e56188b26525f159b9caef468ac461086e2708c2cfa01d06a682d41c052a1ccfa78aaf602b818550bb2c54a89bfe68b99bdfc9c
|
data/Gemfile
CHANGED
data/lib/my_utilities/version.rb
CHANGED
data/spec/logger_spec.rb
CHANGED
@@ -11,7 +11,7 @@ describe MyUtilities do
|
|
11
11
|
|
12
12
|
it "prints out the help string" do
|
13
13
|
full_help_string = "#{__FILE__} [options]\n#{@help_string}\n"
|
14
|
-
STDOUT.
|
14
|
+
expect(STDOUT).to receive(:puts).with(/#{@help_string}/)
|
15
15
|
lambda { MyUtilities::print_help_and_exit }.should raise_error(SystemExit)
|
16
16
|
end
|
17
17
|
end
|
@@ -27,13 +27,13 @@ describe MyUtilities do
|
|
27
27
|
end
|
28
28
|
|
29
29
|
it "only shows fatal message by default" do
|
30
|
-
STDOUT.
|
30
|
+
expect(STDOUT).to receive(:puts).with(@exp_mesg)
|
31
31
|
@logger_default.puts(@exp_mesg, MyUtilities::Logger::FATAL)
|
32
32
|
end
|
33
33
|
|
34
34
|
context "level is init'ed (to WARN)" do
|
35
35
|
it "won't print debug messages" do
|
36
|
-
STDOUT.
|
36
|
+
expect(STDOUT).not_to receive(:puts)
|
37
37
|
@logger_by_level.puts(@exp_mesg, MyUtilities::Logger::DEBUG)
|
38
38
|
end
|
39
39
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_utilities
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sameer Siruguri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: getopt
|
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
|
107
|
-
rubygems_version: 2.7.3
|
106
|
+
rubygems_version: 3.0.3
|
108
107
|
signing_key:
|
109
108
|
specification_version: 4
|
110
109
|
summary: These functions do a bunch of cool things, like log error messages, find
|