dply 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dply/bundle.rb +3 -19
- data/lib/dply/cli/depcheck.rb +0 -1
- data/lib/dply/pkgs.rb +1 -0
- data/lib/dply/rpm.rb +1 -1
- data/lib/dply/tasks.rb +4 -4
- data/lib/dply/todo +8 -0
- data/lib/dply/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a27626c1c463fe0d22f1c04e6a6b1e99206bed74
|
4
|
+
data.tar.gz: d50a1657f9e499c1569bd10b8844bc6e6a0a847e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5307fc6b0bbc8c62c6b4ad9cc58c80efc4bc6f6c2acfac941c47c00c03b46e3873bfd1e3e8c5ce6f1024d3edb5a93cb5eab16b7981b48ae65765d6d81016e7e
|
7
|
+
data.tar.gz: a9669bd763ca9a4efc2af3f48f73df7c8b475020a2197e78e8d01f73ee74a76bc17e94d1489024ae104f174a2d4a0838125f3561ecc9182640aeed75a6647906
|
data/lib/dply/bundle.rb
CHANGED
@@ -4,12 +4,9 @@ module Dply
|
|
4
4
|
|
5
5
|
include Helper
|
6
6
|
|
7
|
-
def
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
def install_test
|
12
|
-
install(without: ["development"])
|
7
|
+
def install
|
8
|
+
return if check
|
9
|
+
cmd "bundle install -j5 --deployment"
|
13
10
|
end
|
14
11
|
|
15
12
|
def rake(task, **args)
|
@@ -21,7 +18,6 @@ module Dply
|
|
21
18
|
end
|
22
19
|
|
23
20
|
def clean
|
24
|
-
bundle_without(without: ["development"])
|
25
21
|
cmd "bundle clean"
|
26
22
|
end
|
27
23
|
|
@@ -31,18 +27,6 @@ module Dply
|
|
31
27
|
system "bundle check > /dev/null"
|
32
28
|
end
|
33
29
|
|
34
|
-
def install(without:[])
|
35
|
-
#persists BUNDLE_WITHOUT config
|
36
|
-
bundle_without(without: without)
|
37
|
-
return if check
|
38
|
-
cmd "bundle install -j5 --deployment"
|
39
|
-
end
|
40
|
-
|
41
|
-
def bundle_without(without: [])
|
42
|
-
value = without.join(":")
|
43
|
-
cmd "bundle config --local without #{value}", return_output: true
|
44
|
-
end
|
45
|
-
|
46
30
|
def env
|
47
31
|
@env ||= begin
|
48
32
|
env = {}
|
data/lib/dply/cli/depcheck.rb
CHANGED
data/lib/dply/pkgs.rb
CHANGED
data/lib/dply/rpm.rb
CHANGED
@@ -23,7 +23,7 @@ module Dply
|
|
23
23
|
def whatprovides(lib)
|
24
24
|
lib = "#{lib}()(64bit)"
|
25
25
|
command = %(rpm --queryformat "%{NAME} " -q --whatprovides "#{lib}")
|
26
|
-
output = cmd command, return_output: true, shell: true
|
26
|
+
output = cmd command, return_output: true, shell: true, display: false
|
27
27
|
list = output.strip.split.select {|pkg| not filtered? pkg }
|
28
28
|
end
|
29
29
|
|
data/lib/dply/tasks.rb
CHANGED
@@ -11,22 +11,22 @@ module Dply
|
|
11
11
|
include Helper
|
12
12
|
|
13
13
|
def deploy(target)
|
14
|
-
bundle.
|
14
|
+
bundle.install
|
15
15
|
rake "#{target}:deploy"
|
16
16
|
end
|
17
17
|
|
18
18
|
def reload(target)
|
19
|
-
bundle.
|
19
|
+
bundle.install
|
20
20
|
rake "#{target}:reload"
|
21
21
|
end
|
22
22
|
|
23
23
|
def task(task)
|
24
|
-
bundle.
|
24
|
+
bundle.install
|
25
25
|
rake task
|
26
26
|
end
|
27
27
|
|
28
28
|
def build(task)
|
29
|
-
bundle.
|
29
|
+
bundle.install
|
30
30
|
bundle.clean
|
31
31
|
rake task
|
32
32
|
end
|
data/lib/dply/todo
ADDED
data/lib/dply/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dply
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neeraj
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- lib/dply/templates/build.erb
|
134
134
|
- lib/dply/templates/deploy.erb
|
135
135
|
- lib/dply/templates/pkgs.erb
|
136
|
+
- lib/dply/todo
|
136
137
|
- lib/dply/version.rb
|
137
138
|
- lib/dply/yum.rb
|
138
139
|
- lib/dplyr/cli.rb
|