dao-gateway 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/.travis.yml +3 -0
- data/README.md +2 -1
- data/dao-gateway.gemspec +1 -0
- data/lib/dao/gateway/scope_transformer.rb +4 -7
- data/lib/dao/gateway/version.rb +1 -1
- 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: a3f078a10c3cddff50d05b3643838315da7a90b7
|
4
|
+
data.tar.gz: 44a2f48864b7345a0c1a7148a356b2437aa22c72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cfd8d73b7eadd0031cc03089063b78195bc6e65c0467eb075d02a1624d5d32d32e4bfb26533d16ece2839c7619923be8bccda4a209b1fc4ebeb4e972c680683
|
7
|
+
data.tar.gz: 88504f06a17eda7d6b4b7b2b12109d5cc495c3c349d999426087ad1942748a01ee0a37d81fca3f0a2c01acb82cb1e4505cc5710a007539bd8ff2f0c36075b63b
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# Dao::Gateway
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/dao-gateway.svg)](https://badge.fury.io/rb/dao-gateway)
|
3
4
|
[![Build Status](https://travis-ci.org/dao-rb/dao-gateway.svg?branch=master)](https://travis-ci.org/dao-rb/dao-gateway)
|
4
5
|
[![Code Climate](https://codeclimate.com/github/dao-rb/dao-gateway/badges/gpa.svg)](https://codeclimate.com/github/dao-rb/dao-gateway)
|
5
|
-
[![Test Coverage](https://codeclimate.com/
|
6
|
+
[![Test Coverage](https://codeclimate.com/repos/5772c7717be4200075002276/badges/7a1a924db7afcf9ed068/coverage.svg)](https://codeclimate.com/repos/5772c7717be4200075002276/coverage)
|
6
7
|
|
7
8
|
This is a basic class for your gateway.
|
8
9
|
|
data/dao-gateway.gemspec
CHANGED
@@ -28,13 +28,10 @@ module Dao
|
|
28
28
|
protected
|
29
29
|
|
30
30
|
def transform(relation, &block)
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
collection << @entity.new(attributes).tap do |entity|
|
36
|
-
entity.initialized_with = associations
|
37
|
-
end
|
31
|
+
relation.collect do |attributes|
|
32
|
+
attributes = block.call(attributes) if block_given?
|
33
|
+
@entity.new(attributes).tap do |entity|
|
34
|
+
entity.initialized_with = associations
|
38
35
|
end
|
39
36
|
end
|
40
37
|
end
|
data/lib/dao/gateway/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dao-gateway
|
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
|
- llxff
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-07-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -67,6 +67,20 @@ dependencies:
|
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: codeclimate-test-reporter
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
70
84
|
description: Base gateway interface for dao-rb/repository
|
71
85
|
email:
|
72
86
|
- ll.wg.bin@gmail.com
|