rspec-temp_dir 0.0.1 → 0.0.2

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: 26f0224659c1d394b7b48dbbd2625105dc964b69
4
- data.tar.gz: 72e4bd64aab1bc536e28c3e347027cd54738b128
3
+ metadata.gz: 6625cdae74d3f4d81b05345b178d5e86fa8c24d0
4
+ data.tar.gz: a2425f1fbf7ecbf9847d89c920f0f63f05010920
5
5
  SHA512:
6
- metadata.gz: 53c19f2905a0a412be81972ec06b40f73a4ab84e7da1717167bf9389f3f6e0035d93f8d4169ee1e3b99de5304c67c91ef495cde0f7e70f6c4061f2321b889c05
7
- data.tar.gz: f4b5e0125af96da23344566c235c859cca6ac4131e537e6026218ef1653a5dec19c1b7c9a5ef58cfa6bb3f244972986663d16a58deff2ef5eee28ffa0e612ba4
6
+ metadata.gz: ecad11e9848236df58b33b2e1fc72155a981898b1208f7b4818bc54f65386aad33c7cb407d735fb351a90b9e6bee3912f310775b4815ac7bf021541b8a7107fd
7
+ data.tar.gz: ae18606dcb3a7b869ac539cf46609b78d541b015a8b499864a373dca3c838fa44971255669bd8ca8e1d0e56e11240c7bc646d15378ad8afc74c8c02e3ebbc881
data/.travis.yml CHANGED
@@ -3,6 +3,10 @@ rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
5
  - 2.1.2
6
+ gemfile:
7
+ - gemfiles/rspec2.gemfile
8
+ - gemfiles/rspec3.gemfile
9
+ bundler_args: --jobs=2
6
10
  script: CODECLIMATE_REPO_TOKEN=329887587f83c7ce5a1ab75f426c00830ba5ffac290c90bc486713c88baea900 bundle exec rspec
7
11
  branches:
8
12
  only:
data/README.md CHANGED
@@ -4,13 +4,15 @@ create automatically temporary directory at each examples
4
4
 
5
5
  This is inspired by Junit [TemporaryFolder](http://junit.org/javadoc/4.9/org/junit/rules/TemporaryFolder.html)
6
6
 
7
+ [![Gem Version](https://badge.fury.io/rb/rspec-temp_dir.svg)](http://badge.fury.io/rb/rspec-temp_dir)
7
8
  [![Build Status](https://travis-ci.org/sue445/rspec-temp_dir.svg)](https://travis-ci.org/sue445/rspec-temp_dir)
8
9
  [![Code Climate](https://codeclimate.com/github/sue445/rspec-temp_dir.png)](https://codeclimate.com/github/sue445/rspec-temp_dir)
9
10
  [![Coverage Status](https://img.shields.io/coveralls/sue445/rspec-temp_dir.svg)](https://coveralls.io/r/sue445/rspec-temp_dir)
10
11
  [![Dependency Status](https://gemnasium.com/sue445/rspec-temp_dir.svg)](https://gemnasium.com/sue445/rspec-temp_dir)
11
12
 
12
13
  ## Requirements
13
- * ruby 1.9+
14
+ * ruby 1.9.3, 2.x
15
+ * rspec 2.x, 3.0.0
14
16
 
15
17
  ## Installation
16
18
 
@@ -50,6 +52,19 @@ describe "uses temp dir" do
50
52
  end
51
53
  ```
52
54
 
55
+ ## Changelog
56
+ ### master
57
+ [full changelog](http://github.com/sue445/rspec-temp_dir/compare/v0.0.2...master)
58
+
59
+ ### v0.0.2
60
+ [full changelog](http://github.com/sue445/rspec-temp_dir/compare/v0.0.1...v0.0.2)
61
+
62
+ * bugfix: raise error when padrino and rspec3+
63
+ * https://github.com/sue445/rspec-temp_dir/pull/1
64
+
65
+ ### v0.0.1
66
+ * first release
67
+
53
68
  ## Contributing
54
69
 
55
70
  1. Fork it ( https://github.com/sue445/rspec-temp_dir/fork )
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'rspec', "~> 2.14.1"
4
+
5
+ gemspec path: '../'
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'rspec' , "~> 3.0.0"
4
+ gem 'rspec-core' , "~> 3.0.4"
5
+ gem 'rspec-expectations', "~> 3.0.4"
6
+ gem 'rspec-mocks' , "~> 3.0.4"
7
+
8
+ gemspec path: '../'
@@ -1,6 +1,7 @@
1
1
  require "tmpdir"
2
+ require "rspec"
2
3
 
3
- shared_context "uses temp dir" do
4
+ (RSpec.respond_to?(:shared_context) ? RSpec : Object).shared_context "uses temp dir" do
4
5
  around do |example|
5
6
  Dir.mktmpdir("rspec-") do |dir|
6
7
  @temp_dir = dir
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module TempDir
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-temp_dir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-14 00:00:00.000000000 Z
11
+ date: 2014-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -95,6 +95,8 @@ files:
95
95
  - LICENSE.txt
96
96
  - README.md
97
97
  - Rakefile
98
+ - gemfiles/rspec2.gemfile
99
+ - gemfiles/rspec3.gemfile
98
100
  - lib/rspec/temp_dir.rb
99
101
  - lib/rspec/temp_dir/uses_temp_dir.rb
100
102
  - lib/rspec/temp_dir/version.rb