infrataster 0.1.13 → 0.2.0.beta1

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: 944bd475f663cf33b6920d7f6d24f371c02c07a2
4
- data.tar.gz: 326662ce5da70920bff0133d5bf915eeb4ee20b6
3
+ metadata.gz: 98d504662246fc7cc6c69cb60d516cf145082890
4
+ data.tar.gz: aa5ba6a7cecc2cc5adab8290c6c46d8a6743dff1
5
5
  SHA512:
6
- metadata.gz: 4d57ca47020df771a887b5e94828f27821515013d3423aa0ef25d925e0f38b43762a39ce84778f86a1b805ae3cd5706dd9d4ec44e03992547bab36de05f83b92
7
- data.tar.gz: e9fd30168998cd809bd45d63a4440796bdbfa82ff8b08cc7d97ae516556eea5a6b9fd3055372096ad4a647e9e019512f8015826406da6a52f680539de1ba9af6
6
+ metadata.gz: 5acf23f6036db9343e59f93e98a11be85a4cc3b6107bbbf14586d65d09f12160c8d9e1b4a77208e62761a864a20286a3da8c3c940518af0504a9784fc679cc09
7
+ data.tar.gz: d560b3ed230de7a0595c980d1f52d21dbf14b0fcda47daed93d8aa682487ba989c47efadfbb666b94a014b848d331c55f80b5632951671e5219048b360b93a4a
data/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
1
  # Infrataster Changelog
2
+ ## v0.2.0.beta1
3
+
4
+ * Support RSpec 3.x
5
+ * Some deprecation warnings remain.
6
+ * RSpec 2.x is supported too.
7
+
2
8
  ## v0.1.13
3
9
 
4
10
  * Make Infrataster's methods available in before(:all) block. (by @KitaitiMakoto)
data/infrataster.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_runtime_dependency "rspec", '~> 2.0'
23
+ spec.add_runtime_dependency "rspec", ['>= 2.0', '< 4.0']
24
24
  spec.add_runtime_dependency "net-ssh"
25
25
  spec.add_runtime_dependency "net-ssh-gateway"
26
26
  spec.add_runtime_dependency "capybara"
@@ -4,7 +4,9 @@ require 'infrataster/resources'
4
4
  module Infrataster
5
5
  module Helpers
6
6
  module ResourceHelper
7
- include RSpec::Matchers
7
+ if RSpec::Version::STRING.start_with?('2.')
8
+ include RSpec::Matchers
9
+ end
8
10
 
9
11
  def server(*args)
10
12
  Resources::ServerResource.new(*args)
@@ -2,7 +2,11 @@ module Infrataster
2
2
  module Helpers
3
3
  module RSpecHelper
4
4
  def method_missing(method, *args)
5
- current_infrataster_context.public_send(method, *args)
5
+ if current_infrataster_context.respond_to?(method)
6
+ return current_infrataster_context.public_send(method, *args)
7
+ end
8
+
9
+ super
6
10
  end
7
11
 
8
12
  def current_infrataster_context
@@ -9,11 +9,19 @@ RSpec.configure do |config|
9
9
  config.before(:all) do
10
10
  @infrataster_context = Infrataster::Contexts.from_example(self.class)
11
11
  end
12
+
12
13
  config.before(:each) do
14
+ if defined?(RSpec.current_example)
15
+ example = RSpec.current_example
16
+ end
13
17
  @infrataster_context = Infrataster::Contexts.from_example(example)
14
18
  @infrataster_context.before_each(example) if @infrataster_context.respond_to?(:before_each)
15
19
  end
20
+
16
21
  config.after(:each) do
22
+ if defined?(RSpec.current_example)
23
+ example = RSpec.current_example
24
+ end
17
25
  @infrataster_context.after_each(example) if @infrataster_context.respond_to?(:after_each)
18
26
  end
19
27
 
@@ -1,3 +1,3 @@
1
1
  module Infrataster
2
- VERSION = "0.1.13"
2
+ VERSION = "0.2.0.beta1"
3
3
  end
@@ -2,7 +2,9 @@ require 'integration/spec_helper'
2
2
 
3
3
  describe 'Normal subject not related to Infrataster' do
4
4
  it "doesn't raise any error" do
5
- expect(subject).not_to raise_error
5
+ expect do
6
+ subject
7
+ end.not_to raise_error
6
8
  end
7
9
  end
8
10
 
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infrataster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.2.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-01 00:00:00.000000000 Z
11
+ date: 2014-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '4.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '2.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '4.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: net-ssh
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -226,9 +232,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
232
  version: '0'
227
233
  required_rubygems_version: !ruby/object:Gem::Requirement
228
234
  requirements:
229
- - - ">="
235
+ - - ">"
230
236
  - !ruby/object:Gem::Version
231
- version: '0'
237
+ version: 1.3.1
232
238
  requirements: []
233
239
  rubyforge_project:
234
240
  rubygems_version: 2.2.2