montecasting 0.5.1 → 0.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3ba82d477d91cdee7caee9ea2291a6d40bc3a04da05d6c32af4a5047ed9c4bf
4
- data.tar.gz: 1d91edf476591241ecaf3dbb838d84bc957284ad9947d063b2da4c73d4e913f9
3
+ metadata.gz: 5664fa998c043f2136808d18abba13a43a3e6a4e0b2830687f069bb6e7e8b835
4
+ data.tar.gz: 6f437089f9d6744d9d0756ac3fa00c18bb1ab4fb76424a6147b2f8be3131ed85
5
5
  SHA512:
6
- metadata.gz: 07dff5b5c9ea1e269722a872ccf7922c3ed8b46d646437cda6cd88a4653c2c011da8da213d70ed578d1350c5c5d0d0a392f10927a71ada26ae9d7b3ab4abe09d
7
- data.tar.gz: a558581cb8fa04ee0dfb6e558f241e8cd9d5c6f22a50952e5d1f017c0f450b38e0a500f742fb37d98ba021cac5e755065ac85b6fb54c00d763bffee8a9b54285
6
+ metadata.gz: 3e6d64829b1485611fcc53c62f22fc36d0f643674b82b9dd9f11926ae266066cd6a156e84c017bf712acb95e322e5dc5266d0af3e308193882660beb37be9b7b
7
+ data.tar.gz: 210a65bdc6626228efe9e2bf5647abc708bc10c3d623890ef48746446039496f89f8009dc7576a0bd33c3df95b02f08d15b09cd68b305a911cc6eacfcf519789
data/.idea/workspace.xml CHANGED
@@ -3,8 +3,12 @@
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="b096ae44-ac17-43c8-99fa-e6348bbbcd82" name="Default Changelist" comment="Ruby Gem for Project Forecasting Methods">
5
5
  <change afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+ <change beforePath="$PROJECT_DIR$/Gemfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile.lock" afterDir="false" />
6
7
  <change beforePath="$PROJECT_DIR$/lib/montecasting.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/montecasting.rb" afterDir="false" />
8
+ <change beforePath="$PROJECT_DIR$/lib/montecasting/array.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/montecasting/array.rb" afterDir="false" />
7
9
  <change beforePath="$PROJECT_DIR$/lib/montecasting/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/montecasting/version.rb" afterDir="false" />
10
+ <change beforePath="$PROJECT_DIR$/montecasting-0.5.1.gem" beforeDir="false" />
11
+ <change beforePath="$PROJECT_DIR$/spec/montecasting_spec.rb" beforeDir="false" afterPath="$PROJECT_DIR$/spec/montecasting_spec.rb" afterDir="false" />
8
12
  </list>
9
13
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
10
14
  <option name="SHOW_DIALOG" value="false" />
@@ -17,8 +21,8 @@
17
21
  <file pinned="false" current-in-tab="false">
18
22
  <entry file="file://$PROJECT_DIR$/lib/montecasting.rb">
19
23
  <provider selected="true" editor-type-id="text-editor">
20
- <state relative-caret-position="88">
21
- <caret line="4" column="15" selection-start-line="4" selection-start-column="15" selection-end-line="4" selection-end-column="15" />
24
+ <state relative-caret-position="535">
25
+ <caret line="75" column="124" selection-start-line="75" selection-start-column="124" selection-end-line="75" selection-end-column="124" />
22
26
  </state>
23
27
  </provider>
24
28
  </entry>
@@ -35,8 +39,8 @@
35
39
  <file pinned="false" current-in-tab="false">
36
40
  <entry file="file://$PROJECT_DIR$/lib/montecasting/hash.rb">
37
41
  <provider selected="true" editor-type-id="text-editor">
38
- <state relative-caret-position="154">
39
- <caret line="7" selection-start-line="7" selection-end-line="7" />
42
+ <state relative-caret-position="22">
43
+ <caret line="1" column="6" selection-start-line="1" selection-start-column="6" selection-end-line="1" selection-end-column="6" />
40
44
  </state>
41
45
  </provider>
42
46
  </entry>
@@ -44,23 +48,23 @@
44
48
  <file pinned="false" current-in-tab="false">
45
49
  <entry file="file://$PROJECT_DIR$/spec/montecasting_spec.rb">
46
50
  <provider selected="true" editor-type-id="text-editor">
47
- <state relative-caret-position="577">
48
- <caret line="92" column="5" selection-start-line="92" selection-start-column="5" selection-end-line="92" selection-end-column="5" />
51
+ <state relative-caret-position="-87">
52
+ <caret line="8" column="2" lean-forward="true" selection-start-line="8" selection-start-column="2" selection-end-line="8" selection-end-column="69" />
49
53
  </state>
50
54
  </provider>
51
55
  </entry>
52
56
  </file>
53
57
  <file pinned="false" current-in-tab="false">
54
- <entry file="file://$PROJECT_DIR$/montecasting.gemspec">
58
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.6.3/gems/bundler-2.0.2/lib/bundler.rb">
55
59
  <provider selected="true" editor-type-id="text-editor">
56
- <state relative-caret-position="-30">
57
- <caret line="4" column="18" selection-start-line="4" selection-start-column="18" selection-end-line="4" selection-end-column="18" />
60
+ <state relative-caret-position="245">
61
+ <caret line="134" selection-start-line="134" selection-end-line="134" />
58
62
  </state>
59
63
  </provider>
60
64
  </entry>
61
65
  </file>
62
66
  <file pinned="false" current-in-tab="false">
63
- <entry file="file://$PROJECT_DIR$/Rakefile">
67
+ <entry file="file://$PROJECT_DIR$/montecasting.gemspec">
64
68
  <provider selected="true" editor-type-id="text-editor" />
65
69
  </entry>
66
70
  </file>
@@ -72,8 +76,8 @@
72
76
  <file pinned="false" current-in-tab="false">
73
77
  <entry file="file://$PROJECT_DIR$/Gemfile">
74
78
  <provider selected="true" editor-type-id="text-editor">
75
- <state relative-caret-position="88">
76
- <caret line="4" selection-start-line="4" selection-end-line="4" />
79
+ <state relative-caret-position="66">
80
+ <caret line="3" column="4" selection-start-line="3" selection-end-line="4" />
77
81
  </state>
78
82
  </provider>
79
83
  </entry>
@@ -81,8 +85,8 @@
81
85
  <file pinned="false" current-in-tab="false">
82
86
  <entry file="file://$PROJECT_DIR$/lib/montecasting/array.rb">
83
87
  <provider selected="true" editor-type-id="text-editor">
84
- <state relative-caret-position="396">
85
- <caret line="18" selection-start-line="18" selection-end-line="18" />
88
+ <state relative-caret-position="360">
89
+ <caret line="20" column="32" selection-start-line="20" selection-start-column="32" selection-end-line="20" selection-end-column="32" />
86
90
  </state>
87
91
  </provider>
88
92
  </entry>
@@ -119,20 +123,19 @@
119
123
  <option value="$PROJECT_DIR$/.gitignore" />
120
124
  <option value="$PROJECT_DIR$/lib/numeric.rb" />
121
125
  <option value="$PROJECT_DIR$/montecasting.gemspec" />
122
- <option value="$PROJECT_DIR$/Gemfile" />
123
126
  <option value="$PROJECT_DIR$/README.md" />
124
127
  <option value="$PROJECT_DIR$/lib/montecasting/hash.rb" />
125
- <option value="$PROJECT_DIR$/lib/montecasting/array.rb" />
128
+ <option value="$PROJECT_DIR$/Gemfile" />
126
129
  <option value="$PROJECT_DIR$/spec/montecasting_spec.rb" />
127
130
  <option value="$PROJECT_DIR$/lib/montecasting.rb" />
131
+ <option value="$PROJECT_DIR$/lib/montecasting/array.rb" />
128
132
  <option value="$PROJECT_DIR$/lib/montecasting/version.rb" />
