grater 0.1.1 → 0.1.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.
- data/Gemfile.lock +4 -4
- data/LICENSE +1 -1
- data/Rakefile +2 -2
- data/Readme.markdown +4 -2
- data/app/assets/stylesheets/grater.css.scss +6 -6
- data/grater.css +1 -1
- data/grater.gemspec +5 -4
- data/lib/grater/version.rb +1 -1
- metadata +10 -9
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
grater (0.1.
|
5
|
-
sass (>= 3.2.0
|
4
|
+
grater (0.1.2)
|
5
|
+
sass (>= 3.2.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
rake (0.
|
11
|
-
sass (3.2.
|
10
|
+
rake (10.0.3)
|
11
|
+
sass (3.2.5)
|
12
12
|
|
13
13
|
PLATFORMS
|
14
14
|
ruby
|
data/LICENSE
CHANGED
data/Rakefile
CHANGED
@@ -3,8 +3,8 @@ Bundler::GemHelper.install_tasks
|
|
3
3
|
|
4
4
|
desc 'Compile the source file into a .css'
|
5
5
|
task :compile do
|
6
|
-
`bundle exec sass --scss --style=compressed
|
6
|
+
`bundle exec sass --scss --style=compressed app/assets/stylesheets/grater.css.scss grater.css`
|
7
7
|
puts 'Compiled to grater.css'
|
8
8
|
end
|
9
9
|
|
10
|
-
task default
|
10
|
+
task :default => :compile
|
data/Readme.markdown
CHANGED
@@ -32,13 +32,15 @@ You can also use the reverse version:
|
|
32
32
|
</div>
|
33
33
|
```
|
34
34
|
|
35
|
-
`div.grater` is intended to be enclosed in a 640px or 300px container. You can optionally add `<div class="grater-container">` around it to get this functionality.
|
35
|
+
**Important:** `div.grater` is intended to be enclosed in a 640px or 300px container. You can optionally add `<div class="grater-container">` around it to get this functionality.
|
36
36
|
|
37
37
|
## Asset Pipeline
|
38
38
|
|
39
39
|
Add this line to your application's Gemfile:
|
40
40
|
|
41
|
-
|
41
|
+
``` ruby
|
42
|
+
gem 'grater'
|
43
|
+
```
|
42
44
|
|
43
45
|
And then execute:
|
44
46
|
|
@@ -4,17 +4,17 @@ $grater-column-width: 300px;
|
|
4
4
|
$grater-small-media-query: "all and (max-width: 660px)";
|
5
5
|
|
6
6
|
// Grater container
|
7
|
-
|
7
|
+
.grater-container {
|
8
8
|
width: $grater-large-container-width;
|
9
9
|
margin: 0 auto;
|
10
|
-
|
10
|
+
|
11
11
|
@media #{$grater-small-media-query} {
|
12
12
|
width: $grater-small-container-width;
|
13
13
|
}
|
14
14
|
}
|
15
15
|
|
16
16
|
// Grater row
|
17
|
-
|
17
|
+
.grater {
|
18
18
|
// Columns
|
19
19
|
> div {
|
20
20
|
width: $grater-column-width;
|
@@ -41,16 +41,16 @@ div.grater {
|
|
41
41
|
float: left;
|
42
42
|
}
|
43
43
|
}
|
44
|
-
|
44
|
+
|
45
45
|
// Clearfix
|
46
46
|
zoom: 1;
|
47
|
-
|
47
|
+
|
48
48
|
&:before,
|
49
49
|
&:after {
|
50
50
|
content: "";
|
51
51
|
display: table;
|
52
52
|
}
|
53
|
-
|
53
|
+
|
54
54
|
&:after {
|
55
55
|
clear: both;
|
56
56
|
}
|
data/grater.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
.grater-container{width:640px;margin:0 auto}@media all and (max-width: 660px){.grater-container{width:300px}}.grater{zoom:1}.grater>div{width:300px;margin:0 0 2em}.grater>div:first-child{float:left}.grater>div:last-child{float:right}.grater.reverse>div:first-child{float:right}.grater.reverse>div:last-child{float:left}.grater:before,.grater:after{content:"";display:table}.grater:after{clear:both}@media all and (max-width: 660px){.grater{margin-bottom:1em}.grater>div{float:none !important;margin:0 auto 2em}}
|
data/grater.gemspec
CHANGED
@@ -3,10 +3,11 @@ require File.expand_path('../lib/grater/version', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ['Sam Soffes']
|
6
|
-
gem.email = ['sam@
|
6
|
+
gem.email = ['sam@soff.es']
|
7
7
|
gem.summary = 'CSS grids as easy to use as a cheese grater'
|
8
8
|
gem.description = 'This gem provides the grate CSS grid system for your Rails 3 application.'
|
9
|
-
gem.homepage = 'https://github.com/
|
9
|
+
gem.homepage = 'https://github.com/soffes/grater'
|
10
|
+
gem.license = 'MIT'
|
10
11
|
|
11
12
|
gem.files = `git ls-files`.split($\)
|
12
13
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
@@ -14,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
14
15
|
gem.name = 'grater'
|
15
16
|
gem.require_paths = ['lib']
|
16
17
|
gem.version = Grater::VERSION
|
17
|
-
|
18
|
-
gem.add_dependency 'sass', '>= 3.2.0
|
18
|
+
|
19
|
+
gem.add_dependency 'sass', '>= 3.2.0'
|
19
20
|
gem.add_development_dependency 'rake'
|
20
21
|
end
|
data/lib/grater/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sass
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.0
|
21
|
+
version: 3.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.2.0
|
29
|
+
version: 3.2.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: rake
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,7 +45,7 @@ dependencies:
|
|
45
45
|
version: '0'
|
46
46
|
description: This gem provides the grate CSS grid system for your Rails 3 application.
|
47
47
|
email:
|
48
|
-
- sam@
|
48
|
+
- sam@soff.es
|
49
49
|
executables: []
|
50
50
|
extensions: []
|
51
51
|
extra_rdoc_files: []
|
@@ -62,8 +62,9 @@ files:
|
|
62
62
|
- lib/grater.rb
|
63
63
|
- lib/grater/engine.rb
|
64
64
|
- lib/grater/version.rb
|
65
|
-
homepage: https://github.com/
|
66
|
-
licenses:
|
65
|
+
homepage: https://github.com/soffes/grater
|
66
|
+
licenses:
|
67
|
+
- MIT
|
67
68
|
post_install_message:
|
68
69
|
rdoc_options: []
|
69
70
|
require_paths:
|
@@ -76,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
77
|
version: '0'
|
77
78
|
segments:
|
78
79
|
- 0
|
79
|
-
hash: -
|
80
|
+
hash: -2662959704531747482
|
80
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
82
|
none: false
|
82
83
|
requirements:
|
@@ -85,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
86
|
version: '0'
|
86
87
|
segments:
|
87
88
|
- 0
|
88
|
-
hash: -
|
89
|
+
hash: -2662959704531747482
|
89
90
|
requirements: []
|
90
91
|
rubyforge_project:
|
91
92
|
rubygems_version: 1.8.23
|