kgem 0.1.5 → 0.1.6
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/Rakefile +2 -2
- data/bin/gemcmdwin.rb +1 -1
- data/bin/kgem.rb +2 -4
- data/ext/Rakefile +10 -1
- data/lib/gemitem.rb +0 -1
- metadata +4 -4
data/Rakefile
CHANGED
|
@@ -6,7 +6,7 @@ require 'rake/gempackagetask'
|
|
|
6
6
|
|
|
7
7
|
spec = Gem::Specification.new do |s|
|
|
8
8
|
s.name = "kgem"
|
|
9
|
-
s.version = "0.1.
|
|
9
|
+
s.version = "0.1.6"
|
|
10
10
|
s.author = "ruby.twiddler"
|
|
11
11
|
s.email = "ruby.twiddler at gmail.com"
|
|
12
12
|
s.homepage = "http://github.com/rubytwiddler/kgem/wiki"
|
|
@@ -28,7 +28,7 @@ EOF
|
|
|
28
28
|
s.extra_rdoc_files = ["README"]
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
require '
|
|
31
|
+
require 'fileutils'
|
|
32
32
|
APP_DIR = File.expand_path(File.dirname(__FILE__))
|
|
33
33
|
RES_DIR = File::join(APP_DIR, "pkg_resources")
|
|
34
34
|
def install_console_helper(console_helper_name, target_cmd_name)
|
data/bin/gemcmdwin.rb
CHANGED
data/bin/kgem.rb
CHANGED
|
@@ -5,18 +5,16 @@
|
|
|
5
5
|
# Ruby Gem with KDE GUI
|
|
6
6
|
#
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
require 'ftools'
|
|
8
|
+
require 'fileutils'
|
|
10
9
|
|
|
11
10
|
APP_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
|
|
12
11
|
APP_NAME = File.basename(APP_FILE).sub(/\.rb/, '')
|
|
13
12
|
APP_DIR = File::dirname(File.expand_path(File.dirname(APP_FILE)))
|
|
14
13
|
LIB_DIR = File::join(APP_DIR, "lib")
|
|
15
|
-
APP_VERSION = "0.1.
|
|
14
|
+
APP_VERSION = "0.1.6"
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
# standard libs
|
|
19
|
-
require 'fileutils'
|
|
20
18
|
require 'rubygems'
|
|
21
19
|
require 'rubygems/specification'
|
|
22
20
|
require 'json'
|
data/ext/Rakefile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/ruby
|
|
2
2
|
|
|
3
|
-
require '
|
|
3
|
+
require 'fileutils'
|
|
4
4
|
|
|
5
5
|
APP_DIR = File::dirname(File.expand_path(File.dirname(__FILE__)))
|
|
6
6
|
RES_DIR = File::join(APP_DIR, "pkg_resources")
|
|
@@ -15,6 +15,15 @@ def install_console_helper(console_helper_name, target_cmd_name)
|
|
|
15
15
|
console_app_file = File.join(etc_dir, 'security', 'console.apps', console_helper_name)
|
|
16
16
|
console_helper_target = %x{ which consolehelper }.strip!
|
|
17
17
|
|
|
18
|
+
if !File.exist?(console_helper_target) then
|
|
19
|
+
puts <<-EOF
|
|
20
|
+
|
|
21
|
+
consolehelper is not installed.
|
|
22
|
+
install usermode package and try again.
|
|
23
|
+
EOF
|
|
24
|
+
exit 1
|
|
25
|
+
end
|
|
26
|
+
|
|
18
27
|
puts "cp #{pam_src_path} #{pam_dst_path}"
|
|
19
28
|
puts "ln -s #{console_helper_target} #{console_helper_link}"
|
|
20
29
|
puts "write #{console_app_file}"
|
data/lib/gemitem.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kgem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.1.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- ruby.twiddler
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-09-
|
|
18
|
+
date: 2010-09-25 00:00:00 +09:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|