ufo 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/ufo/upgrade3.rb +9 -0
- data/lib/ufo/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: 82ae766d7898605cd34a3c649d78b9b09167032da7671f2b96c2d48a9f399869
|
4
|
+
data.tar.gz: 071b075649fad43445e648212f5f0757b9f3fb8dbf26a8ffd66edb636f6cdcc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 342dc28256785eaf52a64e86dbf1a3f8287e5297697ab69dbf864ca61846089491a87d77cec1e4998708a2a26a6e05c2f17973cb2f93499355fc56e28e1582e8
|
7
|
+
data.tar.gz: 71f1508d882070f67a7b10b3088cd98a522f37897891beeec2202943eee55826856c3189541a6db1cb31c92d4a9eade3abbbe4b1e1c00397f55012fcbcf07d1a
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [3.1.2]
|
7
|
+
- upgrade3 updates .gitignore also
|
8
|
+
|
6
9
|
## [3.1.1]
|
7
10
|
- actually use the cluster value in settings
|
8
11
|
- upgrade variables path also #20
|
data/lib/ufo/upgrade3.rb
CHANGED
@@ -26,12 +26,21 @@ module Ufo
|
|
26
26
|
end
|
27
27
|
|
28
28
|
upgrade_variables
|
29
|
+
upgrade_gitignore
|
29
30
|
|
30
31
|
mv("ufo", ".ufo")
|
31
32
|
puts "Upgrade complete."
|
32
33
|
new_env_info
|
33
34
|
end
|
34
35
|
|
36
|
+
def upgrade_gitignore
|
37
|
+
lines = IO.readlines(".gitignore")
|
38
|
+
text = lines.map do |line|
|
39
|
+
line.sub(/[\/]?ufo/, '.ufo')
|
40
|
+
end.join
|
41
|
+
IO.write(".gitignore", text)
|
42
|
+
end
|
43
|
+
|
35
44
|
def upgrade_variables
|
36
45
|
upgrade_variable_path("dev")
|
37
46
|
upgrade_variable_path("stag")
|
data/lib/ufo/version.rb
CHANGED