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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc7916abb449d462bb96d6f87cba350b4a76bc8b
4
- data.tar.gz: e85b761e383a650b48b845ea2815b1d81db95075
3
+ metadata.gz: 1fa5a4f014b31f64ce973302f5794affb50fff7b
4
+ data.tar.gz: 42bf01305a89bf12447635f14b39d7311950b740
5
5
  SHA512:
6
- metadata.gz: 6904747a2e39b33a26174e0d18a3b35356bbce6a4bc3572743cffe3f57159979e1cb5f46529594aa22a1bf0c1c62c9768f10f54f08e7dad4145c108e39155ae9
7
- data.tar.gz: 8d97d58efefb15e01d4c4efa3b5d131957421f700e2b41d3f56d65cffbd8086ce39a50e1d3d88f612587c129eb7c15f220d344286f781634f87b35e6271331e6
6
+ metadata.gz: fbbbf15b96f7a299b48e0a8edad6eb2902b38b9777b6d51ca4538bd8a92b41d426d020a596d05ade82a1b2683995c6a8fd0ef4ac6b1657c011c74d95ee3a3582
7
+ data.tar.gz: 2d82cee2004bca4c186bd0c978a213d002c88e9d1f027e8dbccd812d3ab88ca92dc128481cf03cdf1fe286596bacd26fafd639495edff2f273d48cb43a5966d9
@@ -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
- "name" => nil,
26
- "password" => nil,
27
- "host" => nil,
28
- "email" => nil,
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
@@ -1,3 +1,3 @@
1
1
  module Rumination
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-09 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler