rmtools 2.3.5 → 2.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f89fb064bdad91177d656c4ce69b064c7418b80
4
- data.tar.gz: d548260567cfd5d51c58967dd7ee154d9d1bae82
3
+ metadata.gz: a624e7cdadf7421d7df627648c5feb73f4dfe683
4
+ data.tar.gz: 9aece4ce00e37b2f92dc01ab2bd9226cdb1220ae
5
5
  SHA512:
6
- metadata.gz: 6c912ac5bbbaf5e3333d0bf2e7bfefe34852ba599e13d830130c4e179ab1f773dc7de797e91be3d93de00a9f07bd3647df6720fbdfd62caf1d53102fba21ccbd
7
- data.tar.gz: a1e616a1043461150d5b918e411e668c2bb745121bb9c96edb6951c79daeac9b40d35c7b83811b09f0e65a9532b0d26cb5ca7f258f8c47caba05ecd5d55bff4d
6
+ metadata.gz: 5b56ed690d219c2d040e067fb9037a9f733303813c9faf8c61a82f1edf5861e96395d37a9181dc7d2c3ad70bfa9c2a77770689cdbb47772ecc4070d615d76c55
7
+ data.tar.gz: fad21c0a9f989576ad787191ac9694c1ea149fb59c34aee367b6f10fb154c36568e42e750c730e063ef092e2de08f2f7a78edf719716c936f7e3bd71cc547769
data/Rakefile CHANGED
@@ -1 +1,7 @@
1
1
  require "bundler/gem_tasks"
2
+
3
+ if RUBY_VERSION < '2'
4
+ task :default => [:compile, :test]
5
+ else
6
+ task :default => [:test]
7
+ end
data/ext/extconf.rb CHANGED
@@ -1,10 +1,19 @@
1
- require 'mkmf'
1
+ if RUBY_VERSION < "2"
2
+ require 'mkmf'
2
3
 
3
- CONFIG['CC'] = "g++"
4
- if RUBY_VERSION >= "1.9"
5
- $CFLAGS += " -DRUBY_IS_19"
6
- end
7
-
8
- dir_config("ruby19")
9
- create_makefile("rmtools")
4
+ CONFIG['CC'] = "g++"
5
+ if RUBY_VERSION >= "1.9"
6
+ $CFLAGS += " -DRUBY_IS_19"
7
+ end
10
8
 
9
+ dir_config("ruby19")
10
+ create_makefile("rmtools")
11
+ else
12
+ # Create a dummy Makefile, to satisfy Gem::Installer#install
13
+ # http://stackoverflow.com/questions/17406246/native-extensions-fallback-to-pure-ruby-if-not-supported-on-gem-install
14
+ mfile = open("Makefile", "wb")
15
+ mfile.puts '.PHONY: install'
16
+ mfile.puts 'install:'
17
+ mfile.puts "\t" + '@echo "Extensions not installed, falling back to pure Ruby version."'
18
+ mfile.close
19
+ end
@@ -1,3 +1,3 @@
1
1
  module RMTools
2
- VERSION = '2.3.5'
2
+ VERSION = '2.3.6'
3
3
  end
data/rmtools.gemspec CHANGED
@@ -19,11 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_runtime_dependency "activesupport"
22
- if RUBY_VERSION < '2'
23
- #unless ext_files_not_modified 'rmtools', RMTools::VERSION
24
- spec.extensions << 'ext/extconf.rb'
25
- #end
26
- end
22
+
23
+ spec.extensions << 'ext/extconf.rb'
27
24
 
28
25
  spec.add_development_dependency "bundler", "~> 1.3"
29
26
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.5
4
+ version: 2.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Baev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-28 00:00:00.000000000 Z
11
+ date: 2014-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -57,7 +57,8 @@ description: RMTools is a collection of helpers for debug, text/array/file proce
57
57
  email:
58
58
  - tinbka@gmail.com
59
59
  executables: []
60
- extensions: []
60
+ extensions:
61
+ - ext/extconf.rb
61
62
  extra_rdoc_files: []
62
63
  files:
63
64
  - .gitignore