polysize-rails 0.0.5 → 0.0.6

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: 93e2046d59c9e618966c13dea46121f19b3dacb0
4
- data.tar.gz: b1badf8a7199c0ce7c441eea3982a8a9c0da55d4
3
+ metadata.gz: b0dcfad9ec706c683407c395dc7403cad4b33e78
4
+ data.tar.gz: 1fe3618fa27e8041865fd29467324d0a38bb9f12
5
5
  SHA512:
6
- metadata.gz: 9c306b45de37284513114ec38eaff48fa2dd9a3c9e470e4c71052f5c6935095310605eeb003e9b2df3d227bdf1a7c60b8cec2cc8d2787c528b737796f8ee9010
7
- data.tar.gz: 6be7a50ece0f134ce081dc718aed4b475a77e293d544d06831b0e7229a72f491548c9bf3430ba64c5b82dc4b9bbddfdd2de3b2a54552b387b1ed3e0011575013
6
+ metadata.gz: 638d6691a1ff698492a2469a36e39a5886f3c622891c5383fccbe50f6b2957dade80b74640fa2d8e0910d876e447ebffbdf0ee8e9c4e2bf9d5336d7e16092f09
7
+ data.tar.gz: a20bdf7e0c727ed9c33d5e1b018d0b178981efe0791e83543616cc8b6095deaf0e3a269d1443c47be7c2daa601cd0f5fb088f62ba96cdbbf2898caf64d3d257e
@@ -1,3 +1,3 @@
1
1
  module PolysizeRails
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -90,9 +90,9 @@ window.Polysize = (function() {
90
90
  "Invalid option `sizing`. Must be a string or array.");
91
91
  }
92
92
 
93
- switch (typeof(options.origin)) {
93
+ switch (typeof(options.offset)) {
94
94
  case 'string':
95
- switch (options.origin[0]) {
95
+ switch (options.offset[0]) {
96
96
  case 't':
97
97
  y = 0;
98
98
  break;
@@ -104,9 +104,9 @@ window.Polysize = (function() {
104
104
  break;
105
105
  default:
106
106
  return alert(
107
- "Invalid Polysize `origin` option.");
107
+ "Invalid Polysize `offset` option.");
108
108
  }
109
- switch (options.origin[1]) {
109
+ switch (options.offset[1]) {
110
110
  case 'l':
111
111
  x = 0;
112
112
  break;
@@ -118,13 +118,14 @@ window.Polysize = (function() {
118
118
  break;
119
119
  default:
120
120
  return alert(
121
- "Invalid Polysize `origin` option.");
121
+ "Invalid Polysize `offset` option.");
122
122
  }
123
123
  break;
124
124
 
125
125
  case 'object':
126
- return alert(
127
- "`origin` of type `array` is not supported yet.");
126
+ x = options.offset[0];
127
+ y = options.offset[1];
128
+ break;
128
129
 
129
130
  default:
130
131
  x = (bounds[0] - w) / 2;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polysize-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Waltman II