129
133
  </list>
130
134
  </option>
131
135
  </component>
132
136
  <component name="ProjectFrameBounds" extendedState="6">
133
- <option name="x" value="337" />
134
137
  <option name="y" value="23" />
135
- <option name="width" value="1744" />
138
+ <option name="width" value="2560" />
136
139
  <option name="height" value="1417" />
137
140
  </component>
138
141
  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
@@ -364,7 +367,7 @@
364
367
  <workItem from="1568903822546" duration="6127000" />
365
368
  <workItem from="1569001602054" duration="169000" />
366
369
  <workItem from="1569348110256" duration="8311000" />
367
- <workItem from="1571040695976" duration="17294000" />
370
+ <workItem from="1571040695976" duration="21504000" />
368
371
  </task>
369
372
  <task id="LOCAL-00001" summary="Ruby Gem for Project Forecasting Methods">
370
373
  <created>1567089862211</created>
@@ -464,7 +467,14 @@
464
467
  <option name="project" value="LOCAL" />
465
468
  <updated>1571305012585</updated>
466
469
  </task>
467
- <option name="localTasksCounter" value="15" />
470
+ <task id="LOCAL-00015" summary="Ruby Gem for Project Forecasting Methods">
471
+ <created>1571325198523</created>
472
+ <option name="number" value="00015" />
473
+ <option name="presentableId" value="LOCAL-00015" />
474
+ <option name="project" value="LOCAL" />
475
+ <updated>1571325198523</updated>
476
+ </task>
477
+ <option name="localTasksCounter" value="16" />
468
478
  <servers />
469
479
  </component>
470
480
  <component name="TestHistory">
@@ -500,7 +510,7 @@
500
510
  </history-entry>
501
511
  </component>
502
512
  <component name="TimeTrackingManager">
503
- <option name="totallyTimeSpent" value="65600000" />
513
+ <option name="totallyTimeSpent" value="69810000" />
504
514
  </component>
505
515
  <component name="TodoView">
506
516
  <todo-panel id="selected-file">
@@ -515,8 +525,8 @@
515
525
  <frame x="0" y="23" width="2560" height="1417" extended-state="6" />
516
526
  <editor active="true" />
517
527
  <layout>
518
- <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.6950431" visible="true" weight="0.14098491" />
519
- <window_info id="Structure" order="1" sideWeight="0.30495688" side_tool="true" visible="true" weight="0.14098491" />
528
+ <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.69430053" visible="true" weight="0.14098491" />
529
+ <window_info id="Structure" order="1" sideWeight="0.30569947" side_tool="true" visible="true" weight="0.14098491" />
520
530
  <window_info id="Favorites" order="2" side_tool="true" />
521
531
  <window_info anchor="bottom" id="Message" order="0" />
522
532
  <window_info anchor="bottom" id="Find" order="1" />
@@ -528,7 +538,7 @@
528
538
  <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
529
539
  <window_info anchor="bottom" id="Database Changes" order="8" />
530
540
  <window_info anchor="bottom" id="Version Control" order="9" />
531
- <window_info anchor="bottom" id="Terminal" order="10" sideWeight="0.49955356" visible="true" weight="0.29106188" />
541
+ <window_info anchor="bottom" id="Terminal" order="10" sideWeight="0.49955356" visible="true" weight="0.41023684" />
532
542
  <window_info anchor="bottom" id="Event Log" order="11" sideWeight="0.50044644" side_tool="true" weight="0.32925898" />
533
543
  <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
534
544
  <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
@@ -637,13 +647,6 @@
637
647
  <entry file="file://$PROJECT_DIR$/.rspec_status">
638
648
  <provider selected="true" editor-type-id="text-editor" />
639
649
  </entry>
640
- <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.6.3/gems/bundler-2.0.2/lib/bundler.rb">
641
- <provider selected="true" editor-type-id="text-editor">
642
- <state relative-caret-position="324">
643
- <caret line="134" selection-start-line="134" selection-end-line="134" />
644
- </state>
645
- </provider>
646
- </entry>
647
650
  <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.6.3/gems/rspec-expectations-3.8.4/lib/rspec/matchers.rb">
