derelict 0.1.6.travis.64 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MGE2OGY2ZWI4YTQwYjkzMjgyZDY2MzE2NWJmYzFhNWU4ODdkMDYyNw==
5
- data.tar.gz: !binary |-
6
- ODI5NTEzMDdmMzAxNTQyYzQyYjNhYTFmM2E3ZTk0MmJmZjZkMDZmZA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- NmZkODUxNmY2ODlhMTcyMTdhZWM4NjBmMDdiYTAyN2MyMzY2ZTI1MjAzODM5
10
- NjA0NDU2OGUxNWNkNzE3NjEzYTkzM2YzODY1NTI2OGJlN2FhOTQxNmJlMDAy
11
- YTdmNWEyMjRhZWY0MTk0OTZkMDRhMjJhZWQ5YjAyNjU3NDdmMzk=
12
- data.tar.gz: !binary |-
13
- NWZhYzUyYTI2NDFkODM2ZGNmMDQ2MjAyNTk5MWVlZjE3YTlmMzU0Y2U2MzA3
14
- Yzc4M2YzNTlmZDM4OGM2ZmMxZjczMTBhNTQ3NmFkZTQxOTg3MDQ3Mzg4MGZm
15
- NjIxNTUxNjMwM2U2MWMxNmMzOThmZjY0MGQ0ZGNjZWNjNjgxNTc=
2
+ SHA1:
3
+ metadata.gz: c3ede038bc46e70bb25328d3f9a1220711f987c3
4
+ data.tar.gz: d9a0d9ec94f109dc4fcdd4c4ecb71cc22ca07cbf
5
+ SHA512:
6
+ metadata.gz: 316a025841df81c79fc07bf3b754344d0f4409ece547c5fd3ea924fab3e165e2422bdbad2be6252dbe33d1e473e55e649a24e15cea4b3b9c5b34822cc342c9f1
7
+ data.tar.gz: f47a6de4b48aca0c7bbdb2d7a9766ce9912f5337c4e1c7f996dbe16f0e3c52f86c63ba7724a24ab3e64ea253b318b989ca9fdad94806f02c05fc1db568db0668
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ end
8
8
 
9
9
  version_major = RbConfig::CONFIG["MAJOR"].to_i
10
10
  version_minor = RbConfig::CONFIG["MINOR"].to_i
11
- if version_major >= 1 and version_minor >= 9
11
+ if version_major >= 2 or (version_major == 1 and version_minor >= 9)
12
12
  require "cane/rake_task"
13
13
 
14
14
  # Define "quality" task using Cane's built-in Rake task
data/derelict.gemspec CHANGED
@@ -39,7 +39,7 @@ Gem::Specification.new do |spec|
39
39
 
40
40
  version_major = RbConfig::CONFIG["MAJOR"].to_i
41
41
  version_minor = RbConfig::CONFIG["MINOR"].to_i
42
- cane_supported = (version_major >= 1 and version_minor >= 9)
42
+ cane_supported = (version_major >= 2 or (version_major == 1 and version_minor >= 9))
43
43
 
44
44
  spec.add_development_dependency "bundler", "~> 1.3"
45
45
  spec.add_development_dependency "cane" if cane_supported
@@ -1,3 +1,3 @@
1
1
  module Derelict
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -8,7 +8,7 @@ else
8
8
  # running on a compatible version.
9
9
  version_major = RbConfig::CONFIG["MAJOR"].to_i
10
10
  version_minor = RbConfig::CONFIG["MINOR"].to_i
11
- if version_major >= 1 and version_minor >= 9
11
+ if version_major >= 2 or (version_major == 1 and version_minor >= 9)
12
12
  require "simplecov"
13
13
  SimpleCov.start
14
14
  end
@@ -103,27 +103,37 @@ describe Derelict::VirtualMachine do
103
103
  let(:result) { double("result") }
104
104
  subject { vm.up! options }
105
105
 
106
- before do
107
- expect(connection).to receive(:execute!).with(:up, name).and_yield("foo").and_return result
108
- end
106
+ context "with wrong number of arguments" do
107
+ subject { vm.up! options, :extra }
109
108
 
