evoker 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,8 @@
3
3
  require 'evoker'
4
4
 
5
5
  module Evoker
6
+ PYTHON = ENV['PYTHON'] || 'python'
7
+ PIP = ENV['PIP'] || 'pip'
6
8
 
7
9
  # Create Python virtual environment
8
10
  def virtualenv(*args)
@@ -13,7 +15,7 @@ module Evoker
13
15
  end
14
16
 
15
17
  if opts[:download_virtualenv]
16
- opts[:python] ||= 'python'
18
+ opts[:python] ||= PYTHON
17
19
  opts[:virtualenv] = "#{opts[:python]} ./virtualenv.py"
18
20
  opts[:virtualenv_version] ||= '1.6'
19
21
  opts[:virtualenv_url] ||= "http://github.com/pypa/virtualenv/raw/#{opts[:virtualenv_version]}/virtualenv.py"
@@ -57,7 +59,7 @@ module Evoker
57
59
  if args[:virtualenv]
58
60
  args[:pip] = "#{args[:virtualenv]}/bin/pip"
59
61
  else
60
- args[:pip] ||= 'pip'
62
+ args[:pip] ||= PIP
61
63
  end
62
64
  pip_cmd = "#{args[:pip]}"
63
65
  pip_cmd << " #{args[:args]}" if args[:args]
@@ -2,7 +2,7 @@ module Evoker
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 2
5
+ TINY = 3
6
6
  STRING = [MAJOR, MINOR, TINY].join('.')
7
7
 
8
8
  def VERSION.require_version(major, minor=0, tiny=0)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evoker
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Maciej Pasternacki
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-19 00:00:00 +02:00
18
+ date: 2011-04-25 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency