rumination 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rumination/dev_user.rb +5 -7
- data/lib/rumination/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1fa5a4f014b31f64ce973302f5794affb50fff7b
|
|
4
|
+
data.tar.gz: 42bf01305a89bf12447635f14b39d7311950b740
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbbbf15b96f7a299b48e0a8edad6eb2902b38b9777b6d51ca4538bd8a92b41d426d020a596d05ade82a1b2683995c6a8fd0ef4ac6b1657c011c74d95ee3a3582
|
|
7
|
+
data.tar.gz: 2d82cee2004bca4c186bd0c978a213d002c88e9d1f027e8dbccd812d3ab88ca92dc128481cf03cdf1fe286596bacd26fafd639495edff2f273d48cb43a5966d9
|
data/lib/rumination/dev_user.rb
CHANGED
|
@@ -3,7 +3,6 @@ require "active_model"
|
|
|
3
3
|
module Rumination
|
|
4
4
|
class DevUser
|
|
5
5
|
include ActiveModel::Model
|
|
6
|
-
include ActiveModel::Serialization
|
|
7
6
|
|
|
8
7
|
CannotBeInitialized = Class.new(RuntimeError)
|
|
9
8
|
attr_accessor :name, :host, :password, :email
|
|
@@ -21,12 +20,11 @@ module Rumination
|
|
|
21
20
|
end
|
|
22
21
|
|
|
23
22
|
def attributes
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
23
|
+
attribute_names.map{|attribute| [attribute, send(attribute)]}.to_h
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def attribute_names
|
|
27
|
+
%w[name password host email]
|
|
30
28
|
end
|
|
31
29
|
end
|
|
32
30
|
end
|
data/lib/rumination/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rumination
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Artem Baguinski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-03-
|
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|