archetype 0.0.1.pre.3.811928f → 0.0.1.pre.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +24 -1
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/VERSION.yml +1 -1
- data/bin/archetype +3 -0
- data/lib/archetype.rb +4 -0
- data/lib/archetype/actions/help.rb +16 -0
- data/lib/archetype/actions/theme.rb +73 -0
- data/lib/archetype/executor.rb +27 -0
- data/lib/archetype/functions/hash.rb +28 -12
- data/lib/archetype/functions/helpers.rb +46 -13
- data/lib/archetype/functions/styleguide_memoizer.rb +9 -1
- data/lib/archetype/sass_extensions.rb +1 -0
- data/lib/archetype/sass_extensions/functions/lists.rb +34 -40
- data/lib/archetype/sass_extensions/functions/locale.rb +32 -16
- data/lib/archetype/sass_extensions/functions/styleguide.rb +115 -37
- data/lib/archetype/sass_extensions/functions/ui.rb +3 -2
- data/lib/archetype/sass_extensions/functions/version.rb +11 -6
- data/lib/archetype/sass_extensions/monkey_patches.rb +3 -0
- data/lib/archetype/sass_extensions/monkey_patches/handle_include_loop.rb +13 -0
- data/lib/archetype/version.rb +19 -12
- data/stylesheets/archetype/_base.scss +3 -0
- data/stylesheets/archetype/_config.scss +31 -7
- data/stylesheets/archetype/_hacks.scss +17 -5
- data/stylesheets/archetype/_ui.scss +64 -23
- data/stylesheets/archetype/styleguide/components/_buttons.scss +6 -6
- data/stylesheets/archetype/styleguide/components/_headlines.scss +1 -0
- data/stylesheets/archetype/styleguide/components/_links.scss +2 -0
- data/stylesheets/archetype/util/_styles.scss +59 -14
- data/stylesheets/archetype/util/_targeting.scss +1 -1
- data/templates/_theme/_components.scss +3 -0
- data/templates/_theme/_config.scss +1 -0
- data/templates/_theme/_core.scss +13 -0
- data/templates/_theme/_helpers.scss +1 -0
- data/templates/_theme/_primitives.scss +3 -0
- data/templates/_theme/components/README +1 -0
- data/templates/_theme/primitives/README +1 -0
- data/test/fixtures/stylesheets/archetype/config.rb +2 -0
- data/test/fixtures/stylesheets/archetype/expected/base.css +349 -0
- data/test/fixtures/stylesheets/archetype/expected/hacks/ie_pseudo.css +3 -3
- data/test/fixtures/stylesheets/archetype/expected/hacks/transparent_focusable.css +4 -0
- data/test/fixtures/stylesheets/archetype/expected/locale.css +23 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/alerts.css +675 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/buttons.css +110 -18
- data/test/fixtures/stylesheets/archetype/expected/styleguide/drop.css +63 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/extend.css +7 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/invalid_structures.css +21 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/multi_value.css +13 -0
- data/test/fixtures/stylesheets/archetype/expected/styleguide/selective_state.css +3 -0
- data/test/fixtures/stylesheets/archetype/expected/ui/glyph_icon.css +116 -2
- data/test/fixtures/stylesheets/archetype/expected/utilities/associative.css +9 -0
- data/test/fixtures/stylesheets/archetype/expected/utilities/custom_output_styler.css +8 -0
- data/test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-browser.css +5 -0
- data/test/fixtures/stylesheets/archetype/source/base.scss +3 -0
- data/test/fixtures/stylesheets/archetype/source/hacks/transparent_focusable.scss +5 -0
- data/test/fixtures/stylesheets/archetype/source/locale.scss +43 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/alerts.scss +21 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss +5 -1
- data/test/fixtures/stylesheets/archetype/source/styleguide/drop.scss +101 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/extend.scss +23 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/fallback_styles.scss +1 -1
- data/test/fixtures/stylesheets/archetype/source/styleguide/invalid_structures.scss +85 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/multi_value.scss +18 -0
- data/test/fixtures/stylesheets/archetype/source/styleguide/nested_styleguides.scss +1 -1
- data/test/fixtures/stylesheets/archetype/source/styleguide/selective_state.scss +1 -1
- data/test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss +30 -0
- data/test/fixtures/stylesheets/archetype/source/utilities/associative.scss +24 -0
- data/test/fixtures/stylesheets/archetype/source/utilities/custom_output_styler.scss +21 -0
- data/test/fixtures/stylesheets/archetype/source/utilities/targeting/target-browser.scss +8 -1
- data/test/helpers/test_case.rb +2 -2
- data/test/integrations/archetype_test.rb +3 -1
- data/test/units/sass_extensions_test.rb +18 -25
- metadata +108 -36
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
// this case verifies that you can define `fallback` css properties
|
2
2
|
|
3
|
-
@import "archetype";
|
3
|
+
@import "archetype";
|
4
4
|
|
5
5
|
@if not styleguide-component-exists(fallback-styleguide-test, $CONFIG_THEME) {
|
6
6
|
$a-blackhole: styleguide-add-component(fallback-styleguide-test, (), (
|
@@ -0,0 +1,85 @@
|
|
1
|
+
@import "archetype";
|
2
|
+
|
3
|
+
// this should throw a warning because we can't retrieve the key-value pairs for the top level
|
4
|
+
@if not styleguide-component-exists(test-missing-nil, $CONFIG_THEME) {
|
5
|
+
$a-blackhole: styleguide-add-component(test-missing-nil, (), (
|
6
|
+
(default, (
|
7
|
+
color red,
|
8
|
+
nil
|
9
|
+
))
|
10
|
+
// missing nil
|
11
|
+
), $CONFIG_THEME);
|
12
|
+
}
|
13
|
+
|
14
|
+
// this should still throw a warning because we can't retrieve the key-value pairs for the properties
|
15
|
+
@if not styleguide-component-exists(test-missing-nil-2, $CONFIG_THEME) {
|
16
|
+
$a-blackhole: styleguide-add-component(test-missing-nil-2, (), (
|
17
|
+
(default, (
|
18
|
+
color yellow
|
19
|
+
// missing nil
|
20
|
+
)),
|
21
|
+
nil
|
22
|
+
), $CONFIG_THEME);
|
23
|
+
}
|
24
|
+
|
25
|
+
// this should still throw a warning because we can't retrieve the key-value pairs for the properties
|
26
|
+
@if not styleguide-component-exists(test-missing-comma, $CONFIG_THEME) {
|
27
|
+
$a-blackhole: styleguide-add-component(test-missing-nil-3, (), (
|
28
|
+
(default, (
|
29
|
+
color blue,
|
30
|
+
(states, (
|
31
|
+
(hover, (
|
32
|
+
color black,
|
33
|
+
background green,
|
34
|
+
font-weight bold
|
35
|
+
))
|
36
|
+
))
|
37
|
+
)),
|
38
|
+
nil
|
39
|
+
), $CONFIG_THEME);
|
40
|
+
}
|
41
|
+
|
42
|
+
// this should throw a warning because we probably forgot a comma somewhere
|
43
|
+
@if not styleguide-component-exists(test-missing-comma, $CONFIG_THEME) {
|
44
|
+
$a-blackhole: styleguide-add-component(test-missing-comma, (), (
|
45
|
+
(default, (
|
46
|
+
color white,
|
47
|
+
background green // missing comma
|
48
|
+
(states, (
|
49
|
+
(hover, (
|
50
|
+
color black,
|
51
|
+
background green,
|
52
|
+
font-weight bold
|
53
|
+
)),
|
54
|
+
nil
|
55
|
+
))
|
56
|
+
)),
|
57
|
+
nil
|
58
|
+
), $CONFIG_THEME);
|
59
|
+
}
|
60
|
+
|
61
|
+
// this should throw a warning because we used an empty value for a property
|
62
|
+
@if not styleguide-component-exists(test-empty-value, $CONFIG_THEME) {
|
63
|
+
$a-blackhole: styleguide-add-component(test-empty-value, (), (
|
64
|
+
(default, (
|
65
|
+
color // this is ambiguous, but shouldn't cause an error
|
66
|
+
)),
|
67
|
+
nil
|
68
|
+
), $CONFIG_THEME);
|
69
|
+
}
|
70
|
+
|
71
|
+
.test-missing-nil {
|
72
|
+
@include styleguide(test-missing-nil);
|
73
|
+
}
|
74
|
+
.test-missing-nil-2 {
|
75
|
+
@include styleguide(test-missing-nil-2);
|
76
|
+
}
|
77
|
+
.test-missing-nil-3 {
|
78
|
+
@include styleguide(test-missing-nil-3);
|
79
|
+
}
|
80
|
+
.test-missing-comma {
|
81
|
+
@include styleguide(test-missing-comma);
|
82
|
+
}
|
83
|
+
.test-empty-value {
|
84
|
+
@include styleguide(test-empty-value);
|
85
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
@import "archetype";
|
2
|
+
|
3
|
+
@if not styleguide-component-exists(multi-value-styleguide-test, $CONFIG_THEME) {
|
4
|
+
$a-blackhole: styleguide-add-component(multi-value-styleguide-test, (), (
|
5
|
+
(default, (
|
6
|
+
color gray,
|
7
|
+
color rgba(0,0,0, 0.7),
|
8
|
+
background white,
|
9
|
+
background transparent,
|
10
|
+
target-browser (ie lte 7, color, blue),
|
11
|
+
target-browser (ie 8, color, red),
|
12
|
+
target-browser (firefox, color, pink)
|
13
|
+
))
|
14
|
+
), $CONFIG_THEME);
|
15
|
+
}
|
16
|
+
.multi-value-styleguide-test {
|
17
|
+
@include styleguide(multi-value-styleguide-test);
|
18
|
+
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
// - nested selectors
|
4
4
|
// - nested `styleguide` calls in nested selectors
|
5
5
|
|
6
|
-
@import "archetype";
|
6
|
+
@import "archetype";
|
7
7
|
|
8
8
|
@if not styleguide-component-exists(nested-styleguide-test, $CONFIG_THEME) {
|
9
9
|
$a-blackhole: styleguide-add-component(nested-styleguide-test, (), (
|
@@ -1,5 +1,35 @@
|
|
1
1
|
@import "archetype";
|
2
2
|
|
3
|
+
@include base-glyph();
|
4
|
+
|
3
5
|
.simple {
|
4
6
|
@include glyph-icon(caret-down);
|
5
7
|
}
|
8
|
+
|
9
|
+
.false {
|
10
|
+
@include glyph-icon(false, $placement: inline);
|
11
|
+
}
|
12
|
+
|
13
|
+
.size {
|
14
|
+
@include glyph-icon(caret-down, $size: 20px);
|
15
|
+
}
|
16
|
+
|
17
|
+
$CONFIG_GENERATED_TAG_INLINE: false;
|
18
|
+
.not-inline {
|
19
|
+
@include glyph-icon(caret-down);
|
20
|
+
}
|
21
|
+
|
22
|
+
.ie-uid {
|
23
|
+
@include glyph-icon(caret-down, $ie-uid: my-custom-id);
|
24
|
+
#{$archetype-glyph-selector} {
|
25
|
+
color: pink;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.content-block {
|
30
|
+
@include glyph-icon(caret-down) {
|
31
|
+
position: absolute;
|
32
|
+
top: 10px;
|
33
|
+
left: 10px;
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
@import "archetype";
|
2
|
+
|
3
|
+
$test: (
|
4
|
+
(one, (
|
5
|
+
'1',
|
6
|
+
'2',
|
7
|
+
'3'
|
8
|
+
)),
|
9
|
+
(two, (
|
10
|
+
'4',
|
11
|
+
'5',
|
12
|
+
'6'
|
13
|
+
))
|
14
|
+
);
|
15
|
+
|
16
|
+
.test {
|
17
|
+
a: nth(associative($test, one), 1); // 1
|
18
|
+
b: nth(associative($test, one), 2); // 2
|
19
|
+
c: nth(associative($test, two), 2); // 5
|
20
|
+
d: nth(associative($test, two), 3); // 6
|
21
|
+
e: nth(associative($test, 'two'), 2); // 5
|
22
|
+
f: nth(associative($test, 'two'), 3); // 6
|
23
|
+
g: nth(associative($test, three), 1); // 1
|
24
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// define the test function
|
2
|
+
@function has-custom-output-styler($property, $value, $method: pre) {
|
3
|
+
@if $property == color {
|
4
|
+
@return true;
|
5
|
+
}
|
6
|
+
// only if it's a post processing all values
|
7
|
+
@else if $property == line-height and $method == post {
|
8
|
+
@return true;
|
9
|
+
}
|
10
|
+
@return false;
|
11
|
+
}
|
12
|
+
// define the custom styler
|
13
|
+
@mixin custom-output-styler($property, $value, $method: pre) {
|
14
|
+
#{$property}: $value; /* #{$method} override */
|
15
|
+
}
|
16
|
+
|
17
|
+
@import "archetype";
|
18
|
+
|
19
|
+
.test {
|
20
|
+
@include styleguide(copy);
|
21
|
+
}
|
@@ -43,7 +43,7 @@
|
|
43
43
|
|
44
44
|
.target-ie-lte-9 {
|
45
45
|
@include target-browser(ie lte 9, border-color, #111);
|
46
|
-
@include target-browser(ie lte 9, background, #2c2c2b);
|
46
|
+
@include target-browser(ie lte 9, background, #2c2c2b);
|
47
47
|
}
|
48
48
|
|
49
49
|
.target-ie-7-8-9 {
|
@@ -68,3 +68,10 @@
|
|
68
68
|
.target-opera {
|
69
69
|
@include target-browser(opera, width, 82%);
|
70
70
|
}
|
71
|
+
|
72
|
+
.target-with-content-block {
|
73
|
+
@include target-browser(ie lte 8) {
|
74
|
+
/* testing content block */
|
75
|
+
color: red;
|
76
|
+
};
|
77
|
+
}
|
data/test/helpers/test_case.rb
CHANGED
@@ -24,7 +24,7 @@ module Compass
|
|
24
24
|
assert false, diff_as_string(before.inspect, after.inspect)
|
25
25
|
end
|
26
26
|
end
|
27
|
-
|
27
|
+
|
28
28
|
module ClassMethods
|
29
29
|
|
30
30
|
def let(method, &block)
|
@@ -51,7 +51,7 @@ module Compass
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
private
|
54
|
+
private
|
55
55
|
|
56
56
|
def underscore(string)
|
57
57
|
string.gsub(' ', '_')
|
@@ -1,9 +1,11 @@
|
|
1
1
|
# this is all take from Compass because they already did the awesome testing framework
|
2
2
|
require 'test_helper'
|
3
|
-
require 'fileutils'
|
4
3
|
require 'compass'
|
5
4
|
require 'compass/logger'
|
6
5
|
require 'sass/plugin'
|
6
|
+
unless ENV['CI']
|
7
|
+
require 'fileutils'
|
8
|
+
end
|
7
9
|
|
8
10
|
class ArchetypeTest < Test::Unit::TestCase
|
9
11
|
|
@@ -4,6 +4,7 @@ require 'archetype'
|
|
4
4
|
class SassExtensionsTest < Test::Unit::TestCase
|
5
5
|
setup do
|
6
6
|
Compass.reset_configuration!
|
7
|
+
Compass.configuration.testing = true
|
7
8
|
end
|
8
9
|
|
9
10
|
## VERSION
|
@@ -16,20 +17,20 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|
16
17
|
assert_equal "true", evaluate("archetype-version('Compass >= 0.12')")
|
17
18
|
assert_equal "false", evaluate("archetype-version('Sass >= 99.0.0')")
|
18
19
|
assert_equal "true", evaluate("archetype-version('Sass gt 3.0')")
|
19
|
-
assert_equal "
|
20
|
+
assert_equal "true", evaluate("archetype-version(Archetype ne 99)")
|
20
21
|
end
|
21
22
|
|
22
23
|
|
23
24
|
## ENVIRONMENT
|
24
25
|
# test that archetype-env() is working correctly
|
25
26
|
def test_env
|
26
|
-
|
27
|
+
reset
|
27
28
|
assert_equal "development", evaluate("archetype-env()")
|
28
29
|
Compass.configuration.environment = :production
|
29
30
|
assert_equal "production", evaluate("archetype-env()")
|
30
31
|
Compass.configuration.environment = :staging
|
31
32
|
assert_equal "staging", evaluate("archetype-env()")
|
32
|
-
|
33
|
+
reset
|
33
34
|
end
|
34
35
|
|
35
36
|
|
@@ -49,19 +50,6 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|
49
50
|
# TODO
|
50
51
|
end
|
51
52
|
|
52
|
-
# list-sort
|
53
|
-
#def test_list_sort
|
54
|
-
# assert_equal "1 2 3 4", evaluate("list-sort(2 4 3 1)")
|
55
|
-
# assert_equal "4 3 2 1", evaluate("list-sort(2 4 3 1, true)")
|
56
|
-
# assert_equal "a b c d", evaluate("list-sort(d a b c)")
|
57
|
-
#end
|
58
|
-
|
59
|
-
# list-reverse
|
60
|
-
#def test_list_reverse
|
61
|
-
# assert_equal "4 3 2 1", evaluate("list-reverse(1 2 3 4)")
|
62
|
-
# assert_equal "d c b a", evaluate("list-reverse(a b c d)")
|
63
|
-
#end
|
64
|
-
|
65
53
|
# list-add
|
66
54
|
def test_list_add
|
67
55
|
assert_equal "2 3 4", evaluate("list-add(1 2 3, 1)")
|
@@ -127,16 +115,16 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|
127
115
|
## LOCALE
|
128
116
|
# locale
|
129
117
|
def test_locale
|
130
|
-
|
118
|
+
reset
|
131
119
|
assert_equal "en_US", evaluate("locale()")
|
132
120
|
Compass.configuration.locale = "ja_JP"
|
133
121
|
assert_equal "ja_JP", evaluate("locale()")
|
134
|
-
|
122
|
+
reset
|
135
123
|
end
|
136
124
|
|
137
125
|
# lang
|
138
126
|
def test_lang
|
139
|
-
|
127
|
+
reset
|
140
128
|
assert_equal "true", evaluate("lang(en_US)")
|
141
129
|
assert_equal "true", evaluate("lang(fr_FR en_US)")
|
142
130
|
assert_equal "false", evaluate("lang(fr_FR)")
|
@@ -145,7 +133,7 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|
145
133
|
assert_equal "true", evaluate("lang(ja_JP)")
|
146
134
|
assert_equal "true", evaluate("lang(CJK)")
|
147
135
|
assert_equal "true", evaluate("lang(CJK en_US)")
|
148
|
-
|
136
|
+
reset
|
149
137
|
end
|
150
138
|
|
151
139
|
|
@@ -183,11 +171,11 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|
183
171
|
## UI
|
184
172
|
# test generating unique tokens
|
185
173
|
def test_unique
|
186
|
-
assert_equal ".archetype-uid-
|
187
|
-
assert_equal ".archetype-uid-
|
188
|
-
assert_equal "\#archetype-uid-
|
189
|
-
assert_equal "my-prefix-archetype-uid-
|
190
|
-
assert_equal ".testing-archetype-uid-
|
174
|
+
assert_equal ".archetype-uid-RANDOM_UID", evaluate("unique(class)")
|
175
|
+
assert_equal ".archetype-uid-RANDOM_UID", evaluate("unique(class)")
|
176
|
+
assert_equal "\#archetype-uid-RANDOM_UID", evaluate("unique(id)")
|
177
|
+
assert_equal "my-prefix-archetype-uid-RANDOM_UID", evaluate("unique(my-prefix-)")
|
178
|
+
assert_equal ".testing-archetype-uid-RANDOM_UID", evaluate("unique('.testing-')")
|
191
179
|
end
|
192
180
|
|
193
181
|
# test pseudo content escaping and formatting for innerHTML
|
@@ -204,4 +192,9 @@ protected
|
|
204
192
|
def evaluate(value)
|
205
193
|
Sass::Script::Parser.parse(value, 0, 0).perform(Sass::Environment.new).to_s
|
206
194
|
end
|
195
|
+
|
196
|
+
def reset
|
197
|
+
Compass.reset_configuration!
|
198
|
+
Compass.configuration.testing = true
|
199
|
+
end
|
207
200
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: archetype
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.pre.
|
5
|
-
prerelease: 6
|
4
|
+
version: 0.0.1.pre.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Eugene ONeill
|
@@ -10,55 +9,88 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: compass
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - ">="
|
21
19
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
20
|
+
version: '3.2'
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '3.3'
|
23
24
|
type: :runtime
|
24
25
|
prerelease: false
|
25
26
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
27
|
requirements:
|
28
|
-
- -
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '3.2'
|
31
|
+
- - "<"
|
29
32
|
- !ruby/object:Gem::Version
|
30
|
-
version: '
|
33
|
+
version: '3.3'
|
31
34
|
- !ruby/object:Gem::Dependency
|
32
35
|
name: sass
|
33
36
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
37
|
requirements:
|
36
|
-
- -
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.12'
|
41
|
+
- - "<"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '1.0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0.12'
|
51
|
+
- - "<"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.0'
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: hashery
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
37
59
|
- !ruby/object:Gem::Version
|
38
|
-
version: '
|
60
|
+
version: '2.1'
|
39
61
|
type: :runtime
|
40
62
|
prerelease: false
|
41
63
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
64
|
requirements:
|
44
|
-
- -
|
65
|
+
- - "~>"
|
45
66
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
47
|
-
description:
|
48
|
-
|
67
|
+
version: '2.1'
|
68
|
+
description: "\n Archetype is a Compass/Sass based framework for authoring configurable,\n
|
69
|
+
\ composable UI components and patterns. The natural language syntax that\n Archetype
|
70
|
+
provides allows your designers and developers to discuss UI\n compositions using
|
71
|
+
the same vocabulary.\n "
|
49
72
|
email: oneill.eugene@gmail.com
|
50
|
-
executables:
|
73
|
+
executables:
|
74
|
+
- archetype
|
51
75
|
extensions: []
|
52
76
|
extra_rdoc_files: []
|
53
77
|
files:
|
78
|
+
- CHANGELOG.md
|
54
79
|
- LICENSE
|
55
80
|
- README.md
|
56
|
-
- CHANGELOG.md
|
57
81
|
- VERSION.yml
|
82
|
+
- bin/archetype
|
83
|
+
- lib/README.rdoc
|
84
|
+
- lib/archetype.rb
|
85
|
+
- lib/archetype/actions/help.rb
|
86
|
+
- lib/archetype/actions/theme.rb
|
87
|
+
- lib/archetype/executor.rb
|
88
|
+
- lib/archetype/functions.rb
|
58
89
|
- lib/archetype/functions/hash.rb
|
59
90
|
- lib/archetype/functions/helpers.rb
|
60
91
|
- lib/archetype/functions/styleguide_memoizer.rb
|
61
|
-
- lib/archetype/
|
92
|
+
- lib/archetype/sass_extensions.rb
|
93
|
+
- lib/archetype/sass_extensions/functions.rb
|
62
94
|
- lib/archetype/sass_extensions/functions/environment.rb
|
63
95
|
- lib/archetype/sass_extensions/functions/lists.rb
|
64
96
|
- lib/archetype/sass_extensions/functions/locale.rb
|
@@ -66,11 +98,9 @@ files:
|
|
66
98
|
- lib/archetype/sass_extensions/functions/styleguide.rb
|
67
99
|
- lib/archetype/sass_extensions/functions/ui.rb
|
68
100
|
- lib/archetype/sass_extensions/functions/version.rb
|
69
|
-
- lib/archetype/sass_extensions/
|
70
|
-
- lib/archetype/sass_extensions.rb
|
101
|
+
- lib/archetype/sass_extensions/monkey_patches.rb
|
102
|
+
- lib/archetype/sass_extensions/monkey_patches/handle_include_loop.rb
|
71
103
|
- lib/archetype/version.rb
|
72
|
-
- lib/archetype.rb
|
73
|
-
- lib/README.rdoc
|
74
104
|
- stylesheets/_archetype.scss
|
75
105
|
- stylesheets/archetype/_base.scss
|
76
106
|
- stylesheets/archetype/_config.scss
|
@@ -131,6 +161,13 @@ files:
|
|
131
161
|
- stylesheets/archetype/util/_styles.scss
|
132
162
|
- stylesheets/archetype/util/_targeting.scss
|
133
163
|
- stylesheets/archetype/util/_units.scss
|
164
|
+
- templates/_theme/_components.scss
|
165
|
+
- templates/_theme/_config.scss
|
166
|
+
- templates/_theme/_core.scss
|
167
|
+
- templates/_theme/_helpers.scss
|
168
|
+
- templates/_theme/_primitives.scss
|
169
|
+
- templates/_theme/components/README
|
170
|
+
- templates/_theme/primitives/README
|
134
171
|
- templates/example/index.html
|
135
172
|
- templates/example/manifest.rb
|
136
173
|
- templates/example/screen.scss
|
@@ -184,19 +221,28 @@ files:
|
|
184
221
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark.png
|
185
222
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark_static.png
|
186
223
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_static.png
|
187
|
-
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png
|
188
224
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/sprites/hovercard_tip.png
|
189
225
|
- test/fixtures/stylesheets/archetype/config.rb
|
190
226
|
- test/fixtures/stylesheets/archetype/expected/b.css
|
227
|
+
- test/fixtures/stylesheets/archetype/expected/base.css
|
191
228
|
- test/fixtures/stylesheets/archetype/expected/hacks/ie_pseudo.css
|
229
|
+
- test/fixtures/stylesheets/archetype/expected/hacks/transparent_focusable.css
|
230
|
+
- test/fixtures/stylesheets/archetype/expected/locale.css
|
231
|
+
- test/fixtures/stylesheets/archetype/expected/styleguide/alerts.css
|
192
232
|
- test/fixtures/stylesheets/archetype/expected/styleguide/buttons.css
|
233
|
+
- test/fixtures/stylesheets/archetype/expected/styleguide/drop.css
|
234
|
+
- test/fixtures/stylesheets/archetype/expected/styleguide/extend.css
|
193
235
|
- test/fixtures/stylesheets/archetype/expected/styleguide/fallback_styles.css
|
236
|
+
- test/fixtures/stylesheets/archetype/expected/styleguide/invalid_structures.css
|
237
|
+
- test/fixtures/stylesheets/archetype/expected/styleguide/multi_value.css
|
194
238
|
- test/fixtures/stylesheets/archetype/expected/styleguide/nested_styleguides.css
|
195
239
|
- test/fixtures/stylesheets/archetype/expected/styleguide/selective_state.css
|
196
240
|
- test/fixtures/stylesheets/archetype/expected/ui/glyph_icon.css
|
197
241
|
- test/fixtures/stylesheets/archetype/expected/ui/hide_element.css
|
198
242
|
- test/fixtures/stylesheets/archetype/expected/ui/stroke.css
|
199
243
|
- test/fixtures/stylesheets/archetype/expected/ui/triangle.css
|
244
|
+
- test/fixtures/stylesheets/archetype/expected/utilities/associative.css
|
245
|
+
- test/fixtures/stylesheets/archetype/expected/utilities/custom_output_styler.css
|
200
246
|
- test/fixtures/stylesheets/archetype/expected/utilities/if-set.css
|
201
247
|
- test/fixtures/stylesheets/archetype/expected/utilities/spacing/horizontal-spacing.css
|
202
248
|
- test/fixtures/stylesheets/archetype/expected/utilities/spacing/vertical-spacing.css
|
@@ -206,15 +252,25 @@ files:
|
|
206
252
|
- test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-browser.css
|
207
253
|
- test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-os.css
|
208
254
|
- test/fixtures/stylesheets/archetype/source/b.scss
|
255
|
+
- test/fixtures/stylesheets/archetype/source/base.scss
|
209
256
|
- test/fixtures/stylesheets/archetype/source/hacks/ie_pseudo.scss
|
257
|
+
- test/fixtures/stylesheets/archetype/source/hacks/transparent_focusable.scss
|
258
|
+
- test/fixtures/stylesheets/archetype/source/locale.scss
|
259
|
+
- test/fixtures/stylesheets/archetype/source/styleguide/alerts.scss
|
210
260
|
- test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss
|
261
|
+
- test/fixtures/stylesheets/archetype/source/styleguide/drop.scss
|
262
|
+
- test/fixtures/stylesheets/archetype/source/styleguide/extend.scss
|
211
263
|
- test/fixtures/stylesheets/archetype/source/styleguide/fallback_styles.scss
|
264
|
+
- test/fixtures/stylesheets/archetype/source/styleguide/invalid_structures.scss
|
265
|
+
- test/fixtures/stylesheets/archetype/source/styleguide/multi_value.scss
|
212
266
|
- test/fixtures/stylesheets/archetype/source/styleguide/nested_styleguides.scss
|
213
267
|
- test/fixtures/stylesheets/archetype/source/styleguide/selective_state.scss
|
214
268
|
- test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss
|
215
269
|
- test/fixtures/stylesheets/archetype/source/ui/hide_element.scss
|
216
270
|
- test/fixtures/stylesheets/archetype/source/ui/stroke.scss
|
217
271
|
- test/fixtures/stylesheets/archetype/source/ui/triangle.scss
|
272
|
+
- test/fixtures/stylesheets/archetype/source/utilities/associative.scss
|
273
|
+
- test/fixtures/stylesheets/archetype/source/utilities/custom_output_styler.scss
|
218
274
|
- test/fixtures/stylesheets/archetype/source/utilities/if-set.scss
|
219
275
|
- test/fixtures/stylesheets/archetype/source/utilities/spacing/horizontal-spacing.scss
|
220
276
|
- test/fixtures/stylesheets/archetype/source/utilities/spacing/vertical-spacing.scss
|
@@ -232,31 +288,27 @@ files:
|
|
232
288
|
homepage: http://www.archetypecss.com/
|
233
289
|
licenses:
|
234
290
|
- Apache License (2.0)
|
291
|
+
metadata: {}
|
235
292
|
post_install_message:
|
236
293
|
rdoc_options: []
|
237
294
|
require_paths:
|
238
295
|
- lib
|
239
296
|
required_ruby_version: !ruby/object:Gem::Requirement
|
240
|
-
none: false
|
241
297
|
requirements:
|
242
|
-
- -
|
298
|
+
- - ">="
|
243
299
|
- !ruby/object:Gem::Version
|
244
300
|
version: '0'
|
245
|
-
segments:
|
246
|
-
- 0
|
247
|
-
hash: -3789854701990109920
|
248
301
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
249
|
-
none: false
|
250
302
|
requirements:
|
251
|
-
- -
|
303
|
+
- - ">"
|
252
304
|
- !ruby/object:Gem::Version
|
253
305
|
version: 1.3.1
|
254
306
|
requirements: []
|
255
307
|
rubyforge_project:
|
256
|
-
rubygems_version:
|
308
|
+
rubygems_version: 2.2.2
|
257
309
|
signing_key:
|
258
|
-
specification_version:
|
259
|
-
summary:
|
310
|
+
specification_version: 4
|
311
|
+
summary: A CSS UI Component Authoring Framework
|
260
312
|
test_files:
|
261
313
|
- test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.eot
|
262
314
|
- test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.svg
|
@@ -274,19 +326,28 @@ test_files:
|
|
274
326
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark.png
|
275
327
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark_static.png
|
276
328
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_static.png
|
277
|
-
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png
|
278
329
|
- test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/sprites/hovercard_tip.png
|
279
330
|
- test/fixtures/stylesheets/archetype/config.rb
|
280
331
|
- test/fixtures/stylesheets/archetype/expected/b.css
|
332
|
+
- test/fixtures/stylesheets/archetype/expected/base.css
|
281
333
|
- test/fixtures/stylesheets/archetype/expected/hacks/ie_pseudo.css
|
334
|
+
- test/fixtures/stylesheets/archetype/expected/hacks/transparent_focusable.css
|
335
|
+
- test/fixtures/stylesheets/archetype/expected/locale.css
|
336
|
+
- test/fixtures/stylesheets/archetype/expected/styleguide/alerts.css
|
282
337
|
- test/fixtures/stylesheets/archetype/expected/styleguide/buttons.css
|
338
|
+
- test/fixtures/stylesheets/archetype/expected/styleguide/drop.css
|
339
|
+
- test/fixtures/stylesheets/archetype/expected/styleguide/extend.css
|
283
340
|
- test/fixtures/stylesheets/archetype/expected/styleguide/fallback_styles.css
|
341
|
+
- test/fixtures/stylesheets/archetype/expected/styleguide/invalid_structures.css
|
342
|
+
- test/fixtures/stylesheets/archetype/expected/styleguide/multi_value.css
|
284
343
|
- test/fixtures/stylesheets/archetype/expected/styleguide/nested_styleguides.css
|
285
344
|
- test/fixtures/stylesheets/archetype/expected/styleguide/selective_state.css
|
286
345
|
- test/fixtures/stylesheets/archetype/expected/ui/glyph_icon.css
|
287
346
|
- test/fixtures/stylesheets/archetype/expected/ui/hide_element.css
|
288
347
|
- test/fixtures/stylesheets/archetype/expected/ui/stroke.css
|
289
348
|
- test/fixtures/stylesheets/archetype/expected/ui/triangle.css
|
349
|
+
- test/fixtures/stylesheets/archetype/expected/utilities/associative.css
|
350
|
+
- test/fixtures/stylesheets/archetype/expected/utilities/custom_output_styler.css
|
290
351
|
- test/fixtures/stylesheets/archetype/expected/utilities/if-set.css
|
291
352
|
- test/fixtures/stylesheets/archetype/expected/utilities/spacing/horizontal-spacing.css
|
292
353
|
- test/fixtures/stylesheets/archetype/expected/utilities/spacing/vertical-spacing.css
|
@@ -296,15 +357,25 @@ test_files:
|
|
296
357
|
- test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-browser.css
|
297
358
|
- test/fixtures/stylesheets/archetype/expected/utilities/targeting/target-os.css
|
298
359
|
- test/fixtures/stylesheets/archetype/source/b.scss
|
360
|
+
- test/fixtures/stylesheets/archetype/source/base.scss
|
299
361
|
- test/fixtures/stylesheets/archetype/source/hacks/ie_pseudo.scss
|
362
|
+
- test/fixtures/stylesheets/archetype/source/hacks/transparent_focusable.scss
|
363
|
+
- test/fixtures/stylesheets/archetype/source/locale.scss
|
364
|
+
- test/fixtures/stylesheets/archetype/source/styleguide/alerts.scss
|
300
365
|
- test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss
|
366
|
+
- test/fixtures/stylesheets/archetype/source/styleguide/drop.scss
|
367
|
+
- test/fixtures/stylesheets/archetype/source/styleguide/extend.scss
|
301
368
|
- test/fixtures/stylesheets/archetype/source/styleguide/fallback_styles.scss
|
369
|
+
- test/fixtures/stylesheets/archetype/source/styleguide/invalid_structures.scss
|
370
|
+
- test/fixtures/stylesheets/archetype/source/styleguide/multi_value.scss
|
302
371
|
- test/fixtures/stylesheets/archetype/source/styleguide/nested_styleguides.scss
|
303
372
|
- test/fixtures/stylesheets/archetype/source/styleguide/selective_state.scss
|
304
373
|
- test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss
|
305
374
|
- test/fixtures/stylesheets/archetype/source/ui/hide_element.scss
|
306
375
|
- test/fixtures/stylesheets/archetype/source/ui/stroke.scss
|
307
376
|
- test/fixtures/stylesheets/archetype/source/ui/triangle.scss
|
377
|
+
- test/fixtures/stylesheets/archetype/source/utilities/associative.scss
|
378
|
+
- test/fixtures/stylesheets/archetype/source/utilities/custom_output_styler.scss
|
308
379
|
- test/fixtures/stylesheets/archetype/source/utilities/if-set.scss
|
309
380
|
- test/fixtures/stylesheets/archetype/source/utilities/spacing/horizontal-spacing.scss
|
310
381
|
- test/fixtures/stylesheets/archetype/source/utilities/spacing/vertical-spacing.scss
|
@@ -319,3 +390,4 @@ test_files:
|
|
319
390
|
- test/integrations/archetype_test.rb
|
320
391
|
- test/test_helper.rb
|
321
392
|
- test/units/sass_extensions_test.rb
|
393
|
+
has_rdoc:
|