Skip to content

Commit fa317a9

Browse files
author
Adam Palmblad
committed
Add support for ruby 2.0.
1 parent 9d80853 commit fa317a9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

extconf.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66

77
require 'mkmf'
88

9-
$CFLAGS = RUBY_VERSION =~ /1\.9/ ? '-DRUBY19' : ''
9+
$CFLAGS = case RUBY_VERSION
10+
when /^1\.9/; '-DRUBY19'
11+
when /^2\./; '-DRUBY19'
12+
else; ''
13+
end
1014

1115
#$LDFLAGS = "-lshadow"
1216

ruby-shadow.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Gem::Specification.new do |spec|
1717
end
1818
spec.homepage = 'https://github.com/apalmblad/ruby-shadow'
1919
spec.name = 'ruby-shadow'
20-
spec.required_ruby_version = ['>= 1.8', '< 2.0.0']
20+
spec.required_ruby_version = ['>= 1.8']
2121
spec.summary = '*nix Shadow Password Module'
22-
spec.version = '2.1.5'
22+
spec.version = '2.2.0'
2323
spec.license = "Public Domain License"
2424
end

0 commit comments

Comments
 (0)