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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78cb8976656ba1e9c186cfc690abd2136120dee3
4
- data.tar.gz: 33cbb7dcf766ddc4c5f12cf2914b2c8b06b5af68
3
+ metadata.gz: 403c8b7ef50db7b6cb4aa1942b7fd0469e1b0e29
4
+ data.tar.gz: 146696edd226ff31e5cea50d463b7c9c8fadc862
5
5
  SHA512:
6
- metadata.gz: dc7be8a84e68d11f3c4fe88ec211552517c608dadf01027a4390854d3889b58491796adb2d4a81e247bd1d49e2687281d2163309ee6b5c304f2248cf334beb3d
7
- data.tar.gz: 472bbdc4b9e8dbffe740e1229ee255977994ec26b8b56fb3def52f056e36bd43d6c1560ec2341f845697317b681781fe0c922639af7ae669a90113d8356cbbad
6
+ metadata.gz: d03aedfe403e53128920bb6446b9ab44ee80cb75276769c581d62ef557b9d62cb8494faa5314e29c447208f484be288918b08e3162a95cb3f5bb8746db9ccec5
7
+ data.tar.gz: 3e9557d54d1a86f0257ebaa22fc364c0001c46bce2d329c4236d559aa085ab4514c8d97215d155c8ea97102d7c3b48397318cbf0c32c4ad7a1fbed6a35554d34
@@ -1,17 +1,28 @@
1
1
  ---
2
- sudo: false
3
2
  language: ruby
4
- cache: bundler
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 rspec
7
- - bundle exec rubocop
10
+ - bundle exec rake spec
8
11
  rvm:
9
- - '2.3.0'
10
- - ruby-head
12
+ - 2.3.0
13
+ - 2.4.0
11
14
  - jruby-9.1.0.0
12
- - jruby-head
13
- before_install: gem install bundler -v 1.12.5
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "evil-struct"
3
- gem.version = "0.0.3"
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", "~> 0.10"
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"
@@ -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 = send(key)
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.3
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: 2016-11-21 00:00:00.000000000 Z
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: '0.10'
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: '0.10'
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.6.4
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
@@ -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"