typespec 0.1.0.3 → 0.1.0.4

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: 8f5d69ebc2493df499e9fb375a924c77c27f0366
4
- data.tar.gz: f5112113fe015643a0e2ece94af526a80f740bc9
3
+ metadata.gz: 362e65ba23667ba7139ba1275aa260520fcc864b
4
+ data.tar.gz: 8a819d87e8bddc18b5b176cc64a4b8573e3018a1
5
5
  SHA512:
6
- metadata.gz: 3c29021c4eb2f6a4f0ad50b800ced7fa15e8efa35d0470df9e74784ec017c4f1dac780e90535e3faa9cba8227581cd960794571cd022b27b4a6680b7a95d5a90
7
- data.tar.gz: 2584c9c74d6b9cb871bd9748db93720e2ebddfef76faa010ed4f6b5367fca5dc9edef85fc46f1d7d1868bbeee75c04f8dc54acc6a18a9e16ee0d9096f465246b
6
+ metadata.gz: 05cac5ca06c87d488d8270fe41e99b9f0f91bf71b623da64b278bf31f2218c94b038088e6ff3630f87499ba29068a798242cc6d37e922fe48cc413368258fc4c
7
+ data.tar.gz: e2003de3da24f92d609bb134daf6bce4e55357661228220a30ea518fa89f957ef762dfd80b140f42d792186d058db3754fb2fbe44896209d1fa35ab6b428dc35
data/lib/typespec/gem.rb CHANGED
@@ -41,7 +41,7 @@ module Typespec
41
41
  end
42
42
 
43
43
  module VERSION #:nodoc:
44
- MAJOR, MINOR, PATCH, PRE = [0, 1, 0, 3]
44
+ MAJOR, MINOR, PATCH, PRE = [0, 1, 0, 4]
45
45
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
46
46
  end
47
47
 
data/lib/typespec.rb CHANGED
@@ -95,12 +95,12 @@ module Typespec
95
95
 
96
96
  # ...
97
97
  class Hash
98
- def initialize(**pairs)
98
+ def initialize(pairs={})
99
99
  @pairs = pairs
100
- @pairs ||= {Typespec.any => Typespec.any}
100
+ @pairs = {Typespec.any => Typespec.any} if @pairs.nil? or @pairs.empty?
101
101
  end
102
102
 
103
- def self.[](**pairs)
103
+ def self.[](pairs={})
104
104
  Typespec::Hash.new(**pairs)
105
105
  end
106
106
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typespec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.3
4
+ version: 0.1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Williams