steppy 1.0.4 → 1.0.5

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: f7cfb710dfbb840665b8980fbec49ec54e57b365b9ae2d57362921e08bc6d469
4
- data.tar.gz: 2db3a03835c9e31a9b7027e539bb1b9da3578af5adb0fdfce8b95016f2191654
3
+ metadata.gz: 16eef89dde4944c59d94350eb063774513e2ed72ed13707bef236d485c8ee0ef
4
+ data.tar.gz: ca6e0c66d9bb895dc0d3a34e8524a17d29cc5bd47b07361b1d6a2f5ed9b9d7c4
5
5
  SHA512:
6
- metadata.gz: 074f8fb7ce46be4b67ca8ffb1f0c0fe6e3d2e671469bbdbed66669da880aa1b22363a6bc66c7fa4210b1135a9d856b739d9585840fc28c1cf63d03f041f3f3ec
7
- data.tar.gz: d83b0a8fdd0806d5a43a64a4be6e722661157380a3477c610d83323a016762acd425cb694bb5488beec60d98cfcf577034c967508d985d70417a79a01179f2a5
6
+ metadata.gz: ff4812b2b0d4db4c2bc73a0d4f1063dbb6e8980845cf877bfca48b1bad6c15597c55df215ee386dafc51c01c8c1d6ee1355d888cd2b4c283e3607c560c756813
7
+ data.tar.gz: d7b27ac2f71298f06edcd838932ab3fd0a5bbc0252d6d5c4cc0bb287755c2ca6acfa347a2824e4d8e2dcf599edfac64f4dfe445cd0b78d49abb62da77314862f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- steppy (1.0.4)
4
+ steppy (1.0.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -74,8 +74,16 @@ module Steppy
74
74
  sets.each { |key, value| steppy_set(key, value || steppy_attributes[key]) }
75
75
  end
76
76
 
77
- def steppy_set(key, value)
78
- key && instance_variable_set("@#{key}", value)
77
+ def steppy_set(set_key, value)
78
+ return unless set_key
79
+
80
+ if set_key.is_a? Array
81
+ set_key.each_with_index do |key, index|
82
+ steppy_set(key, value[index])
83
+ end
84
+ else
85
+ instance_variable_set("@#{set_key}", value)
86
+ end
79
87
  end
80
88
 
81
89
  def steppy_steps(steps)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Steppy
4
- VERSION = '1.0.4'
4
+ VERSION = '1.0.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steppy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-01 00:00:00.000000000 Z
11
+ date: 2020-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler