do_snapshot 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/do_snapshot/rspec.rb +8 -0
- data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/empty.json +0 -0
- data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/error_message.json +0 -0
- data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/response_event.json +0 -0
- data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/show_droplet.json +0 -0
- data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/show_droplet_inactive.json +0 -0
- data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/show_droplets.json +0 -0
- data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/show_droplets_empty.json +0 -0
- data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/show_event_done.json +0 -0
- data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/show_event_power_off_done.json +0 -0
- data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/show_event_power_off_start.json +0 -0
- data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/show_event_power_on_done.json +0 -0
- data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/show_event_power_on_start.json +0 -0
- data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/show_event_start.json +0 -0
- data/lib/do_snapshot/version.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +15 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c1dedf030036674d159992a7af7a77a6b0b6ba8
|
4
|
+
data.tar.gz: 385d5c78108b00f979545f45ae8b692286a893d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73550dfe4477502bbe99b8b247a7afc9db16e0b042c97a46deabacde4030511d675533c0977cea31a2aaeb4727b2007203ad32af01e4a97a36c146bc3cb19283
|
7
|
+
data.tar.gz: f37e88dbdf9534ce002a4aa06ca35eabf4c2ed4c162053d1832f0b371cd77023760c5e3bc0e66557d469c3b737faab789f5c31121fc2725a953dde4a7a8045bc
|
data/lib/do_snapshot/rspec.rb
CHANGED
@@ -8,5 +8,13 @@ module DoSnapshot
|
|
8
8
|
autoload :ApiV2Helpers, 'do_snapshot/rspec/api_v2_helpers'
|
9
9
|
autoload :Environment, 'do_snapshot/rspec/environment'
|
10
10
|
autoload :UriHelpers, 'do_snapshot/rspec/uri_helpers'
|
11
|
+
|
12
|
+
def self.project_path
|
13
|
+
File.expand_path('../../..', __FILE__)
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.fixture(fixture_name)
|
17
|
+
Pathname.new(project_path + '/lib/do_snapshot/rspec/fixtures/digitalocean/').join("#{fixture_name}.json").read
|
18
|
+
end
|
11
19
|
end
|
12
20
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/{spec → lib/do_snapshot/rspec}/fixtures/digitalocean/v2/show_event_power_off_start.json
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/do_snapshot/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -29,9 +29,9 @@ RSpec.configure do |config|
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def project_path
|
32
|
-
|
32
|
+
DoSnapshot::RSpec.project_path
|
33
33
|
end
|
34
34
|
|
35
35
|
def fixture(fixture_name)
|
36
|
-
|
36
|
+
DoSnapshot::RSpec.fixture(fixture_name)
|
37
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: do_snapshot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Merkulov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: droplet_kit
|
@@ -109,6 +109,19 @@ files:
|
|
109
109
|
- lib/do_snapshot/rspec/api_helpers.rb
|
110
110
|
- lib/do_snapshot/rspec/api_v2_helpers.rb
|
111
111
|
- lib/do_snapshot/rspec/environment.rb
|
112
|
+
- lib/do_snapshot/rspec/fixtures/digitalocean/v2/empty.json
|
113
|
+
- lib/do_snapshot/rspec/fixtures/digitalocean/v2/error_message.json
|
114
|
+
- lib/do_snapshot/rspec/fixtures/digitalocean/v2/response_event.json
|
115
|
+
- lib/do_snapshot/rspec/fixtures/digitalocean/v2/show_droplet.json
|
116
|
+
- lib/do_snapshot/rspec/fixtures/digitalocean/v2/show_droplet_inactive.json
|
117
|
+
- lib/do_snapshot/rspec/fixtures/digitalocean/v2/show_droplets.json
|
118
|
+
- lib/do_snapshot/rspec/fixtures/digitalocean/v2/show_droplets_empty.json
|
119
|
+
- lib/do_snapshot/rspec/fixtures/digitalocean/v2/show_event_done.json
|
120
|
+
- lib/do_snapshot/rspec/fixtures/digitalocean/v2/show_event_power_off_done.json
|
121
|
+
- lib/do_snapshot/rspec/fixtures/digitalocean/v2/show_event_power_off_start.json
|
122
|
+
- lib/do_snapshot/rspec/fixtures/digitalocean/v2/show_event_power_on_done.json
|
123
|
+
- lib/do_snapshot/rspec/fixtures/digitalocean/v2/show_event_power_on_start.json
|
124
|
+
- lib/do_snapshot/rspec/fixtures/digitalocean/v2/show_event_start.json
|
112
125
|
- lib/do_snapshot/rspec/uri_helpers.rb
|
113
126
|
- lib/do_snapshot/runner.rb
|
114
127
|
- lib/do_snapshot/version.rb
|
@@ -123,19 +136,6 @@ files:
|
|
123
136
|
- spec/do_snapshot/mail_spec.rb
|
124
137
|
- spec/do_snapshot/runner_spec.rb
|
125
138
|
- spec/do_snapshot_spec.rb
|
126
|
-
- spec/fixtures/digitalocean/v2/empty.json
|
127
|
-
- spec/fixtures/digitalocean/v2/error_message.json
|
128
|
-
- spec/fixtures/digitalocean/v2/response_event.json
|
129
|
-
- spec/fixtures/digitalocean/v2/show_droplet.json
|
130
|
-
- spec/fixtures/digitalocean/v2/show_droplet_inactive.json
|
131
|
-
- spec/fixtures/digitalocean/v2/show_droplets.json
|
132
|
-
- spec/fixtures/digitalocean/v2/show_droplets_empty.json
|
133
|
-
- spec/fixtures/digitalocean/v2/show_event_done.json
|
134
|
-
- spec/fixtures/digitalocean/v2/show_event_power_off_done.json
|
135
|
-
- spec/fixtures/digitalocean/v2/show_event_power_off_start.json
|
136
|
-
- spec/fixtures/digitalocean/v2/show_event_power_on_done.json
|
137
|
-
- spec/fixtures/digitalocean/v2/show_event_power_on_start.json
|
138
|
-
- spec/fixtures/digitalocean/v2/show_event_start.json
|
139
139
|
- spec/spec_helper.rb
|
140
140
|
- spec/support/aruba.rb
|
141
141
|
- spec/support/matchers.rb
|
@@ -176,19 +176,6 @@ test_files:
|
|
176
176
|
- spec/do_snapshot/mail_spec.rb
|
177
177
|
- spec/do_snapshot/runner_spec.rb
|
178
178
|
- spec/do_snapshot_spec.rb
|
179
|
-
- spec/fixtures/digitalocean/v2/empty.json
|
180
|
-
- spec/fixtures/digitalocean/v2/error_message.json
|
181
|
-
- spec/fixtures/digitalocean/v2/response_event.json
|
182
|
-
- spec/fixtures/digitalocean/v2/show_droplet.json
|
183
|
-
- spec/fixtures/digitalocean/v2/show_droplet_inactive.json
|
184
|
-
- spec/fixtures/digitalocean/v2/show_droplets.json
|
185
|
-
- spec/fixtures/digitalocean/v2/show_droplets_empty.json
|
186
|
-
- spec/fixtures/digitalocean/v2/show_event_done.json
|
187
|
-
- spec/fixtures/digitalocean/v2/show_event_power_off_done.json
|
188
|
-
- spec/fixtures/digitalocean/v2/show_event_power_off_start.json
|
189
|
-
- spec/fixtures/digitalocean/v2/show_event_power_on_done.json
|
190
|
-
- spec/fixtures/digitalocean/v2/show_event_power_on_start.json
|
191
|
-
- spec/fixtures/digitalocean/v2/show_event_start.json
|
192
179
|
- spec/spec_helper.rb
|
193
180
|
- spec/support/aruba.rb
|
194
181
|
- spec/support/matchers.rb
|