gemify 0.2 → 0.2.1
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/gemify.rb +6 -2
- metadata +4 -5
data/lib/gemify.rb
CHANGED
@@ -21,6 +21,8 @@ class Gemify
|
|
21
21
|
if File.exists? ".gemified"
|
22
22
|
@settings = YAML.load(open(".gemified"))
|
23
23
|
end
|
24
|
+
rescue Errno::EACCES
|
25
|
+
@result = "Can't read .gemified"
|
24
26
|
end
|
25
27
|
|
26
28
|
def main
|
@@ -89,10 +91,10 @@ class Gemify
|
|
89
91
|
s.platform = Gem::Platform::RUBY
|
90
92
|
s.files = @all
|
91
93
|
s.bindir = "bin"
|
92
|
-
s.
|
94
|
+
s.require_paths = "lib"
|
93
95
|
|
94
96
|
unless @bin.empty?
|
95
|
-
s.executables
|
97
|
+
s.executables = @bin.map{|x|x[4..-1]}
|
96
98
|
end
|
97
99
|
|
98
100
|
(@dependencies||[]).each do |dep|
|
@@ -105,6 +107,8 @@ class Gemify
|
|
105
107
|
def save
|
106
108
|
File.open(".gemified","w"){|f|f<<YAML.dump(@settings)}
|
107
109
|
@result = "Saved!"
|
110
|
+
rescue Errno::EACCES
|
111
|
+
@result = "Can't write to .gemified"
|
108
112
|
end
|
109
113
|
|
110
114
|
def sub_task(i)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Magnus Holm
|
@@ -9,14 +9,14 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-02-
|
12
|
+
date: 2008-02-15 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
16
|
description:
|
17
17
|
email: judofyr@gmail.com
|
18
18
|
executables:
|
19
|
-
-
|
19
|
+
- gemify
|
20
20
|
extensions: []
|
21
21
|
|
22
22
|
extra_rdoc_files: []
|
@@ -29,8 +29,7 @@ homepage: http://dojo.rubyforge.org
|
|
29
29
|
post_install_message:
|
30
30
|
rdoc_options: []
|
31
31
|
|
32
|
-
require_paths:
|
33
|
-
- lib
|
32
|
+
require_paths: lib
|
34
33
|
required_ruby_version: !ruby/object:Gem::Requirement
|
35
34
|
requirements:
|
36
35
|
- - ">="
|