rrrspec-server 0.2.3 → 0.2.4

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: ad8d2efea74ca87caf2a2f0bb2da74a97e9ac976
4
- data.tar.gz: 994aacf92f66196dc1291aac1fb2fa4bf6579b7e
3
+ metadata.gz: 6caa450caefc47a01e85985f15dff482b9805a6f
4
+ data.tar.gz: d2ad427d94791062de48e769da02c3bdf60b9868
5
5
  SHA512:
6
- metadata.gz: 3de61a73a340a9c33d4c9c75fb126787f7096124707f8dbc5b33a5f1e7ee87c05990758818b77908abc836f20d253c4fbac3902fe6f83d71f44171138bae79fd
7
- data.tar.gz: 596b4c7c22829e36e7891584acdccf92c32132877cd219b5d35dd2b10c9a27d33e442ba2d2e79523a5ae071cb3088abaa7356b7f98a5536a2216726b8046d269
6
+ metadata.gz: 7d29c08f17cc101cd194917df4f2b587e7a833de4a7ed22b92e3a463e15115ce4bcc3d23f412eaf0d506dd2503e3756369c2c38baa6b5b927a845a2588504290
7
+ data.tar.gz: e32c70a20e81ba80fefa18c43a65f084d34a2a810680e6a312b5ad33d9ee72f65519936167cf4c3ff45c79f159c2562ee800fbc4c9c4f683fef9bd9bcd0e0896
@@ -1,5 +1,5 @@
1
1
  module RRRSpec
2
2
  module Server
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.email = ["draftcode@gmail.com"]
12
12
  spec.description = "Execute RSpec in a distributed manner"
13
13
  spec.summary = "Execute RSpec in a distributed manner"
14
- spec.homepage = ""
14
+ spec.homepage = "https://github.com/cookpad/rrrspec"
15
15
  spec.license = "MIT"
16
16
 
17
17
  gemspec_dir = File.expand_path('..', __FILE__)
data/tasks/db.rake CHANGED
@@ -13,6 +13,7 @@ namespace :rrrspec do
13
13
  end
14
14
 
15
15
  namespace :db do
16
+ desc "create the database"
16
17
  task :create => 'rrrspec:server:server_config' do
17
18
  config = RRRSpec.configuration.persistence_db
18
19
 
@@ -23,7 +24,13 @@ namespace :rrrspec do
23
24
  ActiveRecord::Base.connection
24
25
  end
25
26
  elsif config[:adapter] =~ /mysql/
26
- ActiveRecord::Base.connection.create_database(config[:database])
27
+ ActiveRecord::Base.establish_connection(config.except(:database))
28
+ begin
29
+ ActiveRecord::Base.connection.create_database(config[:database])
30
+ rescue ActiveRecord::StatementInvalid
31
+ # Ignore creation error
32
+ end
33
+ ActiveRecord::Base.establish_connection(config)
27
34
  else
28
35
  fail 'unknown database adapter'
29
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rrrspec-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaya Suzuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-27 00:00:00.000000000 Z
11
+ date: 2015-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: database_cleaner
@@ -251,7 +251,7 @@ files:
251
251
  - spec/rrrspec/server/statistics_updater_spec.rb
252
252
  - spec/spec_helper.rb
253
253
  - tasks/db.rake
254
- homepage: ''
254
+ homepage: https://github.com/cookpad/rrrspec
255
255
  licenses:
256
256
  - MIT
257
257
  metadata: {}
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
271
271
  version: '0'
272
272
  requirements: []
273
273
  rubyforge_project:
274
- rubygems_version: 2.2.2
274
+ rubygems_version: 2.4.5
275
275
  signing_key:
276
276
  specification_version: 4
277
277
  summary: Execute RSpec in a distributed manner