xig_installer 0.0.1 → 0.0.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/lib/xig_installer.rb +5 -3
- metadata +2 -2
data/lib/xig_installer.rb
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
+
require 'rbconfig'
|
2
3
|
require 'pathname'
|
3
4
|
require 'optparse'
|
4
5
|
require 'erb'
|
5
6
|
include FileUtils::Verbose
|
7
|
+
RbConfig = Config unless defined? RbConfig
|
6
8
|
|
7
9
|
class XigInstaller
|
8
|
-
VERSION = '0.0.
|
9
|
-
TARGET_DIR = '
|
10
|
+
VERSION = '0.0.2'
|
11
|
+
TARGET_DIR = RbConfig::CONFIG['bindir']
|
10
12
|
XIG_GLOB = '*ig.rb'
|
11
13
|
|
12
14
|
class CommandNotExist < StandardError ; end
|
@@ -136,7 +138,7 @@ class XigInstaller
|
|
136
138
|
|
137
139
|
def _cmd_list_update
|
138
140
|
_cmd_list_installed.reject { |e|
|
139
|
-
different?(
|
141
|
+
!different?( e )
|
140
142
|
}
|
141
143
|
end
|
142
144
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xig_installer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wtnabe
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-15 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|