wrap_it 0.1.2 → 0.1.3

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: 3759c791d02ed6b869c3cdf07885e5d86a7874fd
4
- data.tar.gz: f7e262fcbf4959d240e4f28e5b548d300419cf4d
3
+ metadata.gz: b5513713eca9304d31c6e40cd72dddca49052062
4
+ data.tar.gz: cdcd5c6c3cf677f8f7c1ba90327b60d93ef1827b
5
5
  SHA512:
6
- metadata.gz: 66c55ca42c817b786051694bfa5f0eb4b8efa8b327a318665cde8534dc4aa3d4e8ee3da8145bbec4afbeae7c392b16cd4f6e41ebe8bc342ef44b954672e59f19
7
- data.tar.gz: b1c067ff3b920291ef2dc1bc5d5dcf95231a5dca556c59c78287d145d96935df53285ec77ef45a552745b27721094249396ab6bf5a211c55f59ef9e05b0392f7
6
+ metadata.gz: 3d5a5ff7f308635f8181ca7a46ca479adc5e79a047094441cdc1cb5e67b0a0284c0c304640c399324fd5610f8418731aa72c0444090b5b85f96ced9285f2ff45
7
+ data.tar.gz: 018f243db2c4cc824326d719637e5b6cac996ea034f4c3898e5124aa0d47b8b2dc211c77d6f74996ab81a9341a7036222064fdb727499d656292841a38f8f363
data/README.md CHANGED
@@ -269,6 +269,9 @@ Creates your own DSL method to create child items. In arguments, you should spec
269
269
 
270
270
  # Changes
271
271
 
272
+ `0.1.3`
273
+ * this is a fix for 0.1.2, that it was not properly compiled.
274
+
272
275
  `0.1.2`
273
276
  * fixed: double callbacks inclusion issue
274
277
  * added: Base#wrap
@@ -0,0 +1,18 @@
1
+ module WrapIt
2
+ #
3
+ # Provides methods related to HTML `data` attribute
4
+ #
5
+ # @author Alexey Ovchinnikov <alexiss@cybernetlab.ru>
6
+ #
7
+ module HTMLData
8
+ def set_html_data(name, value)
9
+ @options[:data] ||= {}
10
+ @options[:data][name.to_sym] = value
11
+ end
12
+
13
+ def remove_html_data(name)
14
+ return unless @options[:data].is_a?(Hash)
15
+ @options[:data].delete(name.to_sym)
16
+ end
17
+ end
18
+ end
@@ -1,4 +1,4 @@
1
1
  #
2
2
  module WrapIt
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
data/wrap_it-0.1.2.gem ADDED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrap_it
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Ovchinnikov
@@ -115,6 +115,7 @@ files:
115
115
  - lib/wrap_it/derived_attributes.rb
116
116
  - lib/wrap_it/enums.rb
117
117
  - lib/wrap_it/html_class.rb
118
+ - lib/wrap_it/html_data.rb
118
119
  - lib/wrap_it/no_rails.rb
119
120
  - lib/wrap_it/rails.rb
120
121
  - lib/wrap_it/switches.rb
@@ -136,6 +137,7 @@ files:
136
137
  - spec/support/example_groups/wrap_it_example_group.rb
137
138
  - wrap_it-0.1.0.gem
138
139
  - wrap_it-0.1.1.gem
140
+ - wrap_it-0.1.2.gem
139
141
  - wrap_it.gemspec
140
142
  homepage: https://github.com/cybernetlab/wrap_it
141
143
  licenses: