mgem 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/mgem +5 -1
  2. data/lib/mgem.rb +1 -6
  3. metadata +2 -2
data/bin/mgem CHANGED
@@ -107,8 +107,12 @@ elsif ARGV[0] == 'update'
107
107
  gems.update!
108
108
  gems = load_gems
109
109
  new_gems = gems.size - amount
110
- if new_gems > 0
110
+ if new_gems == 1
111
+ puts "1 new GEM!"
112
+ elsif new_gems > 1
111
113
  puts "#{new_gems} new GEMs!"
114
+ else
115
+ puts "No new GEM"
112
116
  end
113
117
  elsif ARGV[0] == 'config'
114
118
  if ARGV[1] == 'default'
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.3'
5
+ MGEM_VERSION = '0.1.4'
6
6
 
7
7
  MGEM_DIR = '.mgem'
8
8
  GEMS_ACTIVE = 'GEMS_ACTIVE.lst'
@@ -121,11 +121,6 @@ class MrbgemList
121
121
  `git #{dir_arg} pull`
122
122
  result = `git #{dir_arg} log #{current_hash}..HEAD --pretty=format:''`
123
123
  count = result.lines.count
124
- if count == 0
125
- puts "No new GEMs."
126
- else
127
- puts "The GEM list was updated!"
128
- end
129
124
  ensure
130
125
  $stderr = temp_stderr
131
126
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: mgem
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.4
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-23 00:00:00.000000000 Z
12
+ date: 2013-02-09 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