qspec 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/bin/qspec CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'qspec'
4
+ Qspec.create_tmp_directory_if_not_exist
5
+
4
6
  status = Qspec::CommandLine.new(ARGV).run($stderr, $stdout).to_i
5
7
  exit status
@@ -9,11 +9,17 @@ require 'qspec/config'
9
9
  require 'qspec/helper'
10
10
 
11
11
  module Qspec
12
- DIRECTORY = File.expand_path(Config.new['tmp_directory'] || 'tmp/qspec')
12
+ class << self
13
+ def path(filename)
14
+ File.join(tmp_directory_path, filename)
15
+ end
13
16
 
14
- FileUtils.mkdir_p(DIRECTORY) unless FileTest.exists?(DIRECTORY)
17
+ def tmp_directory_path
18
+ @tmp_directory_path ||= File.expand_path(Config.new['tmp_directory'] || 'tmp/qspec')
19
+ end
15
20
 
16
- def self.path(filename)
17
- File.join(DIRECTORY, filename)
21
+ def create_tmp_directory_if_not_exist
22
+ FileUtils.mkdir_p(tmp_directory_path) unless FileTest.exists?(tmp_directory_path)
23
+ end
18
24
  end
19
25
  end
@@ -1,3 +1,3 @@
1
1
  module Qspec
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -19,5 +19,5 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.post_install_message = "Run qspec-helper init to create your config file"
21
21
 
22
- gem.add_dependency 'rspec-core', '~>2.13.1'
22
+ gem.add_dependency 'rspec-core', '~>2.14.0'
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-03 00:00:00.000000000 Z
12
+ date: 2013-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec-core
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 2.13.1
21
+ version: 2.14.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 2.13.1
29
+ version: 2.14.0
30
30
  description: QSpec inserts spec files to a queue. Workers process that queue one
31
31
  by one.
32
32
  email:
@@ -71,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
71
  version: '0'
72
72
  segments:
73
73
  - 0
74
- hash: 698092429
74
+ hash: 953532301
75
75
  required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  none: false
77
77
  requirements:
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  segments:
82
82
  - 0
83
- hash: 698092429
83
+ hash: 953532301
84
84
  requirements: []
85
85
  rubyforge_project:
86
86
  rubygems_version: 1.8.23