toppings 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/topping +1 -1
- data/lib/toppings.rb +1 -1
- data/lib/toppings/cli.rb +1 -1
- data/lib/toppings/config.rb +17 -1
- data/lib/toppings/generators.rb +1 -1
- data/lib/toppings/generators/install/group_generator.rb +1 -1
- data/lib/toppings/helper.rb +0 -2
- data/lib/toppings/helper/base_file_helper.rb +1 -1
- data/lib/toppings/helper/generator_registration_helper.rb +1 -1
- data/lib/toppings/helper/index_file_helper.rb +1 -1
- data/lib/toppings/helper/path_helper.rb +1 -1
- data/lib/toppings/helper/sass_content_helper.rb +1 -1
- data/lib/toppings/helper/sass_conversion_helper.rb +1 -1
- data/lib/toppings/helper/sass_file_helper.rb +1 -1
- data/lib/toppings/helper/sass_framework_helper.rb +1 -1
- data/lib/toppings/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3c79f2a68559ad6ad67c058132195b4052b988a
|
4
|
+
data.tar.gz: 03519847a84de4ea11e8c48185bda5c554eb7382
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86d52d01967e477d5d8a9ad76e1d38f437d2e3282b1f7dec8ca3e296ba53c315f0ee340dd9b59075b3836c28ad55729971b844fa94865a15216ae4ec0f421cc4
|
7
|
+
data.tar.gz: eb9bdbab502b9d2cde5a5514f210b8383f21bda0fe4ee22ee62212bc7a4ea810f4358d182d3b12710e863cb9f9e9b77915cdfef0b4d2786d98447f989a771d94
|
data/bin/topping
CHANGED
data/lib/toppings.rb
CHANGED
data/lib/toppings/cli.rb
CHANGED
data/lib/toppings/config.rb
CHANGED
@@ -5,6 +5,8 @@ require 'ostruct'
|
|
5
5
|
module Toppings
|
6
6
|
class Config < OpenStruct
|
7
7
|
|
8
|
+
CONFIGS = []
|
9
|
+
|
8
10
|
def initialize(options = {})
|
9
11
|
super()
|
10
12
|
|
@@ -15,11 +17,22 @@ module Toppings
|
|
15
17
|
|
16
18
|
class << self
|
17
19
|
def load
|
20
|
+
@config ||= new(joined_config)
|
21
|
+
end
|
22
|
+
|
23
|
+
def reload
|
18
24
|
@config = new(joined_config)
|
19
25
|
end
|
20
26
|
|
21
27
|
def joined_config
|
22
|
-
|
28
|
+
configs = CONFIGS.dup
|
29
|
+
configs << custom_config
|
30
|
+
configs.each_with_object({}) { |config, result_config| result_config.deep_merge!(config) }
|
31
|
+
end
|
32
|
+
|
33
|
+
def inject_config(config)
|
34
|
+
CONFIGS << config
|
35
|
+
reload
|
23
36
|
end
|
24
37
|
|
25
38
|
def custom_config
|
@@ -63,5 +76,8 @@ module Toppings
|
|
63
76
|
Pathname.new('.').join('config')
|
64
77
|
end
|
65
78
|
end
|
79
|
+
|
80
|
+
CONFIGS << default_config
|
81
|
+
|
66
82
|
end
|
67
83
|
end
|
data/lib/toppings/generators.rb
CHANGED
@@ -8,4 +8,4 @@ require 'toppings/generators/sass_file_generator'
|
|
8
8
|
require 'toppings/generators/install/base_generator'
|
9
9
|
require 'toppings/generators/install/group_generator'
|
10
10
|
require 'toppings/generators/install_generator'
|
11
|
-
require 'toppings/generators/components_generator'
|
11
|
+
require 'toppings/generators/components_generator'
|
data/lib/toppings/helper.rb
CHANGED
data/lib/toppings/version.rb
CHANGED