648
651
  <provider selected="true" editor-type-id="text-editor">
649
652
  <state relative-caret-position="6298">
@@ -665,58 +668,61 @@
665
668
  </state>
666
669
  </provider>
667
670
  </entry>
668
- <entry file="file://$PROJECT_DIR$/spec/montecasting_spec.rb">
669
- <provider selected="true" editor-type-id="text-editor">
670
- <state relative-caret-position="577">
671
- <caret line="92" column="5" selection-start-line="92" selection-start-column="5" selection-end-line="92" selection-end-column="5" />
672
- </state>
673
- </provider>
674
- </entry>
675
671
  <entry file="file://$PROJECT_DIR$/Rakefile">
676
672
  <provider selected="true" editor-type-id="text-editor" />
677
673
  </entry>
678
674
  <entry file="file://$PROJECT_DIR$/.travis.yml">
679
675
  <provider selected="true" editor-type-id="text-editor" />
680
676
  </entry>
681
- <entry file="file://$PROJECT_DIR$/montecasting.gemspec">
677
+ <entry file="file://$PROJECT_DIR$/lib/montecasting/numeric.rb">
682
678
  <provider selected="true" editor-type-id="text-editor">
683
- <state relative-caret-position="-30">
684
- <caret line="4" column="18" selection-start-line="4" selection-start-column="18" selection-end-line="4" selection-end-column="18" />
679
+ <state relative-caret-position="242">
680
+ <caret line="11" column="3" selection-start-line="11" selection-start-column="3" selection-end-line="11" selection-end-column="3" />
685
681
  </state>
686
682
  </provider>
687
683
  </entry>
688
- <entry file="file://$PROJECT_DIR$/lib/montecasting/numeric.rb">
684
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.6.3/gems/bundler-2.0.2/lib/bundler.rb">
689
685
  <provider selected="true" editor-type-id="text-editor">
690
- <state relative-caret-position="242">
691
- <caret line="11" column="3" selection-start-line="11" selection-start-column="3" selection-end-line="11" selection-end-column="3" />
686
+ <state relative-caret-position="245">
687
+ <caret line="134" selection-start-line="134" selection-end-line="134" />
692
688
  </state>
693
689
  </provider>
694
690
  </entry>
695
- <entry file="file://$PROJECT_DIR$/lib/montecasting/array.rb">
691
+ <entry file="file://$PROJECT_DIR$/montecasting.gemspec">
692
+ <provider selected="true" editor-type-id="text-editor" />
693
+ </entry>
694
+ <entry file="file://$PROJECT_DIR$/Gemfile">
696
695
  <provider selected="true" editor-type-id="text-editor">
697
- <state relative-caret-position="396">
698
- <caret line="18" selection-start-line="18" selection-end-line="18" />
696
+ <state relative-caret-position="66">
697
+ <caret line="3" column="4" selection-start-line="3" selection-end-line="4" />
699
698
  </state>
700
699
  </provider>
701
700
  </entry>
702
701
  <entry file="file://$PROJECT_DIR$/lib/montecasting/hash.rb">
703
702
  <provider selected="true" editor-type-id="text-editor">
704
- <state relative-caret-position="154">
705
- <caret line="7" selection-start-line="7" selection-end-line="7" />
703
+ <state relative-caret-position="22">
704
+ <caret line="1" column="6" selection-start-line="1" selection-start-column="6" selection-end-line="1" selection-end-column="6" />
706
705
  </state>
707
706
  </provider>
708
707
  </entry>
709
- <entry file="file://$PROJECT_DIR$/Gemfile">
708
+ <entry file="file://$PROJECT_DIR$/spec/montecasting_spec.rb">
710
709
  <provider selected="true" editor-type-id="text-editor">
