bootsnap 1.1.0 → 1.1.1

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: fbdf0cc19b09b396571d9d38cb037cebfcdab7b2
4
- data.tar.gz: f07f07ec071dbffe3a48e1ae324457729a11ca61
3
+ metadata.gz: 0ecc363422058c3f1f15e26b8aafa41d3abf3e67
4
+ data.tar.gz: 8dccbbc4ea0340eae49f8df2bf3295e16596d91f
5
5
  SHA512:
6
- metadata.gz: 9db4ab87163f7c05a7b5c62fe17617149ec5acdc1caf186013c334222a4ad0a2087c5992b44fcf424201dd5b12448ce25826ccb4f99f495e450437aa90d0a0ae
7
- data.tar.gz: 84714b27f6a3be1650807af151309dc789390944c1a317ec9c246067c2f4299184c182aa878c8eb5715da989c1c768a3d86992af02ab9d974f1d26d09bb2d170
6
+ metadata.gz: 9a3ffe705bcc35a61bfdd1560ae3807172dc82532384ae9d87da91e790568c4e0abf925378f4f9d6611e8cea469dd8f70793ac4d2edc39f86181b3a6a2102049
7
+ data.tar.gz: bb19b804f025c65af27daedb086fdadd8b8978d3d404ccef045b0f3361ca2719ee961b5c66f81b608294d2191595875de47e06f816eb330ed97f2c33884e23e9
@@ -1,3 +1,7 @@
1
+ # 1.1.1
2
+
3
+ * Fix crash in `Native.compile_option_crc32=` on 32-bit platforms.
4
+
1
5
  # 1.1.0
2
6
 
3
7
  * Add `bootsnap/setup`
@@ -148,12 +148,17 @@ Init_bootsnap(void)
148
148
  /*
149
149
  * Bootsnap's ruby code registers a hook that notifies us via this function
150
150
  * when compile_option changes. These changes invalidate all existing caches.
151
+ *
152
+ * Note that on 32-bit platforms, a CRC32 can't be represented in a Fixnum, but
153
+ * can be represented by a uint.
151
154
  */
152
155
  static VALUE
153
156
  bs_compile_option_crc32_set(VALUE self, VALUE crc32_v)
154
157
  {
155
- Check_Type(crc32_v, T_FIXNUM);
156
- current_compile_option_crc32 = FIX2UINT(crc32_v);
158
+ if (!RB_TYPE_P(crc32_v, T_BIGNUM) && !RB_TYPE_P(crc32_v, T_FIXNUM)) {
159
+ Check_Type(crc32_v, T_FIXNUM);
160
+ }
161
+ current_compile_option_crc32 = NUM2UINT(crc32_v);
157
162
  return Qnil;
158
163
  }
159
164
 
@@ -1,3 +1,3 @@
1
1
  module Bootsnap
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootsnap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burke Libbey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-19 00:00:00.000000000 Z
11
+ date: 2017-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler