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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38617c348471e3451f02be3b42be8c1f22b20ed5
4
- data.tar.gz: 1997480f17df4f4b6a37d841678ec0cc969fe599
3
+ metadata.gz: eb51ee17cd30f5c8ed4c3d1803c7958501da4624
4
+ data.tar.gz: 62d6b9babbd7dce095a254e2bf534fcab6f2a13b
5
5
  SHA512:
6
- metadata.gz: 3ed6658e6fc0c8b844f271ca86d3e4bb2ef517b90a18bda8176724079fd76f50d59f68904a2d10c5918b7e9897696f45d2a3ced400ef6a17ff88cb9b47ef2226
7
- data.tar.gz: 6e0b859e4f7b38e072baf3079ee3c255a00f3ef8d9a52cdce24a5152fdd4f94370239f4549e22cded589dcf27d4cd1f6956b56ce6939aac4ca674f4da4b7e529
6
+ metadata.gz: 72577d9812cd3c07a75cf881a0f5febbd311ac06598d0f3f09d95834826dabbcf1d096cfd62576ed86e8e7d9584437cbdd58a64447974c3340951e678940216c
7
+ data.tar.gz: 7d001e0746d8d563a39104829adb123ed126badb16d734cbdd78bb9ecf5049be782897da6e5130778afe7e029dfee572a4dd134b6d5cdbe7fe349af8aee8d7e2
data/lib/husky.rb CHANGED
@@ -8,6 +8,7 @@ require 'husky/interactor'
8
8
  require 'husky/responder'
9
9
  require 'husky/repo'
10
10
  require 'husky/entity'
11
+ require 'husky/data_source'
11
12
 
12
13
  ActionController::Base.class_eval do
13
14
  include Husky::Ears
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Husky
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
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.7
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-04 00:00:00.000000000 Z
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