phobos_checkpoint_ui 1.3.1 → 1.3.2
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/CHANGELOG.md +4 -0
- data/lib/phobos_checkpoint_ui/tasks.rb +7 -6
- data/lib/phobos_checkpoint_ui/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe78d29bcf1021702a7bb5044d4bae6041583562
|
4
|
+
data.tar.gz: 47c50988ffce0153cbd940db2413c0fed3e9d3f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f98e342a6bf3a6b6ed8d331d0add5a61a6b3b5c37f2cb311bde4e0e74c7330ecf4a5996b2f5352bf10250d7a69c970105f9ec2746d9999bf39a0a81237980041
|
7
|
+
data.tar.gz: f6762756515c84118b002e8f6374bb6540807324f0c564bec0fdafb070765dc37b7f8d4b2bc4db2e3994b1f7306d0417aef60bbe748c9aaa0b046718e1ea41f5
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
## 1.3.2 (2017-03-17)
|
8
|
+
|
9
|
+
- [enhancement] Change slightly how copy_assets task work so it doesn't wipe the public folder entirely
|
10
|
+
|
7
11
|
## 1.3.1 (2017-03-16)
|
8
12
|
|
9
13
|
- [bugfix] Fix bug when failure count is zero
|
@@ -8,12 +8,13 @@ module PhobosCheckpointUI
|
|
8
8
|
namespace :phobos_checkpoint_ui do
|
9
9
|
desc 'Copy Assets to ./public folder. It creates the folder if it doesn\'t exist'
|
10
10
|
task :copy_assets do
|
11
|
-
|
12
|
-
assets = File.
|
13
|
-
|
14
|
-
FileUtils.
|
15
|
-
FileUtils.
|
16
|
-
FileUtils.
|
11
|
+
public = File.join(Dir.pwd, 'public')
|
12
|
+
assets = File.join(Dir.pwd, 'public', 'assets')
|
13
|
+
content = File.expand_path(File.join(File.dirname(__FILE__), '../../assets'))
|
14
|
+
FileUtils.rm_rf(assets)
|
15
|
+
FileUtils.mkdir_p(assets)
|
16
|
+
FileUtils.cp_r(content, public)
|
17
|
+
FileUtils.mv(File.join(assets, 'index.html'), File.join(public, 'index.html'))
|
17
18
|
end
|
18
19
|
end
|
19
20
|
end
|