material 0.2.7 → 0.2.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
  SHA256:
3
- metadata.gz: f2bfa3f32901451e69e88fa370ef2ff8f3add861df3551864683badfd59452cc
4
- data.tar.gz: ce590b13773298904f7bf0d014c6f3ce0d030a391b6f36c75219e16a2ea1aa9e
3
+ metadata.gz: 20af6ddecc1eedcc033ea158e929485648543c1eb9cee355fe6629792b09608b
4
+ data.tar.gz: 06db5ee769af6574fba033c788ec8fa71770110a8600b162084a8536d8c6f06f
5
5
  SHA512:
6
- metadata.gz: 6d755826933146b93891da1dd1a839bae456438100db94d8d81b2078ed9a11c1646a684d40181e21d5d395bedebdae2225ba364799c642f25cefc1a05e405056
7
- data.tar.gz: b224702ae9b686495526de08e38ff13e3516e64dd34fcaa4652ec3d9eb690151b4bc0a45d2bb5842f75f1ce4c20e0824bdd43d6de87886094e573df60d70a6ad
6
+ metadata.gz: b45e69fa158cdf5ffd850685c3d99a43e00753041087e0df7463e4386e475978e96bd5c294c6b01d04b1d4556fadf4f4aa3f92d20096b4e3018266ea78d446b8
7
+ data.tar.gz: b3c7cb799ac7d1c1ee2638a7458a78c3a497508fe8e6f7aff025003157fb337b442fb074a0629aaeb9b71f92829eb503f651e865614b2c4cc16049472708d43b
data/lib/material/base.rb CHANGED
@@ -11,9 +11,7 @@ module Material
11
11
 
12
12
  def self.for(object)
13
13
  material_class = material_class_for(object, "Material")
14
- return unless material_class.present?
15
-
16
- material_class.new(object)
14
+ material_class.new(object) if material_class.present?
17
15
  end
18
16
  end
19
17
  end
data/lib/material/list.rb CHANGED
@@ -14,9 +14,7 @@ module Material
14
14
 
15
15
  def self.for(object)
16
16
  material_class = material_class_for(object, "List")
17
- return unless material_class.present?
18
-
19
- material_class.new(object)
17
+ material_class.new if material_class.present?
20
18
  end
21
19
 
22
20
  def default_title
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Material
4
- VERSION = "0.2.7"
4
+ VERSION = "0.2.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Garside