maglove 0.5.9 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +12 -12
- data/lib/maglove/application.rb +14 -0
- data/lib/maglove/version.rb +1 -1
- data/maglove.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8bc80e116de240e6e565d04f40255c7b8ded06a
|
4
|
+
data.tar.gz: 74b84f995534892997a164e4528c03c025a74c54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d618995d937cbbc9c67a756bfa69c6b6342d030092dc9b2dd64a991ccdc26644363f0842f7b158e2d17b4fea94eda3900e70f24c727665c5b8df74297c60834d
|
7
|
+
data.tar.gz: eb526663c099ef1df846e8560f7033d6821905f6860a6837a4cdff50cd5578bb902534863e2454ff1277b69c62a39fba214d5b717696d6d3e709e0bd856eed1b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
maglove (0.
|
4
|
+
maglove (0.6.0)
|
5
5
|
activesupport (~> 4.2)
|
6
6
|
bundler (~> 1.10)
|
7
7
|
coffee-script (~> 2.4)
|
@@ -9,7 +9,7 @@ PATH
|
|
9
9
|
dotenv (~> 2.0)
|
10
10
|
filewatcher (~> 0.5)
|
11
11
|
haml (~> 4.0)
|
12
|
-
hamloft (~> 0.1)
|
12
|
+
hamloft (~> 0.1.7)
|
13
13
|
image_optim (~> 0.21)
|
14
14
|
image_optim_pack (~> 0.2)
|
15
15
|
less (~> 2.6)
|
@@ -23,7 +23,7 @@ PATH
|
|
23
23
|
GEM
|
24
24
|
remote: https://rubygems.org/
|
25
25
|
specs:
|
26
|
-
activesupport (4.2.5)
|
26
|
+
activesupport (4.2.5.1)
|
27
27
|
i18n (~> 0.7)
|
28
28
|
json (~> 1.7, >= 1.7.7)
|
29
29
|
minitest (~> 5.1)
|
@@ -37,19 +37,19 @@ GEM
|
|
37
37
|
coffee-script-source
|
38
38
|
execjs
|
39
39
|
coffee-script-source (1.10.0)
|
40
|
-
commander (4.3.
|
40
|
+
commander (4.3.7)
|
41
41
|
highline (~> 1.7.2)
|
42
42
|
commonjs (0.2.7)
|
43
43
|
diff-lcs (1.2.5)
|
44
|
-
dotenv (2.0
|
44
|
+
dotenv (2.1.0)
|
45
45
|
execjs (2.6.0)
|
46
|
-
exifr (1.2.
|
46
|
+
exifr (1.2.4)
|
47
47
|
filewatcher (0.5.3)
|
48
48
|
trollop (~> 2.0)
|
49
49
|
fspath (2.1.1)
|
50
50
|
haml (4.0.7)
|
51
51
|
tilt
|
52
|
-
hamloft (0.1.
|
52
|
+
hamloft (0.1.7)
|
53
53
|
activesupport (~> 4.2)
|
54
54
|
haml (~> 4.0)
|
55
55
|
nokogiri (~> 1.6)
|
@@ -61,7 +61,7 @@ GEM
|
|
61
61
|
image_size (~> 1.3)
|
62
62
|
in_threads (~> 1.3)
|
63
63
|
progress (~> 3.0, >= 3.0.1)
|
64
|
-
image_optim_pack (0.2.1.
|
64
|
+
image_optim_pack (0.2.1.20160119)
|
65
65
|
fspath (~> 2.1)
|
66
66
|
image_optim (~> 0.19)
|
67
67
|
image_size (1.4.1)
|
@@ -77,14 +77,14 @@ GEM
|
|
77
77
|
method_source (0.8.2)
|
78
78
|
mini_portile2 (2.0.0)
|
79
79
|
minitar (0.5.4)
|
80
|
-
minitest (5.8.
|
80
|
+
minitest (5.8.4)
|
81
81
|
multi_json (1.11.2)
|
82
|
-
nokogiri (1.6.7.
|
82
|
+
nokogiri (1.6.7.2)
|
83
83
|
mini_portile2 (~> 2.0.0.rc2)
|
84
84
|
parser (2.2.2.6)
|
85
85
|
ast (>= 1.1, < 3.0)
|
86
86
|
powerpack (0.1.1)
|
87
|
-
progress (3.1.
|
87
|
+
progress (3.1.1)
|
88
88
|
pry (0.10.3)
|
89
89
|
coderay (~> 1.1.0)
|
90
90
|
method_source (~> 0.8.1)
|
@@ -133,4 +133,4 @@ DEPENDENCIES
|
|
133
133
|
rubocop (~> 0.32)
|
134
134
|
|
135
135
|
BUNDLED WITH
|
136
|
-
1.
|
136
|
+
1.11.2
|
data/lib/maglove/application.rb
CHANGED
@@ -15,9 +15,23 @@ module MagLove
|
|
15
15
|
verbosity = "info" if !["info", "debug", "warn", "error"].include?(verbosity.to_s)
|
16
16
|
logger.level = verbosity.to_sym
|
17
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}") if !File.directory?(path)
|
21
|
+
widgets_path = path
|
22
|
+
end
|
18
23
|
global_option '--production'
|
19
24
|
default_command :help
|
20
25
|
|
26
|
+
# Register Widgets
|
27
|
+
if File.directory?(widgets_path)
|
28
|
+
Dir["#{widgets_path}/**/*.rb"].each do |widget_path|
|
29
|
+
require "./#{widget_path}"
|
30
|
+
klass_name = widget_path.gsub(/\.rb$/, "").camelcase
|
31
|
+
Hamloft.register_widget(klass_name.constantize)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
21
35
|
logger.level = ENV["LOG_LEVEL"].to_sym if ENV["LOG_LEVEL"]
|
22
36
|
|
23
37
|
MagLove::Command::Theme.new.run
|
data/lib/maglove/version.rb
CHANGED
data/maglove.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.add_runtime_dependency "bundler", "~> 1.10"
|
17
17
|
s.add_runtime_dependency "dotenv", "~> 2.0"
|
18
18
|
s.add_runtime_dependency 'haml', "~> 4.0"
|
19
|
-
s.add_runtime_dependency 'hamloft', "~> 0.1"
|
19
|
+
s.add_runtime_dependency 'hamloft', "~> 0.1.7"
|
20
20
|
s.add_runtime_dependency "rubyzip", "~> 1.1"
|
21
21
|
s.add_runtime_dependency "activesupport", "~> 4.2"
|
22
22
|
s.add_runtime_dependency "logging", "~> 2.0"
|
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: 0.
|
4
|
+
version: 0.6.0
|
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: 2016-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.1.7
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.1.7
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubyzip
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -424,7 +424,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
424
424
|
version: 2.4.7
|
425
425
|
requirements: []
|
426
426
|
rubyforge_project:
|
427
|
-
rubygems_version: 2.
|
427
|
+
rubygems_version: 2.5.1
|
428
428
|
signing_key:
|
429
429
|
specification_version: 4
|
430
430
|
summary: MagLove - MagLoft Theme Toolkit.
|