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 +4 -4
- data/README.md +3 -0
- data/lib/wrap_it/html_data.rb +18 -0
- data/lib/wrap_it/version.rb +1 -1
- data/wrap_it-0.1.2.gem +0 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5513713eca9304d31c6e40cd72dddca49052062
|
4
|
+
data.tar.gz: cdcd5c6c3cf677f8f7c1ba90327b60d93ef1827b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/wrap_it/version.rb
CHANGED
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.
|
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:
|