flora 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: 0333fa46d5b40eb06534baaba23d9fd099a2f1384814feb560ff4cdc38702863
4
- data.tar.gz: ae45ab23580875aa64eddaae0c806cbb1c7f4be9f5cba7283aa3923ffb978802
3
+ metadata.gz: ffea457870b0ae28e03a55fe032421257ea9eceb19ff282727c01b888a24c05b
4
+ data.tar.gz: 91d44f3cefd76ee01cbc834163d075564bf5ea9df5adb1487d143e089868d07a
5
5
  SHA512:
6
- metadata.gz: c4dcbb9a3237d1d3c7156894555e859532fe63d978d4845ec608367a8044cc43ee4c9f6e15eef0c3c07a77a1d1848a0f1486b8360a01956e9b48e1638c1eca78
7
- data.tar.gz: a5863189034686838ca35636aea54b07247da127c3cd540b945d8fed9c47873ba42b9bc2346e8675232230bcf846e3f630cb79fcf0328a474fb43cfb83582cdd
6
+ metadata.gz: b2fb5f500e39eb1f4f143445bc460a0a501a1bfca8459c8eb0d50ddaee3d66882c731fb823ffc4b3dc2717b5186df6be9d42810cb0d0293497434f06d171c9ec
7
+ data.tar.gz: bf5d0b9c5d00e2bff223d3aec48b1225e397adea87eac7a780903a1d337e275efefe09a15323508f28c83b19adc6a303b4a6d504adac62663b5067e1b7f5b43c
data/.document ADDED
@@ -0,0 +1,2 @@
1
+ lib
2
+ *.md
data/lib/flora/lilac.rb CHANGED
@@ -87,4 +87,13 @@ module Flora::Lilac
87
87
  node
88
88
  end
89
89
 
90
+
91
+ def text(string = nil, &block)
92
+ string ||= block.call if block_given?
93
+
94
+ node = { tag: 'text', opts: {}, text: string, children: [] }
95
+ $flora_added << node
96
+ node
97
+ end
98
+
90
99
  end
@@ -44,6 +44,9 @@ module Flora::Project::Blueprint::HasLayout
44
44
  end
45
45
 
46
46
 
47
+ # This exists because the eval'd code will call yield, and yield will always
48
+ # grab the current block passed into the current function. We need that to be
49
+ # a specific proc, not the one passed into render_internal!
47
50
  def eval_with_block(str, filename, &block)
48
51
  eval(str, binding, filename)
49
52
  end
data/lib/flora/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Flora
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flora
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Vladimiroff
@@ -142,6 +142,7 @@ executables:
142
142
  extensions: []
143
143
  extra_rdoc_files: []
144
144
  files:
145
+ - ".document"
145
146
  - ".woodpecker.yml"
146
147
  - LICENSE.txt
147
148
  - README.md