hamloft 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -6
- data/lib/hamloft/helpers.rb +5 -0
- data/lib/hamloft/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47cc3e9144c2b208e15e93916a53e6e8d2e395f9
|
4
|
+
data.tar.gz: 47caf5c257e9638fb1eb51729282888ca7473216
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4371c3dff3a40b20d88e5882f9640d942da28e85d8c1539ef38232ebe5e4592c8c8914c8286dced78be95e767bed8f47f17cbc267160f9dabe0e0df5eb5236b
|
7
|
+
data.tar.gz: 4f491d245c3113989aa81119249ff54447a31c907f2145ec241e7383f79528187db5c68fde637451944e510f55c0d7c4d06dc43dd7fb8633f41014ec5164f79a
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
hamloft (0.1.
|
4
|
+
hamloft (0.1.9)
|
5
5
|
haml (~> 4.0)
|
6
6
|
nokogiri (~> 1.6)
|
7
7
|
|
@@ -16,11 +16,13 @@ GEM
|
|
16
16
|
haml (4.0.7)
|
17
17
|
tilt
|
18
18
|
method_source (0.8.2)
|
19
|
-
mini_portile2 (2.
|
20
|
-
nokogiri (1.6.
|
21
|
-
mini_portile2 (~> 2.
|
19
|
+
mini_portile2 (2.1.0)
|
20
|
+
nokogiri (1.6.8)
|
21
|
+
mini_portile2 (~> 2.1.0)
|
22
|
+
pkg-config (~> 1.1.7)
|
22
23
|
parser (2.2.2.6)
|
23
24
|
ast (>= 1.1, < 3.0)
|
25
|
+
pkg-config (1.1.7)
|
24
26
|
powerpack (0.1.1)
|
25
27
|
pry (0.10.3)
|
26
28
|
coderay (~> 1.1.0)
|
@@ -48,7 +50,7 @@ GEM
|
|
48
50
|
ruby-progressbar (~> 1.4)
|
49
51
|
ruby-progressbar (1.7.5)
|
50
52
|
slop (3.6.0)
|
51
|
-
tilt (2.0.
|
53
|
+
tilt (2.0.5)
|
52
54
|
|
53
55
|
PLATFORMS
|
54
56
|
ruby
|
@@ -60,4 +62,4 @@ DEPENDENCIES
|
|
60
62
|
rubocop (~> 0.32)
|
61
63
|
|
62
64
|
BUNDLED WITH
|
63
|
-
1.
|
65
|
+
1.12.4
|
data/lib/hamloft/helpers.rb
CHANGED
@@ -4,6 +4,11 @@ module Hamloft
|
|
4
4
|
def style_string(options, *args, &block)
|
5
5
|
Hamloft::StyleBuilder.new(options, args).process(block)
|
6
6
|
end
|
7
|
+
|
8
|
+
def block(identifier)
|
9
|
+
haml_contents = File.read("src/themes/#{@_haml_locals[:theme]}/blocks/#{identifier}.haml")
|
10
|
+
Hamloft.render(haml_contents, theme: @_haml_locals[:theme], base_path: @_haml_locals[:base_path])
|
11
|
+
end
|
7
12
|
|
8
13
|
# styles
|
9
14
|
def asset(url)
|
data/lib/hamloft/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hamloft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Strebitzer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|
@@ -125,9 +125,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
127
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.6.
|
128
|
+
rubygems_version: 2.6.6
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Hamloft - MagLoft Widget Parser.
|
132
132
|
test_files: []
|
133
|
-
has_rdoc:
|