cutest-cj 1.6.2 → 1.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/cutest +11 -3
  3. data/lib/cutest.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d894cd80c72d1b6dc1d1a95000a7a127d2d252e
4
- data.tar.gz: d2e8132e6ccfcbd6ef46014225b0fe354bfc54cf
3
+ metadata.gz: 93bd1fd9e92fd102a03bd852d06d0ede5bebcc60
4
+ data.tar.gz: 3bbd70e3de39fd1de498d50a4677c45b75651fea
5
5
  SHA512:
6
- metadata.gz: 42af4fb447ea614bb7e0a8269088a22103fed3e704b7576d3256ef1804c5b2f7967bec57d11de14077ef5b45f04233baa02493cdefb83cf604fa39a48ca6dcb4
7
- data.tar.gz: 6c7123eeff7c3e9229fe7729088203efb7cc0916b65eabda18cdc49c4aabc16b3d727f329560456651c5f484b71a6e09c49c3a9858c17bf5dce378862c4b54d1
6
+ metadata.gz: d141b7f6dd9671fa445c768815a31d75d0f403643bf39f4cf23ab6ab13d358a58bb1bb393e80a68cedc7ca96d77b3a81aed62c99ec0b835f8a293a150fcd5380
7
+ data.tar.gz: c4a98e5cadc4a0c5e79977ede010b727b5d923bf1ddfd22dadd3f4403d50097721b3806b692532bf0638e3f8fc2f778f22fbfaa844e9be889b0822b9b49560d9
data/bin/cutest CHANGED
@@ -34,12 +34,20 @@ if files.any?
34
34
  env = '.env'
35
35
  rack_env = "#{env}.#{ENV['RACK_ENV']}"
36
36
 
37
+ File.foreach env do |line|
38
+ key, value = line.split "="
39
+ ENV[key] = value.gsub('\n', '').strip
40
+ end
41
+
37
42
  if File.file? rack_env
38
- Cutest.load_envs rack_env
39
- elsif File.file? env
40
- Cutest.load_envs env
43
+ File.foreach rack_env do |line|
44
+ key, value = line.split "="
45
+ ENV[key] = value.gsub('\n', '').strip
46
+ end
41
47
  end
42
48
 
49
+ Gem.clear_paths
50
+
43
51
  success = Cutest.run(Dir[*files])
44
52
 
45
53
  exit(1) unless success
data/lib/cutest.rb CHANGED
@@ -7,7 +7,7 @@ class Cutest
7
7
  autoload :Database, 'cutest/database'
8
8
 
9
9
  unless defined?(VERSION)
10
- VERSION = "1.6.2"
10
+ VERSION = "1.6.3"
11
11
  FILTER = %r[/(ruby|jruby|rbx)[-/]([0-9\.])+]
12
12
  CACHE = Hash.new { |h, k| h[k] = File.readlines(k) }
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cutest-cj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damian Janowski
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-07-29 00:00:00.000000000 Z
13
+ date: 2014-08-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pry