gridster-rails 0.5.6 → 0.5.6.1
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/README.md +40 -121
- data/lib/gridster-rails/version.rb +1 -1
- metadata +11 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c33fc827fe107775f994579e9ac80a443a83ca5
|
4
|
+
data.tar.gz: 8bb2832b64d3d535af9bb0c97e528ab211bc0e6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ea432fd66a1107cd22ee5948d111c7268d80c2ef91011a51a4f73e40ad4fda1d3c4e51c5b4923a9d434110d7e85f500218bb84c9026cebf83b3cd9fb20e1d2d
|
7
|
+
data.tar.gz: 79438a356b6002155c1940f818bc64deadbb92318b0167baf5cf52f5ea56b4e5f4669d2588cdeaec5b6c3b6ff858c4e0c8ecbc5231dd45334b9330a816cb9950
|
data/README.md
CHANGED
@@ -1,45 +1,8 @@
|
|
1
1
|
# Gridster::Rails
|
2
2
|
|
3
|
-
This is [gridster.js](http://gridster.net) GEMified for the Rails >= 3.1 asset pipeline
|
3
|
+
This is [gridster.js](http://gridster.net) GEMified for the Rails >= 3.1 asset pipeline
|
4
4
|
|
5
|
-
|
6
|
-
cd gridster-rails
|
7
|
-
mkdir -p vendor/assets/javascripts
|
8
|
-
mkdir -p vendor/assets/stylesheets
|
9
|
-
curl https://raw.github.com/ducksboard/gridster.js/master/dist/jquery.gridster.js -o vendor/assets/javascripts/jquery.gridster.js
|
10
|
-
curl https://raw.github.com/ducksboard/gridster.js/master/dist/jquery.gridster.css -o vendor/assets/stylesheets/jquery.gridster.css
|
11
|
-
echo "" >> README.md; echo "# gridster.js appended README #" >> README.md; echo "" >> README.md
|
12
|
-
curl https://raw.github.com/dustmoo/gridster.js/master/README.md >> README.md
|
13
|
-
echo "" >> LICENSE; echo "# gridster.js appended LICENSE #" >> LICENSE; echo "" >> LICENSE
|
14
|
-
curl https://raw.github.com/dustmoo/gridster.js/master/LICENSE >> LICENSE
|
15
|
-
git add .
|
16
|
-
git commit -am "initial gridster-rails"
|
17
|
-
git remote add origin git@github.com:vanetten/gridster-rails.git
|
18
|
-
|
19
|
-
* modify **lib/gridster-rails/version.rb** to match gridster.js version
|
20
|
-
|
21
|
-
VERSION = "0.5.6"
|
22
|
-
|
23
|
-
* modify **lib/gridster-rails.rb** to subclass Rails::Engine
|
24
|
-
|
25
|
-
class Engine < ::Rails::Engine
|
26
|
-
end
|
27
|
-
|
28
|
-
* modify **gridster-rails.gemspec**
|
29
|
-
|
30
|
-
gem.description = "This gem provides jquery.gridster.js and jquery.gridster.css for your Rails 3, 4 application."
|
31
|
-
gem.summary = "Use gridster with Rails 3 and 4"
|
32
|
-
gem.homepage = "http://rubygems.org/gems/gridster-rails"
|
33
|
-
gem.files = Dir["{lib,vendor}/**/*"] + ["LICENSE", "README.md"]
|
34
|
-
gem.add_dependency "railties", '>= 3.1.0', '< 5.0'
|
35
|
-
|
36
|
-
* build
|
37
|
-
|
38
|
-
rake build
|
39
|
-
|
40
|
-
* release
|
41
|
-
|
42
|
-
rake release
|
5
|
+
[](https://badge.fury.io/rb/gridster-rails)
|
43
6
|
|
44
7
|
## Installation
|
45
8
|
|
@@ -59,21 +22,11 @@ Or install it yourself as:
|
|
59
22
|
|
60
23
|
Add to **application.js**
|
61
24
|
|
62
|
-
|
25
|
+
//= require jquery.gridster.js
|
63
26
|
|
64
27
|
Add to **application.css**
|
65
28
|
|
66
|
-
|
67
|
-
|
68
|
-
## Contributing
|
69
|
-
|
70
|
-
1. Fork it
|
71
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
72
|
-
3. Commit your changes (`git commit -am 'Added some feature'`)
|
73
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
74
|
-
5. Create new Pull Request
|
75
|
-
|
76
|
-
# gridster.js appended README #
|
29
|
+
*= require jquery.gridster.css
|
77
30
|
|
78
31
|
Gridster.js
|
79
32
|
===========
|
@@ -82,28 +35,9 @@ Gridster is a jQuery plugin that makes building intuitive draggable
|
|
82
35
|
layouts from elements spanning multiple columns. You can even
|
83
36
|
dynamically add and remove elements from the grid.
|
84
37
|
|
85
|
-
|
86
|
-
|
87
|
-
Public Service Announcement from Dustin Moore (dustmoo)
|
88
|
-
=======================================================
|
89
|
-
|
90
|
-
Gridster is not currently being actively maintained by
|
91
|
-
[Ducksboard](http://ducksboard.com/).
|
92
|
-
|
93
|
-
I and others have been given access to the repo to help
|
94
|
-
maintain and address issues.
|
95
|
-
|
96
|
-
I have created a fork of gridster that supports more advanced
|
97
|
-
features, like widget-swapping and static widgets.
|
98
|
-
|
99
|
-
It can be found here: https://github.com/dustmoo/gridster.js
|
100
|
-
|
101
|
-
Currently the code-base is different and I don't have time to
|
102
|
-
reconcile the fork with this repo.
|
103
|
-
|
104
|
-
If anyone would like to help me improve my fork and reconcile
|
105
|
-
it with the main library I would be happy for the help.
|
38
|
+
Documentation and usage: [http://gridster.net/](http://gridster.net/).
|
106
39
|
|
40
|
+
[Changelog](https://github.com/ducksboard/gridster.js/blob/master/CHANGELOG.md)
|
107
41
|
|
108
42
|
License
|
109
43
|
=======
|
@@ -113,66 +47,51 @@ Distributed under the MIT license.
|
|
113
47
|
Whodunit
|
114
48
|
========
|
115
49
|
|
116
|
-
Gridster is
|
117
|
-
|
118
|
-
dustmoo Modifications
|
119
|
-
===========
|
120
|
-
|
121
|
-
Changelog 2013-04-3
|
122
|
-
|
123
|
-
Fork now handles standard behavior properly with swap allowing larger widgets to shift down.
|
124
|
-
|
125
|
-
Changelog 2013-04-2
|
126
|
-
|
127
|
-
Added Demo to Repository.
|
128
|
-
|
129
|
-
Changelog 2013-02-27
|
50
|
+
Gridster is maintained by [Ducksboard](http://ducksboard.com/) by Ducksboard occasionally but not actively. @dustmoo and @pushmatrix have also write permissions as Gridster maintainers they are. Thank you guys!
|
130
51
|
|
131
|
-
|
132
|
-
|
133
|
-
You can customize this class by using the code below:
|
134
|
-
|
135
|
-
$.gridster({
|
136
|
-
static_class: 'custom_class',
|
137
|
-
draggable: {
|
138
|
-
items: ".gs_w:not(.custom_class)"
|
139
|
-
}
|
140
|
-
});
|
141
|
-
|
142
|
-
I have also added functions creating a much more thourough check of whether the player can occupy the space you are moving it too.
|
143
|
-
This version is much more reliable in swapping space with widgets.
|
144
|
-
|
145
|
-
There are also new options for Maximum Rows and Maximum Columns:
|
146
|
-
|
147
|
-
$.gridster({
|
148
|
-
max_rows: map_rows,
|
149
|
-
max_cols: map_cols,
|
150
|
-
shift_larger_widgets_down: false
|
151
|
-
});
|
152
|
-
|
153
|
-
Setting the maximum amount of rows only completely works if you disable shifting larger widgets down at the moment.
|
52
|
+
## Contributing
|
154
53
|
|
54
|
+
1. Fork it
|
55
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
56
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
57
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
58
|
+
5. Create new Pull Request
|
155
59
|
|
156
|
-
|
60
|
+
How this gem was created
|
61
|
+
========================
|
157
62
|
|
158
|
-
|
63
|
+
bundle gem gridster-rails
|
64
|
+
cd gridster-rails
|
65
|
+
mkdir -p vendor/assets/javascripts
|
66
|
+
mkdir -p vendor/assets/stylesheets
|
67
|
+
curl https://raw.github.com/ducksboard/gridster.js/master/dist/jquery.gridster.js -o vendor/assets/javascripts/jquery.gridster.js
|
68
|
+
curl https://raw.github.com/ducksboard/gridster.js/master/dist/jquery.gridster.css -o vendor/assets/stylesheets/jquery.gridster.css
|
69
|
+
echo "" >> README.md; echo "# gridster.js appended README #" >> README.md; echo "" >> README.md
|
70
|
+
curl https://raw.github.com/ducksboard/gridster.js/master/README.md >> README.md
|
71
|
+
echo "" >> LICENSE; echo "# gridster.js appended LICENSE #" >> LICENSE; echo "" >> LICENSE
|
72
|
+
curl https://raw.github.com/ducksboard/gridster.js/master/LICENSE >> LICENSE
|
159
73
|
|
160
|
-
|
74
|
+
modify **lib/gridster-rails/version.rb** to match gridster.js version
|
161
75
|
|
162
|
-
|
163
|
-
will swap places with the original widget.
|
76
|
+
VERSION = "0.5.6"
|
164
77
|
|
165
|
-
|
78
|
+
modify **lib/gridster-rails.rb** to subclass Rails::Engine
|
166
79
|
|
167
|
-
|
80
|
+
class Engine < ::Rails::Engine
|
81
|
+
end
|
168
82
|
|
169
|
-
|
83
|
+
modify **gridster-rails.gemspec**
|
170
84
|
|
171
|
-
|
172
|
-
|
173
|
-
|
85
|
+
gem.description = "This gem provides jquery.gridster.js and jquery.gridster.css for your Rails 3+ application."
|
86
|
+
gem.summary = "Use gridster with Rails 3+"
|
87
|
+
gem.homepage = "http://rubygems.org/gems/gridster-rails"
|
88
|
+
gem.files = Dir["{lib,vendor}/**/*"] + ["LICENSE", "README.md"]
|
89
|
+
gem.add_dependency "railties", '>= 3.1.0', '< 6.0'
|
174
90
|
|
175
|
-
|
91
|
+
build
|
176
92
|
|
93
|
+
rake build
|
177
94
|
|
95
|
+
release
|
178
96
|
|
97
|
+
rake release
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gridster-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.6
|
4
|
+
version: 0.5.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Van Etten
|
8
|
+
- Henk van der Veen
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2016-07-29 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: railties
|
@@ -19,7 +20,7 @@ dependencies:
|
|
19
20
|
version: 3.1.0
|
20
21
|
- - "<"
|
21
22
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
23
|
+
version: '6.0'
|
23
24
|
type: :runtime
|
24
25
|
prerelease: false
|
25
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,11 +30,12 @@ dependencies:
|
|
29
30
|
version: 3.1.0
|
30
31
|
- - "<"
|
31
32
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
33
|
+
version: '6.0'
|
33
34
|
description: This gem provides jquery.gridster.js and jquery.gridster.css for your
|
34
|
-
Rails 3 application.
|
35
|
+
Rails 3+ application.
|
35
36
|
email:
|
36
37
|
- bill@bioteam.net
|
38
|
+
- henk.van.der.veen@gmail.com
|
37
39
|
executables: []
|
38
40
|
extensions: []
|
39
41
|
extra_rdoc_files: []
|
@@ -45,7 +47,8 @@ files:
|
|
45
47
|
- vendor/assets/javascripts/jquery.gridster.js
|
46
48
|
- vendor/assets/stylesheets/jquery.gridster.css
|
47
49
|
homepage: http://rubygems.org/gems/gridster-rails
|
48
|
-
licenses:
|
50
|
+
licenses:
|
51
|
+
- MIT
|
49
52
|
metadata: {}
|
50
53
|
post_install_message:
|
51
54
|
rdoc_options: []
|
@@ -63,9 +66,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
66
|
version: '0'
|
64
67
|
requirements: []
|
65
68
|
rubyforge_project:
|
66
|
-
rubygems_version: 2.
|
69
|
+
rubygems_version: 2.5.1
|
67
70
|
signing_key:
|
68
71
|
specification_version: 4
|
69
|
-
summary: Use gridster with Rails 3
|
72
|
+
summary: Use gridster with Rails 3+
|
70
73
|
test_files: []
|
71
|
-
has_rdoc:
|