metacon 0.2.1 → 0.2.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -77,7 +77,8 @@ module MetaCon
77
77
  # * Prepend full string w/ 'bash: ' so that it gets evalled in the
78
78
  # current context.
79
79
  # * Enjoy!
80
- identstr = `#{RVMS} rvm '#{ruby}'@'#{gemset}' do rvm tools identifier`
80
+ o,e,s = shc("rvm '#{ruby}'@'#{gemset}' do rvm tools identifier", false)
81
+ identstr = o.strip
81
82
  envsettings = "~/.rvm/environments/#{identstr}"
82
83
  cmds = process_env_commands(IO.readlines(File.expand_path(envsettings)))
83
84
  puts cmds.join("\n") if opts[:shell]
@@ -93,6 +93,13 @@ module MetaCon
93
93
  def refresh_conf; @config = Config.new(@root_dir) end
94
94
 
95
95
  def setup_context(opts)
96
+ # TODO: if there is no ruby or python dependency, switch them to some
97
+ # "neutral"/default version + packages so the user doesn't accidentally
98
+ # pollute an env-specific gemset etc.
99
+ # TODO: read in all the dependencies first to calculate
100
+ # interdependencies. For example, make sure that the ruby version is
101
+ # switched before any gems are installed, etc. This'll have to be
102
+ # abstracted somehow for the add-on libraries.
96
103
  dependencies = self.conf['dependencies']
97
104
  incomplete = false
98
105
  emitted = {}
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "metacon"
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joseph Wecker"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metacon
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joseph Wecker