conjoin 0.0.40 → 0.0.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/conjoin +9 -3
- data/lib/conjoin/version.rb +1 -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: ab3826f66dedd3cb8fa351ef77c8b7a424ac941e
|
4
|
+
data.tar.gz: cf17673ce9c6cc7aa8c6041bb59e8436267d7f17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07a2745cf75a7c8e73e8b2fedd404599c26a9b97f945b87fa18d58553d35f9ddaa56c4270d00790984386ab4b5fbead1408f2d7c1b0e449ff26f03c360deed4a
|
7
|
+
data.tar.gz: c4b90b1cd3a0e90023e1f09bd0996db770b7220afd5e1d76b83106decb4001627eeca551276cebbcdf758d80e978c1ba809e455685bf8759f1c81c93e3ba35c9
|
data/bin/conjoin
CHANGED
@@ -26,16 +26,18 @@ module Conjoin
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def server
|
29
|
+
set_env
|
29
30
|
system_with_env 'mr-sparkle'
|
30
31
|
end
|
31
32
|
|
32
33
|
def console
|
34
|
+
set_env
|
33
35
|
ENV['CONJOIN_CONSOLE'] = 'true'
|
34
36
|
system_with_env "pry -r ./config/console.rb"
|
35
37
|
end
|
36
38
|
|
37
39
|
def tests
|
38
|
-
ENV['RACK_ENV'] =
|
40
|
+
@env = ENV['RACK_ENV'] = 'test'
|
39
41
|
|
40
42
|
Dir["./test/**/*_test.rb"].each_with_index do |file, i|
|
41
43
|
if i != 0
|
@@ -49,7 +51,7 @@ module Conjoin
|
|
49
51
|
end
|
50
52
|
|
51
53
|
def cutest
|
52
|
-
ENV['RACK_ENV'] =
|
54
|
+
@env = ENV['RACK_ENV'] = 'test'
|
53
55
|
|
54
56
|
require "cuba/test"
|
55
57
|
require 'awesome_print'
|
@@ -149,7 +151,7 @@ module Conjoin
|
|
149
151
|
end
|
150
152
|
|
151
153
|
def env
|
152
|
-
@env
|
154
|
+
@env = ENV['RACK_ENV'] ||= ENV['RACK_ENV'] || 'development'
|
153
155
|
end
|
154
156
|
|
155
157
|
def argv_string
|
@@ -166,6 +168,10 @@ module Conjoin
|
|
166
168
|
end
|
167
169
|
end
|
168
170
|
|
171
|
+
def set_env
|
172
|
+
@env = ENV['RACK_ENV'] = argv_string if !argv_string.empty?
|
173
|
+
end
|
174
|
+
|
169
175
|
def root
|
170
176
|
File.expand_path(File.dirname(__FILE__))
|
171
177
|
end
|
data/lib/conjoin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjoin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cuba
|