drumherum 0.1.29 → 0.1.30

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile.rb CHANGED
@@ -9,6 +9,8 @@ YARD::Rake::YardocTask.new
9
9
  Drumherum.github_username = 'bklippstein'
10
10
 
11
11
 
12
+
13
+
12
14
  # ----------------------------------------------------------------------------------------------
13
15
  # Hoe
14
16
  #
@@ -103,7 +103,30 @@ module Drumherum
103
103
  # @return [String] URI to github (documentation)
104
104
  def url_docs
105
105
  "http://#{Drumherum.github_username}.github.com/#{Drumherum.project_name}/frames.html"
106
- end
106
+ end
107
+
108
+
109
+ # @return [String] path of Ruby installation
110
+ def ruby_dir
111
+ RbConfig::CONFIG['prefix']
112
+ end
113
+
114
+
115
+ # @return [Symbol] Host OS: +:windows+, +:linux+ or +:other+.
116
+ def host_os
117
+ return $host_os if defined? $host_os
118
+ case RbConfig::CONFIG['host_os']
119
+ when /mswin|windows|mingw32|cygwin32/i
120
+ $host_os = :windows
121
+ when /linux/i
122
+ $host_os = :linux
123
+ else
124
+ $host_os = :other
125
+ end # case
126
+ #puts "RbConfig::CONFIG['host_os']=#{RbConfig::CONFIG['host_os']}"
127
+ #puts "$host_os=#{$host_os.inspect}"
128
+ end # def
129
+
107
130
 
108
131
 
109
132
  end # moduldefinitionen
@@ -177,10 +200,12 @@ if $0 == __FILE__
177
200
 
178
201
  # pp RUBYDIR
179
202
 
180
- smart_init
181
- $LOAD_PATH.each do |path|
182
- puts path
183
- end
203
+ # smart_init
204
+ # $LOAD_PATH.each do |path|
205
+ # puts path
206
+ # end
207
+
208
+ puts Drumherum.host_os.inspect
184
209
 
185
210
  end
186
211
 
data/lib/drumherum.rb CHANGED
@@ -6,14 +6,7 @@ require 'rbconfig'
6
6
  require 'drumherum/smart_init' unless defined? SmartInit
7
7
 
8
8
 
9
- unless defined? WINDOWS
10
- WINDOWS = /djgpp|(cyg|ms|bcc)win|mingw/ =~ RUBY_PLATFORM ? RUBY_PLATFORM : false
11
- end
12
-
13
- unless defined? RUBYDIR
14
- RUBYDIR = RbConfig::CONFIG['prefix']
15
- # puts "rubydir=" + RUBYDIR
16
- end
9
+
17
10
 
18
11
 
19
12
 
data/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Drumherum
3
3
 
4
- VERSION = '0.1.29'
4
+ VERSION = '0.1.30'
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drumherum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.30
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-02 00:00:00.000000000 Z
12
+ date: 2012-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hoe