husky 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/husky.rb +1 -0
- data/lib/husky/data_source.rb +26 -0
- data/lib/husky/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb51ee17cd30f5c8ed4c3d1803c7958501da4624
|
4
|
+
data.tar.gz: 62d6b9babbd7dce095a254e2bf534fcab6f2a13b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72577d9812cd3c07a75cf881a0f5febbd311ac06598d0f3f09d95834826dabbcf1d096cfd62576ed86e8e7d9584437cbdd58a64447974c3340951e678940216c
|
7
|
+
data.tar.gz: 7d001e0746d8d563a39104829adb123ed126badb16d734cbdd78bb9ecf5049be782897da6e5130778afe7e029dfee572a4dd134b6d5cdbe7fe349af8aee8d7e2
|
data/lib/husky.rb
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
module Husky
|
2
|
+
|
3
|
+
module DataSource
|
4
|
+
|
5
|
+
class InMemory
|
6
|
+
|
7
|
+
attr_reader :attributes
|
8
|
+
attr_accessor :id
|
9
|
+
|
10
|
+
def initialize(attributes)
|
11
|
+
@attributes = attributes
|
12
|
+
end
|
13
|
+
|
14
|
+
def update_attributes(attrs)
|
15
|
+
@attributes.each do |key, value|
|
16
|
+
if attrs.key?(key)
|
17
|
+
@attributes[key] = attrs[key]
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
data/lib/husky/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: husky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Fiser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- lib/generators/uninstall_generator.rb
|
67
67
|
- lib/husky.rb
|
68
68
|
- lib/husky/broadcaster.rb
|
69
|
+
- lib/husky/data_source.rb
|
69
70
|
- lib/husky/ears.rb
|
70
71
|
- lib/husky/entity.rb
|
71
72
|
- lib/husky/interactor.rb
|