dynaspan 0.1.4 → 0.1.5

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: 9a6d88f02b0f8e7c140de6c419a7fa391d7d9aed
4
- data.tar.gz: 817aa769f8db94ce27e00f2955bcd88c6ef7bcc9
3
+ metadata.gz: 6ccd1c1a71062d8b93a5339c4f083e7bedbe3d8c
4
+ data.tar.gz: 643942167cfb812c700812eccfdfaeb2799693e6
5
5
  SHA512:
6
- metadata.gz: 16b9ad7c7aeb3076fedd671d2867a2cb42a52463d000c427f577b000d67fe4b0f803b0dbbd3993c1af21bde31192098b415675ae037dc5bc994d0d19036c7564
7
- data.tar.gz: 2df958a70f54d49faed2a9b20481299c1f9b304242a0cd1a8f35e616d7fc517afb7bb1f068755c1a071b6e08b7b5d2510e8597456879f6b33a9ee6fabbf475c7
6
+ metadata.gz: 144be3e34ffcdea3e7e09f550e6d5c398138653b6bba32dfe578592e73876549a440aeb8c71a2b2ba07f89c43754347894339ba4deda7c2c8c1c3e6a19a1b1e2
7
+ data.tar.gz: e6235297868f385432e9bafbc3528d3356f83619347cc8a20b19cb561dc73eb963c9ba51f43625f6c4fe578cd4d780325afe233711f2e422167d4673c0956b34
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (C) 2014-2015 by Daniel P. Clark
3
+ Copyright (C) 2014-2016 by Daniel P. Clark
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -119,6 +119,11 @@ calling parents with selectors. Example usage:
119
119
 
120
120
  ###What's New
121
121
 
122
+
123
+ ####Version 0.1.4 & 0.1.5
124
+
125
+ Use display name rather than value from option. And enum behavior may be prone to change so added safeguard scenario.
126
+
122
127
  ####Version 0.1.3
123
128
 
124
129
  Changed **:unique_id** to work based on the object being rendered and some additional random characters in case the same object will be used more than once.
@@ -188,7 +193,7 @@ string for id.) This allows you to create "new" polymorphic child objects with
188
193
 
189
194
  The MIT License (MIT)
190
195
 
191
- Copyright (C) 2014-2015 by Daniel P. Clark
196
+ Copyright (C) 2014-2016 by Daniel P. Clark
192
197
 
193
198
  Permission is hereby granted, free of charge, to any person obtaining a copy
194
199
  of this software and associated documentation files (the "Software"), to deal
@@ -20,7 +20,7 @@
20
20
  <% end %>
21
21
  </div>
22
22
  <% current_value = attr_object.try(attrib) || master_ds_object.try(attrib) %>
23
- <% display_text = choices.match(/value="#{current_value}".*>(.+)</)[1] %>
23
+ <% display_text = begin choices.match(/value="#{current_value}".*>(.+)</)[1] rescue nil end %>
24
24
  <%= content_tag 'span', display_text || current_value, id: "dyna_span_span#{unique_ref_id}", onclick: "$().dynaspan.upShow('#{unique_ref_id}');", class: 'dyna-span dyna-span-text', style: 'display:block;' %>
25
25
  <%= content_tag('div', dyna_span_edit_text, class: 'dyna-span-edit-text pull-right', onclick: "$().dynaspan.upShow('#{unique_ref_id}');", style: 'cursor:pointer;') %>
26
26
  </div>
@@ -1,3 +1,3 @@
1
1
  module Dynaspan
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynaspan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-14 00:00:00.000000000 Z
11
+ date: 2016-06-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: In place text editing with AJAX substituting text to input field.
14
14
  email:
@@ -57,7 +57,7 @@ requirements:
57
57
  - jQuery
58
58
  - Rails
59
59
  rubyforge_project:
60
- rubygems_version: 2.5.1
60
+ rubygems_version: 2.6.4
61
61
  signing_key:
62
62
  specification_version: 4
63
63
  summary: Text to AJAX editing in place.