sassquatch 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/Gemfile.lock +16 -0
- data/README.md +10 -0
- data/app/assets/stylesheets/{sassquatch.scss → _sassquatch.scss} +1 -1
- data/bin/sassquatch +3 -0
- data/lib/sassquatch.rb +6 -4
- data/lib/sassquatch/cli.rb +22 -0
- data/lib/sassquatch/engine.rb +4 -0
- data/lib/sassquatch/generator.rb +16 -0
- data/lib/sassquatch/version.rb +1 -1
- data/sassquatch.gemspec +2 -1
- metadata +25 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c33211ef049cb6b546d288e7e70f9c888e245bd5
|
4
|
+
data.tar.gz: 58811670a22d3c6a35d75c9631e4859f4cbb75ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a42231276539f1eef284e09d45589dc1e7a163e345d54df2e922a829823517df3399b24f2d7b0ce11ac5504678485c5e9e50a3a8f2141f065c46d140fbb4d48
|
7
|
+
data.tar.gz: d08dd58cd5a37ecc5267c0ef55da065409f0e884331aa12d82c654f91629f151a84edf0bbd8dde483c2134fd3630cc208c9ec2471dd6561ec244dc7f673f2c0f
|
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
data/README.md
CHANGED
@@ -16,6 +16,16 @@ Or install it yourself as:
|
|
16
16
|
|
17
17
|
$ gem install sassquatch
|
18
18
|
|
19
|
+
On your `app/stylesheets/application.css`:
|
20
|
+
|
21
|
+
require sassquatch
|
22
|
+
|
23
|
+
### Using outside Rails
|
24
|
+
|
25
|
+
You can install the Sassquatch files for using without Rails:
|
26
|
+
|
27
|
+
$ sassquatch install
|
28
|
+
|
19
29
|
## Contributing
|
20
30
|
|
21
31
|
1. Fork it
|
@@ -11,6 +11,7 @@ $rails: true !default;
|
|
11
11
|
@import "sassquatch/fonts";
|
12
12
|
@import "sassquatch/grid";
|
13
13
|
@import "sassquatch/image_replace";
|
14
|
+
@import "sassquatch/links";
|
14
15
|
@import "sassquatch/mute";
|
15
16
|
@import "sassquatch/no_border";
|
16
17
|
@import "sassquatch/no_list_style";
|
@@ -20,4 +21,3 @@ $rails: true !default;
|
|
20
21
|
@import "sassquatch/rails";
|
21
22
|
@import "sassquatch/reset_box";
|
22
23
|
@import "sassquatch/reset_last_child";
|
23
|
-
@import "sassquatch/text_decoration";
|
data/bin/sassquatch
ADDED
data/lib/sassquatch.rb
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
module Sassquatch
|
2
|
+
class CLI < Thor
|
3
|
+
check_unknown_options!
|
4
|
+
|
5
|
+
def self.exit_on_failure?
|
6
|
+
true
|
7
|
+
end
|
8
|
+
|
9
|
+
desc "install", "Install Sassquatch files"
|
10
|
+
def install
|
11
|
+
generator = Generator.new
|
12
|
+
generator.destination_root = Dir.pwd
|
13
|
+
generator.invoke_all
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "version", "Display Sassquatch version"
|
17
|
+
map %w(-v --version) => :version
|
18
|
+
def version
|
19
|
+
say "Sassquatch #{Sassquatch::VERSION}"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Sassquatch
|
2
|
+
class Generator < Thor::Group
|
3
|
+
include Thor::Actions
|
4
|
+
|
5
|
+
desc "Install the Sassquatch files"
|
6
|
+
|
7
|
+
def self.source_root
|
8
|
+
File.expand_path("../../../app/assets/stylesheets", __FILE__)
|
9
|
+
end
|
10
|
+
|
11
|
+
def copy_files
|
12
|
+
copy_file "_sassquatch.scss", "sassquatch/_sassquatch.scss"
|
13
|
+
directory "sassquatch", "sassquatch/sassquatch"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/sassquatch/version.rb
CHANGED
data/sassquatch.gemspec
CHANGED
@@ -6,11 +6,12 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = ["fnando.vieira@gmail.com"]
|
7
7
|
gem.description = "Some SCSS helpers"
|
8
8
|
gem.summary = gem.description
|
9
|
-
|
10
9
|
gem.files = `git ls-files`.split($\)
|
11
10
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
12
11
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
13
12
|
gem.name = "sassquatch"
|
14
13
|
gem.require_paths = ["lib"]
|
15
14
|
gem.version = Sassquatch::VERSION
|
15
|
+
|
16
|
+
gem.add_dependency "thor"
|
16
17
|
end
|
metadata
CHANGED
@@ -1,27 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sassquatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
12
|
-
dependencies:
|
11
|
+
date: 2013-09-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
description: Some SCSS helpers
|
14
28
|
email:
|
15
29
|
- fnando.vieira@gmail.com
|
16
|
-
executables:
|
30
|
+
executables:
|
31
|
+
- sassquatch
|
17
32
|
extensions: []
|
18
33
|
extra_rdoc_files: []
|
19
34
|
files:
|
20
35
|
- .gitignore
|
21
36
|
- Gemfile
|
37
|
+
- Gemfile.lock
|
22
38
|
- README.md
|
23
39
|
- Rakefile
|
24
|
-
- app/assets/stylesheets/
|
40
|
+
- app/assets/stylesheets/_sassquatch.scss
|
25
41
|
- app/assets/stylesheets/sassquatch/_background_image.scss
|
26
42
|
- app/assets/stylesheets/sassquatch/_centered.scss
|
27
43
|
- app/assets/stylesheets/sassquatch/_clearfix.scss
|
@@ -45,7 +61,11 @@ files:
|
|
45
61
|
- app/assets/stylesheets/sassquatch/_rails.scss
|
46
62
|
- app/assets/stylesheets/sassquatch/_reset_box.scss
|
47
63
|
- app/assets/stylesheets/sassquatch/_reset_last_child.scss
|
64
|
+
- bin/sassquatch
|
48
65
|
- lib/sassquatch.rb
|
66
|
+
- lib/sassquatch/cli.rb
|
67
|
+
- lib/sassquatch/engine.rb
|
68
|
+
- lib/sassquatch/generator.rb
|
49
69
|
- lib/sassquatch/version.rb
|
50
70
|
- sassquatch.gemspec
|
51
71
|
homepage:
|