composed_validations 0.0.1 → 0.0.2

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: a3255cb3f57d5dd1001ea94244bb3d32fe33dd05
4
- data.tar.gz: fbe1c3d47be05fa2dacd7a9de8e4c28f133ac193
3
+ metadata.gz: a2a98095f332abd4c94bff43e983715aaef1a7e0
4
+ data.tar.gz: c3c9cad9c78b7cce22b74543b3ee2abed5c2f4db
5
5
  SHA512:
6
- metadata.gz: 39902f36a6fd5a32f25f9b313962c29cd3d41b117458cf26ecdbfd4715b7922a457510a5cfcf7c5577ad474b146e2b501004545c2a1eba467a592d7458afe3f3
7
- data.tar.gz: 8f41a206b1be58839528ada156086ef999dfbfc0f06df24695616b427b76d70615ccd7350e5425f56ce27fc772a8420768058176ac2b49af60c3c41de87aaf15
6
+ metadata.gz: 0887348b98b095b4a3893fc905515089e90348c44c29995d747ce8d67b5cd998a8c461e4e296561a036bb76d5ac792fd454f0616e7c1ea6022fa860f2ca14203
7
+ data.tar.gz: 0a275269013a30419c16bfa1e8e5b5985c7bbc6f527f4b7d6ae070755e8a6ebd2ca7a28ceb296e3c479ec92a2c096364389a5ec5f256720a969d710c4dd4d2a7
@@ -1,3 +1,3 @@
1
1
  module ComposedValidations
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -7,6 +7,10 @@ module ComposedValidations
7
7
  @validator = validator
8
8
  end
9
9
 
10
+ def class
11
+ __getobj__.class
12
+ end
13
+
10
14
  def valid?(*args)
11
15
  __getobj__.valid?(*args)
12
16
  unless validator.valid?(result)
@@ -19,6 +19,11 @@ RSpec.describe ComposedValidations::WithValidatedProperty do
19
19
  allow(validator).to receive(:message).and_return("is so awful")
20
20
  end
21
21
 
22
+ describe "#class" do
23
+ it "should delegate up" do
24
+ expect(subject.class).to eq asset.class
25
+ end
26
+ end
22
27
  describe "#valid?" do
23
28
  let(:valid) { true }
24
29
  let(:valid_result) { subject.valid? }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: composed_validations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trey Terrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-15 00:00:00.000000000 Z
11
+ date: 2015-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attr_extras