griddy-rails 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/MIT-LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright © 2011 Seifvan Heifdari af Awesomeness Von Cheeseburger
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. By reading this fine print your soul is now the exclusive property of WeDoBDD Productions and its Subsidiaries. Unauthorized use of seivan gems, images, materials, souls, odors and oxygen is strongly discouraged. We know where you sleep. Also, your mum & bring back prop8
data/README.rdoc ADDED
@@ -0,0 +1,44 @@
1
+ = Griddy Rails
2
+ Griddy! For Rails! So sexy!
3
+
4
+ ## Rails 3.1
5
+
6
+ This gem vendors Griddy.scss stylesheet adapter for Rails 3.1 and greater. The files will be added to the asset pipeline and available for you to use. You will need to add this line to the file `app/assets/javascripts/application.js` (or whatever you have called it)
7
+
8
+ //= require griddy
9
+
10
+ ### Installation
11
+
12
+ In your Gemfile, add this line:
13
+
14
+ gem "jquery-rails"
15
+
16
+ You're done!
17
+
18
+ ### Usage
19
+ /* total with of page */`
20
+ `$width: 960px;`
21
+
22
+ /* number of columns */`
23
+ `$columns: 24;`
24
+
25
+ /* margin between columns */
26
+ `$col_margin: 0;`
27
+
28
+ /* create row div */
29
+ @mixin row() {
30
+
31
+ /* create a column div */
32
+ @mixin col($n: 1) {
33
+
34
+ /* make an element span n columns */
35
+ @mixin span($n: 1) {
36
+
37
+ /* the last column in a row needs this */
38
+ @mixin last() {
39
+
40
+ /* prepend n blank columns */
41
+ @mixin prepend($n: 1) {
42
+
43
+ /* append n blank columns */
44
+ @mixin append($n: 1) {
data/Rakefile ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+
8
+ require 'rake/rdoctask'
9
+
10
+ Rake::RDocTask.new(:rdoc) do |rdoc|
11
+ rdoc.rdoc_dir = 'rdoc'
12
+ rdoc.title = 'GriddyRails'
13
+ rdoc.options << '--line-numbers' << '--inline-source'
14
+ rdoc.rdoc_files.include('README.rdoc')
15
+ rdoc.rdoc_files.include('lib/**/*.rb')
16
+ end
17
+
18
+
19
+ require 'rake/testtask'
20
+
21
+ Rake::TestTask.new(:test) do |t|
22
+ t.libs << 'lib'
23
+ t.libs << 'test'
24
+ t.pattern = 'test/**/*_test.rb'
25
+ t.verbose = false
26
+ end
27
+
28
+
29
+ task :default => :test
@@ -0,0 +1,12 @@
1
+ module GriddyRails
2
+ module Rails
3
+ if ::Rails.version < "3.1"
4
+ require 'jquery-rails/railtie'
5
+ else
6
+ require 'jquery-rails/engine'
7
+ end
8
+ end
9
+
10
+ end
11
+
12
+
@@ -0,0 +1,5 @@
1
+ desc "Mixins for Griddy"
2
+ task :grid-rails do
3
+ puts "--------------------"
4
+ puts "--------------------"
5
+ end
metadata ADDED
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: griddy-rails
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 1.0.0
6
+ platform: ruby
7
+ authors:
8
+ - Seivan Heidari
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-05-22 00:00:00 +08:00
14
+ default_executable:
15
+ dependencies: []
16
+
17
+ description: Griddy Sexyness.
18
+ email: seivan@kth.se
19
+ executables: []
20
+
21
+ extensions: []
22
+
23
+ extra_rdoc_files: []
24
+
25
+ files:
26
+ - lib/griddy-rails.rb
27
+ - lib/tasks/griddy-rails_tasks.rake
28
+ - MIT-LICENSE
29
+ - Rakefile
30
+ - README.rdoc
31
+ has_rdoc: true
32
+ homepage: http://github.com/seivan
33
+ licenses: []
34
+
35
+ post_install_message:
36
+ rdoc_options: []
37
+
38
+ require_paths:
39
+ - lib
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: "0"
52
+ requirements: []
53
+
54
+ rubyforge_project:
55
+ rubygems_version: 1.6.2
56
+ signing_key:
57
+ specification_version: 3
58
+ summary: Griddy grids in rails 3.1
59
+ test_files: []
60
+