visualize_helper 0.0.10.30 → 0.0.10.31

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: 9a43f8362f89d2ee8afeb4b22eacedb3d793fdce
4
- data.tar.gz: 5f319c533271e960fc3d8d91c34f53f8747624dd
3
+ metadata.gz: bdaff7a9bc9376e93f1568c513f883dfbbc3da57
4
+ data.tar.gz: bb40c30bfd00bba13047d68f95dade0b76f9e960
5
5
  SHA512:
6
- metadata.gz: a097988bed352e2e1ac6619a27420dbb75c166b93931aecb634f23d1887a0c568e60f27a87f7aff933b55d1b4502faa760fa374f4da48e7efddfb30cd3040d93
7
- data.tar.gz: 0f2bf89d43064f67439042d9af694e2fe55972014b114a3e835cbae4f04131e786e9d45cc62d26b945481cfba0c2bcc916fff3e1dec692fc970fa85f976d0bc5
6
+ metadata.gz: 2fc7a74e19f2201eed773dab5f211e6357742f664aa9b6acb6d253b8459cdf6fd35c08872357bf16d9288066a595f198240d48a1a4afce63344c52ae9351a29a
7
+ data.tar.gz: bca5f2f496189c17f60927445686deb3651ee9c12abd601f9eb68eced07ca5a0d3dab4e0f63e5a038ea9618aaf63add498a6792d47d5dee78f57948c6f304f79
@@ -155,6 +155,8 @@ static int encontra_min_max_period(VALUE days, VALUE traj, VALUE array){
155
155
  int min_c = FIX2INT(rb_ary_entry(array,0));
156
156
  int max_c = FIX2INT(rb_ary_entry(array,1));
157
157
  int period;
158
+ int traj_size;
159
+
158
160
 
159
161
  if (days_c < first_interval_c) {
160
162
  if (min_c > days_c) {
@@ -197,7 +199,11 @@ static int encontra_min_max_period(VALUE days, VALUE traj, VALUE array){
197
199
 
198
200
  rb_ary_store(array,0,INT2FIX(min_c));
199
201
  rb_ary_store(array,1,INT2FIX(max_c));
200
- rb_ary_push(rb_ary_entry(aggr,period),rb_ary_entry(traj,0));
202
+ traj_size = RARRAY_LEN(traj);
203
+
204
+ for ( int i =0; i < traj_size; i++){
205
+ rb_ary_push(rb_ary_entry(aggr,period),rb_ary_entry(traj,i));
206
+ }
201
207
 
202
208
  return ST_CONTINUE;
203
209
  }
@@ -1,3 +1,3 @@
1
1
  module VisualizeHelper
2
- VERSION = "0.0.10.30"
2
+ VERSION = "0.0.10.31"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visualize_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10.30
4
+ version: 0.0.10.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raphael Ottoni Santiago Machado de Faria