wedge 0.1.64 → 0.1.65

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: 64a06a5840341d1d3ad5492b2152ef166d8ef33a
4
- data.tar.gz: 39fa76d09924848cd7123d8c04151ff0a37e89a1
3
+ metadata.gz: 6319b8ff40538e70099e0bbfbb1b2a4ec6d5cb21
4
+ data.tar.gz: 63424550a8726f64bb1e9d7c77e12f2fb87c7d2b
5
5
  SHA512:
6
- metadata.gz: 9eb934fc8eec76be67ad9f03e0e9f3919a7c0a1b260e7026cd4f94f5a8ac6f439d492412a1077e25e50224eb8e4edfc8c0f5584d45a81b5a31fe7f57a382ca2a
7
- data.tar.gz: a30e31007dd9c89b25178217eb57b1cd415b4dde538a7ec83aa600528807154d04aa4e04e864916c366562a5c1828d6d607e6f3a814888093add65c58138fe6c
6
+ metadata.gz: a268e488ae46aa8b897ea0bc119e5f4a4156e441df12f9bc8f2553c1907224449ba94f123432a32698f259db03002023c734cf28d027b031ad8ab132844f5df0
7
+ data.tar.gz: 590923f4e1b34a915fbb440c8b0def574c3205d34de7a3cab10c0a5a436b72606753e986b2d44e3d324fca674da8b1ab696d20052da4b6403e405ad8079e1646
@@ -10,6 +10,7 @@ class Wedge
10
10
  end
11
11
 
12
12
  keys = options.delete(:keys) || (_options[:key] ? [_options[:key]] : [])
13
+ options[:position] ||= :before
13
14
 
14
15
  if extra_errors = options.delete(:errors)
15
16
  extra_errors.each do |key, value|
@@ -44,7 +45,7 @@ class Wedge
44
45
  field_error_dom.html _error_name(key, error.first)
45
46
 
46
47
  field = dom.find("[name='#{name}']")
47
- field.before field_error_dom.dom
48
+ field.send(options[:position], field_error_dom.dom)
48
49
  end
49
50
  end
50
51
  end
data/lib/wedge/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.64'
2
+ VERSION = '0.1.65'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wedge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.64
4
+ version: 0.1.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-30 00:00:00.000000000 Z
11
+ date: 2015-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal-wedge