monk 1.0.0.beta0 → 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +4 -2
- data/lib/monk.rb +8 -2
- data/monk.gemspec +1 -1
- data/test/helper.rb +5 -2
- metadata +2 -2
data/Rakefile
CHANGED
@@ -9,7 +9,9 @@ task :test do
|
|
9
9
|
|
10
10
|
Cutest.run(Dir["test/monk_*.rb"])
|
11
11
|
|
12
|
-
`rvm gemset
|
12
|
+
if `rvm gemset list` =~ /^monk-test$/
|
13
|
+
`rvm gemset use monk-test && rvm --force gemset delete monk-test`
|
14
|
+
end
|
13
15
|
end
|
14
16
|
|
15
|
-
task :default => :test
|
17
|
+
task :default => :test
|
data/lib/monk.rb
CHANGED
@@ -17,6 +17,8 @@ class Monk < Thor
|
|
17
17
|
clone(target)
|
18
18
|
cleanup(target)
|
19
19
|
create_rvmrc(target)
|
20
|
+
|
21
|
+
say_status :success, "Created #{target}"
|
20
22
|
end
|
21
23
|
|
22
24
|
desc "install --clean", "Install all dependencies."
|
@@ -26,7 +28,10 @@ class Monk < Thor
|
|
26
28
|
run("rvm --force gemset empty") if options.clean?
|
27
29
|
|
28
30
|
IO.popen("rvm gemset import") do |io|
|
29
|
-
|
31
|
+
until io.eof?
|
32
|
+
out = io.readline.gsub(/\(.*?\)/, "")
|
33
|
+
say_status :info, out if out =~ /installing|skipping/
|
34
|
+
end
|
30
35
|
end
|
31
36
|
end
|
32
37
|
|
@@ -38,7 +43,8 @@ class Monk < Thor
|
|
38
43
|
|
39
44
|
desc "unpack", "Freeze the current dependencies."
|
40
45
|
def unpack
|
41
|
-
run("rvm
|
46
|
+
run("rvm rvmrc load")
|
47
|
+
run("rvm gemset unpack vendor")
|
42
48
|
end
|
43
49
|
|
44
50
|
desc "show NAME", "Display the repository address for NAME"
|
data/monk.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "monk"
|
3
|
-
s.version = "1.0.0.
|
3
|
+
s.version = "1.0.0.beta1"
|
4
4
|
s.summary = "Monk, the glue framework"
|
5
5
|
s.description = "Monk is a glue framework for web development in Ruby. It’s truly modular by relying on the best tool for each job. It’s also pretty fast thanks to Rack and Sinatra."
|
6
6
|
s.authors = ["Damian Janowski", "Michel Martens"]
|
data/test/helper.rb
CHANGED
@@ -32,5 +32,8 @@ prepare do
|
|
32
32
|
dot_monk = File.join(ROOT, "test", "tmp", ".monk")
|
33
33
|
|
34
34
|
FileUtils.rm(dot_monk) if File.exist?(dot_monk)
|
35
|
-
|
36
|
-
|
35
|
+
|
36
|
+
if `rvm gemset list` =~ /^monk-test$/
|
37
|
+
`rvm gemset use monk-test && rvm --force gemset delete monk-test`
|
38
|
+
end
|
39
|
+
end
|