fast_bitset 0.0.1 → 0.0.2

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: f257a199fff980744ceef1b86cce05184f0c5989
4
- data.tar.gz: a29eca895c4d5230939aaa3266c630b55b605b14
3
+ metadata.gz: 14187c4758727e42b303d02ee498b680311578ef
4
+ data.tar.gz: ae581f3858603205c88dda1e25b115726571eee1
5
5
  SHA512:
6
- metadata.gz: 27135de3fc4405d6fb72ce09bc73cae66ca9df436f423d497dca8aba5615cfb5b81a37db1ee9f0bf8b7e3b9540460345940c28c2d96e3dadd28c82c27f0554fd
7
- data.tar.gz: 025cb57d7be070c63f46eef2740cc992f392643fb80e898151c69e31274fcdcb01cbf3d6ed08c8305f15c7bd926ef86d50f4717781b01617e0e6eae37ffcb419
6
+ metadata.gz: de586e3d9b8f1332ab6c5e5177bfeab4b6971ce0e33815252b5e9d2e2b6423eee60a60c39aa5baa8ba5b7b19cf07a525ddc0d52bd31b3f30148108ee89e600ab
7
+ data.tar.gz: a0f0cfabca328a0cc581191f87ae46b6b27c1d1d11e289b4ea2bb332b323267bd24c74d922d61a5a0082862b13ff53c3771c66183b81ab824004b4662f226228
data/Rakefile CHANGED
@@ -2,7 +2,14 @@ require "bundler/gem_tasks"
2
2
  require "rake/extensiontask"
3
3
  require 'rspec/core/rake_task'
4
4
 
5
- Rake::ExtensionTask.new("fast_bitset") do |ext|
5
+
6
+ # This is from https://github.com/andremedeiros/ruby-deepclone/blob/master/Rakefile
7
+ def gemspec
8
+ @clean_gemspec ||= eval(File.read(File.dirname(__FILE__) + '/fast_bitset.gemspec'))
9
+ end
10
+
11
+
12
+ Rake::ExtensionTask.new("fast_bitset", gemspec) do |ext|
6
13
  ext.lib_dir = "lib/fast_bitset"
7
14
  end
8
15
 
@@ -13,12 +13,12 @@ Gem::Specification.new do |spec|
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.platform = Gem::Platform::RUBY
16
- spec.extensions = Dir["ext/**/extconf.rb"]
17
16
 
18
17
  spec.files = `git ls-files -z`.split("\x0")
19
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
- spec.require_paths = ["lib"]
20
+ spec.require_paths = ["ext", "lib"]
21
+ spec.extensions = ["ext/fast_bitset/extconf.rb"]
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.5"
24
24
  spec.add_development_dependency "rake"
@@ -26,7 +26,9 @@ module FastBitset
26
26
  alias bitstring_to_ids native_bitstring_to_ids
27
27
  end
28
28
  rescue LoadError
29
- alias bitstring_to_ids pure_bitstring_to_ids
29
+ class << self
30
+ alias bitstring_to_ids pure_bitstring_to_ids
31
+ end
30
32
  end
31
33
 
32
34
  end
@@ -1,3 +1,3 @@
1
1
  module FastBitset
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'rspec'
2
4
  require 'fast_bitset'
3
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_bitset
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darcy Laycock
@@ -96,6 +96,7 @@ metadata: {}
96
96
  post_install_message:
97
97
  rdoc_options: []
98
98
  require_paths:
99
+ - ext
99
100
  - lib
100
101
  required_ruby_version: !ruby/object:Gem::Requirement
101
102
  requirements: