maglove 2.0.4 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{vendor → assets}/autoprefixer.js +0 -0
- data/{data/maglove → assets}/export.haml +0 -0
- data/{data/maglove → assets}/hpub/index.css +0 -0
- data/{data/maglove → assets}/hpub/index.haml +0 -0
- data/{data/maglove → assets}/hpub/page.haml +0 -0
- data/{data/maglove → assets}/index.haml +0 -0
- data/{data/maglove → assets}/maglove.css +0 -0
- data/{data/maglove → assets}/maglove.haml +0 -0
- data/{data/maglove → assets}/maglove.js +1 -1
- data/{data/maglove → assets}/scaffold/base/base.coffee +0 -0
- data/{data/maglove → assets}/scaffold/base/base.less +0 -0
- data/{data/maglove → assets}/scaffold/base/images/base/loading-bars.svg +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/animations.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/blockquotes.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/buttons.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/code.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/forms.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/global.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/grid-minimal.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/grid-non-responsive.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/grid.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/helpers.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/images.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/lists.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/mixins.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/print.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/resets.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/base/tables.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/core/alignments.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/core/cleanup.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/core/editor.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/core/typography.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/flex-video.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/animated.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/bordered-pulled.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/core.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/fixed-width.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/font-awesome.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/icons.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/larger.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/list.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/mixins.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/rotated-flipped.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/stacked.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/variables.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/image-loader.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/vendor/magnific-popup.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/widgets/banner.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/widgets/button.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/widgets/callout.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/widgets/columns.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/widgets/container.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/widgets/feedback.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/widgets/heading.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/widgets/horizontal_rule.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/widgets/image.less +0 -0
- data/{data/maglove → assets}/scaffold/base/less/widgets/paragraph.less +0 -0
- data/{data/maglove → assets}/scaffold/base/variables.less +0 -0
- data/{data/maglove → assets}/scaffold/base/vendor/jquery.js +0 -0
- data/{data/maglove → assets}/scaffold/theme/images/logo.png +0 -0
- data/{data/maglove → assets}/scaffold/theme/images/pattern/symphony.png +0 -0
- data/{data/maglove → assets}/scaffold/theme/less/base/variables.less +0 -0
- data/{data/maglove → assets}/scaffold/theme/templates/article-01.haml +3 -3
- data/{data/maglove → assets}/scaffold/theme/templates/cover.haml +0 -0
- data/{data/maglove → assets}/scaffold/theme/templates/toc.haml +1 -1
- data/{data/maglove → assets}/scaffold/theme/templates/toc.yml +0 -0
- data/{data/maglove → assets}/scaffold/theme/theme.coffee +0 -0
- data/{data/maglove → assets}/scaffold/theme/theme.less +0 -0
- data/{data/maglove → assets}/thumbnail.haml +0 -0
- data/{data/maglove → assets}/thumbnail.js +0 -0
- data/bin/maglove +0 -6
- data/lib/magloft/api_caller.rb +12 -12
- data/lib/magloft/remote_resource.rb +17 -17
- data/lib/maglove.rb +19 -19
- data/lib/maglove/asset/theme.rb +7 -6
- data/lib/maglove/commands/assets.rb +61 -44
- data/lib/maglove/commands/base.rb +5 -1
- data/lib/maglove/commands/fonts.rb +9 -6
- data/lib/maglove/commands/main.rb +3 -1
- data/lib/maglove/commands/theme.rb +63 -58
- data/lib/maglove/middleware/live_reload.rb +19 -11
- data/lib/maglove/server.rb +18 -8
- data/lib/maglove/theme.rb +27 -0
- data/lib/maglove/tilt/coffee_template.rb +1 -1
- data/lib/maglove/tilt/haml_template.rb +2 -3
- data/lib/maglove/tilt/js_template.rb +1 -2
- data/lib/maglove/tilt/scss_template.rb +3 -9
- data/lib/maglove/tilt/yaml_template.rb +2 -3
- data/lib/maglove/version.rb +1 -1
- data/lib/powersnap.rb +1 -3
- metadata +164 -155
- data/.gitignore +0 -9
- data/.rubocop.yml +0 -157
- data/Gemfile +0 -3
- data/Gemfile.lock +0 -206
- data/README.md +0 -26
- data/lib/block_resolver.rb +0 -6
- data/lib/maglove/application.rb +0 -58
- data/lib/maglove/phantom_script.rb +0 -44
- data/lib/maglove/workspace.rb +0 -41
- data/lib/workspace.rb +0 -11
- data/lib/workspace/workspace_dir.rb +0 -98
- data/lib/workspace/workspace_dir/archive.rb +0 -18
- data/lib/workspace/workspace_file.rb +0 -127
- data/lib/workspace/workspace_file/archive.rb +0 -45
- data/lib/workspace/workspace_file/media.rb +0 -19
- data/lib/workspace/workspace_file/net.rb +0 -18
- data/lib/workspace/workspace_file/parse.rb +0 -21
- data/maglove.gemspec +0 -45
@@ -3,8 +3,7 @@ require "faye"
|
|
3
3
|
module MagLove
|
4
4
|
module Middleware
|
5
5
|
class LiveReload
|
6
|
-
|
7
|
-
attr_reader :app, :options
|
6
|
+
attr_reader :app, :options, :current_template
|
8
7
|
|
9
8
|
def initialize(app, options = {})
|
10
9
|
@app = app
|
@@ -46,26 +45,30 @@ module MagLove
|
|
46
45
|
if command == "init"
|
47
46
|
send_command("init", { templates: @templates })
|
48
47
|
elsif command == "watch"
|
48
|
+
@current_template = data["template"]
|
49
49
|
watch
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
53
|
def watch
|
54
|
+
base_version = Maglove.theme.base_version
|
54
55
|
patterns = [
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
56
|
+
"src/themes/#{@theme}/**/*.{haml,html,coffee,js,less,scss,css,yml}",
|
57
|
+
"src/themes/#{@theme}/images/**/*.{jpg,jpeg,gif,png,svg}",
|
58
|
+
"src/base/#{base_version}/**/*.{coffee,js,less,scss,css}",
|
59
|
+
"src/base/#{base_version}/images/**/*.{jpg,jpeg,gif,png,svg}"
|
59
60
|
]
|
60
61
|
@watcher = FileWatcher.new(patterns.map(&:to_s))
|
61
62
|
@thread = Thread.new(@watcher) do |fw|
|
62
63
|
fw.watch do |filename, event|
|
63
|
-
if
|
64
|
-
if filename =~ %r{^src/base/#{
|
64
|
+
if Workspace.dir(Dir.pwd).file(filename).exists? and event != :delete
|
65
|
+
if filename =~ %r{^src/base/#{base_version}/.*\.coffee}
|
65
66
|
path = "theme.coffee"
|
66
|
-
elsif filename =~ %r{^src/base/#{
|
67
|
+
elsif filename =~ %r{^src/base/#{base_version}/.*\.js}
|
68
|
+
path = "theme.coffee"
|
69
|
+
elsif filename =~ %r{^src/base/#{base_version}/.*\.less}
|
67
70
|
path = "theme.less"
|
68
|
-
elsif filename =~ %r{^src/base/#{
|
71
|
+
elsif filename =~ %r{^src/base/#{base_version}/.*\.scss}
|
69
72
|
path = "theme.scss"
|
70
73
|
elsif filename =~ %r{^src/themes/#{@theme}/.*\.less}
|
71
74
|
path = "theme.less"
|
@@ -73,11 +76,16 @@ module MagLove
|
|
73
76
|
path = "theme.scss"
|
74
77
|
elsif filename =~ %r{^src/themes/#{@theme}/.*\.coffee}
|
75
78
|
path = "theme.coffee"
|
79
|
+
elsif filename =~ %r{^src/themes/#{@theme}/.*\.js}
|
80
|
+
path = "theme.coffee"
|
81
|
+
elsif filename =~ %r{^src/themes/#{@theme}/blocks/.*\.haml}
|
82
|
+
path = "templates/#{current_template}.haml"
|
76
83
|
else
|
77
84
|
path = filename.gsub("src/themes/#{@theme}/", '')
|
78
85
|
end
|
79
|
-
asset =
|
86
|
+
asset = MagLove::Asset::Theme.new(path, { base: false })
|
80
87
|
if asset.write!
|
88
|
+
puts "▸ #{path} updated"
|
81
89
|
case asset.output_type
|
82
90
|
when "html"
|
83
91
|
template = path.match(%r{templates/(.*)\.haml})[1]
|
data/lib/maglove/server.rb
CHANGED
@@ -3,7 +3,6 @@ require 'maglove/middleware/live_reload'
|
|
3
3
|
|
4
4
|
module MagLove
|
5
5
|
class Server
|
6
|
-
include Workspace
|
7
6
|
attr_reader :app, :options
|
8
7
|
|
9
8
|
def self.start(port, theme, templates)
|
@@ -18,26 +17,37 @@ module MagLove
|
|
18
17
|
|
19
18
|
def initialize(options)
|
20
19
|
@options = options
|
20
|
+
Maglove::Engine.configure do |config|
|
21
|
+
config.asset_uri = "."
|
22
|
+
config.block_path = "src/themes/#{options[:theme]}/blocks"
|
23
|
+
end
|
21
24
|
end
|
22
25
|
|
23
26
|
def call(env)
|
24
27
|
template = env["PATH_INFO"].sub("/", "")
|
25
28
|
if env["PATH_INFO"] == "/maglove.js"
|
26
|
-
[200, { 'Content-Type' => 'text/javascript' }, [
|
29
|
+
[200, { 'Content-Type' => 'text/javascript' }, [Maglove.assets_dir.file("maglove.js").read]]
|
27
30
|
elsif env["PATH_INFO"] == "/maglove.css"
|
28
|
-
[200, { 'Content-Type' => 'text/css' }, [
|
31
|
+
[200, { 'Content-Type' => 'text/css' }, [Maglove.assets_dir.file("maglove.css").read]]
|
29
32
|
elsif @options[:templates].include?(template)
|
30
33
|
[200, { 'Content-Type' => 'text/html' }, [process(template)]]
|
31
34
|
else
|
32
|
-
[200, { 'Content-Type' => 'text/html' }, [
|
35
|
+
[200, { 'Content-Type' => 'text/html' }, [Maglove::Engine.render(Maglove.assets_dir.file("index.haml").read, @options)]]
|
33
36
|
end
|
34
37
|
end
|
35
38
|
|
36
39
|
def process(template)
|
37
|
-
css_contents =
|
38
|
-
js_contents =
|
39
|
-
|
40
|
-
|
40
|
+
css_contents = Workspace::Dir.new(Dir.pwd, "dist/themes/#{options[:theme]}").file("theme.css").read
|
41
|
+
js_contents = Workspace::Dir.new(Dir.pwd, "dist/themes/#{options[:theme]}").file("theme.js").read
|
42
|
+
template_asset = MagLove::Asset::Theme.new("templates/#{template}.haml", { base: false })
|
43
|
+
Maglove::Engine.render(Maglove.assets_dir.file("maglove.haml").read, {
|
44
|
+
theme: @options[:theme],
|
45
|
+
contents: template_asset.contents,
|
46
|
+
css_contents: css_contents,
|
47
|
+
js_contents: js_contents,
|
48
|
+
template: template,
|
49
|
+
port: @options[:port] || 3000
|
50
|
+
})
|
41
51
|
end
|
42
52
|
|
43
53
|
def setup(theme)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Maglove
|
2
|
+
class Theme
|
3
|
+
include Singleton
|
4
|
+
attr_reader :identifier, :name, :base_version, :description, :templates, :fonts, :widgets
|
5
|
+
attr_reader :src_dir, :dist_dir, :base_dir
|
6
|
+
|
7
|
+
def loaded?
|
8
|
+
!identifier.nil?
|
9
|
+
end
|
10
|
+
|
11
|
+
def load(identifier)
|
12
|
+
yaml = Workspace::Dir.new(Dir.pwd, "src/themes/#{identifier}").file("theme.yml").read_yaml
|
13
|
+
# theme properties
|
14
|
+
@identifier = yaml["identifier"]
|
15
|
+
@name = yaml["name"]
|
16
|
+
@base_version = yaml["base_version"]
|
17
|
+
@description = yaml["description"]
|
18
|
+
@templates = yaml["templates"]
|
19
|
+
@fonts = yaml["fonts"]
|
20
|
+
@widgets = yaml["widgets"]
|
21
|
+
# directories
|
22
|
+
@src_dir = Workspace.dir(File.join(Dir.pwd, "src/themes/#{@identifier}"))
|
23
|
+
@dist_dir = Workspace.dir(File.join(Dir.pwd, "dist/themes/#{@identifier}"))
|
24
|
+
@base_dir = Workspace.dir(File.join(Dir.pwd, "src/base/#{@base_version}"))
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -3,11 +3,10 @@ module MagLove
|
|
3
3
|
class HamlTemplate < ::Tilt::Template
|
4
4
|
self.default_mime_type = 'theme/html'
|
5
5
|
|
6
|
-
def prepare
|
7
|
-
end
|
6
|
+
def prepare; end
|
8
7
|
|
9
8
|
def evaluate(scope, locals, &block)
|
10
|
-
@output ||=
|
9
|
+
@output ||= Maglove::Engine.render(data, locals)
|
11
10
|
end
|
12
11
|
|
13
12
|
def allows_script?
|
@@ -2,11 +2,7 @@ require 'sass-css-importer'
|
|
2
2
|
module Sass::Script::Functions
|
3
3
|
def asset(url)
|
4
4
|
assert_type url, :String
|
5
|
-
Sass::Script::Value::String.new("url(\"#{asset_uri}/#{url.value}\")")
|
6
|
-
end
|
7
|
-
|
8
|
-
def asset_uri
|
9
|
-
options[:locals][:asset_uri] || Hamloft.asset_uri
|
5
|
+
Sass::Script::Value::String.new("url(\"#{Maglove::Engine.config.asset_uri}/#{url.value}\")")
|
10
6
|
end
|
11
7
|
|
12
8
|
def asset_data(url)
|
@@ -15,8 +11,7 @@ module Sass::Script::Functions
|
|
15
11
|
asset_path = "dist/themes/#{theme}/#{url.value}"
|
16
12
|
asset_contents = File.open(asset_path).read
|
17
13
|
base64_string = Base64.strict_encode64(asset_contents)
|
18
|
-
|
19
|
-
mime_type = Mime::Type.lookup_by_extension(extension).to_s
|
14
|
+
mime_type = Workspace.file(asset_path).mimetype
|
20
15
|
data_uri = "data:#{mime_type};base64,#{base64_string}"
|
21
16
|
Sass::Script::Value::String.new("url(#{data_uri})")
|
22
17
|
end
|
@@ -28,8 +23,7 @@ module MagLove
|
|
28
23
|
class ScssTemplate < ::Tilt::SassTemplate
|
29
24
|
self.default_mime_type = 'text/css'
|
30
25
|
|
31
|
-
def prepare
|
32
|
-
end
|
26
|
+
def prepare; end
|
33
27
|
|
34
28
|
def evaluate(scope, locals, &block)
|
35
29
|
prepared_data = "@base: \"#{locals[:base_path].sub('src/', '../../')}\";\n#{data}"
|
@@ -3,11 +3,10 @@ module MagLove
|
|
3
3
|
class YamlTemplate < ::Tilt::Template
|
4
4
|
self.default_mime_type = 'application/json'
|
5
5
|
|
6
|
-
def prepare
|
7
|
-
end
|
6
|
+
def prepare; end
|
8
7
|
|
9
8
|
def evaluate(scope, locals, &block)
|
10
|
-
@output ||= YAML.
|
9
|
+
@output ||= YAML.safe_load(data).to_json
|
11
10
|
end
|
12
11
|
|
13
12
|
def allows_script?
|
data/lib/maglove/version.rb
CHANGED
data/lib/powersnap.rb
CHANGED
@@ -28,8 +28,6 @@ class Powersnap
|
|
28
28
|
end
|
29
29
|
cmd = "#{@prefix} powersnap -j -d \"#{dir}\" -t \"#{format}\" -q #{quality} -z #{zoom} #{page ? '--page' : ''} -w #{width.to_i} -h #{height.to_i} #{(css and "-c #{css}")} -f \"#{pattern}\" #{@urls.join(' ')}"
|
30
30
|
json_response = `#{cmd}`
|
31
|
-
|
32
|
-
response = JSON.parse(json_response)
|
33
|
-
return response["stats"] == "success"
|
31
|
+
JSON.parse(json_response) rescue { "status" => "error" }
|
34
32
|
end
|
35
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maglove
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Strebitzer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -25,33 +25,39 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.10'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: haml
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.0'
|
34
|
+
- - "<"
|
32
35
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0
|
36
|
+
version: '6.0'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0
|
43
|
+
version: '4.0'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '6.0'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
48
|
+
name: thor
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
53
|
+
version: '0.20'
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
60
|
+
version: '0.20'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: activesupport
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,20 +65,9 @@ dependencies:
|
|
59
65
|
- - ">="
|
60
66
|
- !ruby/object:Gem::Version
|
61
67
|
version: '4.0'
|
62
|
-
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '4.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: actionpack
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
68
|
+
- - "<"
|
74
69
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
70
|
+
version: '6.0'
|
76
71
|
type: :runtime
|
77
72
|
prerelease: false
|
78
73
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -80,20 +75,9 @@ dependencies:
|
|
80
75
|
- - ">="
|
81
76
|
- !ruby/object:Gem::Version
|
82
77
|
version: '4.0'
|
83
|
-
-
|
84
|
-
name: maglove-widgets
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '2.0'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
78
|
+
- - "<"
|
95
79
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
80
|
+
version: '6.0'
|
97
81
|
- !ruby/object:Gem::Dependency
|
98
82
|
name: open_uri_redirections
|
99
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -221,7 +205,21 @@ dependencies:
|
|
221
205
|
- !ruby/object:Gem::Version
|
222
206
|
version: '0.2'
|
223
207
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
208
|
+
name: crush
|
209
|
+
requirement: !ruby/object:Gem::Requirement
|
210
|
+
requirements:
|
211
|
+
- - "~>"
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '0.3'
|
214
|
+
type: :runtime
|
215
|
+
prerelease: false
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - "~>"
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0.3'
|
221
|
+
- !ruby/object:Gem::Dependency
|
222
|
+
name: closure-compiler
|
225
223
|
requirement: !ruby/object:Gem::Requirement
|
226
224
|
requirements:
|
227
225
|
- - "~>"
|
@@ -235,145 +233,173 @@ dependencies:
|
|
235
233
|
- !ruby/object:Gem::Version
|
236
234
|
version: '1.1'
|
237
235
|
- !ruby/object:Gem::Dependency
|
238
|
-
name:
|
236
|
+
name: cssminify
|
239
237
|
requirement: !ruby/object:Gem::Requirement
|
240
238
|
requirements:
|
241
239
|
- - "~>"
|
242
240
|
- !ruby/object:Gem::Version
|
243
|
-
version: '0
|
241
|
+
version: '1.0'
|
244
242
|
type: :runtime
|
245
243
|
prerelease: false
|
246
244
|
version_requirements: !ruby/object:Gem::Requirement
|
247
245
|
requirements:
|
248
246
|
- - "~>"
|
249
247
|
- !ruby/object:Gem::Version
|
250
|
-
version: '0
|
248
|
+
version: '1.0'
|
251
249
|
- !ruby/object:Gem::Dependency
|
252
|
-
name:
|
250
|
+
name: puma
|
253
251
|
requirement: !ruby/object:Gem::Requirement
|
254
252
|
requirements:
|
255
253
|
- - "~>"
|
256
254
|
- !ruby/object:Gem::Version
|
257
|
-
version: '
|
255
|
+
version: '3.6'
|
258
256
|
type: :runtime
|
259
257
|
prerelease: false
|
260
258
|
version_requirements: !ruby/object:Gem::Requirement
|
261
259
|
requirements:
|
262
260
|
- - "~>"
|
263
261
|
- !ruby/object:Gem::Version
|
264
|
-
version: '
|
262
|
+
version: '3.6'
|
265
263
|
- !ruby/object:Gem::Dependency
|
266
|
-
name:
|
264
|
+
name: filewatcher
|
267
265
|
requirement: !ruby/object:Gem::Requirement
|
268
266
|
requirements:
|
269
267
|
- - "~>"
|
270
268
|
- !ruby/object:Gem::Version
|
271
|
-
version: '
|
269
|
+
version: '0.5'
|
272
270
|
type: :runtime
|
273
271
|
prerelease: false
|
274
272
|
version_requirements: !ruby/object:Gem::Requirement
|
275
273
|
requirements:
|
276
274
|
- - "~>"
|
277
275
|
- !ruby/object:Gem::Version
|
278
|
-
version: '
|
276
|
+
version: '0.5'
|
279
277
|
- !ruby/object:Gem::Dependency
|
280
|
-
name:
|
278
|
+
name: faye
|
281
279
|
requirement: !ruby/object:Gem::Requirement
|
282
280
|
requirements:
|
283
281
|
- - "~>"
|
284
282
|
- !ruby/object:Gem::Version
|
285
|
-
version: '1.
|
283
|
+
version: '1.2'
|
286
284
|
type: :runtime
|
287
285
|
prerelease: false
|
288
286
|
version_requirements: !ruby/object:Gem::Requirement
|
289
287
|
requirements:
|
290
288
|
- - "~>"
|
291
289
|
- !ruby/object:Gem::Version
|
292
|
-
version: '1.
|
290
|
+
version: '1.2'
|
293
291
|
- !ruby/object:Gem::Dependency
|
294
|
-
name:
|
292
|
+
name: typhoeus
|
295
293
|
requirement: !ruby/object:Gem::Requirement
|
296
294
|
requirements:
|
297
295
|
- - "~>"
|
298
296
|
- !ruby/object:Gem::Version
|
299
|
-
version: '
|
297
|
+
version: '1.1'
|
300
298
|
type: :runtime
|
301
299
|
prerelease: false
|
302
300
|
version_requirements: !ruby/object:Gem::Requirement
|
303
301
|
requirements:
|
304
302
|
- - "~>"
|
305
303
|
- !ruby/object:Gem::Version
|
306
|
-
version: '
|
304
|
+
version: '1.1'
|
307
305
|
- !ruby/object:Gem::Dependency
|
308
|
-
name:
|
306
|
+
name: maglove-engine
|
309
307
|
requirement: !ruby/object:Gem::Requirement
|
310
308
|
requirements:
|
311
309
|
- - "~>"
|
312
310
|
- !ruby/object:Gem::Version
|
313
|
-
version: '
|
311
|
+
version: '2.0'
|
314
312
|
type: :runtime
|
315
313
|
prerelease: false
|
316
314
|
version_requirements: !ruby/object:Gem::Requirement
|
317
315
|
requirements:
|
318
316
|
- - "~>"
|
319
317
|
- !ruby/object:Gem::Version
|
320
|
-
version: '
|
318
|
+
version: '2.0'
|
321
319
|
- !ruby/object:Gem::Dependency
|
322
|
-
name:
|
320
|
+
name: workspace
|
323
321
|
requirement: !ruby/object:Gem::Requirement
|
324
322
|
requirements:
|
325
323
|
- - "~>"
|
326
324
|
- !ruby/object:Gem::Version
|
327
|
-
version: '0
|
325
|
+
version: '1.0'
|
328
326
|
type: :runtime
|
329
327
|
prerelease: false
|
330
328
|
version_requirements: !ruby/object:Gem::Requirement
|
331
329
|
requirements:
|
332
330
|
- - "~>"
|
333
331
|
- !ruby/object:Gem::Version
|
334
|
-
version: '0
|
332
|
+
version: '1.0'
|
335
333
|
- !ruby/object:Gem::Dependency
|
336
|
-
name:
|
334
|
+
name: workspace-parse
|
337
335
|
requirement: !ruby/object:Gem::Requirement
|
338
336
|
requirements:
|
339
337
|
- - "~>"
|
340
338
|
- !ruby/object:Gem::Version
|
341
|
-
version: '1.
|
339
|
+
version: '1.0'
|
342
340
|
type: :runtime
|
343
341
|
prerelease: false
|
344
342
|
version_requirements: !ruby/object:Gem::Requirement
|
345
343
|
requirements:
|
346
344
|
- - "~>"
|
347
345
|
- !ruby/object:Gem::Version
|
348
|
-
version: '1.
|
346
|
+
version: '1.0'
|
349
347
|
- !ruby/object:Gem::Dependency
|
350
|
-
name:
|
348
|
+
name: workspace-media
|
351
349
|
requirement: !ruby/object:Gem::Requirement
|
352
350
|
requirements:
|
353
351
|
- - "~>"
|
354
352
|
- !ruby/object:Gem::Version
|
355
|
-
version: '1.
|
353
|
+
version: '1.0'
|
356
354
|
type: :runtime
|
357
355
|
prerelease: false
|
358
356
|
version_requirements: !ruby/object:Gem::Requirement
|
359
357
|
requirements:
|
360
358
|
- - "~>"
|
361
359
|
- !ruby/object:Gem::Version
|
362
|
-
version: '1.
|
360
|
+
version: '1.0'
|
361
|
+
- !ruby/object:Gem::Dependency
|
362
|
+
name: rspec
|
363
|
+
requirement: !ruby/object:Gem::Requirement
|
364
|
+
requirements:
|
365
|
+
- - "~>"
|
366
|
+
- !ruby/object:Gem::Version
|
367
|
+
version: '3.7'
|
368
|
+
type: :development
|
369
|
+
prerelease: false
|
370
|
+
version_requirements: !ruby/object:Gem::Requirement
|
371
|
+
requirements:
|
372
|
+
- - "~>"
|
373
|
+
- !ruby/object:Gem::Version
|
374
|
+
version: '3.7'
|
375
|
+
- !ruby/object:Gem::Dependency
|
376
|
+
name: pry
|
377
|
+
requirement: !ruby/object:Gem::Requirement
|
378
|
+
requirements:
|
379
|
+
- - "~>"
|
380
|
+
- !ruby/object:Gem::Version
|
381
|
+
version: '0.11'
|
382
|
+
type: :development
|
383
|
+
prerelease: false
|
384
|
+
version_requirements: !ruby/object:Gem::Requirement
|
385
|
+
requirements:
|
386
|
+
- - "~>"
|
387
|
+
- !ruby/object:Gem::Version
|
388
|
+
version: '0.11'
|
363
389
|
- !ruby/object:Gem::Dependency
|
364
390
|
name: rubocop
|
365
391
|
requirement: !ruby/object:Gem::Requirement
|
366
392
|
requirements:
|
367
393
|
- - "~>"
|
368
394
|
- !ruby/object:Gem::Version
|
369
|
-
version: '0.
|
395
|
+
version: '0.52'
|
370
396
|
type: :development
|
371
397
|
prerelease: false
|
372
398
|
version_requirements: !ruby/object:Gem::Requirement
|
373
399
|
requirements:
|
374
400
|
- - "~>"
|
375
401
|
- !ruby/object:Gem::Version
|
376
|
-
version: '0.
|
402
|
+
version: '0.52'
|
377
403
|
description: This gem contains development and built tools for creating MagLoft themes.
|
378
404
|
email:
|
379
405
|
- tobias.strebitzer@magloft.com
|
@@ -382,83 +408,78 @@ executables:
|
|
382
408
|
extensions: []
|
383
409
|
extra_rdoc_files: []
|
384
410
|
files:
|
385
|
-
-
|
386
|
-
-
|
387
|
-
-
|
388
|
-
-
|
389
|
-
-
|
411
|
+
- assets/autoprefixer.js
|
412
|
+
- assets/export.haml
|
413
|
+
- assets/hpub/index.css
|
414
|
+
- assets/hpub/index.haml
|
415
|
+
- assets/hpub/page.haml
|
416
|
+
- assets/index.haml
|
417
|
+
- assets/maglove.css
|
418
|
+
- assets/maglove.haml
|
419
|
+
- assets/maglove.js
|
420
|
+
- assets/scaffold/base/base.coffee
|
421
|
+
- assets/scaffold/base/base.less
|
422
|
+
- assets/scaffold/base/images/base/loading-bars.svg
|
423
|
+
- assets/scaffold/base/less/base/animations.less
|
424
|
+
- assets/scaffold/base/less/base/blockquotes.less
|
425
|
+
- assets/scaffold/base/less/base/buttons.less
|
426
|
+
- assets/scaffold/base/less/base/code.less
|
427
|
+
- assets/scaffold/base/less/base/forms.less
|
428
|
+
- assets/scaffold/base/less/base/global.less
|
429
|
+
- assets/scaffold/base/less/base/grid-minimal.less
|
430
|
+
- assets/scaffold/base/less/base/grid-non-responsive.less
|
431
|
+
- assets/scaffold/base/less/base/grid.less
|
432
|
+
- assets/scaffold/base/less/base/helpers.less
|
433
|
+
- assets/scaffold/base/less/base/images.less
|
434
|
+
- assets/scaffold/base/less/base/lists.less
|
435
|
+
- assets/scaffold/base/less/base/mixins.less
|
436
|
+
- assets/scaffold/base/less/base/print.less
|
437
|
+
- assets/scaffold/base/less/base/resets.less
|
438
|
+
- assets/scaffold/base/less/base/tables.less
|
439
|
+
- assets/scaffold/base/less/core/alignments.less
|
440
|
+
- assets/scaffold/base/less/core/cleanup.less
|
441
|
+
- assets/scaffold/base/less/core/editor.less
|
442
|
+
- assets/scaffold/base/less/core/typography.less
|
443
|
+
- assets/scaffold/base/less/vendor/flex-video.less
|
444
|
+
- assets/scaffold/base/less/vendor/font-awesome.less
|
445
|
+
- assets/scaffold/base/less/vendor/font-awesome/animated.less
|
446
|
+
- assets/scaffold/base/less/vendor/font-awesome/bordered-pulled.less
|
447
|
+
- assets/scaffold/base/less/vendor/font-awesome/core.less
|
448
|
+
- assets/scaffold/base/less/vendor/font-awesome/fixed-width.less
|
449
|
+
- assets/scaffold/base/less/vendor/font-awesome/font-awesome.less
|
450
|
+
- assets/scaffold/base/less/vendor/font-awesome/icons.less
|
451
|
+
- assets/scaffold/base/less/vendor/font-awesome/larger.less
|
452
|
+
- assets/scaffold/base/less/vendor/font-awesome/list.less
|
453
|
+
- assets/scaffold/base/less/vendor/font-awesome/mixins.less
|
454
|
+
- assets/scaffold/base/less/vendor/font-awesome/rotated-flipped.less
|
455
|
+
- assets/scaffold/base/less/vendor/font-awesome/stacked.less
|
456
|
+
- assets/scaffold/base/less/vendor/font-awesome/variables.less
|
457
|
+
- assets/scaffold/base/less/vendor/image-loader.less
|
458
|
+
- assets/scaffold/base/less/vendor/magnific-popup.less
|
459
|
+
- assets/scaffold/base/less/widgets/banner.less
|
460
|
+
- assets/scaffold/base/less/widgets/button.less
|
461
|
+
- assets/scaffold/base/less/widgets/callout.less
|
462
|
+
- assets/scaffold/base/less/widgets/columns.less
|
463
|
+
- assets/scaffold/base/less/widgets/container.less
|
464
|
+
- assets/scaffold/base/less/widgets/feedback.less
|
465
|
+
- assets/scaffold/base/less/widgets/heading.less
|
466
|
+
- assets/scaffold/base/less/widgets/horizontal_rule.less
|
467
|
+
- assets/scaffold/base/less/widgets/image.less
|
468
|
+
- assets/scaffold/base/less/widgets/paragraph.less
|
469
|
+
- assets/scaffold/base/variables.less
|
470
|
+
- assets/scaffold/base/vendor/jquery.js
|
471
|
+
- assets/scaffold/theme/images/logo.png
|
472
|
+
- assets/scaffold/theme/images/pattern/symphony.png
|
473
|
+
- assets/scaffold/theme/less/base/variables.less
|
474
|
+
- assets/scaffold/theme/templates/article-01.haml
|
475
|
+
- assets/scaffold/theme/templates/cover.haml
|
476
|
+
- assets/scaffold/theme/templates/toc.haml
|
477
|
+
- assets/scaffold/theme/templates/toc.yml
|
478
|
+
- assets/scaffold/theme/theme.coffee
|
479
|
+
- assets/scaffold/theme/theme.less
|
480
|
+
- assets/thumbnail.haml
|
481
|
+
- assets/thumbnail.js
|
390
482
|
- bin/maglove
|
391
|
-
- data/maglove/export.haml
|
392
|
-
- data/maglove/hpub/index.css
|
393
|
-
- data/maglove/hpub/index.haml
|
394
|
-
- data/maglove/hpub/page.haml
|
395
|
-
- data/maglove/index.haml
|
396
|
-
- data/maglove/maglove.css
|
397
|
-
- data/maglove/maglove.haml
|
398
|
-
- data/maglove/maglove.js
|
399
|
-
- data/maglove/scaffold/base/base.coffee
|
400
|
-
- data/maglove/scaffold/base/base.less
|
401
|
-
- data/maglove/scaffold/base/images/base/loading-bars.svg
|
402
|
-
- data/maglove/scaffold/base/less/base/animations.less
|
403
|
-
- data/maglove/scaffold/base/less/base/blockquotes.less
|
404
|
-
- data/maglove/scaffold/base/less/base/buttons.less
|
405
|
-
- data/maglove/scaffold/base/less/base/code.less
|
406
|
-
- data/maglove/scaffold/base/less/base/forms.less
|
407
|
-
- data/maglove/scaffold/base/less/base/global.less
|
408
|
-
- data/maglove/scaffold/base/less/base/grid-minimal.less
|
409
|
-
- data/maglove/scaffold/base/less/base/grid-non-responsive.less
|
410
|
-
- data/maglove/scaffold/base/less/base/grid.less
|
411
|
-
- data/maglove/scaffold/base/less/base/helpers.less
|
412
|
-
- data/maglove/scaffold/base/less/base/images.less
|
413
|
-
- data/maglove/scaffold/base/less/base/lists.less
|
414
|
-
- data/maglove/scaffold/base/less/base/mixins.less
|
415
|
-
- data/maglove/scaffold/base/less/base/print.less
|
416
|
-
- data/maglove/scaffold/base/less/base/resets.less
|
417
|
-
- data/maglove/scaffold/base/less/base/tables.less
|
418
|
-
- data/maglove/scaffold/base/less/core/alignments.less
|
419
|
-
- data/maglove/scaffold/base/less/core/cleanup.less
|
420
|
-
- data/maglove/scaffold/base/less/core/editor.less
|
421
|
-
- data/maglove/scaffold/base/less/core/typography.less
|
422
|
-
- data/maglove/scaffold/base/less/vendor/flex-video.less
|
423
|
-
- data/maglove/scaffold/base/less/vendor/font-awesome.less
|
424
|
-
- data/maglove/scaffold/base/less/vendor/font-awesome/animated.less
|
425
|
-
- data/maglove/scaffold/base/less/vendor/font-awesome/bordered-pulled.less
|
426
|
-
- data/maglove/scaffold/base/less/vendor/font-awesome/core.less
|
427
|
-
- data/maglove/scaffold/base/less/vendor/font-awesome/fixed-width.less
|
428
|
-
- data/maglove/scaffold/base/less/vendor/font-awesome/font-awesome.less
|
429
|
-
- data/maglove/scaffold/base/less/vendor/font-awesome/icons.less
|
430
|
-
- data/maglove/scaffold/base/less/vendor/font-awesome/larger.less
|
431
|
-
- data/maglove/scaffold/base/less/vendor/font-awesome/list.less
|
432
|
-
- data/maglove/scaffold/base/less/vendor/font-awesome/mixins.less
|
433
|
-
- data/maglove/scaffold/base/less/vendor/font-awesome/rotated-flipped.less
|
434
|
-
- data/maglove/scaffold/base/less/vendor/font-awesome/stacked.less
|
435
|
-
- data/maglove/scaffold/base/less/vendor/font-awesome/variables.less
|
436
|
-
- data/maglove/scaffold/base/less/vendor/image-loader.less
|
437
|
-
- data/maglove/scaffold/base/less/vendor/magnific-popup.less
|
438
|
-
- data/maglove/scaffold/base/less/widgets/banner.less
|
439
|
-
- data/maglove/scaffold/base/less/widgets/button.less
|
440
|
-
- data/maglove/scaffold/base/less/widgets/callout.less
|
441
|
-
- data/maglove/scaffold/base/less/widgets/columns.less
|
442
|
-
- data/maglove/scaffold/base/less/widgets/container.less
|
443
|
-
- data/maglove/scaffold/base/less/widgets/feedback.less
|
444
|
-
- data/maglove/scaffold/base/less/widgets/heading.less
|
445
|
-
- data/maglove/scaffold/base/less/widgets/horizontal_rule.less
|
446
|
-
- data/maglove/scaffold/base/less/widgets/image.less
|
447
|
-
- data/maglove/scaffold/base/less/widgets/paragraph.less
|
448
|
-
- data/maglove/scaffold/base/variables.less
|
449
|
-
- data/maglove/scaffold/base/vendor/jquery.js
|
450
|
-
- data/maglove/scaffold/theme/images/logo.png
|
451
|
-
- data/maglove/scaffold/theme/images/pattern/symphony.png
|
452
|
-
- data/maglove/scaffold/theme/less/base/variables.less
|
453
|
-
- data/maglove/scaffold/theme/templates/article-01.haml
|
454
|
-
- data/maglove/scaffold/theme/templates/cover.haml
|
455
|
-
- data/maglove/scaffold/theme/templates/toc.haml
|
456
|
-
- data/maglove/scaffold/theme/templates/toc.yml
|
457
|
-
- data/maglove/scaffold/theme/theme.coffee
|
458
|
-
- data/maglove/scaffold/theme/theme.less
|
459
|
-
- data/maglove/thumbnail.haml
|
460
|
-
- data/maglove/thumbnail.js
|
461
|
-
- lib/block_resolver.rb
|
462
483
|
- lib/ext/thor/option.rb
|
463
484
|
- lib/magloft.rb
|
464
485
|
- lib/magloft/api.rb
|
@@ -471,7 +492,6 @@ files:
|
|
471
492
|
- lib/magloft/typeloft_template.rb
|
472
493
|
- lib/magloft/typeloft_theme.rb
|
473
494
|
- lib/maglove.rb
|
474
|
-
- lib/maglove/application.rb
|
475
495
|
- lib/maglove/asset/theme.rb
|
476
496
|
- lib/maglove/commands/assets.rb
|
477
497
|
- lib/maglove/commands/base.rb
|
@@ -480,8 +500,8 @@ files:
|
|
480
500
|
- lib/maglove/commands/theme.rb
|
481
501
|
- lib/maglove/helper/log_helper.rb
|
482
502
|
- lib/maglove/middleware/live_reload.rb
|
483
|
-
- lib/maglove/phantom_script.rb
|
484
503
|
- lib/maglove/server.rb
|
504
|
+
- lib/maglove/theme.rb
|
485
505
|
- lib/maglove/tilt/coffee_template.rb
|
486
506
|
- lib/maglove/tilt/haml_template.rb
|
487
507
|
- lib/maglove/tilt/js_template.rb
|
@@ -489,18 +509,7 @@ files:
|
|
489
509
|
- lib/maglove/tilt/scss_template.rb
|
490
510
|
- lib/maglove/tilt/yaml_template.rb
|
491
511
|
- lib/maglove/version.rb
|
492
|
-
- lib/maglove/workspace.rb
|
493
512
|
- lib/powersnap.rb
|
494
|
-
- lib/workspace.rb
|
495
|
-
- lib/workspace/workspace_dir.rb
|
496
|
-
- lib/workspace/workspace_dir/archive.rb
|
497
|
-
- lib/workspace/workspace_file.rb
|
498
|
-
- lib/workspace/workspace_file/archive.rb
|
499
|
-
- lib/workspace/workspace_file/media.rb
|
500
|
-
- lib/workspace/workspace_file/net.rb
|
501
|
-
- lib/workspace/workspace_file/parse.rb
|
502
|
-
- maglove.gemspec
|
503
|
-
- vendor/autoprefixer.js
|
504
513
|
homepage: https://github.com/MagLoft/maglove
|
505
514
|
licenses:
|
506
515
|
- BSD-3-Clause
|