mgem 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. data/bin/mgem +9 -7
  2. data/lib/mgem.rb +2 -1
  3. metadata +2 -2
data/bin/mgem CHANGED
@@ -10,12 +10,13 @@ end
10
10
 
11
11
  detail_info_proc = lambda do |obj|
12
12
  puts <<INFO
13
- Name: #{obj.name}
14
- Author: #{obj.author}
15
- Description: #{obj.description}
16
- Website: #{obj.website}
17
- Repository: #{obj.repository}
18
- Protocol: #{obj.protocol}
13
+ Name: #{obj.name}
14
+ Author: #{obj.author}
15
+ Description: #{obj.description}
16
+ Website: #{obj.website}
17
+ Repository: #{obj.repository}
18
+ Repo Options: #{obj.repooptions}
19
+ Protocol: #{obj.protocol}
19
20
 
20
21
  INFO
21
22
  end
@@ -118,7 +119,8 @@ elsif ARGV[0] == 'config'
118
119
  binaries = get_binaries
119
120
  end
120
121
  gem_command = gems.active.map do |g|
121
- " conf.gem :git => \'#{g.repository}\'"
122
+ options = ", :options => \'#{g.repooptions}\'" unless g.repooptions.nil?
123
+ " conf.gem :git => \'#{g.repository}\'#{options}"
122
124
  end.join("\n")
123
125
 
124
126
  if gem_command == ''
data/lib/mgem.rb CHANGED
@@ -2,7 +2,7 @@ require 'yaml'
2
2
  require 'fileutils'
3
3
  require "stringio"
4
4
 
5
- MGEM_VERSION = '0.1.2'
5
+ MGEM_VERSION = '0.1.3'
6
6
 
7
7
  MGEM_DIR = '.mgem'
8
8
  GEMS_ACTIVE = 'GEMS_ACTIVE.lst'
@@ -61,6 +61,7 @@ class MrbgemData
61
61
  def website; @gem_data["website"]; end
62
62
  def protocol; @gem_data["protocol"]; end
63
63
  def repository; @gem_data["repository"]; end
64
+ def repooptions; @gem_data["repooptions"]; end
64
65
 
65
66
  def method_missing(method_name)
66
67
  err = "Mrbgem Field \"#{method_name}\" doesn't exist!"
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: mgem
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Bovensiepen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-21 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: mgem helps you search and find GEMs specifically written for mruby. It also supports by creating a mruby build configuration.
15
15
  email: daniel@bovensiepen.net