singularity_dsl 1.5.7 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +5 -5
- data/lib/singularity_dsl/version.rb +1 -1
- data/spec/singularity_dsl/application_spec.rb +4 -4
- data/spec/singularity_dsl/dsl/changeset_spec.rb +6 -6
- data/spec/singularity_dsl/git_helper_spec.rb +8 -8
- data/spec/singularity_dsl/tasks/shell_task_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDhmYzJmZmU0OGY1YWMxZjA0ZGUyMDQ1ZWQ1ZGY2ZTBlZDFjN2JlZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmM3MTEwMzlmYzQzYTYxZGIxZWQ3OGZjMGQwMzFiOTZmY2FjZjU5MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2ViNjUzNTE5OWJmNGNlNTI1YWExNjdmOGFkZjc1MzExNTkyMjk2MGY3MTM3
|
10
|
+
ZTA0OWQyYWE0OTExZDg4MGZjZWVjMmY5YTA0ZjIyM2ZhYmExMDhjYmYyYmQ1
|
11
|
+
NTUyMGYxOGQ0NmNiZDQ1OTUzMWY4MzBmZWMxZTc1MmRjMTk2MjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmU2MGQ3N2RmNGFiYjc3N2JlMmNhOWM1ZWIzNzk0YjAyNDAxYTAyMTVlMWM3
|
14
|
+
MGYwYjE3NjhhNjc4YzNkNWYwOTlkZTNjYTlmZmEzMzQ2Y2M1NGYzODI1ZTc0
|
15
|
+
MjA0OWM5YjU2YjZiMzI5NjdjMGI1ZGU5OTgxYTQzNmJiYzllZjg=
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
singularity_dsl (1.5.
|
4
|
+
singularity_dsl (1.5.8)
|
5
5
|
json (~> 1.0)
|
6
6
|
mixlib-shellout (~> 1.6.0)
|
7
7
|
rainbow (~> 2.0.0)
|
@@ -21,7 +21,7 @@ GEM
|
|
21
21
|
gem-release (0.7.3)
|
22
22
|
json (1.8.1)
|
23
23
|
mixlib-shellout (1.6.0)
|
24
|
-
parser (2.2.0.pre.
|
24
|
+
parser (2.2.0.pre.7)
|
25
25
|
ast (>= 1.1, < 3.0)
|
26
26
|
slop (~> 3.4, >= 3.4.5)
|
27
27
|
powerpack (0.0.9)
|
@@ -39,13 +39,13 @@ GEM
|
|
39
39
|
rspec-mocks (3.1.3)
|
40
40
|
rspec-support (~> 3.1.0)
|
41
41
|
rspec-support (3.1.2)
|
42
|
-
rubocop (0.
|
42
|
+
rubocop (0.27.0)
|
43
43
|
astrolabe (~> 1.3)
|
44
|
-
parser (>= 2.2.0.pre.
|
44
|
+
parser (>= 2.2.0.pre.6, < 3.0)
|
45
45
|
powerpack (~> 0.0.6)
|
46
46
|
rainbow (>= 1.99.1, < 3.0)
|
47
47
|
ruby-progressbar (~> 1.4)
|
48
|
-
ruby-progressbar (1.
|
48
|
+
ruby-progressbar (1.7.0)
|
49
49
|
slop (3.6.0)
|
50
50
|
terminal-table (1.4.5)
|
51
51
|
thor (0.19.1)
|
@@ -24,7 +24,7 @@ describe 'Application' do
|
|
24
24
|
# don't want the entire thing to exit...
|
25
25
|
allow(app).to receive(:post_task_runner_actions)
|
26
26
|
allow(app.runner).to receive(:execute)
|
27
|
-
|
27
|
+
.and_raise(SingularityDsl::Errors::ResourceFail)
|
28
28
|
expect(app).to receive(:log_resource_fail)
|
29
29
|
app.run
|
30
30
|
end
|
@@ -33,7 +33,7 @@ describe 'Application' do
|
|
33
33
|
allow(app).to receive(:post_task_runner_actions)
|
34
34
|
allow(app).to receive(:log_resource_fail)
|
35
35
|
allow(app.runner).to receive(:execute)
|
36
|
-
|
36
|
+
.and_raise(SingularityDsl::Errors::ResourceFail)
|
37
37
|
expect(app).to receive(:post_task_runner_actions)
|
38
38
|
app.run
|
39
39
|
end
|
@@ -41,7 +41,7 @@ describe 'Application' do
|
|
41
41
|
it 'logs resource errors' do
|
42
42
|
allow(app).to receive(:post_task_runner_actions)
|
43
43
|
allow(app.runner).to receive(:execute)
|
44
|
-
|
44
|
+
.and_raise(SingularityDsl::Errors::ResourceError)
|
45
45
|
expect(app).to receive(:log_resource_error)
|
46
46
|
app.run
|
47
47
|
end
|
@@ -50,7 +50,7 @@ describe 'Application' do
|
|
50
50
|
allow(app).to receive(:post_task_runner_actions)
|
51
51
|
allow(app).to receive(:log_resource_error)
|
52
52
|
allow(app.runner).to receive(:execute)
|
53
|
-
|
53
|
+
.and_raise(SingularityDsl::Errors::ResourceError)
|
54
54
|
expect(app).to receive(:post_task_runner_actions)
|
55
55
|
app.run
|
56
56
|
end
|
@@ -26,14 +26,14 @@ describe 'DslChangeset' do
|
|
26
26
|
context '#changed_files' do
|
27
27
|
before :each do
|
28
28
|
allow(::File).to receive(:exist?)
|
29
|
-
|
30
|
-
|
29
|
+
.with('something.css')
|
30
|
+
.and_return(true)
|
31
31
|
allow(::File).to receive(:exist?)
|
32
|
-
|
33
|
-
|
32
|
+
.with('something.js')
|
33
|
+
.and_return(true)
|
34
34
|
allow(::File).to receive(:exist?)
|
35
|
-
|
36
|
-
|
35
|
+
.with('something.php')
|
36
|
+
.and_return(false)
|
37
37
|
end
|
38
38
|
|
39
39
|
it 'correct eval for single file type' do
|
@@ -5,8 +5,8 @@ require 'singularity_dsl/git_helper'
|
|
5
5
|
describe 'GitHelper' do
|
6
6
|
before :each do
|
7
7
|
allow_any_instance_of(SingularityDsl::GitHelper)
|
8
|
-
|
9
|
-
|
8
|
+
.to receive(:git_installed)
|
9
|
+
.and_return true
|
10
10
|
end
|
11
11
|
let(:git) { SingularityDsl::GitHelper.new }
|
12
12
|
|
@@ -73,9 +73,9 @@ describe 'GitHelper' do
|
|
73
73
|
it 'generates & calls correct cmd' do
|
74
74
|
allow(git).to receive(:remotes).and_return([])
|
75
75
|
allow(git).to receive(:exec)
|
76
|
-
|
76
|
+
.with('git fetch --all')
|
77
77
|
allow(git).to receive(:exec)
|
78
|
-
|
78
|
+
.with('git merge bar/foo').and_return(0)
|
79
79
|
git.merge_remote 'foo', 'bar'
|
80
80
|
end
|
81
81
|
end
|
@@ -84,18 +84,18 @@ describe 'GitHelper' do
|
|
84
84
|
it 'generates & calls correct cmd w/ single flag' do
|
85
85
|
allow(git).to receive(:remotes).and_return([])
|
86
86
|
allow(git).to receive(:exec)
|
87
|
-
|
87
|
+
.with('git fetch --all')
|
88
88
|
allow(git).to receive(:exec)
|
89
|
-
|
89
|
+
.with('git diff bar/foo --flag').and_return(0)
|
90
90
|
git.diff_remote 'foo', 'bar', '--flag'
|
91
91
|
end
|
92
92
|
|
93
93
|
it 'generates & calls correct cmd w/ multiple flags' do
|
94
94
|
allow(git).to receive(:remotes).and_return([])
|
95
95
|
allow(git).to receive(:exec)
|
96
|
-
|
96
|
+
.with('git fetch --all')
|
97
97
|
allow(git).to receive(:exec)
|
98
|
-
|
98
|
+
.with('git diff bar/foo --flag --other').and_return(0)
|
99
99
|
git.diff_remote 'foo', 'bar', %w(--flag, --other)
|
100
100
|
end
|
101
101
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: singularity_dsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chr0n1x
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|