110
- context "with external logging disabled" do
111
- include_context "logged messages"
112
- let(:expected_logs) {[
113
- "DEBUG virtualmachine: Successfully initialized Derelict::VirtualMachine 'testvm' from test\n",
114
- " INFO virtualmachine: Bringing up Derelict::VirtualMachine 'testvm' from test\n",
115
- ]}
109
+ it "should raise ArgumentError" do
110
+ expect { subject }.to raise_error ArgumentError
111
+ end
116
112
  end
117
113
 
118
- context "with external logging enabled" do
119
- let(:options) { {:log => true} }
114
+ context "with correct number of arguments" do
115
+ before do
116
+ expect(connection).to receive(:execute!).with(:up, name).and_yield("foo").and_return result
117
+ end
120
118
 
121
- include_context "logged messages"
122
- let(:expected_logs) {[
123
- "DEBUG virtualmachine: Successfully initialized Derelict::VirtualMachine 'testvm' from test\n",
124
- " INFO virtualmachine: Bringing up Derelict::VirtualMachine 'testvm' from test\n",
125
- " INFO external: foo\n",
126
- ]}
119
+ context "with external logging disabled" do
120
+ include_context "logged messages"
121
+ let(:expected_logs) {[
122
+ "DEBUG virtualmachine: Successfully initialized Derelict::VirtualMachine 'testvm' from test\n",
123
+ " INFO virtualmachine: Bringing up Derelict::VirtualMachine 'testvm' from test\n",
124
+ ]}
125
+ end
126
+
127
+ context "with external logging enabled" do
128
+ let(:options) { {:log => true} }
129
+
130
+ include_context "logged messages"
131
+ let(:expected_logs) {[
132
+ "DEBUG virtualmachine: Successfully initialized Derelict::VirtualMachine 'testvm' from test\n",
133
+ " INFO virtualmachine: Bringing up Derelict::VirtualMachine 'testvm' from test\n",
134
+ " INFO external: foo\n",
135
+ ]}
136
+ end
127
137
  end
128
138
  end
129
139
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: derelict
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6.travis.64
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Feehan
@@ -14,42 +14,42 @@ dependencies:
14
14
  name: log4r
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: memoist
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: shell-executer
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
@@ -70,96 +70,90 @@ dependencies:
70
70
  name: cane
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coveralls
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ! '>='
115
+ - - '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ! '>='
122
+ - - '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: simplecov
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ! '>='
129
+ - - '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ! '>='
136
+ - - '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: its
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ! '>='
143
+ - - '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ! '>='
150
+ - - '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
- description: ! 'Provides a Ruby API to control Vagrant where Vagrant is installed
154
- via the Installer package on Mac OS X.
153
+ description: |-
154
+ Provides a Ruby API to control Vagrant where Vagrant is installed via the Installer package on Mac OS X.
155
155
 
156
-
157
- Vagrant was historically available as a gem, naturally providing a Ruby API to control
158
- Vagrant in other Ruby libraries and applications. However, since version 1.1.0,
159
- Vagrant is distributed exclusively using an Installer package. To control Vagrant
160
- when it''s installed this way, other Ruby libraries and applications typically need
161
- to invoke the Vagrant binary, which requires forking a new process and parsing its
162
- output using string manipulation.'
156
+ Vagrant was historically available as a gem, naturally providing a Ruby API to control Vagrant in other Ruby libraries and applications. However, since version 1.1.0, Vagrant is distributed exclusively using an Installer package. To control Vagrant when it's installed this way, other Ruby libraries and applications typically need to invoke the Vagrant binary, which requires forking a new process and parsing its output using string manipulation.
163
157
  email:
164
158
  - git@bradfeehan.com
165
159
  executables: []
@@ -238,14 +232,14 @@ require_paths:
238
232
  - lib
239
233
  required_ruby_version: !ruby/object:Gem::Requirement
240
234
  requirements:
241
- - - ! '>='
235
+ - - '>='
242
236
  - !ruby/object:Gem::Version
243
237
  version: '0'
244
238
  required_rubygems_version: !ruby/object:Gem::Requirement
245
239
  requirements:
246
- - - ! '>'
240
+ - - '>='
247
241
  - !ruby/object:Gem::Version
248
- version: 1.3.1
242
+ version: '0'
249
243
  requirements: []
250
244
  rubyforge_project:
251
245
  rubygems_version: 2.0.3