pupper 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pupper/model.rb +2 -0
- data/lib/pupper/trackable_attributes.rb +1 -1
- data/lib/pupper/version.rb +1 -1
- data/pupper.gemspec +1 -0
- 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: 076ade035c194893ca835d7a83d587f24c7bf424
|
4
|
+
data.tar.gz: f2a63deb8e3fe6e390163fcb395fcd06c53a3585
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dde6f826c686fb59b1fb176454982503ec1952ed8258fcfc659477a876a3abfce3e70380c87ce59f3cc3d114da2845e5b5f58c51767de5d3bd631836354cd561
|
7
|
+
data.tar.gz: 73231d2f3bf3e59e42ec331daf9b3448d5fba38de6cc4c5785b3177d0c7e18dc1f0fa3d21afbb94c8b9ce5e22e1547b5bc1cc0e3be762f1aa1c4bc0cbf66927e
|
data/lib/pupper/model.rb
CHANGED
@@ -19,6 +19,8 @@ module Pupper
|
|
19
19
|
delegate :backend, to: :class
|
20
20
|
|
21
21
|
def initialize(**args)
|
22
|
+
args.slice!(*self.class._attributes)
|
23
|
+
|
22
24
|
assocs, attrs = args.partition do |attr, value|
|
23
25
|
attr.to_s =~ /_u?id$/ || value.is_a?(Hash) || value.is_a?(Array)
|
24
26
|
end.map(&Hash.method(:[]))
|
data/lib/pupper/version.rb
CHANGED
data/pupper.gemspec
CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency 'byebug'
|
25
25
|
spec.add_development_dependency 'rake', '~> 10.0'
|
26
26
|
spec.add_development_dependency 'rspec'
|
27
|
+
spec.add_development_dependency 'rspec-activemodel-mocks'
|
27
28
|
spec.add_development_dependency 'pry'
|
28
29
|
spec.add_development_dependency 'pry-byebug'
|
29
30
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pupper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Machin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-activemodel-mocks
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: pry
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|