vv 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vv/numeric_methods.rb +2 -3
- data/lib/vv/utility/automate.rb +3 -3
- data/lib/vv/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d7d249956dafbb61a0cf6536476cd479bae67efc1dccc2b773669d370524022
|
4
|
+
data.tar.gz: c41e41e349f4d794cebd0a18dd53478a07e107c13833c98c60c3a039ea4d9a91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65536e4f19eb17fcb51c0bb854477734ce87d190faa0b9c7d608080d4fc0d5b83a327c0655d32f69232749bb7f22cc0e12e16b0c70fe05e48bd9fedfec394fe7
|
7
|
+
data.tar.gz: 3053771b5ea761d03cfb35190cad3924cf98f905477a4fd29747cbcddf63b25bba80bb3973493474aff4fd3866a8cc31ec18dbe4dabba78fa4ab4578d8b48705
|
data/lib/vv/numeric_methods.rb
CHANGED
@@ -56,9 +56,8 @@ module VV
|
|
56
56
|
if significant || precision >= _remaining_digits.size
|
57
57
|
dec_portion = _remaining_digits
|
58
58
|
else
|
59
|
-
|
60
|
-
(
|
61
|
-
.round.to_s
|
59
|
+
rounded = self.real.to_f.round(precision)
|
60
|
+
dec_portion = rounded.to_s.split(".")[-1][0..last_digit]
|
62
61
|
end
|
63
62
|
|
64
63
|
response + dec_portion
|
data/lib/vv/utility/automate.rb
CHANGED
@@ -72,6 +72,7 @@ module VV
|
|
72
72
|
def build( name: , argv: nil )
|
73
73
|
argv ||= []
|
74
74
|
simple = %w[ simple force ].include? argv.first
|
75
|
+
puts "Building..."
|
75
76
|
return build_simple name: name if simple
|
76
77
|
|
77
78
|
puts %x{ find lib/ | \\
|
@@ -79,9 +80,8 @@ module VV
|
|
79
80
|
|| ( echo && \\
|
80
81
|
echo "Warning: A file in lib/ is not tracked by git" && \\
|
81
82
|
echo )
|
82
|
-
|
83
|
-
|
84
|
-
gem uninstall --ignore-dependencies #{name} > /dev/null
|
83
|
+
rm -f #{name}-*.gem
|
84
|
+
gem uninstall --ignore-dependencies --all #{name}
|
85
85
|
bundle
|
86
86
|
gem build #{name}.gemspec
|
87
87
|
gem install $(readlink -f #{name}-*.gem | sort | tail -n 1 ) --pre
|
data/lib/vv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Aysan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|