artwork 0.4.2 → 0.5.0

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: dd212683243948ed0c64d50702ff40c7ffbe839f
4
- data.tar.gz: 79d5e4a16f6c51c341407f61fa9f77c713cc386c
3
+ metadata.gz: 1fa345b69eabe9139eeb79740dfcc21354bb94f2
4
+ data.tar.gz: cee710b63c1df40d91771243bb0a27ff84716d83
5
5
  SHA512:
6
- metadata.gz: adbc7f11748d9a90caf0b42a8b1a5126114efea40ae35c024f6703c3cad74cedca8c2ae10a3f16416a7f910a33c1d10c0b86908afbfc15b9bc5b0ce98e6e9e59
7
- data.tar.gz: fed5ae93555fe43a836210148da2894df71a4bd2b80f1ceb30995b1fded63962a02f6808d549517497349674c952bf0d0a31bf6074ccd435f6aac4d8f6171f50
6
+ metadata.gz: fdd18e2531a11607452a2c6b18d854f20d24b71a98ac3c394fb33935c469030e59e8a8032e85b2138485d9f457163968257f45ab8564b16ba4a6c390aebfd81d
7
+ data.tar.gz: 898a848c85d23bfa161df490879082c98f899965ca3c33c5ac0c0d388c0a0dcc9b7b1d91bcb5e8d0e6a706926adf00bc1ac80bb8bd3ff3775b0996eb16023976
data/README.md CHANGED
@@ -60,6 +60,15 @@ Add the following line at the top of your `<head>` section:
60
60
 
61
61
  <%= activate_resolution_independence %>
62
62
 
63
+ This will add a script which will set the cookie with the dimentions and
64
+ reload the current page. If the dimentions need updating, it will do the same thing.
65
+
66
+ This reloading causes some browsers to display unstyled html,
67
+ so you could prevent this if you add (*ABOVE* the top script):
68
+
69
+ <style> .artwork-reload-splash body { display: none; } </style>
70
+ <%= activate_resolution_independence %>
71
+
63
72
  ## Configuration
64
73
 
65
74
  Set the following variables in an app initializer:
@@ -1,3 +1,3 @@
1
1
  module Artwork
2
- VERSION = '0.4.2'
2
+ VERSION = '0.5.0'
3
3
  end
@@ -42,6 +42,7 @@
42
42
  widthChanged = oldWidth !== getCookie('width');
43
43
 
44
44
  if (cookiesWork && (retinaChanged || widthChanged)) {
45
+ document.documentElement.className += ' artwork-reload-splash';
45
46
  window.location.reload(true);
46
47
  return;
47
48
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitar Dimitrov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-09 00:00:00.000000000 Z
11
+ date: 2014-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler