usmu 0.3.3-java → 0.3.4-java
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 +18 -8
- data/lib/usmu/deployment/directory_diff.rb +3 -3
- data/lib/usmu/version.rb +1 -1
- data/spec/deployment/directory_diff_spec.rb +9 -0
- 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: fd837a0bd2268a8c59adea7a23b73a98bcc63cc6
|
4
|
+
data.tar.gz: dcd4850e8638d73f485fd9201d7f7041bcf85be5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc9b2c0be7428ba30b892db0321fa80763016e5e6d7b18633048ca12f83959ade1193f2382b0eecf2880241993744a57428335afe5083fa3f14b91179533df25
|
7
|
+
data.tar.gz: ee271e9654c2ade75d048def639c71e98b722ab8221eed83a9e8509832489fe8193958126b5d2e4417246217c83596f3e17e09692b8b4cc5330a99d618f27e7d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Usmu Change Log
|
2
2
|
|
3
|
+
## 0.3.4
|
4
|
+
|
5
|
+
Matthew Scharley <matt.scharley@gmail.com>
|
6
|
+
|
7
|
+
* Don't allow directories in DirectoryDiff#local_files_list (e33c689c99673c975fe5f78082bb4022d3c79939)
|
8
|
+
|
3
9
|
## 0.3.3
|
4
10
|
|
5
11
|
Matthew Scharley <matt.scharley@gmail.com>
|
@@ -7,16 +13,16 @@ Matthew Scharley <matt.scharley@gmail.com>
|
|
7
13
|
* Disallow mutant on 2.2 (f6afd151d54c8fefb6a9af68a7cea1bae8f32265)
|
8
14
|
* Cleanup gem builds to use the same gemspec (48cce89d6936e0b0668bf9714989d786ac573aaf)
|
9
15
|
* Cleanup Travis since we don't need includes (as much) (8453421218e0b63755bccae6b2e01754225bbe7a)
|
10
|
-
*
|
16
|
+
* Add a minimum Ruby requirement (c90711ac1e41c8a9973e987aa308a88c951e05dc)
|
11
17
|
* Hopefully fix rbx (e6a51d07986b4347394ae3b571bb6b2a16ad1db3)
|
12
|
-
*
|
13
|
-
* [#15][#16] Add an example of directory metadata and static parsing (b369fdde02a5b7c25f60e86fabc248a448b68b19)
|
14
|
-
* [#15] Add directory metadata (66dd094ffdcafb8ecced06a9ad7c578b64885689)
|
15
|
-
* [#16] add a metadata value to force static parsing (02dc5794f9dc3efc2655d375cd2dd17c45e8cea7)
|
18
|
+
* minor cleanup (662e0e6e82aa01fe0883e794dc9fea0407dfdadc)
|
19
|
+
* [\[#15\]][GH-15][\[#16\]][GH-16] Add an example of directory metadata and static parsing (b369fdde02a5b7c25f60e86fabc248a448b68b19)
|
20
|
+
* [\[#15\]][GH-15] Add directory metadata (66dd094ffdcafb8ecced06a9ad7c578b64885689)
|
21
|
+
* [\[#16\]][GH-16] add a metadata value to force static parsing (02dc5794f9dc3efc2655d375cd2dd17c45e8cea7)
|
16
22
|
* Fix minor regression from #15 (e179fd27d133d647d7025d82a697e6d1f202224b)
|
17
|
-
* [#21] Add some ignored classes for mutant (0bf4a328e6aebf87ed489bcf3d6f19ea111fa95e)
|
18
|
-
* [#21] Cover Usmu::Deployment::DirectoryDiff (d4836b1ddb950223786e35b024e2692e106a2c41)
|
19
|
-
* [#18] Initialise logging before commander (6117299b6303b54249c06d894e074cbb437623c2)
|
23
|
+
* [\[#21\]][GH-21] Add some ignored classes for mutant (0bf4a328e6aebf87ed489bcf3d6f19ea111fa95e)
|
24
|
+
* [\[#21\]][GH-21] Cover Usmu::Deployment::DirectoryDiff (d4836b1ddb950223786e35b024e2692e106a2c41)
|
25
|
+
* [\[#18\]][GH-16] Initialise logging before commander (6117299b6303b54249c06d894e074cbb437623c2)
|
20
26
|
|
21
27
|
## 0.3.2
|
22
28
|
|
@@ -188,4 +194,8 @@ Matthew Scharley <matt.scharley@gmail.com>
|
|
188
194
|
[GH-12]: https://github.com/usmu/usmu/issues/12
|
189
195
|
[GH-13]: https://github.com/usmu/usmu/issues/13
|
190
196
|
[GH-14]: https://github.com/usmu/usmu/issues/14
|
197
|
+
[GH-15]: https://github.com/usmu/usmu/issues/15
|
198
|
+
[GH-16]: https://github.com/usmu/usmu/issues/16
|
191
199
|
[GH-17]: https://github.com/usmu/usmu/issues/17
|
200
|
+
[GH-18]: https://github.com/usmu/usmu/issues/18
|
201
|
+
[GH-21]: https://github.com/usmu/usmu/issues/21
|
@@ -58,9 +58,9 @@ module Usmu
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def local_files_list
|
61
|
-
Dir[@configuration.destination_path + '/**/{*,.??*}'].
|
62
|
-
|
63
|
-
|
61
|
+
Dir[@configuration.destination_path + '/**/{*,.??*}'].
|
62
|
+
select {|f| not File.directory? f }.
|
63
|
+
map {|f| f[(@configuration.destination_path.length + 1), f.length]}
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
data/lib/usmu/version.rb
CHANGED
@@ -108,5 +108,14 @@ RSpec.describe Usmu::Deployment::DirectoryDiff do
|
|
108
108
|
|
109
109
|
expect(diff.send :local_files_list).to eq(%w{index.html})
|
110
110
|
end
|
111
|
+
|
112
|
+
it 'doesn\'t return directories listed in the output directory' do
|
113
|
+
expect(Dir).to receive(:[]).with('site/**/{*,.??*}').and_return(%w{site/assets site/assets/test.css site/index.html})
|
114
|
+
allow(File).to receive(:directory?).and_return(false)
|
115
|
+
expect(File).to receive(:directory?).with('site/assets').and_return(true)
|
116
|
+
diff = Usmu::Deployment::DirectoryDiff.new(configuration, nil)
|
117
|
+
|
118
|
+
expect(diff.send :local_files_list).to eq(%w{assets/test.css index.html})
|
119
|
+
end
|
111
120
|
end
|
112
121
|
end
|