evil-struct 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +19 -8
- data/evil-struct.gemspec +2 -2
- data/lib/evil/struct.rb +1 -1
- metadata +5 -6
- data/codeclimate.yml +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 403c8b7ef50db7b6cb4aa1942b7fd0469e1b0e29
|
4
|
+
data.tar.gz: 146696edd226ff31e5cea50d463b7c9c8fadc862
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d03aedfe403e53128920bb6446b9ab44ee80cb75276769c581d62ef557b9d62cb8494faa5314e29c447208f484be288918b08e3162a95cb3f5bb8746db9ccec5
|
7
|
+
data.tar.gz: 3e9557d54d1a86f0257ebaa22fc364c0001c46bce2d329c4236d559aa085ab4514c8d97215d155c8ea97102d7c3b48397318cbf0c32c4ad7a1fbed6a35554d34
|
data/.travis.yml
CHANGED
@@ -1,17 +1,28 @@
|
|
1
1
|
---
|
2
|
-
sudo: false
|
3
2
|
language: ruby
|
4
|
-
|
3
|
+
sudo: false
|
4
|
+
cache: bundler
|
5
|
+
bundler_args: --without benchmarks tools
|
6
|
+
before_install:
|
7
|
+
- gem install bundler --no-ri --no-rdoc
|
8
|
+
- gem update --system
|
5
9
|
script:
|
6
|
-
- bundle exec
|
7
|
-
- bundle exec rubocop
|
10
|
+
- bundle exec rake spec
|
8
11
|
rvm:
|
9
|
-
-
|
10
|
-
-
|
12
|
+
- 2.3.0
|
13
|
+
- 2.4.0
|
11
14
|
- jruby-9.1.0.0
|
12
|
-
-
|
13
|
-
|
15
|
+
- rbx-2
|
16
|
+
- rbx-3
|
17
|
+
- ruby-head
|
18
|
+
env:
|
19
|
+
global:
|
20
|
+
- JRUBY_OPTS='--dev -J-Xmx1024M'
|
14
21
|
matrix:
|
15
22
|
allow_failures:
|
23
|
+
- rvm: rbx-2
|
24
|
+
- rvm: rbx-3
|
16
25
|
- rvm: ruby-head
|
17
26
|
- rvm: jruby-head
|
27
|
+
include:
|
28
|
+
- rvm: jruby-head
|
data/evil-struct.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = "evil-struct"
|
3
|
-
gem.version = "0.0.
|
3
|
+
gem.version = "0.0.4"
|
4
4
|
gem.author = "Andrew Kozin (nepalez)"
|
5
5
|
gem.email = "andrew.kozin@gmail.com"
|
6
6
|
gem.homepage = "https://github.com/evilmartians/evil-struct"
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
|
14
14
|
gem.required_ruby_version = ">= 2.3"
|
15
15
|
|
16
|
-
gem.add_runtime_dependency "dry-initializer", "~>
|
16
|
+
gem.add_runtime_dependency "dry-initializer", "~> 1.1"
|
17
17
|
|
18
18
|
gem.add_development_dependency "dry-types", "> 0.9"
|
19
19
|
gem.add_development_dependency "rspec", "~> 3.0"
|
data/lib/evil/struct.rb
CHANGED
@@ -115,7 +115,7 @@ class Evil::Struct
|
|
115
115
|
#
|
116
116
|
def to_h
|
117
117
|
self.class.list_of_attributes.each_with_object({}) do |key, hash|
|
118
|
-
val =
|
118
|
+
val = instance_variable_get :"@#{key}"
|
119
119
|
hash[key] = Utils.hashify(val) unless val == Dry::Initializer::UNDEFINED
|
120
120
|
end
|
121
121
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evil-struct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kozin (nepalez)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-initializer
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: dry-types
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,7 +96,6 @@ files:
|
|
96
96
|
- LICENSE.txt
|
97
97
|
- README.md
|
98
98
|
- Rakefile
|
99
|
-
- codeclimate.yml
|
100
99
|
- evil-struct.gemspec
|
101
100
|
- lib/evil-struct.rb
|
102
101
|
- lib/evil/struct.rb
|
@@ -131,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
130
|
version: '0'
|
132
131
|
requirements: []
|
133
132
|
rubyforge_project:
|
134
|
-
rubygems_version: 2.
|
133
|
+
rubygems_version: 2.5.2
|
135
134
|
signing_key:
|
136
135
|
specification_version: 4
|
137
136
|
summary: Structure with type constraints based on dry-initializer
|
data/codeclimate.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
---
|
2
|
-
engines:
|
3
|
-
rubocop:
|
4
|
-
enabled: true
|
5
|
-
checks:
|
6
|
-
Rubocop/Style/FrozenStringLiteralComment:
|
7
|
-
enabled: false
|
8
|
-
Rubocop/Style/Documentation:
|
9
|
-
enabled: false
|
10
|
-
Rubocop/Style/ClassAndModuleChildren:
|
11
|
-
enabled: false
|
12
|
-
Rubocop/Style/SpaceInLambdaLiteral:
|
13
|
-
enabled: false
|
14
|
-
Style/SingleLineBlockParams:
|
15
|
-
enabled: false
|
16
|
-
ratings:
|
17
|
-
paths:
|
18
|
-
- "lib/**.rb"
|