solid-struct 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/solid/struct.rb +1 -0
- data/lib/solid_struct.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa0775db852f3beca60fadb205562d10a856d7bd
|
4
|
+
data.tar.gz: 953afdf3dfb0fd8b51377726932d8fa1535c53cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61a758ee7b07e7dc30abd408631f674b078420f918194e8d5ed316570795483d4f102ded0cce15feafe9c5a04bbe4e0e11cdbf7178e305be88b7799f1f088f67
|
7
|
+
data.tar.gz: f3621ed7e37836f8af8fcb393cc6b9f1be72ebed236fdceac50b51923486687e297cac4e895387ff10f5871e572f154179ac2718052e02fec1079a8d46cc787c
|
data/README.md
CHANGED
data/lib/solid/struct.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "solid_struct"
|
data/lib/solid_struct.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Allow structs to be initialised using a hash
|
2
2
|
module SolidStruct
|
3
|
-
VERSION = "0.0
|
3
|
+
VERSION = "0.1.0"
|
4
4
|
|
5
5
|
class NamedStruct < Struct
|
6
6
|
# Override the initialize to handle hashes of named parameters
|
@@ -24,4 +24,4 @@ module SolidStruct
|
|
24
24
|
klass.new(hash)
|
25
25
|
end
|
26
26
|
|
27
|
-
end
|
27
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solid-struct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Dunkley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- LICENSE.txt
|
68
68
|
- README.md
|
69
69
|
- Rakefile
|
70
|
+
- lib/solid/struct.rb
|
70
71
|
- lib/solid_struct.rb
|
71
72
|
- solid-struct.gemspec
|
72
73
|
- test/solid_struct_test.rb
|