toppings 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -33
- data/lib/toppings/generators/install/group_generator.rb +9 -5
- data/lib/toppings/generators/install_generator.rb +4 -2
- data/lib/toppings/version.rb +1 -1
- data/toppings.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56484c28f58c0c21601a3e47c67e0bb5a3e740dd
|
4
|
+
data.tar.gz: 71596ea54d14949614bddd047375d90a05c20103
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63a7dd810d0288c094d9e64882061e98ad6f5c759a3b72ce149534160fbe56a9236b89e99094c994a947a9e52430c09dfee6cd1ece8d977e6265765351f21c63
|
7
|
+
data.tar.gz: 5c760ab90ff2356c904dcc5a51c51fd3c13ba4c691c42bee56d184e7b55ecd5945e3a08df390d30b82a51dff9d2e13409ef93a397ec8d380e2dfe562d3860498
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
[![Build Status](https://travis-ci.org/toppings/toppings.png)](https://travis-ci.org/toppings/toppings)
|
2
2
|
[![Coverage Status](https://coveralls.io/repos/toppings/toppings/badge.png)](https://coveralls.io/r/toppings/toppings)
|
3
|
-
[![Code Climate](https://codeclimate.com/github/toppings/toppings.png)](https://codeclimate.com/github/
|
4
|
-
[![Dependency Status](https://gemnasium.com/toppings/toppings.png)](https://gemnasium.com/
|
3
|
+
[![Code Climate](https://codeclimate.com/github/toppings/toppings.png)](https://codeclimate.com/github/toppings/toppings)
|
4
|
+
[![Dependency Status](https://gemnasium.com/toppings/toppings.png)](https://gemnasium.com/toppings/toppings)
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/toppings.png)](http://badge.fury.io/rb/toppings)
|
6
6
|
|
7
7
|
## Welcome to Toppings
|
@@ -18,7 +18,6 @@ While we try to make this gem highly configurable in later versions, we want to
|
|
18
18
|
|
19
19
|
Installing toppings should be easy with standard gem mananig, because it does not carry any native dependencies until now :). So just try to run `gem install toppings` (with sudo, when you are not running without ruby version management) or add the gem to your Gemfile with `gem 'toppings'`.
|
20
20
|
|
21
|
-
|
22
21
|
### Usage
|
23
22
|
|
24
23
|
The toppings gem ships with a binary called `topping` which is basically a wrapper for some) [Thor LINK IS MISSING](…)-tasks and provides a similar syntax as the rails binary does for generation tasks.
|
@@ -63,33 +62,3 @@ That means you will find a bunch of imports including compass, your grid framewo
|
|
63
62
|
t.b.d
|
64
63
|
|
65
64
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
@@ -40,10 +40,14 @@ module Toppings
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def with_template(file, options = {})
|
43
|
-
|
44
|
-
|
43
|
+
options = options.reverse_merge({ namespaced: true })
|
44
|
+
|
45
|
+
library = options[:vendor_library]
|
46
|
+
namespaced = options[:namespaced]
|
47
|
+
path = options[:template_folder]
|
48
|
+
|
45
49
|
Toppings::SASS_DEPENDENCIES.add(library) if library
|
46
|
-
file = library ? "#{library}.#{file}" : file.to_s
|
50
|
+
file = library && namespaced ? "#{library}.#{file}" : file.to_s
|
47
51
|
file = Pathname.new(path).join(file) if path
|
48
52
|
templates << file
|
49
53
|
end
|
@@ -87,9 +91,9 @@ module Toppings
|
|
87
91
|
|
88
92
|
|
89
93
|
def parse_file_name(file)
|
90
|
-
file
|
94
|
+
file = file.to_s
|
91
95
|
path_name = Pathname.new(file)
|
92
|
-
dir_name
|
96
|
+
dir_name = path_name.dirname.to_s != '.' ? path_name.dirname : nil
|
93
97
|
[path_name.basename, dir_name]
|
94
98
|
end
|
95
99
|
end
|
@@ -6,8 +6,10 @@ Dir.glob(File.join(Toppings.gem_root, '**', 'install', '*_generator.rb')).each d
|
|
6
6
|
require generator
|
7
7
|
end
|
8
8
|
|
9
|
-
Toppings.conf.required_vendors
|
10
|
-
|
9
|
+
if Toppings.conf.required_vendors
|
10
|
+
Toppings.conf.required_vendors.each do |vendor|
|
11
|
+
require vendor
|
12
|
+
end
|
11
13
|
end
|
12
14
|
|
13
15
|
module Toppings
|
data/lib/toppings/version.rb
CHANGED
data/toppings.gemspec
CHANGED
@@ -32,7 +32,6 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_dependency "thor", ">= 0.18.1"
|
33
33
|
spec.add_dependency "activesupport", ">= 3.2"
|
34
34
|
spec.add_dependency "compass", ">= 0.12.2"
|
35
|
-
spec.add_dependency "modular-scale"
|
36
35
|
spec.add_dependency "toppings-normalize", "~> 0.0.3"
|
37
36
|
spec.add_dependency "toppings-singularity"
|
38
37
|
spec.add_dependency "toppings-modular_scale"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toppings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Falk Hoppe, Roman Stranghöner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,20 +136,6 @@ dependencies:
|
|
136
136
|
- - '>='
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 0.12.2
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: modular-scale
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - '>='
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :runtime
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - '>='
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: toppings-normalize
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|