tell-them 0.2.1 → 0.2.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 +4 -4
- data/lib/tell-them/tell-them.rb +6 -3
- data/lib/tell-them/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 19c88a8a7f48f14e57a01b2313c12c32212a4d88
|
|
4
|
+
data.tar.gz: fb6065488269fc16ac1fa6c61071c1c31de3e7fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a02ef11f7784b1aef86fb2e438d15fe52beb55fe7eb7b358b19bdf0bc6dc076b91c1fbd6385505386a87b554792432b664a4e4ff23718ae7781319b6695382f2
|
|
7
|
+
data.tar.gz: bef9b5e6f39de678d39fd29138346b1c64c00ac66d5cec60bc46cf39a21d2d5e7572c727d194efe8d0dcc7a7b234cf821a9e9fde22b81c1b4feca002c0bb4069
|
data/lib/tell-them/tell-them.rb
CHANGED
|
@@ -32,14 +32,17 @@ module TellThem
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def self.html
|
|
35
|
-
return '' unless has_data? && ::Rails.env.development?
|
|
36
|
-
|
|
35
|
+
return '' unless (has_data? || has_media_queries?) && ::Rails.env.development?
|
|
36
|
+
return ActionController::Base.helpers.stylesheet_link_tag('tell-them') +
|
|
37
|
+
box_html.html_safe +
|
|
38
|
+
ActionController::Base.helpers.javascript_include_tag('tell-them', async: true)
|
|
37
39
|
end
|
|
38
40
|
|
|
39
41
|
private
|
|
40
42
|
|
|
41
43
|
def self.box_html
|
|
42
|
-
box =
|
|
44
|
+
box = ''
|
|
45
|
+
box += media_queries_style_html
|
|
43
46
|
box += '<div id="tell-them-box">'
|
|
44
47
|
box += ' <div class="contents">'
|
|
45
48
|
box += ' <div class="controls">'
|
data/lib/tell-them/version.rb
CHANGED