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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 522f1dbc238d5a05b441c2b629bdc0fa77f0121c
4
- data.tar.gz: 39d3df78bd5f6f42f0399e3cf15226da38dc15da
3
+ metadata.gz: fa0775db852f3beca60fadb205562d10a856d7bd
4
+ data.tar.gz: 953afdf3dfb0fd8b51377726932d8fa1535c53cb
5
5
  SHA512:
6
- metadata.gz: 7cfae66fedc07c2aa086201b6ab99ddf7466c5026d42127a3efd20a1459f7e20158fddacf098bfb2f6e5975ac81375c38a7bc6fb6eb53ad8c8b274ea0fec4636
7
- data.tar.gz: fb8efc37c401c7ff7f967af5ce9a6f346067dc7ae5915522e98bdddbf59246f590be82f559eb33b308dc1f90220ce5162986492a708900dc092e7619905bbc4d
6
+ metadata.gz: 61a758ee7b07e7dc30abd408631f674b078420f918194e8d5ed316570795483d4f102ded0cce15feafe9c5a04bbe4e0e11cdbf7178e305be88b7799f1f088f67
7
+ data.tar.gz: f3621ed7e37836f8af8fcb393cc6b9f1be72ebed236fdceac50b51923486687e297cac4e895387ff10f5871e572f154179ac2718052e02fec1079a8d46cc787c
data/README.md CHANGED
@@ -8,7 +8,7 @@ A Ruby gem providing a Struct variant that allows initialisation with named para
8
8
  Add this line to your application's Gemfile:
9
9
 
10
10
  ```ruby
11
- gem 'solid-struct'
11
+ gem 'solid-struct', :require => 'solid_struct'
12
12
  ```
13
13
 
14
14
  And then execute:
@@ -0,0 +1 @@
1
+ require "solid_struct"
@@ -1,6 +1,6 @@
1
1
  # Allow structs to be initialised using a hash
2
2
  module SolidStruct
3
- VERSION = "0.0.2"
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.2
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: 2015-06-19 00:00:00.000000000 Z
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