codersdojo 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/app/shell_wrapper.rb +2 -11
- metadata +4 -4
data/app/shell_wrapper.rb
CHANGED
@@ -58,16 +58,6 @@ class ShellWrapper
|
|
58
58
|
Dir.new(dir).entries.drop current_and_parent
|
59
59
|
end
|
60
60
|
|
61
|
-
def read_file filename
|
62
|
-
generator_text = IO.readlines(filename).to_s;
|
63
|
-
end
|
64
|
-
|
65
|
-
def write_file filename, content
|
66
|
-
File.open(filename, 'w') do |f|
|
67
|
-
f.puts content
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
61
|
def file? filename
|
72
62
|
File.file? filename
|
73
63
|
end
|
@@ -85,7 +75,8 @@ class ShellWrapper
|
|
85
75
|
end
|
86
76
|
|
87
77
|
def windows?
|
88
|
-
RUBY_PLATFORM.downcase
|
78
|
+
platform = RUBY_PLATFORM.downcase
|
79
|
+
platform.include?("windows") or platform.include?("mingw32")
|
89
80
|
end
|
90
81
|
|
91
82
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codersdojo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 8
|
10
|
+
version: 1.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- CodersDojo-Team
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-30 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|