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 +4 -4
- data/VERSION +1 -1
- data/lib/volt/cli/generate.rb +5 -0
- data/lib/volt/volt/environment.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80b355af09d532dbb92bd9f350a6c9029479b524
|
4
|
+
data.tar.gz: 9950a3baf09a3965333ab7b2ace7fc8fb3a4fd06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01a00caca4e061866f487aed6a027d5975d509a7b11cc0b04b226e25e87d8263ad5921e18c45fe04257c51c25685fdc8fe7c9ca414da6d9e001882a5ba7255b6
|
7
|
+
data.tar.gz: d4a42204c6a4356a8b266df335f92e1f2c1082111dbd711a6ac487e783aa872025ffba6a0e24282536aae7c9f5bad6d583d49f4733cf9c0ed6de3b7d0f60d3f4
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.9.0.pre1
|
data/lib/volt/cli/generate.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
11
|
+
date: 2015-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|