codersdojo 1.0.7 → 1.0.8

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.
Files changed (2) hide show
  1. data/app/shell_wrapper.rb +2 -11
  2. 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.include? "windows"
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: 25
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 7
10
- version: 1.0.7
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-29 00:00:00 +01:00
18
+ date: 2010-12-30 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency