volt 0.9.0 → 0.9.1.pre1

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: 1a09dcf76510b9f9be2a538e6dfc437cf74ccd1b
4
- data.tar.gz: c6982a5ceaf9fd3a4ae463f185141e789bd93fb9
3
+ metadata.gz: eaebdf0ceeb600875ea244b0aa8e1bf36fadc998
4
+ data.tar.gz: 0111f18c3191d2f2f81528d9b7ffbbe8e6187c5f
5
5
  SHA512:
6
- metadata.gz: ba21338f15fece2dbfa90951956f9a73e93ead112259ffc87e7944a9f43368412f66f319fe265117b67d43bf783813058c3e1ea9b1b11403a666353718d4ee38
7
- data.tar.gz: 2eb8459d1199bf301536c79335d1554ca7f84211251b5c772bef6637ee4440107bd1260880593537c656179d11c2580618b1d1c2495bad9ef9e43a2c4d95e369
6
+ metadata.gz: f06a879922cac14ae698c20e7a6ec3966c74aeae78bc175b11c9c6588c93ed20032fd678342137b2ec3f1c8682fa36241ac21aff6df97b820fb8da2968775c2b
7
+ data.tar.gz: cc56f0cae364f252f7ff11ff6ce09081192c9aedd14f73a665a0ae8a366e6dac20220eaa19d8a6ac99acd340243eb1bdb7f10a2d01ab1ee78ba1e393a9d13a9a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- ## 0.9.0.pre1
3
+ ## 0.9.0
4
4
  ### Added
5
5
  - the permissions api has been added!
6
6
  - added has_many and belongs_to on models. See docs.
data/README.md CHANGED
@@ -36,4 +36,4 @@ There is also a [work in progress tutorial](https://github.com/rhgraysonii/volt_
36
36
  You want to contribute? Great! Thanks for being awesome! At the moment, we have a big internal todo list, hop on https://gitter.im/voltrb/volt so we don't duplicate work. Pull requests are always welcome, but asking about helping on Gitter should save some duplication.
37
37
 
38
38
 
39
- [![Gratipay](//img.shields.io/gratipay/voltframework.svg)](https://www.gratipay.com/voltframework/)
39
+ [![Gratipay](http://img.shields.io/gratipay/voltframework.svg)](https://www.gratipay.com/voltframework/)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1.pre1
data/lib/volt.rb CHANGED
@@ -23,6 +23,9 @@ module Volt
23
23
 
24
24
  class << self
25
25
  def root
26
+ if self.client?
27
+ raise "Volt.root can not be called from the client."
28
+ end
26
29
  @root ||= File.expand_path(Dir.pwd)
27
30
  end
28
31
 
@@ -144,7 +144,7 @@ module Volt
144
144
  promise = limit(1).fetch do |res|
145
145
  result = res.first
146
146
 
147
- next result
147
+ result
148
148
  end
149
149
  else
150
150
  # On all other persistors, it should be loaded already
@@ -48,7 +48,10 @@ module Volt
48
48
  if current_value.is_a?(Promise)
49
49
  # If we got a promise, use its value if resolved.
50
50
  if current_value.resolved?
51
- current_value = current_value.value
51
+ # Should call then immediately
52
+ current_value.then do |value|
53
+ current_value = value
54
+ end
52
55
  else
53
56
  # if its not, resolve it and try again.
54
57
  # TODO: we maybe could cache this so we don't have to run a full update again
@@ -18,7 +18,11 @@ module Volt
18
18
  SandlebarsParser.new(html, handler)
19
19
 
20
20
  # Close out the last scope
21
- handler.scope.last.close_scope
21
+ last_scope = handler.scope.last
22
+
23
+ raise "Unclosed tag in:\n#{html}" unless last_scope
24
+
25
+ last_scope.close_scope
22
26
 
23
27
  @templates = handler.templates
24
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-21 00:00:00.000000000 Z
11
+ date: 2015-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -827,9 +827,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
827
827
  version: '0'
828
828
  required_rubygems_version: !ruby/object:Gem::Requirement
829
829
  requirements:
830
- - - ">="
830
+ - - ">"
831
831
  - !ruby/object:Gem::Version
832
- version: '0'
832
+ version: 1.3.1
833
833
  requirements: []
834
834
  rubyforge_project:
835
835
  rubygems_version: 2.4.5