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 +4 -4
- data/cyborg.gemspec +1 -1
- data/lib/cyborg/helpers/layout_helpers.rb +3 -10
- data/lib/cyborg/plugin.rb +4 -0
- data/lib/cyborg/plugin/assets/svgs.rb +5 -1
- data/lib/cyborg/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9547534101abdc5d49c1d75dc86880d121761a2f
|
4
|
+
data.tar.gz: 05fb8e45650f989b57c7adcd8a5f7a427dc2ec02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a01cfb9ac3c825f825cbb9ae1bdb8ef308d4f7f4d854b9882767804d8707eb37bc1a64c7cfe3ceaf7b534adb2044507384a690c61b0762b228e42f9cf8d9d4d3
|
7
|
+
data.tar.gz: 561a38775cb07cace8c5332bae7b09d5d107a4579d1ab1074f7049a8bbbf255843df6f206b59e86ec33cf828c00cc4c9098d166d8dbd2b0783dbbfbb9c9f950b
|
data/cyborg.gemspec
CHANGED
@@ -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.
|
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(
|
5
|
-
|
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
|
data/lib/cyborg/plugin.rb
CHANGED
@@ -9,7 +9,7 @@ module Cyborg
|
|
9
9
|
|
10
10
|
return if find_files.empty?
|
11
11
|
|
12
|
-
@svg = Esvg
|
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
|
data/lib/cyborg/version.rb
CHANGED
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
|
+
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.
|
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.
|
40
|
+
version: 2.9.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: listen
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|