dsu 3.0.0.alpha.10 → 3.0.0.alpha.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce84d173477ceb44ac5b67381021a90a9cb58a3932eb96495c61a5b19d28d933
4
- data.tar.gz: adf82c4687ea359e0a413d3cc4831eac00ae104e170aa9d6f0ecff5601df7f04
3
+ metadata.gz: 74b0eee10983a1ccd33981f635c7bc267dd8db84cfe8496c39fa5386c57096d2
4
+ data.tar.gz: f65368dfbb2de3512a73f766f82958de92255e4a72b3e5f58389d0db2ccd86ad
5
5
  SHA512:
6
- metadata.gz: 83f99ee53f3b636199574b70b54a922c9930e48a97fd86ad1eb164fd1737a420d32f77b202d1c7a3bf7cca14f03a16e61da3c728cda3a6b1bc9a2cc88f3839d9
7
- data.tar.gz: 8ef49bdfa10fe384e417bff98395dfb702c043c3b203b2a92520af6b062975e7ad32bf1e81d6a3c094cb7499497683e5d11df237dd7aa64f58bad15445cb6653
6
+ metadata.gz: 9c91fa9f3916538d244ffca9456ea089a258fb0701f182d6e40e0fad5c51deec986ac0835e611a3b042cf8c0dc84b27b0a7175a388a9ed38ee34bc34de0a865d
7
+ data.tar.gz: 940939975bb206402a13f5c4b1dd8a9f0308fe787fada7e0d59e70a6769eeb960755fd3d4aba7aa480b45cdf9a4c837dfda5382b284c7e5bbb4631d98d4f01ef
@@ -38,7 +38,6 @@ module Dsu
38
38
  update_color_themes
39
39
  update_migration_version
40
40
  delete_old_entry_folder
41
- delete_old_theme_folder
42
41
 
43
42
  puts 'Migration completed successfully.'
44
43
  end
@@ -88,7 +87,12 @@ module Dsu
88
87
  puts 'Updating configuration...'
89
88
  puts
90
89
 
91
- Models::Configuration.new.write! unless pretend?
90
+ return if pretend?
91
+
92
+ Models::Configuration.new.tap do |configuration|
93
+ configuration.version = Dsu::Migration::VERSION
94
+ configuration.write!
95
+ end
92
96
  end
93
97
 
94
98
  def update_entry_groups
@@ -151,13 +155,6 @@ module Dsu
151
155
  FileUtils.rm_rf(File.join(dsu_folder, 'entries')) unless pretend?
152
156
  end
153
157
 
154
- def delete_old_theme_folder
155
- puts 'Cleaning up old themes...'
156
- puts
157
-
158
- FileUtils.rm_rf(File.join(dsu_folder, 'themes')) unless pretend?
159
- end
160
-
161
158
  def backup_folder
162
159
  @backup_folder ||= File.join(root_folder, "dsu-#{target_migration_version}-backup")
163
160
  end
data/lib/dsu/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Dsu
4
4
  VERSION_REGEX = /\A\d+\.\d+\.\d+(\.(alpha|rc)\.\d+)?\z/
5
- VERSION = '3.0.0.alpha.10'
5
+ VERSION = '3.0.0.alpha.12'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dsu
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.alpha.10
4
+ version: 3.0.0.alpha.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gene M. Angelo, Jr.