volt 0.5.11 → 0.5.12

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
  SHA1:
3
- metadata.gz: e1b91323e2f7568714d8806c4a6a19ca652bcd42
4
- data.tar.gz: 7b101bb67b83e2bd1e17e51deaba445c6e1b71d1
3
+ metadata.gz: f19d9b087e92a7d11e184662f25bbbb41782c4de
4
+ data.tar.gz: ff8cda82e933cfe5847bc6baf20c7038f4069da3
5
5
  SHA512:
6
- metadata.gz: 79cd2a471f41f67827221272bba712810fe0e2f3451407c62bff270e35cc1ce21618bc1411614537e5a90c9636cdcfcc99c093d5ef76204b5f87efc4996fcfe1
7
- data.tar.gz: df8606499fcdfc4aebfcf7e7ee1d49efd15f4a45b2e7def66a822f31ff035addd62a63f60f07ba40111d17705a07c37ba0a54554aa55edfa34031537f287b7f1
6
+ metadata.gz: 2f70e827dc38aca5ab62eff2e979ba6316bb92eac6d816b68f16e186eec380cda0717a719b64b769b467c5460c9a8cc56b1935b2316ee227a5cc0fa465d0a3fe
7
+ data.tar.gz: fc503dcb377335d09d1c2ff711f1624348f7d00486f34e8cf25651bf6da6a25f48f8f89ec65f8353a65548d05ca0164b7961b7c2902d76924f09e355ced8ceda
data/Readme.md CHANGED
@@ -60,7 +60,8 @@ You can access the volt console with:
60
60
 
61
61
  # Guide Sections
62
62
 
63
- 1. [Rendering](#rendering)
63
+ 1. [Getting Help](#getting-help)
64
+ 2. [Rendering](#rendering)
64
65
  1. [Reactive Values](#reactive-values)
65
66
  1. [ReactiveValue Gotchyas](#reactivevalue-gotchyas)
66
67
  2. [Bindings](#bindings)
@@ -68,23 +69,33 @@ You can access the volt console with:
68
69
  2. [If Binding](#if-binding)
69
70
  3. [Each Binding](#each-binding)
70
71
  4. [Attribute Bindings](#attribute-bindings)
71
- 2. [Models](#models)
72
+ 3. [Models](#models)
72
73
  1. [Provided Collections](#provided-collections)
73
74
  2. [Reactive Models](#reactive-models)
74
75
  3. [Model Events](#model-events)
75
76
  4. [Automatic Model Conversion](#automatic-model-conversion)
76
- 3. [Controllers](#controllers)
77
- 4. [Components](#components)
77
+ 4. [Controllers](#controllers)
78
+ 5. [Components](#components)
78
79
  1. [Assets](#assets)
79
80
  2. [Component Generator](#component-generator)
80
81
  3. [Provided Components](#provided-components)
81
82
  1. [Notices](#notices)
82
83
  2. [Flash](#flash)
83
- 5. [Controls](#controls)
84
- 6. [Routes](#routes)
84
+ 6. [Controls](#controls)
85
+ 7. [Routes](#routes)
85
86
  1. [Routes file](#routes-file)
86
87
 
87
88
 
89
+ # Getting Help
90
+
91
+ Volt is still a work in progress, but early feedback is appericiated. Use the following to communicate with the developers, someone will get back to you very quickly:
92
+
93
+ - **If you need help**: post on [stackoverflow.com](http://www.stackoverflow.com), be sure to tag your question with voltrb
94
+ - **If you found a bug**: post on [github issues](https://github.com/voltrb/volt/issues)
95
+ - **If you have an idea or need a feature**: post on [github issues](https://github.com/voltrb/volt/issues)
96
+ - **If you want to discuss volt**: use #voltrb on freenode.
97
+
98
+
88
99
  # Rendering
89
100
 
90
101
  When a user interacts with a web page, typically we want to do two things:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.11
1
+ 0.5.12
@@ -409,12 +409,11 @@ class TemplateParser
409
409
  @template_path = template_path
410
410
 
411
411
  template_fragment = Nokogiri::HTML::DocumentFragment.parse(template)
412
-
413
412
  # Add templates for each section
414
413
 
415
414
  # Check for sections
416
415
  sections = []
417
- if template_fragment.children[0].name[0] == ':'
416
+ if (first_child = template_fragment.children[0]) && first_child.name[0] == ':'
418
417
  template_fragment.children.each do |child|
419
418
  if child.is_a?(Nokogiri::XML::Element)
420
419
  sections << [child, child.name[1..-1]]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.11
4
+ version: 0.5.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout