hand_rank 0.0.4 → 0.0.5

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: d87959eeb4ea3c759da6ff59367f2655282f2731
4
- data.tar.gz: 9979480886a4910f390b7535356e89d22af687fe
3
+ metadata.gz: 82d53d522616d93d4dcd690fe8572ecbb7ab32dd
4
+ data.tar.gz: 4b99ab76c4b6fbe4f37c4b2706d9e014568ec971
5
5
  SHA512:
6
- metadata.gz: 9ae5cddae22f05294ca83f6d52340d22e4a203d32cfac6e57a13cea66706343e156dd704d95d38a6a7d2bb755fe352cb02def1dc724903e7f76b9998e6df45f3
7
- data.tar.gz: ede5ca1ce6fcbca7d4101d1d4a29bb6fa036a492fadd0bc695b38114386a6c733434f3a65eff3534440d58652fb35d089eb4a60fcf441876cbe9b815d92e908d
6
+ metadata.gz: cd05756d65f7079567010159c4373e1dd330f81120239646e491c396accecebf3d3fd265270780682cecba361f35ed212c2e007b0948df8ae4ee5dd22815d376
7
+ data.tar.gz: c2515832d0cb418c956d72a092c0365a51c056df6ddc650d3e844de5ec628e91c5cca52fa6745c1c645dd7f0ea5b769898e2e84bb7136e8305717b9d480e9d2a
@@ -178,7 +178,7 @@ char* rb_get_gem_path(){
178
178
  void rb_load_lut(){
179
179
  char* path = c_prefix_with_gem_path( "ranks.data" );
180
180
  if( c_load_lut( path ) == -1 ){
181
- rb_raise( rb_eIOError, "could not open data file.");
181
+ rb_raise( rb_eIOError, "Could not open the data file at %s%s\n Please go to the folder and manually unzip ranks.data.zip to solve this problem.", rb_get_gem_path(), "ranks.data" );
182
182
  exit( 1 );
183
183
  }
184
184
  }
@@ -1,7 +1,7 @@
1
1
  require "hand_rank/version"
2
2
 
3
3
  module HandRank
4
- HOME = __FILE__.to_s.gsub('.rb','/')
4
+ HOME = __FILE__.gsub( /.rb$/,'/')
5
5
 
6
6
  def self.get( hand )
7
7
  cards = hand.to_a.map{|c| c.to_i }
@@ -1,3 +1,3 @@
1
1
  module HandRank
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hand_rank
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Schubert Erlandsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-29 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler