atomic 1.1.15 → 1.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 960495c0246177f5b31a0a21f15a0e22d61b40ae
4
- data.tar.gz: beff1839c55b014a2cb74a37db338db823db53f0
3
+ metadata.gz: 32f81da2519e7a0c9333bbdb1c4ec74214344e5f
4
+ data.tar.gz: ee7d7a8d80a491b45d7cdb953aa04c48b2b73985
5
5
  SHA512:
6
- metadata.gz: bd632983d6ebc30d757bde26a94b66b719d64edb0e45c8c9c383e2742efe283966fca3ffa40d5e4c145a20c2d177e146beae3057cd70ecf65514ab4013d9afa4
7
- data.tar.gz: 5f94bad1e38a1de11f3e47025a889eb73056055cc069beb84a189fcdb43b1014be7c432f0a6658ef8c6aaf6a10a35e2864f69dbfe974ea5e88726ad6fe69d03f
6
+ metadata.gz: 3eac30934691ea873fb2e236184afdaeb5d43202502ec378630f9e000458d8a62b44cf09d950d9cf35a702dace6e0101a3ee99f8bae81fc29b82f20af658f5b1
7
+ data.tar.gz: ad4da7877b909a6b52afc3f847ea705364440bee96a9051f17e8c51ec18fcc74c31df5b36aecc85c1c4436fba1654540eda42fb0217d26da0b3d09e1b1e68822
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ .*.sw?
1
2
  lib/atomic_reference.jar
2
3
  /nbproject
3
4
  ext/*.bundle
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
1
  atomic: An atomic reference implementation for JRuby, Rubinius, and MRI.
2
+ ========================================================================
3
+
4
+ [![Build Status](https://travis-ci.org/headius/ruby-atomic.png?branch=master)](https://travis-ci.org/headius/ruby-atomic)
2
5
 
3
6
  Summary
4
7
  =======
@@ -4,7 +4,7 @@
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = %q{atomic}
7
- s.version = "1.1.15"
7
+ s.version = "1.1.16"
8
8
  s.authors = ["Charles Oliver Nutter", "MenTaLguY", "Sokolov Yura"]
9
9
  s.date = Time.now.strftime('%Y-%m-%d')
10
10
  s.summary = "An atomic reference implementation for JRuby, Rubinius, and MRI"
@@ -16,7 +16,19 @@ dir_config(extension_name)
16
16
 
17
17
  have_header "libkern/OSAtomic.h"
18
18
 
19
- if CONFIG["GCC"] && CONFIG["GCC"] != ""
19
+ def compiler_is_gcc
20
+ if CONFIG["GCC"] && CONFIG["GCC"] != ""
21
+ return true
22
+ elsif ( # This could stand to be more generic... but I am afraid.
23
+ CONFIG["CC"] =~ /\bgcc\b/
24
+ )
25
+ return true
26
+ end
27
+ return false
28
+ end
29
+
30
+
31
+ if compiler_is_gcc
20
32
  case CONFIG["arch"]
21
33
  when /mswin32|mingw|solaris/
22
34
  $CFLAGS += " -march=native"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atomic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.15
4
+ version: 1.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Oliver Nutter
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-02-26 00:00:00.000000000 Z
13
+ date: 2014-03-17 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: An atomic reference implementation for JRuby, Rubinius, and MRI
16
16
  email: