dry-struct 0.1.0 → 0.1.1

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: 01b27ade8be3b7f1fcadc7a426f65fc114494396
4
- data.tar.gz: 9d21cd9c9e666d761e068153b022ca65ab84c3f5
3
+ metadata.gz: 1790fc1589d3f1760722ec40a8ec0286f678f5b7
4
+ data.tar.gz: 9f8abf1b69ff3751e798cd17ec8f2bd0c95ab538
5
5
  SHA512:
6
- metadata.gz: f099db81c4e68cb0963b2225d5c156a8b417cfe9e7f43721b2e94f2b7ec8f1f72d646f486e7610a1894135efd7ce47e722a26dd96287b3ed226383262f38ff92
7
- data.tar.gz: c59d33760418278b7be4155a5f7510f87b962ee1f0ba8defcbad41438a5d609d0d916c238259cf54185b8262e4f2e4ca33cf88759cd4d61a3a190e2b1cd36773
6
+ metadata.gz: 1498c341a9b852a685551226ad71aea5e2c82dcad82a404f961ecd5acd627bd686c9b300029419450c9d064ab0f9ae34c5cdba4c7ea434d4713a2d32da98df8d
7
+ data.tar.gz: c9e356de3e967185a74afebfdbb5674df6d8c05281d7d9362ca22bde8a84c85f2f39ca81bba4a3ee2c9c35eaff30645313a25ba5de3e13eb665f914a8d95c7ca
@@ -1,26 +1,20 @@
1
1
  language: ruby
2
- sudo: false
3
- cache: bundler
2
+ dist: trusty
3
+ sudo: required
4
4
  bundler_args: --without benchmarks tools
5
5
  script:
6
6
  - bundle exec rake spec
7
+ after_success:
8
+ - '[ "$TRAVIS_RUBY_VERSION" = "2.3.1" ] && [ "$TRAVIS_BRANCH" = "master" ] && bundle exec codeclimate-test-reporter'
7
9
  rvm:
8
- - 2.1
9
- - 2.2
10
+ - 2.1.10
11
+ - 2.2.5
10
12
  - 2.3.1
11
- - rbx-2
12
- - jruby-9000
13
- - ruby-head
13
+ - rbx-3
14
+ - jruby-9.1.5.0
14
15
  env:
15
16
  global:
16
17
  - JRUBY_OPTS='--dev -J-Xmx1024M'
17
- matrix:
18
- allow_failures:
19
- - rvm: ruby-head
20
- - rvm: jruby-head
21
- include:
22
- - rvm: jruby-head
23
- before_install: gem install bundler --no-ri --no-rdoc
24
18
  notifications:
25
19
  email: false
26
20
  webhooks:
@@ -1,3 +1,11 @@
1
+ # v0.1.1 2016-11-13
2
+
3
+ ## Fixed
4
+
5
+ * Make `Dry::Struct` act as a constrained type. This fixes the behavior of sum types containing structs (flash-gordon)
6
+
7
+ [Compare v0.1.0...v0.1.1](https://github.com/dry-rb/dry-struct/compare/v0.1.0...v0.1.1)
8
+
1
9
  # v0.1.0 2016-09-21
2
10
 
3
11
  ## Added
data/Gemfile CHANGED
@@ -4,6 +4,7 @@ gemspec
4
4
 
5
5
  group :test do
6
6
  gem 'codeclimate-test-reporter', platform: :mri, require: false
7
+ gem 'simplecov', require: false
7
8
  end
8
9
 
9
10
  group :tools do
data/README.md CHANGED
@@ -14,7 +14,7 @@
14
14
  [![Test Coverage](https://codeclimate.com/github/dry-rb/dry-struct/badges/coverage.svg)][codeclimate]
15
15
  [![Inline docs](http://inch-ci.org/github/dry-rb/dry-struct.svg?branch=master)][inchpages]
16
16
 
17
- WIP extraction from dry-struct
17
+ Typed structs and value objects
18
18
 
19
19
  ## Development
20
20
 
@@ -116,7 +116,7 @@ module Dry
116
116
  end
117
117
 
118
118
  def constrained?
119
- false
119
+ true
120
120
  end
121
121
 
122
122
  def primitive
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  class Struct
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '0.1.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-22 00:00:00.000000000 Z
11
+ date: 2016-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-equalizer
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  requirements: []
164
164
  rubyforge_project:
165
- rubygems_version: 2.6.6
165
+ rubygems_version: 2.5.1
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: Typed structs and value objects.