praxis 0.11 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/praxis/stats.rb +11 -4
- data/lib/praxis/version.rb +1 -1
- data/praxis.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 565371e7aa228365c4541e10f1c685e51238174f
|
4
|
+
data.tar.gz: b2c0dbf7c68329df0404aac8bad818f4e4b5fa34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e89add23168a1c9e530c60d5cf6c6634716abe1db2a953ff066dbce3ec0a7c13b4d1eafefdafa0f512373a6f8dea90afb38f1775e29c787c78e6d4162b86c1f4
|
7
|
+
data.tar.gz: 86b1179b253b50a0b40f4c01e07d3bce95cec9bae650364c9b43ad3c42120d60ed22610fbf915a07417d08e711255801a2ea966865c84e67783430c1be10616e
|
data/CHANGELOG.md
CHANGED
data/lib/praxis/stats.rb
CHANGED
@@ -49,16 +49,23 @@ module Praxis
|
|
49
49
|
def load_type(hash)
|
50
50
|
type = hash[:type].constantize
|
51
51
|
args = hash[:args]
|
52
|
-
case args
|
52
|
+
args_hash = case args
|
53
53
|
when Attributor::Hash
|
54
|
-
|
54
|
+
args.contents.symbolize_keys
|
55
55
|
when Hash
|
56
|
-
|
56
|
+
args.symbolize_keys
|
57
57
|
when nil
|
58
|
-
|
58
|
+
{}
|
59
59
|
else
|
60
60
|
raise "unknown args type: #{args.class.name}"
|
61
61
|
end
|
62
|
+
|
63
|
+
if args_hash.any?
|
64
|
+
type.new(**args_hash)
|
65
|
+
else
|
66
|
+
type.new
|
67
|
+
end
|
68
|
+
|
62
69
|
end
|
63
70
|
|
64
71
|
end
|
data/lib/praxis/version.rb
CHANGED
data/praxis.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_dependency 'praxis-mapper', '~> 3.1'
|
30
30
|
spec.add_dependency 'praxis-blueprints', '~> 1.1'
|
31
31
|
spec.add_dependency 'attributor', '~> 2.3.0'
|
32
|
-
spec.add_dependency 'thor', '~> 0'
|
32
|
+
spec.add_dependency 'thor', '~> 0.18'
|
33
33
|
spec.add_dependency 'terminal-table', '~> 1.4'
|
34
34
|
spec.add_dependency 'harness', '~> 2'
|
35
35
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: praxis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep M. Blanquer
|
@@ -129,14 +129,14 @@ dependencies:
|
|
129
129
|
requirements:
|
130
130
|
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: '0'
|
132
|
+
version: '0.18'
|
133
133
|
type: :runtime
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: '0'
|
139
|
+
version: '0.18'
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: terminal-table
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|