volt 0.8.27.beta9 → 0.9.0.pre1

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: dc65c9a7b9c9896f3f9bbda1ce9db9d56f078fd1
4
- data.tar.gz: e1f160df109c069ce522eaf86537153b1ca8ec82
3
+ metadata.gz: 80b355af09d532dbb92bd9f350a6c9029479b524
4
+ data.tar.gz: 9950a3baf09a3965333ab7b2ace7fc8fb3a4fd06
5
5
  SHA512:
6
- metadata.gz: 92df05e0bbfc8529713324d7b9949a0fb9d039662b82f4c443012473011cc25cc0ba37790457a5885b91a1cdb1d2364a659a51c216a3ec6f8da8b6dff4b00938
7
- data.tar.gz: a860410b1ded8b5d0aa391313f86056c6e9506ad56864a0f6e2e12e1ab4c77b97f010e5144983df22585c9483f12539cc2d0918be24805f648454d07758128a3
6
+ metadata.gz: 01a00caca4e061866f487aed6a027d5975d509a7b11cc0b04b226e25e87d8263ad5921e18c45fe04257c51c25685fdc8fe7c9ca414da6d9e001882a5ba7255b6
7
+ data.tar.gz: d4a42204c6a4356a8b266df335f92e1f2c1082111dbd711a6ac487e783aa872025ffba6a0e24282536aae7c9f5bad6d583d49f4733cf9c0ed6de3b7d0f60d3f4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.27.beta9
1
+ 0.9.0.pre1
@@ -30,6 +30,11 @@ class Generate < Thor
30
30
  def gem(name)
31
31
  require 'volt/cli/new_gem'
32
32
 
33
+ if name =~ /[-]/
34
+ Volt.logger.error("Gem names should use underscores for their names. Currently volt only supports a single namespace for a compoennt.")
35
+ return
36
+ end
37
+
33
38
  NewGem.new(self, name, options)
34
39
  end
35
40
 
@@ -1,7 +1,8 @@
1
1
  module Volt
2
2
  class Environment
3
3
  def initialize
4
- @env = ENV['VOLT_ENV']
4
+ # Use VOLT_ENV or RACK_ENV to set the environment
5
+ @env = ENV['VOLT_ENV'] || ENV['RACK_ENV']
5
6
 
6
7
  # If we're in opal, we can set the env from JS before opal loads
7
8
  if RUBY_PLATFORM == 'opal'
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.8.27.beta9
4
+ version: 0.9.0.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-07 00:00:00.000000000 Z
11
+ date: 2015-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor