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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f4442c075bfeabab7e0f0b67445a47d41ccbeae
4
- data.tar.gz: 5baf7b232a70aa8c8ea7ea0f1f89cb211a3e09be
3
+ metadata.gz: 47cc3e9144c2b208e15e93916a53e6e8d2e395f9
4
+ data.tar.gz: 47caf5c257e9638fb1eb51729282888ca7473216
5
5
  SHA512:
6
- metadata.gz: 9ce0a6460da43d058f9d705bc87b5f8e1c6177a23b579bde035b84ed23b1c9d6b52678e64f57bd9b272aef25c3d27caf8558b93d148dd93ce7e84f43507fbc5f
7
- data.tar.gz: a2edf10ddd8df617c861519c55fa51b27f816fefccb40a6b1ef82fa9fa11edfbb43e573ae3dee9b6f76150621e8989f8ad07a028ad669e0d9c159a437170fe4a
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.8)
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.0.0)
20
- nokogiri (1.6.7.2)
21
- mini_portile2 (~> 2.0.0.rc2)
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.2)
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.11.2
65
+ 1.12.4
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Hamloft
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
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.8
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-04-26 00:00:00.000000000 Z
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.3
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: