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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e88a64a2288a9b9e618d111bdf57a9b86838f5c9
4
- data.tar.gz: d772d402779d3522fdfd2f302e9ebc39b972e654
3
+ metadata.gz: 56484c28f58c0c21601a3e47c67e0bb5a3e740dd
4
+ data.tar.gz: 71596ea54d14949614bddd047375d90a05c20103
5
5
  SHA512:
6
- metadata.gz: 7b333da53099c5d4af9b693e6d97ef33175958b8744a8858134977c37e68fe221108207aad09ee56f5c7a3083e5bad36f975938ad66905886b3d17ffb70fd8eb
7
- data.tar.gz: ac066c0041a2df5215efafc979236d7646a90966d6222e02898dba372d0911431cbc7aa39ee6e7981c6867a2f147b0fcbd4e5d4be2b4fb4bf98a360afd7ea3a6
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/mechanoid/toppings)
4
- [![Dependency Status](https://gemnasium.com/toppings/toppings.png)](https://gemnasium.com/mechanoid/toppings)
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
- library = options[:vendor_library]
44
- path = options[:template_folder]
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 = file.to_s
94
+ file = file.to_s
91
95
  path_name = Pathname.new(file)
92
- dir_name = path_name.dirname.to_s != '.' ? path_name.dirname : nil
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.each do |vendor|
10
- require vendor
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
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Toppings
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.7'
4
4
  end
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.5
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-08-28 00:00:00.000000000 Z
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