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 +4 -4
- data/CHANGELOG.md +6 -0
- data/infrataster.gemspec +1 -1
- data/lib/infrataster/helpers/resource_helper.rb +3 -1
- data/lib/infrataster/helpers/rspec_helper.rb +5 -1
- data/lib/infrataster/rspec.rb +8 -0
- data/lib/infrataster/version.rb +1 -1
- data/spec/integration/other_spec.rb +3 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98d504662246fc7cc6c69cb60d516cf145082890
|
4
|
+
data.tar.gz: aa5ba6a7cecc2cc5adab8290c6c46d8a6743dff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5acf23f6036db9343e59f93e98a11be85a4cc3b6107bbbf14586d65d09f12160c8d9e1b4a77208e62761a864a20286a3da8c3c940518af0504a9784fc679cc09
|
7
|
+
data.tar.gz: d560b3ed230de7a0595c980d1f52d21dbf14b0fcda47daed93d8aa682487ba989c47efadfbb666b94a014b848d331c55f80b5632951671e5219048b360b93a4a
|
data/CHANGELOG.md
CHANGED
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", '
|
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"
|
@@ -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.
|
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
|
data/lib/infrataster/rspec.rb
CHANGED
@@ -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
|
|
data/lib/infrataster/version.rb
CHANGED
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.
|
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-
|
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:
|
237
|
+
version: 1.3.1
|
232
238
|
requirements: []
|
233
239
|
rubyforge_project:
|
234
240
|
rubygems_version: 2.2.2
|