tell-them 0.2.1 → 0.2.2

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: a965d74ae6932be9fe90ef64b58ee80d9f2a3d5f
4
- data.tar.gz: e98bc0dbf43abd8c0fb798d3cd90985236eafcee
3
+ metadata.gz: 19c88a8a7f48f14e57a01b2313c12c32212a4d88
4
+ data.tar.gz: fb6065488269fc16ac1fa6c61071c1c31de3e7fb
5
5
  SHA512:
6
- metadata.gz: ff23b272589f99ca63582f8d4ae40241a52bcc342148bd51c9a607ddb34d4f0e41544b8d30a64f85f67f1d730122017a0860eb8b3d9b06e80dd25fd844eb8d9b
7
- data.tar.gz: 96fe98b6f80fc743170ca850a1e52fb443ffa309def62b93688e7f62e35a99265d2f39fc208c318a030c7031b83c6f6305906eef9d0e8102b22d38f511653657
6
+ metadata.gz: a02ef11f7784b1aef86fb2e438d15fe52beb55fe7eb7b358b19bdf0bc6dc076b91c1fbd6385505386a87b554792432b664a4e4ff23718ae7781319b6695382f2
7
+ data.tar.gz: bef9b5e6f39de678d39fd29138346b1c64c00ac66d5cec60bc46cf39a21d2d5e7572c727d194efe8d0dcc7a7b234cf821a9e9fde22b81c1b4feca002c0bb4069
@@ -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
- box_html.html_safe
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 = media_queries_style_html
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">'
@@ -1,5 +1,5 @@
1
1
  module TellThem
2
2
  module Rails
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tell-them
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - K M Lawrence