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
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.env
2
- /data/maglove/twigster.phar
3
- /dist/*
4
- .DS_Store
5
- /maglove-*.gem
6
- /src/*
7
- /.sass-cache/*
8
- /export/*
9
- /widgets/*
data/.rubocop.yml DELETED
@@ -1,157 +0,0 @@
1
- # kind_of? is a good way to check a type
2
- Style/ClassCheck:
3
- EnforcedStyle: kind_of?
4
-
5
- # It's better to be more explicit about the type
6
- Style/BracesAroundHashParameters:
7
- Enabled: false
8
-
9
- # specs sometimes have useless assignments, which is fine
10
- Lint/UselessAssignment:
11
- Exclude:
12
- - '**/spec/**/*'
13
-
14
- # We could potentially enable the 2 below:
15
- Style/IndentHash:
16
- Enabled: false
17
-
18
- Style/AlignHash:
19
- Enabled: false
20
-
21
- # HoundCI doesn't like this rule
22
- Style/DotPosition:
23
- Enabled: false
24
-
25
- # We allow !! as it's an easy way to convert ot boolean
26
- Style/DoubleNegation:
27
- Enabled: false
28
-
29
- # Sometimes we allow a rescue block that doesn't contain code
30
- Lint/HandleExceptions:
31
- Enabled: false
32
-
33
- # Cop supports --auto-correct.
34
- Lint/UnusedBlockArgument:
35
- Enabled: false
36
-
37
- # Needed for $verbose
38
- Style/GlobalVars:
39
- Enabled: false
40
-
41
- # We want to allow class Fastlane::Class
42
- Style/ClassAndModuleChildren:
43
- Enabled: false
44
-
45
- # $? Exit
46
- Style/SpecialGlobalVars:
47
- Enabled: false
48
-
49
- Metrics/AbcSize:
50
- Enabled: false
51
-
52
- Metrics/MethodLength:
53
- Enabled: false
54
-
55
- Metrics/CyclomaticComplexity:
56
- Enabled: false
57
-
58
- # The %w might be confusing for new users
59
- Style/WordArray:
60
- MinSize: 19
61
-
62
- # raise and fail are both okay
63
- Style/SignalException:
64
- Enabled: false
65
-
66
- # Better too much 'return' than one missing
67
- Style/RedundantReturn:
68
- Enabled: false
69
-
70
- # Having if in the same line might not always be good
71
- Style/IfUnlessModifier:
72
- Enabled: false
73
-
74
- # and and or is okay
75
- Style/AndOr:
76
- Enabled: false
77
-
78
- # Configuration parameters: CountComments.
79
- Metrics/ClassLength:
80
- Max: 320
81
-
82
-
83
- # Configuration parameters: AllowURI, URISchemes.
84
- Metrics/LineLength:
85
- Max: 370
86
-
87
- # Configuration parameters: CountKeywordArgs.
88
- Metrics/ParameterLists:
89
- Max: 17
90
-
91
- Metrics/PerceivedComplexity:
92
- Max: 20
93
-
94
- # Sometimes it's easier to read without guards
95
- Style/GuardClause:
96
- Enabled: false
97
-
98
- # We allow both " and '
99
- Style/StringLiterals:
100
- Enabled: false
101
-
102
- # something = if something_else
103
- # that's confusing
104
- Style/ConditionalAssignment:
105
- Enabled: false
106
-
107
- # Better to have too much self than missing a self
108
- Style/RedundantSelf:
109
- Enabled: false
110
-
111
- # e.g.
112
- # def self.is_supported?(platform)
113
- # we may never use `platform`
114
- Lint/UnusedMethodArgument:
115
- Enabled: false
116
-
117
- # the let(:key) { ... }
118
- Lint/ParenthesesAsGroupedExpression:
119
- Exclude:
120
- - '**/spec/**/*'
121
-
122
- # This would reject is_ in front of methods
123
- # We use `is_supported?` everywhere already
124
- Style/PredicateName:
125
- Enabled: false
126
-
127
- # We allow the $
128
- Style/PerlBackrefs:
129
- Enabled: false
130
-
131
- # Disable '+ should be surrounded with a single space' for xcodebuild_spec.rb
132
- Style/SpaceAroundOperators:
133
- Exclude:
134
- - '**/spec/actions_specs/xcodebuild_spec.rb'
135
-
136
- AllCops:
137
- Include:
138
- - '**/fastlane/Fastfile'
139
- Exclude:
140
- - './vendor/**/*'
141
- - db/schema.rb
142
-
143
- # We're not there yet
144
- Style/Documentation:
145
- Enabled: false
146
-
147
- # Added after upgrade to 0.38.0
148
- Style/MutableConstant:
149
- Enabled: false
150
-
151
- # length > 0 is good
152
- Style/ZeroLengthPredicate:
153
- Enabled: false
154
-
155
- # Adds complexity
156
- Style/IfInsideElse:
157
- Enabled: false
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
data/Gemfile.lock DELETED
@@ -1,206 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- maglove (2.0.4)
5
- actionpack (>= 4.0)
6
- activesupport (>= 4.0)
7
- bundler (~> 1.10)
8
- closure-compiler (~> 1.1)
9
- coffee-script (~> 2.4)
10
- crush (~> 0.3)
11
- cssminify (~> 1.0)
12
- dialers (~> 0.2)
13
- faye (~> 1.2)
14
- filewatcher (~> 0.5)
15
- hamloft (~> 2.0)
16
- image_optim (~> 0.21)
17
- image_optim_pack (~> 0.2)
18
- less (~> 2.6)
19
- logging (~> 2.0)
20
- maglove-widgets (~> 2.0)
21
- open_uri_redirections (~> 0.2)
22
- puma (~> 3.6)
23
- rubyzip (~> 1.1)
24
- sass (~> 3.4)
25
- sass-css-importer (>= 1.0.0.beta.0)
26
- therubyracer (~> 0.12)
27
- thor (~> 0.19)
28
- tilt (~> 1.4)
29
- typhoeus (~> 1.1)
30
-
31
- GEM
32
- remote: https://rubygems.org/
33
- specs:
34
- actionpack (5.1.3)
35
- actionview (= 5.1.3)
36
- activesupport (= 5.1.3)
37
- rack (~> 2.0)
38
- rack-test (~> 0.6.3)
39
- rails-dom-testing (~> 2.0)
40
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
41
- actionview (5.1.3)
42
- activesupport (= 5.1.3)
43
- builder (~> 3.1)
44
- erubi (~> 1.4)
45
- rails-dom-testing (~> 2.0)
46
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
47
- activesupport (5.1.3)
48
- concurrent-ruby (~> 1.0, >= 1.0.2)
49
- i18n (~> 0.7)
50
- minitest (~> 5.1)
51
- tzinfo (~> 1.1)
52
- addressable (2.5.2)
53
- public_suffix (>= 2.0.2, < 4.0)
54
- ast (2.3.0)
55
- builder (3.2.3)
56
- closure-compiler (1.1.13)
57
- coffee-script (2.4.1)
58
- coffee-script-source
59
- execjs
60
- coffee-script-source (1.12.2)
61
- commonjs (0.2.7)
62
- concurrent-ruby (1.0.5)
63
- cookiejar (0.3.3)
64
- crush (0.3.3)
65
- tilt (~> 1.3)
66
- cssminify (1.0.2)
67
- dialers (0.2.2)
68
- faraday (~> 0.9)
69
- faraday-conductivity (~> 0.3)
70
- faraday_middleware (~> 0.9)
71
- em-http-request (1.1.5)
72
- addressable (>= 2.3.4)
73
- cookiejar (!= 0.3.1)
74
- em-socksify (>= 0.3)
75
- eventmachine (>= 1.0.3)
76
- http_parser.rb (>= 0.6.0)
77
- em-socksify (0.3.1)
78
- eventmachine (>= 1.0.0.beta.4)
79
- erubi (1.6.1)
80
- ethon (0.10.1)
81
- ffi (>= 1.3.0)
82
- eventmachine (1.2.5)
83
- execjs (2.7.0)
84
- exifr (1.3.1)
85
- faraday (0.13.1)
86
- multipart-post (>= 1.2, < 3)
87
- faraday-conductivity (0.3.1)
88
- faraday (~> 0.8)
89
- faraday_middleware (0.12.2)
90
- faraday (>= 0.7.4, < 1.0)
91
- faye (1.2.4)
92
- cookiejar (>= 0.3.0)
93
- em-http-request (>= 0.3.0)
94
- eventmachine (>= 0.12.0)
95
- faye-websocket (>= 0.9.1)
96
- multi_json (>= 1.0.0)
97
- rack (>= 1.0.0)
98
- websocket-driver (>= 0.5.1)
99
- faye-websocket (0.10.7)
100
- eventmachine (>= 0.12.0)
101
- websocket-driver (>= 0.5.1)
102
- ffi (1.9.18)
103
- filewatcher (0.5.4)
104
- trollop (~> 2.0)
105
- fspath (3.1.0)
106
- haml (5.0.2)
107
- temple (>= 0.8.0)
108
- tilt
109
- hamloft (2.0.4)
110
- haml (~> 5.0)
111
- nokogiri (~> 1.8)
112
- http_parser.rb (0.6.0)
113
- i18n (0.8.6)
114
- image_optim (0.25.0)
115
- exifr (~> 1.2, >= 1.2.2)
116
- fspath (~> 3.0)
117
- image_size (~> 1.5)
118
- in_threads (~> 1.3)
119
- progress (~> 3.0, >= 3.0.1)
120
- image_optim_pack (0.5.0.20170815)
121
- fspath (>= 2.1, < 4)
122
- image_optim (~> 0.19)
123
- image_size (1.5.0)
124
- in_threads (1.4.0)
125
- less (2.6.0)
126
- commonjs (~> 0.2.7)
127
- libv8 (3.16.14.19)
128
- little-plugger (1.1.4)
129
- logging (2.2.2)
130
- little-plugger (~> 1.1)
131
- multi_json (~> 1.10)
132
- loofah (2.0.3)
133
- nokogiri (>= 1.5.9)
134
- maglove-widgets (2.0.4)
135
- hamloft (~> 2.0)
136
- mini_portile2 (2.2.0)
137
- minitest (5.10.3)
138
- multi_json (1.12.1)
139
- multipart-post (2.0.0)
140
- nokogiri (1.8.0)
141
- mini_portile2 (~> 2.2.0)
142
- open_uri_redirections (0.2.1)
143
- parallel (1.12.0)
144
- parser (2.4.0.0)
145
- ast (~> 2.2)
146
- powerpack (0.1.1)
147
- progress (3.3.1)
148
- public_suffix (3.0.0)
149
- puma (3.10.0)
150
- rack (2.0.3)
151
- rack-test (0.6.3)
152
- rack (>= 1.0)
153
- rails-dom-testing (2.0.3)
154
- activesupport (>= 4.2.0)
155
- nokogiri (>= 1.6)
156
- rails-html-sanitizer (1.0.3)
157
- loofah (~> 2.0)
158
- rainbow (2.2.2)
159
- rake
160
- rake (12.0.0)
161
- rb-fsevent (0.10.2)
162
- rb-inotify (0.9.10)
163
- ffi (>= 0.5.0, < 2)
164
- ref (2.0.0)
165
- rubocop (0.49.1)
166
- parallel (~> 1.10)
167
- parser (>= 2.3.3.1, < 3.0)
168
- powerpack (~> 0.1)
169
- rainbow (>= 1.99.1, < 3.0)
170
- ruby-progressbar (~> 1.7)
171
- unicode-display_width (~> 1.0, >= 1.0.1)
172
- ruby-progressbar (1.8.1)
173
- rubyzip (1.2.1)
174
- sass (3.5.1)
175
- sass-listen (~> 4.0.0)
176
- sass-css-importer (1.0.0.beta.0)
177
- sass (>= 3.1)
178
- sass-listen (4.0.0)
179
- rb-fsevent (~> 0.9, >= 0.9.4)
180
- rb-inotify (~> 0.9, >= 0.9.7)
181
- temple (0.8.0)
182
- therubyracer (0.12.3)
183
- libv8 (~> 3.16.14.15)
184
- ref
185
- thor (0.20.0)
186
- thread_safe (0.3.6)
187
- tilt (1.4.1)
188
- trollop (2.1.2)
189
- typhoeus (1.3.0)
190
- ethon (>= 0.9.0)
191
- tzinfo (1.2.3)
192
- thread_safe (~> 0.1)
193
- unicode-display_width (1.3.0)
194
- websocket-driver (0.6.5)
195
- websocket-extensions (>= 0.1.0)
196
- websocket-extensions (0.1.2)
197
-
198
- PLATFORMS
199
- ruby
200
-
201
- DEPENDENCIES
202
- maglove!
203
- rubocop (~> 0.32)
204
-
205
- BUNDLED WITH
206
- 1.15.1
data/README.md DELETED
@@ -1,26 +0,0 @@
1
- [MagLove](http://github.com/magloft/maglove/) - MagLoft Theme Toolkit
2
- ==================================================
3
-
4
-
5
- What is it?
6
- -----------
7
-
8
- MagLove is a prepared environment to create themes, widgets and templates for MagLoft's powerful Editor.
9
-
10
- Installation
11
- ------------
12
-
13
- Install the MagLove gem:
14
-
15
- ```bash
16
- gem install maglove
17
- ```
18
-
19
- Theme Development
20
- -----------------
21
-
22
- Create a new theme using the following command:
23
-
24
- ```bash
25
- maglove theme:init --theme my-theme
26
- ```
@@ -1,6 +0,0 @@
1
- class BlockResolver
2
- def self.resolve(identifier, locals)
3
- File.read("src/themes/#{locals[:theme]}/blocks/#{identifier}.haml")
4
- end
5
- end
6
- Hamloft.block_resolver = BlockResolver
@@ -1,58 +0,0 @@
1
- module MagLove
2
- class Application
3
- include Commander::Methods
4
-
5
- def run
6
- program :version, MagLove::VERSION
7
- program :description, 'MagLoft Themes Toolkit'
8
- program :help, 'Author', 'Tobias Strebitzer <tobias.strebitzer@magloft.com>'
9
- program :help, 'Website', 'http://www.magloft.com'
10
- program :help_formatter, Commander::HelpFormatter::TerminalCompact
11
- global_option '-x', '--verbose' do
12
- logger.level = :debug
13
- end
14
- global_option '--verbosity LEVEL', 'Specify verbosity level (*info*, debug, warn, error)' do |verbosity|
15
- verbosity = "info" unless ["info", "debug", "warn", "error"].include?(verbosity.to_s)
16
- logger.level = verbosity.to_sym
17
- end
18
- widgets_path = "widgets"
19
- global_option '--widgets-path PATH', 'Specify path to custom widgets' do |path|
20
- error!("▸ Invalid widgets path: #{path}") unless File.directory?(path)
21
- widgets_path = path
22
- end
23
- default_command :help
24
-
25
- # Register Widgets
26
- if File.directory?(widgets_path)
27
- Dir["#{widgets_path}/**/*.rb"].each do |widget_path|
28
- require "./#{widget_path}"
29
- klass_name = widget_path.gsub(/\.rb$/, "").camelcase
30
- Hamloft.register_widget(klass_name.constantize)
31
- end
32
- end
33
-
34
- logger.level = ENV["LOG_LEVEL"].to_sym if ENV["LOG_LEVEL"]
35
-
36
- MagLove::Command::Theme.new.run
37
- MagLove::Command::Core.new.run
38
- MagLove::Command::Compile.new.run
39
- MagLove::Command::Compress.new.run
40
- MagLove::Command::Copy.new.run
41
- MagLove::Command::Util.new.run
42
- MagLove::Command::Font.new.run
43
- MagLove::Command::Sync.new.run
44
- MagLove::Command::Server.new.run
45
-
46
- # allow colons
47
- ARGV[0] = ARGV[0].tr(":", "-") if ARGV[0]
48
-
49
- # merge first two commands
50
- if ARGV.length > 1 and defined_commands.keys.include?("#{ARGV[0]}-#{ARGV[1]}")
51
- ARGV[0] = "#{ARGV[0]}-#{ARGV[1]}"
52
- ARGV.slice!(1)
53
- end
54
-
55
- run!
56
- end
57
- end
58
- end