maglove 0.5.9 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e0ea7c295f4113898a9b65e9bd28e90a80c0cbb
4
- data.tar.gz: 1d85aeb29554369becdc40e7b50dfe348a765a18
3
+ metadata.gz: f8bc80e116de240e6e565d04f40255c7b8ded06a
4
+ data.tar.gz: 74b84f995534892997a164e4528c03c025a74c54
5
5
  SHA512:
6
- metadata.gz: 408f9addac9bf4f8ee3f51b192e77ebdc8d73a05ee9a3256a3964d6bdd6d83be65c718f5111266872f219d1e652ef34727073d9e5cd63d727df4b132a8b7ba83
7
- data.tar.gz: 03663755f04cedd283bf75929541d99c03cf8e0d1da48c8512d8ca12ebbb8c397ca867b1f0f2ebb71bff9b3ee1ad74b4eccc895adb907bbd5e9523e1fd1f8480
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.5.9)
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.5)
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.2)
44
+ dotenv (2.1.0)
45
45
  execjs (2.6.0)
46
- exifr (1.2.3.1)
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.6)
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.20151113)
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.3)
80
+ minitest (5.8.4)
81
81
  multi_json (1.11.2)
82
- nokogiri (1.6.7.1)
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.0)
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.10.6
136
+ 1.11.2
@@ -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
@@ -1,3 +1,3 @@
1
1
  module MagLove
2
- VERSION = "0.5.9"
2
+ VERSION = "0.6.0"
3
3
  end
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.5.9
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: 2015-12-25 00:00:00.000000000 Z
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: '0.1'
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: '0.1'
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.4.8
427
+ rubygems_version: 2.5.1
428
428
  signing_key:
429
429
  specification_version: 4
430
430
  summary: MagLove - MagLoft Theme Toolkit.