cyborg 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9b736c806174778c62362942829c5d701b301fd
4
- data.tar.gz: b0f2b1a68ee00ddd316d52d58f6e5a123c71d97b
3
+ metadata.gz: 9547534101abdc5d49c1d75dc86880d121761a2f
4
+ data.tar.gz: 05fb8e45650f989b57c7adcd8a5f7a427dc2ec02
5
5
  SHA512:
6
- metadata.gz: ff489c2af513708ec98a5aa7eb790601277a375c672c9fb1562f5ea4c444967e46a585a9d9cca39e3b26f7df0be250c53b6f0204dff12eb47615ade350a8dc47
7
- data.tar.gz: e3b85dc800f7b5052d52b4809596728d6baf03c28ddd2c5559dc1e34c1b1c280c1b3a7485fae87ead283186fe79c31d86e7ee2007167987711f6ec88c2133c50
6
+ metadata.gz: a01cfb9ac3c825f825cbb9ae1bdb8ef308d4f7f4d854b9882767804d8707eb37bc1a64c7cfe3ceaf7b534adb2044507384a690c61b0762b228e42f9cf8d9d4d3
7
+ data.tar.gz: 561a38775cb07cace8c5332bae7b09d5d107a4579d1ab1074f7049a8bbbf255843df6f206b59e86ec33cf828c00cc4c9098d166d8dbd2b0783dbbfbb9c9f950b
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_runtime_dependency "sass"
22
- spec.add_runtime_dependency "esvg", "~> 2.8.10"
22
+ spec.add_runtime_dependency "esvg", "~> 2.9.1"
23
23
  spec.add_runtime_dependency "listen", "~> 3.0"
24
24
  spec.add_runtime_dependency 'block_helpers', '~> 0.3.3'
25
25
  spec.add_runtime_dependency 'colorize'
@@ -1,8 +1,9 @@
1
1
  module Cyborg
2
2
  module Helpers
3
3
  module LayoutHelper
4
- def layout(name=nil, options={}, &block)
5
- layout = name || options.delete(:layout) || 'application'
4
+ def layout(*args, &block)
5
+ options = args.last.is_a?(Hash) ? args.pop : {}
6
+ layout = args.first || 'application'
6
7
  yield
7
8
  render template: "layouts/#{Cyborg.plugin.name}/#{layout}"
8
9
  end
@@ -14,14 +15,6 @@ module Cyborg
14
15
  def stylesheets(&block)
15
16
  content_for :stylesheets, &block
16
17
  end
17
-
18
- def main(options={}, &block)
19
- content_for :main, &block
20
- end
21
-
22
- def sidebar(&block)
23
- content_for :sidebar, &block
24
- end
25
18
  end
26
19
  end
27
20
  end
@@ -51,6 +51,10 @@ module Cyborg
51
51
  [@svgs, @stylesheets, @javascripts]
52
52
  end
53
53
 
54
+ def svgs?
55
+ @svgs.icons.nil?
56
+ end
57
+
54
58
  def build
55
59
  Command.from_root {
56
60
  FileUtils.mkdir_p(File.join(destination, asset_root))
@@ -9,7 +9,7 @@ module Cyborg
9
9
 
10
10
  return if find_files.empty?
11
11
 
12
- @svg = Esvg::SVG.new({
12
+ @svg = Esvg.new({
13
13
  config_file: File.join(plugin.root, 'esvg.yml'),
14
14
  path: path,
15
15
  tmp_path: File.join(Cyborg.rails_path, 'tmp/cache/assets'),
@@ -18,6 +18,10 @@ module Cyborg
18
18
  })
19
19
  end
20
20
 
21
+ def icons
22
+ @svg
23
+ end
24
+
21
25
  def ext
22
26
  "svg"
23
27
  end
@@ -1,3 +1,3 @@
1
1
  module Cyborg
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyborg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.8.10
33
+ version: 2.9.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.8.10
40
+ version: 2.9.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: listen
43
43
  requirement: !ruby/object:Gem::Requirement