711
- <state relative-caret-position="88">
712
- <caret line="4" selection-start-line="4" selection-end-line="4" />
710
+ <state relative-caret-position="-87">
711
+ <caret line="8" column="2" lean-forward="true" selection-start-line="8" selection-start-column="2" selection-end-line="8" selection-end-column="69" />
713
712
  </state>
714
713
  </provider>
715
714
  </entry>
716
715
  <entry file="file://$PROJECT_DIR$/lib/montecasting.rb">
717
716
  <provider selected="true" editor-type-id="text-editor">
718
- <state relative-caret-position="88">
719
- <caret line="4" column="15" selection-start-line="4" selection-start-column="15" selection-end-line="4" selection-end-column="15" />
717
+ <state relative-caret-position="535">
718
+ <caret line="75" column="124" selection-start-line="75" selection-start-column="124" selection-end-line="75" selection-end-column="124" />
719
+ </state>
720
+ </provider>
721
+ </entry>
722
+ <entry file="file://$PROJECT_DIR$/lib/montecasting/array.rb">
723
+ <provider selected="true" editor-type-id="text-editor">
724
+ <state relative-caret-position="360">
725
+ <caret line="20" column="32" selection-start-line="20" selection-start-column="32" selection-end-line="20" selection-end-column="32" />
720
726
  </state>
721
727
  </provider>
722
728
  </entry>
data/Gemfile.lock CHANGED
@@ -1,26 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- montecasting (0.5.0)
4
+ montecasting (0.5.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  diff-lcs (1.3)
10
10
  rake (10.5.0)
11
- rspec (3.8.0)
12
- rspec-core (~> 3.8.0)
13
- rspec-expectations (~> 3.8.0)
14
- rspec-mocks (~> 3.8.0)
15
- rspec-core (3.8.2)
16
- rspec-support (~> 3.8.0)
17
- rspec-expectations (3.8.4)
11
+ rspec (3.9.0)
12
+ rspec-core (~> 3.9.0)
13
+ rspec-expectations (~> 3.9.0)
14
+ rspec-mocks (~> 3.9.0)
15
+ rspec-core (3.9.0)
16
+ rspec-support (~> 3.9.0)
17
+ rspec-expectations (3.9.0)
18
18
  diff-lcs (>= 1.2.0, < 2.0)
19
- rspec-support (~> 3.8.0)
20
- rspec-mocks (3.8.1)
19
+ rspec-support (~> 3.9.0)
20
+ rspec-mocks (3.9.0)
21
21
  diff-lcs (>= 1.2.0, < 2.0)
22
- rspec-support (~> 3.8.0)
23
- rspec-support (3.8.2)
22
+ rspec-support (~> 3.9.0)
23
+ rspec-support (3.9.0)
24
24
 
25
25
  PLATFORMS
26
26
  ruby
@@ -18,7 +18,7 @@ class Array
18
18
  end
19
19
 
20
20
  def group_to_hash
21
- uniq.to_h {|s| [s, count{|elem| elem.equal? s}]}
21
+ uniq.sort.to_h {|s| [s, count{|elem| elem.equal? s}]}
22
22
  end
23
23
 
24
24
  def to_chart
@@ -2,5 +2,5 @@ module Montecasting
2
2
  # MAJOR version when you make incompatible API changes,
3
3
  # MINOR version when you add functionality in a backwards compatible manner, and
4
4
  # PATCH version when you make backwards compatible bug fixes.
5
- VERSION = "0.5.1"
5
+ VERSION = "0.5.2"
6
6
  end
data/lib/montecasting.rb CHANGED
@@ -54,7 +54,7 @@ module Montecasting
54
54
 
55
55
  def self.montecarlo(takt_times = [], backlog_items = 0, days_iteration = 0)
56
56
  return nil unless takt_times.all? Numeric
57
- takt_times.map {|tt| ((tt * backlog_items) / days_iteration).round(0)}
57
+ takt_times.map {|tt| ((tt * backlog_items) / days_iteration).round(0)}.sort
58
58
  end
59
59
 
60
60
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: montecasting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduard Garcia Castello
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-17 00:00:00.000000000 Z
11
+ date: 2019-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler