maglove 2.0.4 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/{vendor → assets}/autoprefixer.js +0 -0
  3. data/{data/maglove → assets}/export.haml +0 -0
  4. data/{data/maglove → assets}/hpub/index.css +0 -0
  5. data/{data/maglove → assets}/hpub/index.haml +0 -0
  6. data/{data/maglove → assets}/hpub/page.haml +0 -0
  7. data/{data/maglove → assets}/index.haml +0 -0
  8. data/{data/maglove → assets}/maglove.css +0 -0
  9. data/{data/maglove → assets}/maglove.haml +0 -0
  10. data/{data/maglove → assets}/maglove.js +1 -1
  11. data/{data/maglove → assets}/scaffold/base/base.coffee +0 -0
  12. data/{data/maglove → assets}/scaffold/base/base.less +0 -0
  13. data/{data/maglove → assets}/scaffold/base/images/base/loading-bars.svg +0 -0
  14. data/{data/maglove → assets}/scaffold/base/less/base/animations.less +0 -0
  15. data/{data/maglove → assets}/scaffold/base/less/base/blockquotes.less +0 -0
  16. data/{data/maglove → assets}/scaffold/base/less/base/buttons.less +0 -0
  17. data/{data/maglove → assets}/scaffold/base/less/base/code.less +0 -0
  18. data/{data/maglove → assets}/scaffold/base/less/base/forms.less +0 -0
  19. data/{data/maglove → assets}/scaffold/base/less/base/global.less +0 -0
  20. data/{data/maglove → assets}/scaffold/base/less/base/grid-minimal.less +0 -0
  21. data/{data/maglove → assets}/scaffold/base/less/base/grid-non-responsive.less +0 -0
  22. data/{data/maglove → assets}/scaffold/base/less/base/grid.less +0 -0
  23. data/{data/maglove → assets}/scaffold/base/less/base/helpers.less +0 -0
  24. data/{data/maglove → assets}/scaffold/base/less/base/images.less +0 -0
  25. data/{data/maglove → assets}/scaffold/base/less/base/lists.less +0 -0
  26. data/{data/maglove → assets}/scaffold/base/less/base/mixins.less +0 -0
  27. data/{data/maglove → assets}/scaffold/base/less/base/print.less +0 -0
  28. data/{data/maglove → assets}/scaffold/base/less/base/resets.less +0 -0
  29. data/{data/maglove → assets}/scaffold/base/less/base/tables.less +0 -0
  30. data/{data/maglove → assets}/scaffold/base/less/core/alignments.less +0 -0
  31. data/{data/maglove → assets}/scaffold/base/less/core/cleanup.less +0 -0
  32. data/{data/maglove → assets}/scaffold/base/less/core/editor.less +0 -0
  33. data/{data/maglove → assets}/scaffold/base/less/core/typography.less +0 -0
  34. data/{data/maglove → assets}/scaffold/base/less/vendor/flex-video.less +0 -0
  35. data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome.less +0 -0
  36. data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/animated.less +0 -0
  37. data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/bordered-pulled.less +0 -0
  38. data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/core.less +0 -0
  39. data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/fixed-width.less +0 -0
  40. data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/font-awesome.less +0 -0
  41. data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/icons.less +0 -0
  42. data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/larger.less +0 -0
  43. data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/list.less +0 -0
  44. data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/mixins.less +0 -0
  45. data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/rotated-flipped.less +0 -0
  46. data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/stacked.less +0 -0
  47. data/{data/maglove → assets}/scaffold/base/less/vendor/font-awesome/variables.less +0 -0
  48. data/{data/maglove → assets}/scaffold/base/less/vendor/image-loader.less +0 -0
  49. data/{data/maglove → assets}/scaffold/base/less/vendor/magnific-popup.less +0 -0
  50. data/{data/maglove → assets}/scaffold/base/less/widgets/banner.less +0 -0
  51. data/{data/maglove → assets}/scaffold/base/less/widgets/button.less +0 -0
  52. data/{data/maglove → assets}/scaffold/base/less/widgets/callout.less +0 -0
  53. data/{data/maglove → assets}/scaffold/base/less/widgets/columns.less +0 -0
  54. data/{data/maglove → assets}/scaffold/base/less/widgets/container.less +0 -0
  55. data/{data/maglove → assets}/scaffold/base/less/widgets/feedback.less +0 -0
  56. data/{data/maglove → assets}/scaffold/base/less/widgets/heading.less +0 -0
  57. data/{data/maglove → assets}/scaffold/base/less/widgets/horizontal_rule.less +0 -0
  58. data/{data/maglove → assets}/scaffold/base/less/widgets/image.less +0 -0
  59. data/{data/maglove → assets}/scaffold/base/less/widgets/paragraph.less +0 -0
  60. data/{data/maglove → assets}/scaffold/base/variables.less +0 -0
  61. data/{data/maglove → assets}/scaffold/base/vendor/jquery.js +0 -0
  62. data/{data/maglove → assets}/scaffold/theme/images/logo.png +0 -0
  63. data/{data/maglove → assets}/scaffold/theme/images/pattern/symphony.png +0 -0
  64. data/{data/maglove → assets}/scaffold/theme/less/base/variables.less +0 -0
  65. data/{data/maglove → assets}/scaffold/theme/templates/article-01.haml +3 -3
  66. data/{data/maglove → assets}/scaffold/theme/templates/cover.haml +0 -0
  67. data/{data/maglove → assets}/scaffold/theme/templates/toc.haml +1 -1
  68. data/{data/maglove → assets}/scaffold/theme/templates/toc.yml +0 -0
  69. data/{data/maglove → assets}/scaffold/theme/theme.coffee +0 -0
  70. data/{data/maglove → assets}/scaffold/theme/theme.less +0 -0
  71. data/{data/maglove → assets}/thumbnail.haml +0 -0
  72. data/{data/maglove → assets}/thumbnail.js +0 -0
  73. data/bin/maglove +0 -6
  74. data/lib/magloft/api_caller.rb +12 -12
  75. data/lib/magloft/remote_resource.rb +17 -17
  76. data/lib/maglove.rb +19 -19
  77. data/lib/maglove/asset/theme.rb +7 -6
  78. data/lib/maglove/commands/assets.rb +61 -44
  79. data/lib/maglove/commands/base.rb +5 -1
  80. data/lib/maglove/commands/fonts.rb +9 -6
  81. data/lib/maglove/commands/main.rb +3 -1
  82. data/lib/maglove/commands/theme.rb +63 -58
  83. data/lib/maglove/middleware/live_reload.rb +19 -11
  84. data/lib/maglove/server.rb +18 -8
  85. data/lib/maglove/theme.rb +27 -0
  86. data/lib/maglove/tilt/coffee_template.rb +1 -1
  87. data/lib/maglove/tilt/haml_template.rb +2 -3
  88. data/lib/maglove/tilt/js_template.rb +1 -2
  89. data/lib/maglove/tilt/scss_template.rb +3 -9
  90. data/lib/maglove/tilt/yaml_template.rb +2 -3
  91. data/lib/maglove/version.rb +1 -1
  92. data/lib/powersnap.rb +1 -3
  93. metadata +164 -155
  94. data/.gitignore +0 -9
  95. data/.rubocop.yml +0 -157
  96. data/Gemfile +0 -3
  97. data/Gemfile.lock +0 -206
  98. data/README.md +0 -26
  99. data/lib/block_resolver.rb +0 -6
  100. data/lib/maglove/application.rb +0 -58
  101. data/lib/maglove/phantom_script.rb +0 -44
  102. data/lib/maglove/workspace.rb +0 -41
  103. data/lib/workspace.rb +0 -11
  104. data/lib/workspace/workspace_dir.rb +0 -98
  105. data/lib/workspace/workspace_dir/archive.rb +0 -18
  106. data/lib/workspace/workspace_file.rb +0 -127
  107. data/lib/workspace/workspace_file/archive.rb +0 -45
  108. data/lib/workspace/workspace_file/media.rb +0 -19
  109. data/lib/workspace/workspace_file/net.rb +0 -18
  110. data/lib/workspace/workspace_file/parse.rb +0 -21
  111. data/maglove.gemspec +0 -45
@@ -3,8 +3,7 @@ require "faye"
3
3
  module MagLove
4
4
  module Middleware
5
5
  class LiveReload
6
- include Workspace
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
- theme_file("**/*.{haml,html,coffee,js,less,scss,css,yml}"),
56
- theme_file("images/**/*.{jpg,jpeg,gif,png,svg}"),
57
- theme_base_file("**/*.{coffee,js,less,scss,css}"),
58
- theme_base_file("images/**/*.{jpg,jpeg,gif,png,svg}")
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 workspace_file(".", filename).exists? and event != :delete
64
- if filename =~ %r{^src/base/#{theme_config(:base_version)}/.*\.coffee}
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/#{theme_config(:base_version)}/.*\.less}
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/#{theme_config(:base_version)}/.*\.scss}
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 = theme_file(path).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]
@@ -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' }, [gem_dir.file("maglove.js").read]]
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' }, [gem_dir.file("maglove.css").read]]
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' }, [gem_dir.file("index.haml").read_hamloft(@options)]]
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 = theme_dir(root: "dist").file("theme.css").read
38
- js_contents = theme_dir(root: "dist").file("theme.js").read
39
- template_file = theme_dir.file("templates/#{template}.haml")
40
- gem_dir.file("maglove.haml").read_hamloft(theme: @options[:theme], contents: template_file.asset.contents, css_contents: css_contents, js_contents: js_contents, template: template, asset_uri: ".", port: @options[:port] || 3000)
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
@@ -36,7 +36,7 @@ module MagLove
36
36
  raise "Path not found: #{include_path}"
37
37
  end
38
38
  end
39
-
39
+
40
40
  @output
41
41
  end
42
42
 
@@ -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 ||= Hamloft::Engine.new(data, { remove_whitespace: true }).render(scope, locals)
9
+ @output ||= Maglove::Engine.render(data, locals)
11
10
  end
12
11
 
13
12
  def allows_script?
@@ -3,8 +3,7 @@ module MagLove
3
3
  class JsTemplate < ::Tilt::Template
4
4
  self.default_mime_type = 'application/javascript'
5
5
 
6
- def prepare
7
- end
6
+ def prepare; end
8
7
 
9
8
  def evaluate(scope, locals, &block)
10
9
  # handle includes
@@ -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
- extension = File.extname(url.value)[1..-1]
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.load(data).to_json
9
+ @output ||= YAML.safe_load(data).to_json
11
10
  end
12
11
 
13
12
  def allows_script?
@@ -1,3 +1,3 @@
1
1
  module MagLove
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.7"
3
3
  end
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
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: 2017-08-28 00:00:00.000000000 Z
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: thor
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.19'
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.19'
43
+ version: '4.0'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '6.0'
41
47
  - !ruby/object:Gem::Dependency
42
- name: hamloft
48
+ name: thor
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: '2.0'
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: '2.0'
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
- type: :runtime
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: '4.0'
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
- - !ruby/object:Gem::Dependency
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: '2.0'
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: rubyzip
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: image_optim
236
+ name: cssminify
239
237
  requirement: !ruby/object:Gem::Requirement
240
238
  requirements:
241
239
  - - "~>"
242
240
  - !ruby/object:Gem::Version
243
- version: '0.21'
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.21'
248
+ version: '1.0'
251
249
  - !ruby/object:Gem::Dependency
252
- name: crush
250
+ name: puma
253
251
  requirement: !ruby/object:Gem::Requirement
254
252
  requirements:
255
253
  - - "~>"
256
254
  - !ruby/object:Gem::Version
257
- version: '0.3'
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: '0.3'
262
+ version: '3.6'
265
263
  - !ruby/object:Gem::Dependency
266
- name: closure-compiler
264
+ name: filewatcher
267
265
  requirement: !ruby/object:Gem::Requirement
268
266
  requirements:
269
267
  - - "~>"
270
268
  - !ruby/object:Gem::Version
271
- version: '1.1'
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: '1.1'
276
+ version: '0.5'
279
277
  - !ruby/object:Gem::Dependency
280
- name: cssminify
278
+ name: faye
281
279
  requirement: !ruby/object:Gem::Requirement
282
280
  requirements:
283
281
  - - "~>"
284
282
  - !ruby/object:Gem::Version
285
- version: '1.0'
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.0'
290
+ version: '1.2'
293
291
  - !ruby/object:Gem::Dependency
294
- name: image_optim_pack
292
+ name: typhoeus
295
293
  requirement: !ruby/object:Gem::Requirement
296
294
  requirements:
297
295
  - - "~>"
298
296
  - !ruby/object:Gem::Version
299
- version: '0.2'
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: '0.2'
304
+ version: '1.1'
307
305
  - !ruby/object:Gem::Dependency
308
- name: puma
306
+ name: maglove-engine
309
307
  requirement: !ruby/object:Gem::Requirement
310
308
  requirements:
311
309
  - - "~>"
312
310
  - !ruby/object:Gem::Version
313
- version: '3.6'
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: '3.6'
318
+ version: '2.0'
321
319
  - !ruby/object:Gem::Dependency
322
- name: filewatcher
320
+ name: workspace
323
321
  requirement: !ruby/object:Gem::Requirement
324
322
  requirements:
325
323
  - - "~>"
326
324
  - !ruby/object:Gem::Version
327
- version: '0.5'
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.5'
332
+ version: '1.0'
335
333
  - !ruby/object:Gem::Dependency
336
- name: faye
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.2'
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.2'
346
+ version: '1.0'
349
347
  - !ruby/object:Gem::Dependency
350
- name: typhoeus
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.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.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.32'
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.32'
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
- - ".gitignore"
386
- - ".rubocop.yml"
387
- - Gemfile
388
- - Gemfile.lock
389
- - README.md
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