math_util 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: edef2025ee4ab11281f6101ccf1c20962db426a7
4
- data.tar.gz: 948fab3eb02496ed167f2fdd4d04191dad491fa2
3
+ metadata.gz: 8a40f91bddeff87649cfcccd08226b77df214475
4
+ data.tar.gz: e556a19752fc23d5982c9acbf51867e02b1b686d
5
5
  SHA512:
6
- metadata.gz: bbcd808635fde2d352e28c20c6185f30b514bf6d82ed62e806b8e4bd6cdf9ac3d0c2d2cc5934d7cf7dd26f37fb26d36fc3dc3039a1621e8fe0037b08a3c1e2d9
7
- data.tar.gz: 77312d4a3f4e0692477107067f7e8d08f0dc357e2738b3ccbf115abbae23aa2286033ecdc4d870e1d8da157da53334d72cbd9e39635eee1a55ad2581f22149d3
6
+ metadata.gz: bdca7611ed28cf112be47ab28a14f5d91c9bf6b66f8cf04c283fd6523b87fbefb6075d76caf72c68cce4cd227b4887fcff36f276b19e2ce99e224cf2386ace2a
7
+ data.tar.gz: 2c4fa734064db37c2ecb44da4bca18d7d2dd68e2524bc34244ed074dd582078106b1364fde2b86efd1c6078f1a8ab790bbd174fb6d505109ea2452dda1bfd019
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.1.1] - 2019-01-10
10
+ ### Fixed
11
+ - Removed unnecessary puts at sharpe method
12
+
@@ -0,0 +1,20 @@
1
+ image: ruby:2.4.1
2
+
3
+ pipelines:
4
+ default:
5
+ - step:
6
+ script:
7
+ - git archive --remote=git@bitbucket.org:guideinvestimentos/rails_defaults.git HEAD .rubocop.yml | tar -x
8
+ - bundle install
9
+ - gem install rubocop
10
+ - rspec -fdoc
11
+ - rubocop .
12
+
13
+ branches:
14
+ master:
15
+ - step:
16
+ script:
17
+ - gem build math_util.gemspec
18
+ - curl -u $RUBYGEMS_USERNAME:$RUBYGEMS_PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials
19
+ - chmod 0600 ~/.gem/credentials
20
+ - gem push $(ls *.gem)
@@ -23,7 +23,6 @@ module MathUtil
23
23
  sharpe = 100 * (
24
24
  ((1 + mean(fund)) ** 252 - 1) -
25
25
  ((1 + mean(bmark)) ** 252 - 1)) / volatility
26
- puts sharpe
27
26
  sharpe.round(4) if sharpe > 0
28
27
  end
29
28
 
@@ -1,3 +1,3 @@
1
1
  module MathUtil
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: math_util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adriano Bacha
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-16 00:00:00.000000000 Z
11
+ date: 2019-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -48,9 +48,11 @@ files:
48
48
  - ".gitignore"
49
49
  - ".rspec"
50
50
  - ".travis.yml"
51
+ - CHANGELOG.md
51
52
  - Gemfile
52
53
  - LICENSE.txt
53
54
  - README.md
55
+ - bitbucket-pipelines.yml
54
56
  - lib/math_util.rb
55
57
  - lib/math_util/version.rb
56
58
  - math_util.gemspec
@@ -74,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
76
  version: '0'
75
77
  requirements: []
76
78
  rubyforge_project:
77
- rubygems_version: 2.6.10
79
+ rubygems_version: 2.5.2.1
78
80
  signing_key:
79
81
  specification_version: 4
80
82
  summary: Math functions