paperwork 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/paperwork/tasks/document.rb +14 -15
- data/lib/paperwork/tasks/template.rb +7 -7
- data/lib/paperwork/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e485a22660790291fb8fc471ef6bbec18c5e8ef50bdebf8cbfac4fd5b90f1ebd
|
4
|
+
data.tar.gz: b275c2b329f53ca0c8584a596418c924183906a4df0cdedbb528ecb993024655
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6331130f7d21e226dd7021ff8fd94823d98f518fe93f373329247a3a09fb4b7564f6338001df33aa48666fe145fd22a4a0b8b3836e34e4c55bb21a928b93b89e
|
7
|
+
data.tar.gz: 8d02e0938cbae8cf07448d829edafeb3385d8b794f32310c8b8d335f15ee667c99c2fb27c098c64ddf5c769f2aa33b2a4b18a9c29492597b4c6c3268586581f8
|
data/Gemfile.lock
CHANGED
@@ -68,17 +68,16 @@ module Paperwork
|
|
68
68
|
task self.name => self.dependencies do
|
69
69
|
verbose_flag = Paperwork::Config[:verbose] ? " --verbose" : ""
|
70
70
|
Dir.chdir(self.dir) do
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
out: :out,
|
75
|
-
|
76
|
-
|
77
|
-
)
|
71
|
+
cmd = "bundle exec middleman build#{verbose_flag}"
|
72
|
+
if defined? Bundler
|
73
|
+
Bundler.with_unbundled_env do
|
74
|
+
Process.spawn(cmd, out: :out, in: :in, err: :err)
|
75
|
+
end
|
76
|
+
else
|
77
|
+
Process.spawn(cmd, out: :out, in: :in, err: :err)
|
78
78
|
end
|
79
79
|
Process.waitall
|
80
80
|
end
|
81
|
-
|
82
81
|
puts
|
83
82
|
puts "...Done!"
|
84
83
|
puts "build artifacts are located in #{File.join(self.dir, "build")}"
|
@@ -109,13 +108,13 @@ module Paperwork
|
|
109
108
|
desc "start middleman server for editing documents and get visual feedback with live reload"
|
110
109
|
task server: :build do
|
111
110
|
Dir.chdir(self.dir) do
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
out: :out,
|
116
|
-
|
117
|
-
|
118
|
-
)
|
111
|
+
cmd = "bundle exec middleman server"
|
112
|
+
if defined? Bundler
|
113
|
+
Bundler.with_unbundled_env do
|
114
|
+
Process.spawn(cmd, out: :out, in: :in, err: :err)
|
115
|
+
end
|
116
|
+
else
|
117
|
+
Process.spawn(cmd, out: :out, in: :in, err: :err)
|
119
118
|
end
|
120
119
|
puts
|
121
120
|
puts "+---------------------------------------------------------------+"
|
@@ -28,13 +28,13 @@ module Paperwork
|
|
28
28
|
directory self.name => self.dependencies do
|
29
29
|
cp_r template, self.dir
|
30
30
|
Dir.chdir(self.dir) do
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
out: :out,
|
35
|
-
|
36
|
-
|
37
|
-
)
|
31
|
+
cmd = "bundle install --path=../.bundle/gems --jobs 8 --without test development"
|
32
|
+
if defined? Bundler
|
33
|
+
Bundler.with_unbundled_env do
|
34
|
+
Process.spawn(cmd, out: :out, in: :in, err: :err)
|
35
|
+
end
|
36
|
+
else
|
37
|
+
Process.spawn(cmd, out: :out, in: :in, err: :err)
|
38
38
|
end
|
39
39
|
Process.spawn("yarn install", out: :out, in: :in, err: :err)
|
40
40
|
Process.waitall
|
data/lib/paperwork/version.rb
CHANGED