lite-statistics 1.0.3 → 1.0.4

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: fe4e80ec6fe8b87e7e9b07d857f9207b773c845ef097742e7154bf9208698d79
4
- data.tar.gz: 3e2412ded7d754bc61008efedf4d752137ee148b77153259a3aad9136174a22b
3
+ metadata.gz: 49b18fb367a9702f9aa7253b8a6f50b6536ef1e4cad177f0bdba2d8d207ca069
4
+ data.tar.gz: 5e63a6d3c6f6e4276379638a7d67791aad8f49504c4c7ac2c99f0d5faf7953c4
5
5
  SHA512:
6
- metadata.gz: a7243bb406424477a68fdfe4601d123a0bd301a0ed5a5008f52754eba81bc944a1f72104d177f6ba16487420a1c64d41885ef97d03da71d4b8e72816e4f09e83
7
- data.tar.gz: a16a36b511f3b159b7e876ee35f2da794947585c111c1cb9c9ebe741f6ca177213ff224e2975634f5534a9635df5bbce7f82e10aebc51acf1e25f1e80b05e7ce
6
+ metadata.gz: ca8ec918047e496c990f5a317167e353939c303affb7b32eb93193a28b8c18f1b1ea924f50bfa53fbbcf8b92cae0bd577e53f3fa3e806487b061790653c0f6e2
7
+ data.tar.gz: 7f819820a89cb88bc977a535df475cc021de63ff508ab301fac94c4d32e799db40aa2cf9b47cb54cf2dff5b358283ec78508c9f6ac03b064338d4285016c420b
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.4] - 2019-08-17
10
+ ### Changed
11
+ - Add check for monkey patches
12
+
9
13
  ## [1.0.3] - 2019-08-15
10
14
  ### Changed
11
15
  - Underscore initializer file name
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-statistics (1.0.3)
4
+ lite-statistics (1.0.4)
5
5
  lite-memoize
6
6
 
7
7
  GEM
@@ -1,24 +1,26 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Enumerable
3
+ if Lite::Statistics.configuration.monkey_patches
4
+ module Enumerable
4
5
 
5
- Lite::Statistics::Descriptive::CALCULATIONS.each do |name|
6
- next if %i[max min sum].include?(name)
6
+ Lite::Statistics::Descriptive::CALCULATIONS.each do |name|
7
+ next if %i[max min sum].include?(name)
7
8
 
8
- define_method(name) { |*args| Lite::Statistics::Descriptive.send(name, self, *args) }
9
- end
9
+ define_method(name) { |*args| Lite::Statistics::Descriptive.send(name, self, *args) }
10
+ end
10
11
 
11
- alias average mean
12
- alias coefficient_of_variation sample_coefficient_of_variation
13
- alias kurtosis sample_kurtosis
14
- alias midextreme midrange
15
- alias percentile percentile_from_value
16
- alias percentile_rank value_from_percentile
17
- alias skewness sample_skewness
18
- alias standard_deviation sample_standard_deviation
19
- alias standard_error sample_standard_error
20
- alias summary sample_summary
21
- alias variance sample_variance
22
- alias zscores sample_zscores
12
+ alias average mean
13
+ alias coefficient_of_variation sample_coefficient_of_variation
14
+ alias kurtosis sample_kurtosis
15
+ alias midextreme midrange
16
+ alias percentile percentile_from_value
17
+ alias percentile_rank value_from_percentile
18
+ alias skewness sample_skewness
19
+ alias standard_deviation sample_standard_deviation
20
+ alias standard_error sample_standard_error
21
+ alias summary sample_summary
22
+ alias variance sample_variance
23
+ alias zscores sample_zscores
23
24
 
25
+ end
24
26
  end
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Statistics
5
5
 
6
- VERSION ||= '1.0.3'
6
+ VERSION ||= '1.0.4'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-statistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-15 00:00:00.000000000 Z
11
+ date: 2019-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lite-memoize