livingstyleguide 1.4.0 → 2.0.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/livingstyleguide.rb +7 -4
- data/lib/livingstyleguide/document.rb +144 -0
- data/lib/livingstyleguide/engine.rb +1 -1
- data/lib/livingstyleguide/filters.rb +23 -1
- data/lib/livingstyleguide/filters/add_wrapper_class.rb +3 -0
- data/lib/livingstyleguide/filters/coffee_script.rb +5 -0
- data/lib/livingstyleguide/filters/colors.rb +23 -1
- data/lib/livingstyleguide/filters/data.rb +3 -0
- data/lib/livingstyleguide/filters/font_example.rb +8 -0
- data/lib/livingstyleguide/filters/full_width.rb +3 -0
- data/lib/livingstyleguide/filters/haml.rb +5 -0
- data/lib/livingstyleguide/filters/import.rb +18 -0
- data/lib/livingstyleguide/filters/markdown.rb +4 -0
- data/lib/livingstyleguide/filters/options.rb +18 -0
- data/lib/livingstyleguide/filters/scss.rb +4 -0
- data/lib/livingstyleguide/integration.rb +1 -1
- data/lib/livingstyleguide/integration/rails.rb +1 -3
- data/lib/livingstyleguide/integration/sass.rb +6 -0
- data/lib/livingstyleguide/integration/sprockets.rb +1 -1
- data/lib/livingstyleguide/markdown_extensions.rb +12 -9
- data/lib/livingstyleguide/templates/default.html.erb +3 -0
- data/lib/livingstyleguide/templates/example.html.erb +8 -0
- data/lib/livingstyleguide/templates/font-example.html.erb +3 -0
- data/lib/livingstyleguide/templates/layout.html.erb +1 -3
- data/lib/livingstyleguide/templates/plain.html.erb +1 -0
- data/lib/livingstyleguide/tilt_template.rb +0 -6
- data/lib/livingstyleguide/version.rb +1 -1
- data/stylesheets/livingstyleguide/_code.scss +1 -1
- data/stylesheets/livingstyleguide/_content.scss +6 -0
- data/stylesheets/livingstyleguide/_variables.scss +9 -3
- metadata +20 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a49c1cde2fda30398815711988fe1e027bce952a
|
4
|
+
data.tar.gz: f1dfdca1b72c4ff39fbfa139f443528d5797d524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7a55067c4098eb7ba738970330e3a5d250771c2836dfcfef23a005bf68b6ba17a5cec64a970a929cf7641cc4a89c8324a5875a5c906b3a59c68f5add6e393b5
|
7
|
+
data.tar.gz: d3774e206d621568b6ebb96cfafdbe2379ed1fe26ff6607e4feaf3db396df1bc3bda1a5e4409ee0c10bb1fa465fefe4e6ce793de057135fdd51c21a77303b10d
|
data/lib/livingstyleguide.rb
CHANGED
@@ -6,6 +6,12 @@ begin
|
|
6
6
|
rescue LoadError
|
7
7
|
end
|
8
8
|
|
9
|
+
module LivingStyleGuide
|
10
|
+
def self.add_filter(*keys, &block)
|
11
|
+
Filters.add_filter(*keys, &block)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
9
15
|
require 'livingstyleguide/version'
|
10
16
|
require 'livingstyleguide/filter_hooks'
|
11
17
|
require 'livingstyleguide/sass_extensions'
|
@@ -14,9 +20,6 @@ require 'livingstyleguide/markdown_extensions'
|
|
14
20
|
require 'livingstyleguide/tilt_template'
|
15
21
|
require 'livingstyleguide/code_block'
|
16
22
|
require 'livingstyleguide/example'
|
23
|
+
require 'livingstyleguide/document'
|
17
24
|
require 'livingstyleguide/filters'
|
18
25
|
require 'livingstyleguide/integration'
|
19
|
-
|
20
|
-
module LivingStyleGuide
|
21
|
-
end
|
22
|
-
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'tilt'
|
4
|
+
require 'erb'
|
5
|
+
require 'digest'
|
6
|
+
|
7
|
+
class LivingStyleGuide::Document < ::Tilt::Template
|
8
|
+
attr_accessor :source, :type, :filters, :template, :classes, :html
|
9
|
+
attr_accessor :css, :id, :locals
|
10
|
+
attr_accessor :title
|
11
|
+
attr_reader :scope
|
12
|
+
|
13
|
+
%w(scss head header footer).each do |attr|
|
14
|
+
define_method attr do
|
15
|
+
if options.has_key?(:livingstyleguide)
|
16
|
+
options[:livingstyleguide].send(attr)
|
17
|
+
else
|
18
|
+
instance_variable_get("@#{attr}")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
define_method "#{attr}=" do |value|
|
23
|
+
if options.has_key?(:livingstyleguide)
|
24
|
+
options[:livingstyleguide].send("#{attr}=", value)
|
25
|
+
else
|
26
|
+
instance_variable_get("@#{attr}", value)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def prepare
|
32
|
+
@type = :markdown
|
33
|
+
@filters = LivingStyleGuide::Filters.new(self)
|
34
|
+
@template = options.has_key?(:livingstyleguide) ? :default : :layout
|
35
|
+
@classes = []
|
36
|
+
@scss = ''
|
37
|
+
@css = ''
|
38
|
+
@locals = {}
|
39
|
+
end
|
40
|
+
|
41
|
+
def source
|
42
|
+
@source ||= erb.gsub(/<%.*?%>\n?/, '')
|
43
|
+
end
|
44
|
+
|
45
|
+
def css
|
46
|
+
scss_with_lsg = "#{scss}; @import 'livingstyleguide';"
|
47
|
+
::Sass::Engine.new(scss_with_lsg, syntax: :scss).render
|
48
|
+
end
|
49
|
+
|
50
|
+
def id
|
51
|
+
@id ||= generate_id
|
52
|
+
end
|
53
|
+
|
54
|
+
def erb
|
55
|
+
@erb ||= parse_filters do |name, arguments|
|
56
|
+
arguments = arguments.map do |argument|
|
57
|
+
%Q("#{argument.gsub('"', '\\"').gsub("\n", '\\n')}")
|
58
|
+
end
|
59
|
+
"<%= #{name}(#{arguments.join(', ')}) %>"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
def evaluate(scope, locals, &block)
|
64
|
+
@scope = scope
|
65
|
+
depend_on file if file and options.has_key?(:livingstyleguide)
|
66
|
+
result = ERB.new(erb).result(@filters.get_binding)
|
67
|
+
@html = case @type
|
68
|
+
when :plain, :example
|
69
|
+
result
|
70
|
+
when :markdown
|
71
|
+
renderer = LivingStyleGuide::RedcarpetHTML.new(LivingStyleGuide::Engine.default_options, self)
|
72
|
+
redcarpet = ::Redcarpet::Markdown.new(renderer, LivingStyleGuide::REDCARPET_RENDER_OPTIONS)
|
73
|
+
redcarpet.render(result)
|
74
|
+
else
|
75
|
+
require "tilt/#{@type}"
|
76
|
+
template_class.new{ result }.render(@scope, @locals.merge(locals))
|
77
|
+
end
|
78
|
+
@classes.unshift "livingstyleguide--#{@type}-example"
|
79
|
+
@classes.unshift "livingstyleguide--example"
|
80
|
+
ERB.new(template_erb).result(binding).gsub(/\n\n+/, "\n")
|
81
|
+
end
|
82
|
+
|
83
|
+
def depend_on(file)
|
84
|
+
@scope.depend_on(File.expand_path(file)) if @scope.respond_to?(:depend_on)
|
85
|
+
end
|
86
|
+
|
87
|
+
private
|
88
|
+
def template_erb
|
89
|
+
File.read("#{File.dirname(__FILE__)}/templates/#{@template}.html.erb")
|
90
|
+
end
|
91
|
+
|
92
|
+
private
|
93
|
+
def parse_filters
|
94
|
+
(@type == :erb ? data.gsub('<%', '<%%') : data).gsub(/\G(.*?)((```.+?```)|\Z)/m) do
|
95
|
+
content, code_block = $1, $2
|
96
|
+
content.gsub(/@([\w\d_-]+)(?: ([^\{\n]+))?(?: *\{\n((?:.|\n)*?)\n\}|\n((?: .*\n)+))?/) do
|
97
|
+
name, arguments, block = $1, $2 || '', $3 || $4
|
98
|
+
name = name.gsub('-', '_').to_sym
|
99
|
+
arguments = arguments.split(',').map(&:strip)
|
100
|
+
if block
|
101
|
+
arguments << block.gsub(/\A(\s*)((?:.|\n)+)\Z/){ $2.gsub(/^#{$1}/, '') }
|
102
|
+
end
|
103
|
+
yield name, arguments
|
104
|
+
end + code_block
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
private
|
109
|
+
def gsub_content(regexp, &block)
|
110
|
+
if @type == :markdown
|
111
|
+
data.gsub(/\G(.+?)((```.+?```)|\Z)/m) do
|
112
|
+
content, code_block = $1, $2
|
113
|
+
content.to_s.gsub(regexp, &block) + code_block
|
114
|
+
end
|
115
|
+
else
|
116
|
+
data.gsub(regexp, &block)
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
private
|
121
|
+
def template_name
|
122
|
+
@type == :markdown ? :redcarpet : @type
|
123
|
+
end
|
124
|
+
|
125
|
+
private
|
126
|
+
def template_class
|
127
|
+
case @type
|
128
|
+
when :coffee then Tilt::CoffeeScriptTemplate
|
129
|
+
when :erb then Tilt::ERBTemplate
|
130
|
+
else Tilt.const_get(@type.to_s.capitalize + 'Template')
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
private
|
135
|
+
def generate_id
|
136
|
+
if @file
|
137
|
+
@file.sub('/_', '/').gsub(/\.\w+/, '')
|
138
|
+
else
|
139
|
+
"section-#{Digest::SHA256.hexdigest(data)[0...6]}"
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
Tilt.register 'lsg', LivingStyleGuide::Document
|
@@ -4,7 +4,7 @@ module LivingStyleGuide
|
|
4
4
|
attr_accessor :markdown, :files, :options, :variables
|
5
5
|
|
6
6
|
@@default_options = {
|
7
|
-
default_language:
|
7
|
+
default_language: :example,
|
8
8
|
title: 'Living Style Guide',
|
9
9
|
header: '<h1 class="livingstyleguide--page-title">Living Style Guide</h1>',
|
10
10
|
footer: '<div class="livingstyleguide--footer"><a class="livingstyleguide--logo" href="http://livingstyleguide.org">Made with the LivingStyleGuide gem.</a></div>',
|
@@ -1,9 +1,31 @@
|
|
1
|
+
class LivingStyleGuide::Filters
|
2
|
+
attr_reader :document
|
3
|
+
|
4
|
+
def initialize(doc)
|
5
|
+
@document = doc
|
6
|
+
end
|
7
|
+
|
8
|
+
def get_binding
|
9
|
+
binding
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.add_filter(*keys, &block)
|
13
|
+
keys.each do |key|
|
14
|
+
define_method key, &block
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
require 'livingstyleguide/filters/options'
|
20
|
+
require 'livingstyleguide/filters/import'
|
1
21
|
require 'livingstyleguide/filters/highlights'
|
2
22
|
require 'livingstyleguide/filters/full_width'
|
3
23
|
require 'livingstyleguide/filters/haml'
|
24
|
+
require 'livingstyleguide/filters/markdown'
|
4
25
|
require 'livingstyleguide/filters/javascript'
|
5
26
|
require 'livingstyleguide/filters/coffee_script'
|
6
27
|
require 'livingstyleguide/filters/add_wrapper_class'
|
7
28
|
require 'livingstyleguide/filters/font_example'
|
8
29
|
require 'livingstyleguide/filters/colors'
|
9
|
-
|
30
|
+
require 'livingstyleguide/filters/scss'
|
31
|
+
require 'livingstyleguide/filters/data'
|
@@ -21,9 +21,31 @@ LivingStyleGuide::Example.add_filter :colors do |file|
|
|
21
21
|
elsif variable[0] != '$'
|
22
22
|
variable = "$#{variable}"
|
23
23
|
end
|
24
|
-
%Q(<li class="livingstyleguide--color-swatch #{css_class || variable
|
24
|
+
%Q(<li class="livingstyleguide--color-swatch #{css_class || variable}">#{variable}</li>\n)
|
25
25
|
end.join("\n")
|
26
26
|
%(<ul class="livingstyleguide--color-swatches -lsg-#{columns}-columns">\n#{colors_html}\n</ul>\n)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
+
LivingStyleGuide.add_filter :colors do |content|
|
31
|
+
colors = content.split(/\n+/).map{ |l| l.split(/\s+/) }
|
32
|
+
columns = colors.map{ |l| l.size }.max
|
33
|
+
colors = colors.flatten
|
34
|
+
document.scss << <<-SCSS
|
35
|
+
$livingstyleguide--variables: () !default;
|
36
|
+
$livingstyleguide--variables: join(
|
37
|
+
$livingstyleguide--variables, (#{
|
38
|
+
colors.reject{ |c| c == '-' }.map do |variable|
|
39
|
+
%Q("#{variable}": #{variable})
|
40
|
+
end.join(', ')
|
41
|
+
})
|
42
|
+
);
|
43
|
+
SCSS
|
44
|
+
colors_html = colors.map do |variable|
|
45
|
+
if variable == '-'
|
46
|
+
css_class = '-lsg-empty'
|
47
|
+
end
|
48
|
+
%Q(<li class="livingstyleguide--color-swatch #{css_class || variable}">#{variable}</li>\n)
|
49
|
+
end.join("\n")
|
50
|
+
%(<ul class="livingstyleguide--color-swatches -lsg-#{columns}-columns">\n#{colors_html}\n</ul>\n)
|
51
|
+
end
|
@@ -19,3 +19,11 @@ LivingStyleGuide::Example.add_filter :font_example do |font|
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
+
LivingStyleGuide.add_filter :font_example do |font, text = nil|
|
23
|
+
text ||= LivingStyleGuide::Engine.default_options[:font_example][:text]
|
24
|
+
text = ERB::Util.html_escape(text)
|
25
|
+
text.strip!
|
26
|
+
text.gsub!(/\n/, "<br>\n")
|
27
|
+
font = ERB::Util.html_escape(font)
|
28
|
+
ERB.new(File.read("#{File.dirname(__FILE__)}/../templates/font-example.html.erb")).result(binding)
|
29
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'tilt'
|
2
|
+
|
3
|
+
LivingStyleGuide.add_filter :import do |glob, data = nil|
|
4
|
+
glob << '.lsg' unless glob =~ /\.(\w+|\*)$/
|
5
|
+
glob.gsub!(/[^\/]+$/, '{_,}\\0')
|
6
|
+
if data
|
7
|
+
data = JSON.parse("{#{data}}")
|
8
|
+
end
|
9
|
+
Dir.glob(glob).map do |file|
|
10
|
+
if file =~ /\.s[ac]ss$/
|
11
|
+
document.depend_on file
|
12
|
+
document.scss << %Q(@import "#{file}";\n)
|
13
|
+
nil
|
14
|
+
else
|
15
|
+
::Tilt.new(file, livingstyleguide: document).render(document.scope, data)
|
16
|
+
end
|
17
|
+
end.join
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
LivingStyleGuide.add_filter :set do |option|
|
2
|
+
if option =~ /^([\w\-]+):\s+(.+)$/
|
3
|
+
key, value = $1, $2
|
4
|
+
key = key.downcase.gsub('-', '_').to_sym
|
5
|
+
value = case value
|
6
|
+
when 'true'
|
7
|
+
true
|
8
|
+
when 'false'
|
9
|
+
false
|
10
|
+
when /^\d+$/
|
11
|
+
value.to_i
|
12
|
+
else
|
13
|
+
value
|
14
|
+
end
|
15
|
+
document.options[key] = value
|
16
|
+
end
|
17
|
+
nil
|
18
|
+
end
|
@@ -3,9 +3,7 @@ if defined?(Rails) and defined?(Rails::Railtie)
|
|
3
3
|
require 'rails'
|
4
4
|
class LivingStyleGuideRailtie < Rails::Railtie
|
5
5
|
initializer 'living_style_guide.assets' do
|
6
|
-
Rails.application.
|
7
|
-
env.register_engine('.lsg', ::LivingStyleGuide::TiltTemplate)
|
8
|
-
end
|
6
|
+
Rails.application.assets.register_engine('.lsg', ::LivingStyleGuide::Document)
|
9
7
|
end
|
10
8
|
end
|
11
9
|
|
@@ -15,9 +15,9 @@ module LivingStyleGuide
|
|
15
15
|
|
16
16
|
class RedcarpetHTML < ::Redcarpet::Render::HTML
|
17
17
|
|
18
|
-
def initialize(options = {},
|
18
|
+
def initialize(options = {}, document)
|
19
19
|
@options = options
|
20
|
-
@
|
20
|
+
@document = document
|
21
21
|
super @options
|
22
22
|
end
|
23
23
|
|
@@ -42,12 +42,12 @@ module LivingStyleGuide
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def block_code(code, language)
|
45
|
-
language
|
46
|
-
if language == '
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
45
|
+
language = language.to_s.strip.to_sym
|
46
|
+
language = @options[:default_language] if language == :''
|
47
|
+
document = Document.new(livingstyleguide: @document) { code }
|
48
|
+
document.type = language == :example ? :plain : language
|
49
|
+
document.template = template_for(language)
|
50
|
+
document.render(@document.scope)
|
51
51
|
end
|
52
52
|
|
53
53
|
def codespan(code)
|
@@ -63,6 +63,9 @@ module LivingStyleGuide
|
|
63
63
|
text.downcase.gsub(/[ _\.\-!\?\(\)\[\]]+/, '-').gsub(/^-|-$/, '')
|
64
64
|
end
|
65
65
|
|
66
|
+
private
|
67
|
+
def template_for(language)
|
68
|
+
language == :example ? :example : :code
|
69
|
+
end
|
66
70
|
end
|
67
71
|
end
|
68
|
-
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<section class="<%= classes.join(' ') %>">
|
2
|
+
<div class="livingstyleguide--html">
|
3
|
+
<%= html %>
|
4
|
+
</div>
|
5
|
+
<pre class="livingstyleguide--code-block"><code class="livingstyleguide--code"><%=
|
6
|
+
[:plain].index(type) ? source : ::MiniSyntax.highlight(source, type)
|
7
|
+
%></code></pre>
|
8
|
+
</section>
|
@@ -4,9 +4,8 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="utf-8">
|
6
6
|
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
7
|
-
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
8
7
|
<meta content="The LivingStyleGuide Gem – http://livingstyleguide.org" name="generator">
|
9
|
-
<title><%= h(title) %></title>
|
8
|
+
<title><%= ERB::Util.h(title) %></title>
|
10
9
|
<script>
|
11
10
|
// see: http://www.hagenburger.net/BLOG/Simple-HTML5-Fix-for-IE.html
|
12
11
|
for(var e,l='article aside footer header nav section time picture'.split(' ');e=l.pop();document.createElement(e));
|
@@ -26,4 +25,3 @@ for(var e,l='article aside footer header nav section time picture'.split(' ');e=
|
|
26
25
|
</body>
|
27
26
|
|
28
27
|
</html>
|
29
|
-
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= html %>
|
@@ -85,9 +85,6 @@ module LivingStyleGuide
|
|
85
85
|
break
|
86
86
|
end
|
87
87
|
path = File.expand_path('..', path)
|
88
|
-
if path == "/"
|
89
|
-
break
|
90
|
-
end
|
91
88
|
end
|
92
89
|
path
|
93
90
|
end
|
@@ -101,6 +98,3 @@ module LivingStyleGuide
|
|
101
98
|
end
|
102
99
|
end
|
103
100
|
end
|
104
|
-
|
105
|
-
Tilt.register 'lsg', LivingStyleGuide::TiltTemplate
|
106
|
-
|
@@ -105,4 +105,10 @@
|
|
105
105
|
&.-lsg-for-javascript {
|
106
106
|
display: none;
|
107
107
|
}
|
108
|
+
|
109
|
+
.livingstyleguide--code-block {
|
110
|
+
margin-bottom: -$livingstyleguide--gap-width;
|
111
|
+
margin-left: -$livingstyleguide--gap-width;
|
112
|
+
margin-right: -$livingstyleguide--gap-width;
|
113
|
+
}
|
108
114
|
}
|
@@ -1,9 +1,16 @@
|
|
1
|
-
$livingstyleguide--variables:
|
1
|
+
$livingstyleguide--variables: () !default;
|
2
2
|
|
3
3
|
@each $variable, $value in $livingstyleguide--variables {
|
4
4
|
$value: null !default;
|
5
5
|
@if $value != null {
|
6
|
-
|
6
|
+
$selector: $variable;
|
7
|
+
@if str-slice($variable, 1, 1) == "$" or str-slice($variable, 1, 1) == "#" {
|
8
|
+
$selector: "\\" + $selector;
|
9
|
+
}
|
10
|
+
@if str-slice($variable, -2, -1) == "()" {
|
11
|
+
$selector: str-slice($variable, 1, -3) + "\\(\\)";
|
12
|
+
}
|
13
|
+
.#{$selector} {
|
7
14
|
@if type-of($value) == color {
|
8
15
|
@if (lightness($value) < lightness($livingstyleguide--color)) {
|
9
16
|
color: $livingstyleguide--background-color;
|
@@ -21,4 +28,3 @@ $livingstyleguide--variables: global-variables() !default;
|
|
21
28
|
}
|
22
29
|
}
|
23
30
|
}
|
24
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: livingstyleguide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0.alpha.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nico Hagenburger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minisyntax
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: redcarpet
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.
|
47
|
+
version: 3.0.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.
|
54
|
+
version: 3.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: tilt
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,6 +192,7 @@ files:
|
|
192
192
|
- lib/livingstyleguide.rb
|
193
193
|
- lib/livingstyleguide/code_block.rb
|
194
194
|
- lib/livingstyleguide/command_line_interface.rb
|
195
|
+
- lib/livingstyleguide/document.rb
|
195
196
|
- lib/livingstyleguide/engine.rb
|
196
197
|
- lib/livingstyleguide/example.rb
|
197
198
|
- lib/livingstyleguide/filter_hooks.rb
|
@@ -199,19 +200,29 @@ files:
|
|
199
200
|
- lib/livingstyleguide/filters/add_wrapper_class.rb
|
200
201
|
- lib/livingstyleguide/filters/coffee_script.rb
|
201
202
|
- lib/livingstyleguide/filters/colors.rb
|
203
|
+
- lib/livingstyleguide/filters/data.rb
|
202
204
|
- lib/livingstyleguide/filters/font_example.rb
|
203
205
|
- lib/livingstyleguide/filters/full_width.rb
|
204
206
|
- lib/livingstyleguide/filters/haml.rb
|
205
207
|
- lib/livingstyleguide/filters/highlights.rb
|
208
|
+
- lib/livingstyleguide/filters/import.rb
|
206
209
|
- lib/livingstyleguide/filters/javascript.rb
|
210
|
+
- lib/livingstyleguide/filters/markdown.rb
|
211
|
+
- lib/livingstyleguide/filters/options.rb
|
212
|
+
- lib/livingstyleguide/filters/scss.rb
|
207
213
|
- lib/livingstyleguide/integration.rb
|
208
214
|
- lib/livingstyleguide/integration/compass.rb
|
209
215
|
- lib/livingstyleguide/integration/rails.rb
|
216
|
+
- lib/livingstyleguide/integration/sass.rb
|
210
217
|
- lib/livingstyleguide/integration/sprockets.rb
|
211
218
|
- lib/livingstyleguide/markdown_extensions.rb
|
212
219
|
- lib/livingstyleguide/sass_extensions.rb
|
213
220
|
- lib/livingstyleguide/sass_extensions/functions.rb
|
221
|
+
- lib/livingstyleguide/templates/default.html.erb
|
222
|
+
- lib/livingstyleguide/templates/example.html.erb
|
223
|
+
- lib/livingstyleguide/templates/font-example.html.erb
|
214
224
|
- lib/livingstyleguide/templates/layout.html.erb
|
225
|
+
- lib/livingstyleguide/templates/plain.html.erb
|
215
226
|
- lib/livingstyleguide/tilt_template.rb
|
216
227
|
- lib/livingstyleguide/version.rb
|
217
228
|
- stylesheets/_livingstyleguide.scss
|
@@ -234,12 +245,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
245
|
version: '0'
|
235
246
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
247
|
requirements:
|
237
|
-
- - "
|
248
|
+
- - ">"
|
238
249
|
- !ruby/object:Gem::Version
|
239
|
-
version:
|
250
|
+
version: 1.3.1
|
240
251
|
requirements: []
|
241
252
|
rubyforge_project:
|
242
|
-
rubygems_version: 2.
|
253
|
+
rubygems_version: 2.2.2
|
243
254
|
signing_key:
|
244
255
|
specification_version: 4
|
245
256
|
summary: Generate beautiful front-end style guides
|