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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/steppy/instance_methods.rb +10 -2
- data/lib/steppy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16eef89dde4944c59d94350eb063774513e2ed72ed13707bef236d485c8ee0ef
|
4
|
+
data.tar.gz: ca6e0c66d9bb895dc0d3a34e8524a17d29cc5bd47b07361b1d6a2f5ed9b9d7c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff4812b2b0d4db4c2bc73a0d4f1063dbb6e8980845cf877bfca48b1bad6c15597c55df215ee386dafc51c01c8c1d6ee1355d888cd2b4c283e3607c560c756813
|
7
|
+
data.tar.gz: d7b27ac2f71298f06edcd838932ab3fd0a5bbc0252d6d5c4cc0bb287755c2ca6acfa347a2824e4d8e2dcf599edfac64f4dfe445cd0b78d49abb62da77314862f
|
data/Gemfile.lock
CHANGED
@@ -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(
|
78
|
-
|
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)
|
data/lib/steppy/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2020-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|