volt 0.9.1.pre5 → 0.9.1

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: 2f83c12e036d4b26d94015e199d1721c7bec82cf
4
- data.tar.gz: a6475a6f6e230f0f7d411f17a03a3bc7e15ecc3f
3
+ metadata.gz: 089a3893d8b7611b25bad4b8fcbdedd84be6579b
4
+ data.tar.gz: 066dc262d293f911faafb6bafddedd065546484c
5
5
  SHA512:
6
- metadata.gz: 09519287d313bb3bbcdb4fc5190e67a7ab3f7d2152ddbf4a13ffecaa81fdf63043bbb2ef62d6def2fd5c28e17b048f3008e67629e12ad7b49b63c882d4c45a8d
7
- data.tar.gz: bf82e809508689cf4fc749f7dc1c6a23690e4eff81db652d6dc21ced81971195b396bfe75b5d0f6522534a63d4c480359cab8f27f6cb88058ca18b0ced74a749
6
+ metadata.gz: 5c7a7190b94631d3cc27baf85d11881dbe242cedf01b180ee187d1253b92fa3ea5567e32d32302016935be383c360fbdd69380dbec88aa00ed82d4d362b65a21
7
+ data.tar.gz: 0d099ac0fbf72d705c9c9e9be7cf3396c6737723da156cc5dc8f26d77b2bec36739c59b5f164fe537edf48a0a1823a760ae7028aa59e0a3af28721873deeb3c9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Change Log
2
2
 
3
3
  ## 0.9.1
4
+ ### Added
5
+ - Mailer! - volt now includes the volt-mailer gem out of the box. (you can remove it if you don't need/want it). See https://github.com/voltrb/volt-mailer for more info.
6
+
4
7
  ### Changed
5
8
  - All code in ```app``` is now automatically reloaded when any files change. This is done through a "preforking" server. Before your apps code is loaded (and after Volt's is), the server forks a child process to handle the request (in dev and test mode).
6
9
  - Corrected the name of StringTemplateRender to StringTemplateRenderer
@@ -13,7 +16,7 @@
13
16
  - fix class formatting issue with Pry.
14
17
  - Bundler.require is now called for the correct env when 'volt/boot' is included. (We weren't planning to do this, but it does make life so much easier)
15
18
  - opal-jquery was removed as a dependency. If you want to use it again, add ```gem 'opal-jquery'``` to your Gemfile and add ```require 'opal/jquery'` to your MainController.
16
-
19
+ - Volt and new gems now use the standard ruby version.rb file.
17
20
 
18
21
  ## 0.9.0
19
22
  ### Added
data/lib/volt/models.rb CHANGED
@@ -14,7 +14,6 @@ if RUBY_PLATFORM == 'opal'
14
14
  require 'promise'
15
15
  else
16
16
  # Opal doesn't expose its promise library directly
17
- # gem_dir = Gem::Specification.find_by_name('opal').gem_dir
18
17
  require 'opal'
19
18
 
20
19
  gem_dir = File.join(Opal.gem_dir, '..')
@@ -71,7 +71,13 @@ module Volt
71
71
  getter = getter.strip.gsub(/\(\s*\)/, '')
72
72
 
73
73
  # Check to see if this can be converted to a setter
74
- if getter[0] =~ /^[a-z_]/ && getter[-1] != ')'
74
+ if getter[0] =~ /^[A-Z]/ && getter[-1] != ')'
75
+ if getter.index('.')
76
+ "#{getter}=(val)"
77
+ else
78
+ "raise \"could not auto generate setter for `#{getter}`\""
79
+ end
80
+ elsif getter[0] =~ /^[a-z_]/ && getter[-1] != ')'
75
81
  # Convert a getter into a setter
76
82
  if getter.index('.') || getter.index('@')
77
83
  prefix = ''
data/lib/volt/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Volt
2
2
  module Version
3
- STRING = '0.9.1.pre5'
3
+ STRING = '0.9.1'
4
4
  end
5
5
  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.1.pre5
4
+ version: 0.9.1
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-05-05 00:00:00.000000000 Z
11
+ date: 2015-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -874,9 +874,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
874
874
  version: '2.1'
875
875
  required_rubygems_version: !ruby/object:Gem::Requirement
876
876
  requirements:
877
- - - ">"
877
+ - - ">="
878
878
  - !ruby/object:Gem::Version
879
- version: 1.3.1
879
+ version: '0'
880
880
  requirements: []
881
881
  rubyforge_project:
882
882
  rubygems_version: 2.4.5