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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e93bd3c95a714c0a2ff8487575a720f3e3f7a89f1991280ef2c87ce88e5dc036
4
- data.tar.gz: 6fc5e2e0f317cb7c132230c937144b7e25c20c9ebb30ab0ed4856435fabc07bb
3
+ metadata.gz: 7d7d249956dafbb61a0cf6536476cd479bae67efc1dccc2b773669d370524022
4
+ data.tar.gz: c41e41e349f4d794cebd0a18dd53478a07e107c13833c98c60c3a039ea4d9a91
5
5
  SHA512:
6
- metadata.gz: 96cec782f55d7fe048242a6a43647ea242a3b600b50a54533d2ac8745c6869289f82fea2cc10b397a51159bd9af7c3b93195d744b36f1f4f3c8ed36745d9be82
7
- data.tar.gz: d6508705fe877d9c9d121aae05ae1df283676fb297059df36b2381c870a76fee1a401feb505893b5dda588116a4d5db429de0d544a3750692113b446815d0fc7
6
+ metadata.gz: 65536e4f19eb17fcb51c0bb854477734ce87d190faa0b9c7d608080d4fc0d5b83a327c0655d32f69232749bb7f22cc0e12e16b0c70fe05e48bd9fedfec394fe7
7
+ data.tar.gz: 3053771b5ea761d03cfb35190cad3924cf98f905477a4fd29747cbcddf63b25bba80bb3973493474aff4fd3866a8cc31ec18dbe4dabba78fa4ab4578d8b48705
@@ -56,9 +56,8 @@ module VV
56
56
  if significant || precision >= _remaining_digits.size
57
57
  dec_portion = _remaining_digits
58
58
  else
59
- dec_portion = \
60
- ( _remaining_digits[0..last_digit].to_f / 10 )
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
@@ -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
- rm #{name}-*.gem
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
@@ -1,3 +1,3 @@
1
1
  module VV
2
- VERSION = '0.0.18'
2
+ VERSION = '0.0.19'
3
3
  end
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.18
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-15 00:00:00.000000000 Z
11
+ date: 2019-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake