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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7960840baedd63fd90ba742127ea630a1a89f517
4
- data.tar.gz: 929381294a8cde6e414b7926f0fd9655e22922c8
3
+ metadata.gz: 565371e7aa228365c4541e10f1c685e51238174f
4
+ data.tar.gz: b2c0dbf7c68329df0404aac8bad818f4e4b5fa34
5
5
  SHA512:
6
- metadata.gz: dfc5dd11264658cf30725d82c8e486677891e7962482b3591d91f436d6e276fd271197a0581bff14515862fa550d14bfd83d9a8393bfd1c4c2c78491657f60fc
7
- data.tar.gz: 3542d98aa2815c381e2a29918ededd147b259987c502aad77344f345289825005c0d4f1350febd2a26ab69578a6af0542664d7c6ee318f9cc0f26071b317395f
6
+ metadata.gz: e89add23168a1c9e530c60d5cf6c6634716abe1db2a953ff066dbce3ec0a7c13b4d1eafefdafa0f512373a6f8dea90afb38f1775e29c787c78e6d4162b86c1f4
7
+ data.tar.gz: 86b1179b253b50a0b40f4c01e07d3bce95cec9bae650364c9b43ad3c42120d60ed22610fbf915a07417d08e711255801a2ea966865c84e67783430c1be10616e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # praxis changelog
2
2
 
3
+ ## 0.11.1
4
+
5
+ * Fix `Stats` plugin to handle empty `args` hashes.
6
+
3
7
  ## 0.11
4
8
 
5
9
  * `MediaTypeCollection`:
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
- type.new(**args.contents.symbolize_keys)
54
+ args.contents.symbolize_keys
55
55
  when Hash
56
- type.new(**args.symbolize_keys)
56
+ args.symbolize_keys
57
57
  when nil
58
- type.new
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
@@ -1,3 +1,3 @@
1
1
  module Praxis
2
- VERSION = '0.11'
2
+ VERSION = '0.11.1'
3
3
  end
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: '0.11'
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