ruby-llenv 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,8 @@
1
+ ## 0.0.7 (2012-12-28)
2
+
3
+ * declare.run
4
+ * need `llenv update`
5
+
1
6
  ## 0.0.6 (2012-11-25)
2
7
 
3
8
  * add update task
data/README.md CHANGED
@@ -18,13 +18,13 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- Install ruby-1.9.3-p327 to ~/.llenv/ruby-1.9.3-p327/, and also `bundle install` required modules to your-project/vendor/bundle. See [install.sh](https://github.com/riywo/llenv-declare/blob/master/ruby-1.9.3-p327/install.sh).
21
+ Install ruby-1.9.3-p327 to ~/.llenv/ruby-1.9.3-p327/, and also `bundle install` required modules to your-project/vendor/bundle. See [install script](https://github.com/riywo/llenv-declare/blob/master/.lib/ruby/install).
22
22
 
23
23
  $ cd your-project
24
24
  $ echo ruby-1.9.3-p327 > .llenv
25
25
  $ llenv install
26
26
 
27
- Execute any command. See [exec.sh](https://github.com/riywo/llenv-declare/blob/master/ruby-1.9.3-p327/exec.sh).
27
+ Execute any command. See [exec script](https://github.com/riywo/llenv-declare/blob/master/.lib/ruby/exec).
28
28
 
29
29
  $ cd your-project
30
30
  $ llenv exec ruby -v
@@ -26,13 +26,19 @@ class LLenv::CLI < Thor
26
26
  desc "install", "Install specific LLenv"
27
27
  def install
28
28
  check_root_dir!
29
- @declare.install(llenv)
29
+ @declare.run(llenv, "install")
30
30
  end
31
31
 
32
32
  desc "exec", "Execute command with specific LLenv"
33
33
  def exec(*argv)
34
34
  check_root_dir!
35
- @declare.execute(llenv, argv)
35
+ @declare.run(llenv, "exec", argv)
36
+ end
37
+
38
+ desc "vendorpath", "Return vendor module install path"
39
+ def vendorpath
40
+ check_root_dir!
41
+ @declare.run(llenv, "vendorpath")
36
42
  end
37
43
 
38
44
  desc "version", "Display LLenv gem version"
@@ -5,16 +5,11 @@ class LLenv::Declare
5
5
  @root_dir = dir
6
6
  end
7
7
 
8
- def install(llenv)
8
+ def run(llenv, command, argv = [])
9
9
  set_env(llenv)
10
- install_script = File.join(@declare_dir, "install")
11
- system(install_script)
12
- end
13
-
14
- def execute(llenv, argv)
15
- set_env(llenv)
16
- exec_script = File.join(@declare_dir, "exec")
17
- exec(exec_script, *argv)
10
+ script = File.join(@declare_dir, "run")
11
+ argv.unshift(command)
12
+ exec(script, *argv)
18
13
  end
19
14
 
20
15
  def list
@@ -1,3 +1,3 @@
1
1
  module LLenv
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-llenv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
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: 2012-11-26 00:00:00.000000000 Z
12
+ date: 2012-12-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor