Skip to content

Commit

Permalink
Released v1.0.0.pre2
Browse files Browse the repository at this point in the history
  • Loading branch information
jdantonio committed Sep 19, 2015
1 parent cd6a117 commit df1deea
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 35 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Upcoming Release v1.0.0.pre2 (TBD)
## Current Release v1.0.0.pre2 (19 September 2015)

* Simplification of `RubySingleThreadExecutor`
* `Async` improvements
Expand All @@ -10,8 +10,9 @@
- Now `Observable`
- Added a `#reset` method
* Brand new `Agent` API and implementation. Now functionally equivalent to Clojure.
* Continued improvements to the synchronization layer

## Current Release v1.0.0.pre1 (19 Aug 2015)
### Release v1.0.0.pre1 (19 August 2015)

* Merged in the `thread_safe` gem
- `Concurrent::Array`
Expand Down
16 changes: 9 additions & 7 deletions build-tests/atomic_boolean_builds_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ def atomic_boolean_test(clazz, opts = {})
let!(:threads) { 10 }
let!(:tests) { 1000 }

describe Concurrent::MutexAtomicBoolean do
unless jruby?
describe Concurrent::MutexAtomicBoolean do

specify 'is defined' do
expect(defined?(Concurrent::MutexAtomicBoolean)).to be_truthy
end
specify 'is defined' do
expect(defined?(Concurrent::MutexAtomicBoolean)).to be_truthy
end

specify 'runs the benchmarks' do
stats = atomic_boolean_test('MutexAtomicBoolean', threads: threads, tests: tests)
expect(stats).to be_benchmark_results
specify 'runs the benchmarks' do
stats = atomic_boolean_test('MutexAtomicBoolean', threads: threads, tests: tests)
expect(stats).to be_benchmark_results
end
end
end

Expand Down
16 changes: 9 additions & 7 deletions build-tests/atomic_fixnum_builds_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ def atomic_fixnum_test(clazz, opts = {})
let!(:threads) { 10 }
let!(:tests) { 1000 }

describe Concurrent::MutexAtomicFixnum do
unless jruby?
describe Concurrent::MutexAtomicFixnum do

specify 'is defined' do
expect(defined?(Concurrent::MutexAtomicFixnum)).to be_truthy
end
specify 'is defined' do
expect(defined?(Concurrent::MutexAtomicFixnum)).to be_truthy
end

specify 'runs the benchmarks' do
stats = atomic_fixnum_test('MutexAtomicFixnum', threads: threads, tests: tests)
expect(stats).to be_benchmark_results
specify 'runs the benchmarks' do
stats = atomic_fixnum_test('MutexAtomicFixnum', threads: threads, tests: tests)
expect(stats).to be_benchmark_results
end
end
end

Expand Down
16 changes: 9 additions & 7 deletions build-tests/atomic_reference_builds_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ def atomic_reference_test(clazz, opts = {})
let!(:threads) { 10 }
let!(:tests) { 1000 }

describe Concurrent::MutexAtomicReference do
unless jruby?
describe Concurrent::MutexAtomicReference do

specify 'is defined' do
expect(defined?(Concurrent::MutexAtomicReference)).to be_truthy
end
specify 'is defined' do
expect(defined?(Concurrent::MutexAtomicReference)).to be_truthy
end

specify 'runs the benchmarks' do
stats = atomic_reference_test('MutexAtomicReference', threads: threads, tests: tests)
expect(stats).to be_benchmark_results
specify 'runs the benchmarks' do
stats = atomic_reference_test('MutexAtomicReference', threads: threads, tests: tests)
expect(stats).to be_benchmark_results
end
end
end

Expand Down
20 changes: 10 additions & 10 deletions build-tests/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ def run_test_suite(files, ext, platform = '')
puts SUITE_BREAK

run_test_suite(TEST_FILES, false)
if mri?
if ! windows?
puts SUITE_BREAK
run_test_suite(TEST_FILES, true)
end
if platform_specific_extensions?(RUBY_PLATFORM)
puts SUITE_BREAK
run_test_suite(TEST_FILES, true, RUBY_PLATFORM)
end
end
#if mri?
#if ! windows?
#puts SUITE_BREAK
#run_test_suite(TEST_FILES, true)
#end
#if platform_specific_extensions?(RUBY_PLATFORM)
#puts SUITE_BREAK
#run_test_suite(TEST_FILES, true, RUBY_PLATFORM)
#end
#end
4 changes: 2 additions & 2 deletions lib/concurrent/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Concurrent
VERSION = '1.0.0.pre1'
EDGE_VERSION = '0.2.0.pre1'
VERSION = '1.0.0.pre2'
EDGE_VERSION = '0.2.0.pre2'
end
20 changes: 20 additions & 0 deletions publish-concurrent-ruby.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env ruby

# get the current gem version
require_relative './lib/concurrent/version'

GEMS = [
"concurrent-ruby-#{Concurrent::VERSION}.gem",
"concurrent-ruby-#{Concurrent::VERSION}-java.gem",
"concurrent-ruby-ext-#{Concurrent::VERSION}.gem",
"concurrent-ruby-ext-#{Concurrent::VERSION}-x86-mingw32.gem",
"concurrent-ruby-ext-#{Concurrent::VERSION}-x64-mingw32.gem",
"concurrent-ruby-edge-#{Concurrent::EDGE_VERSION}.gem",
]

GEMS.each do |gem|
file = File.join("pkg", gem)
basename = File.basename(file)
puts "Publishing #{basename}..."
`gem push #{file}`
end

0 comments on commit df1deea

Please sign in to comment.