rom-http 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rom/http/version.rb +1 -1
- data/lib/rom/plugins/relation/schema.rb +2 -2
- data/rom-http.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07bc0cfdf28e02aa27e56ec8b7bc50f6395f53be
|
4
|
+
data.tar.gz: 51c4ce931f8c7534a966fc381cee37eb2ee244c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6e9531004d584c222ace31f71a01f2fb990a3cd83718d297b92544c466dc6a33d5d4240f738c38cda483d242033767e3bbe49c2e3f5d564b93d77c7d03f96b5
|
7
|
+
data.tar.gz: d61783f266984c46c252ae456bc5fc16a0ee246e07d8147409523eeabf8c95e660026050516088ac67473e747e252f1cdfb111fb93a46e5bd311ee368c36f894
|
data/README.md
CHANGED
@@ -43,7 +43,7 @@ class Users < ROM::Relation[:http]
|
|
43
43
|
dataset :users
|
44
44
|
|
45
45
|
# You can also define a schema block
|
46
|
-
# which will use dry-
|
46
|
+
# which will use dry-types' Dry::Types['hash']
|
47
47
|
# coercion to pre-process your data
|
48
48
|
schema do
|
49
49
|
attribute 'id', 'strict.int'
|
data/lib/rom/http/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'dry/
|
1
|
+
require 'dry/types'
|
2
2
|
|
3
3
|
module ROM
|
4
4
|
module Plugins
|
@@ -23,7 +23,7 @@ module ROM
|
|
23
23
|
new.tap { |schema| schema.instance_eval(&block) }
|
24
24
|
end
|
25
25
|
|
26
|
-
def initialize(schema = {}, coercer = Dry::
|
26
|
+
def initialize(schema = {}, coercer = Dry::Types['hash'])
|
27
27
|
@schema = schema
|
28
28
|
@coercer = coercer
|
29
29
|
end
|
data/rom-http.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
21
|
spec.add_runtime_dependency 'thread_safe'
|
22
|
-
spec.add_runtime_dependency 'dry-
|
22
|
+
spec.add_runtime_dependency 'dry-types'
|
23
23
|
spec.add_runtime_dependency 'rom', '~> 1.0'
|
24
24
|
spec.add_runtime_dependency 'dry-equalizer'
|
25
25
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rom-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-03-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thread_safe
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '0'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
|
-
name: dry-
|
30
|
+
name: dry-types
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - ">="
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.4.
|
183
|
+
rubygems_version: 2.4.5.1
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: HTTP support for ROM
|