my_dashboard 0.5.1 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c38526e7f894d0e46e9d11c665e8b1bdbaef1719
4
- data.tar.gz: 39d40a9513598287e1eb8075123646057790c051
3
+ metadata.gz: 99b7d74c7ca0a7d0825593f4b182c01744758bf1
4
+ data.tar.gz: feb4c1e1bc818ead9a1b73a624b7119ee39cffed
5
5
  SHA512:
6
- metadata.gz: d7a048cbf4d36cae5a064cd84138a6478f4aabfe342fcf6ed8923e9202c1eb1c930f9ee9451b6e0c4f1ebae218e07569225c4b24b30a303161768269d639a648
7
- data.tar.gz: 50d183b1b22149eadf7bb55966b23033b99ca5c4689b3a687b65fd7c94058fb936cc1b9e0dd50e9a2d89cabaffbee80a6545da2ed206c215811fee27539db749
6
+ metadata.gz: d87180430d12432ff789d565e44d3c1743426fdf77ed32f8e1bd06fe7e1b16d9f231534f51e880040f4f059def45c5b6e38024c005fae4b4d4c8c480acdf9288
7
+ data.tar.gz: 1f722d069ffc23d44f1e080eff47983d9050af10116b6b084d62ea9e3ab2069d57cd2cc711bd2f11fdffa80876b3f2bd90997ab92a20611cc09dbd7c3579d6b5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.5.2 (05/17/2016)
2
+
3
+ * Fix require gem error
4
+
1
5
  ## 0.5.1 (05/17/2016)
2
6
 
3
7
  * Fix problem with my_dashboard generator batmanjs integration
@@ -0,0 +1,18 @@
1
+ console.log("Yeah! The dashboard has started!")
2
+
3
+ MyDashboard.on 'ready', ->
4
+ MyDashboard.widget_margins ||= [5, 5]
5
+ MyDashboard.widget_base_dimensions ||= [300, 360]
6
+ MyDashboard.numColumns ||= 4
7
+
8
+ contentWidth = (MyDashboard.widget_base_dimensions[0] + MyDashboard.widget_margins[0] * 2) * MyDashboard.numColumns
9
+
10
+ Batman.setImmediate ->
11
+ $('.gridster').width(contentWidth)
12
+ $('.gridster ul:first').gridster
13
+ widget_margins: MyDashboard.widget_margins
14
+ widget_base_dimensions: MyDashboard.widget_base_dimensions
15
+ avoid_overlapped_widgets: !MyDashboard.customGridsterLayout
16
+ draggable:
17
+ stop: MyDashboard.showGridsterInstructions
18
+ start: -> MyDashboard.currentWidgetPositions = MyDashboard.getWidgetPositions()
@@ -1,3 +1,3 @@
1
1
  module MyDashboard
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
data/lib/my_dashboard.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require File.dirname(__FILE__) + '/my_dashboard'
1
2
  module MyDashboard
2
3
  class << self
3
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_dashboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danilo Vaz