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 +4 -4
- data/lib/typespec/gem.rb +1 -1
- data/lib/typespec.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 362e65ba23667ba7139ba1275aa260520fcc864b
|
4
|
+
data.tar.gz: 8a819d87e8bddc18b5b176cc64a4b8573e3018a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05cac5ca06c87d488d8270fe41e99b9f0f91bf71b623da64b278bf31f2218c94b038088e6ff3630f87499ba29068a798242cc6d37e922fe48cc413368258fc4c
|
7
|
+
data.tar.gz: e2003de3da24f92d609bb134daf6bce4e55357661228220a30ea518fa89f957ef762dfd80b140f42d792186d058db3754fb2fbe44896209d1fa35ab6b428dc35
|
data/lib/typespec/gem.rb
CHANGED
data/lib/typespec.rb
CHANGED
@@ -95,12 +95,12 @@ module Typespec
|
|
95
95
|
|
96
96
|
# ...
|
97
97
|
class Hash
|
98
|
-
def initialize(
|
98
|
+
def initialize(pairs={})
|
99
99
|
@pairs = pairs
|
100
|
-
@pairs
|
100
|
+
@pairs = {Typespec.any => Typespec.any} if @pairs.nil? or @pairs.empty?
|
101
101
|
end
|
102
102
|
|
103
|
-
def self.[](
|
103
|
+
def self.[](pairs={})
|
104
104
|
Typespec::Hash.new(**pairs)
|
105
105
|
end
|
106
106
|
|