piko_model 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/Gemfile +1 -0
- data/README.md +2 -1
- data/lib/piko_model.rb +2 -2
- data/lib/piko_model/model.rb +2 -2
- data/lib/piko_model/version.rb +3 -3
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a933a87e488f9cf2ff479281a72c48f5565b69a0
|
4
|
+
data.tar.gz: e05490c801f39f9c9131d846068f36f05773d514
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06c85335cdd60ca62325c937512b51623e94bd6d375b2d86a2b1eb2d469de3e26f4ba89f2fc924e7a3caea9924294692c11ce99f6f67f3743246955945e46f99
|
7
|
+
data.tar.gz: 34083bc30facba09c210faa84733cc5280a815b35cee0eb9108859168bb409a637c27a970e1bfd9fa8330ecf0cfca48ecdd99a056f78ed3ac8b19c1fd5eb4d35
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/piko_model.svg)](http://badge.fury.io/rb/piko_model)
|
4
4
|
[![Code Climate](https://codeclimate.com/github/skopciewski/piko_model/badges/gpa.svg)](https://codeclimate.com/github/skopciewski/piko_model)
|
5
|
+
[![Dependency Status](https://gemnasium.com/badges/github.com/skopciewski/piko_model.svg)](https://gemnasium.com/github.com/skopciewski/piko_model)
|
5
6
|
|
6
7
|
Simple model which can be initialized from Hash. It is possible to define default values and check if all reqired fields are set.
|
7
8
|
|
@@ -32,7 +33,7 @@ end
|
|
32
33
|
foo = Config.new
|
33
34
|
foo.valid? #=> false
|
34
35
|
foo.missing_fields #=> ["a"]
|
35
|
-
foo[
|
36
|
+
foo["b.c"] #=> true
|
36
37
|
|
37
38
|
bar = Config.new a: "value", "b.c": false
|
38
39
|
bar.valid? #=> true
|
data/lib/piko_model.rb
CHANGED
data/lib/piko_model/model.rb
CHANGED
data/lib/piko_model/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright (C) 2016 Szymon Kopciewski
|
3
|
+
# Copyright (C) 2016, 2017 Szymon Kopciewski
|
4
4
|
#
|
5
5
|
# This file is part of PikoModel.
|
6
6
|
#
|
@@ -18,5 +18,5 @@
|
|
18
18
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
19
|
|
20
20
|
module PikoModel
|
21
|
-
VERSION = "1.0.
|
21
|
+
VERSION = "1.0.1"
|
22
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: piko_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Szymon Kopciewski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dothash
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: codeclimate-test-reporter
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|