rails-dev-tools 1.2.1 → 1.2.3
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/lib/dev/project.rb +2 -3
- data/lib/dev/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: d92a009aa50d1d0690813db85126f72f2707fc8739398bcb77c56e5539abf6c1
|
|
4
|
+
data.tar.gz: 7bf830f4d0c5c342a7ea39822072af046c403264ae7bc734d1d914153f6d00f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea092367fcdae9a535a9e7bc2554de95d326e68aeeaedfdbec3565e2d59d63521962cf2d519fb15f6a4f6ff19dff86dd9cd6195fea4fa1ef4cf0cf1a6099ecab
|
|
7
|
+
data.tar.gz: aeb58635c3be62534b0c6a6cf74c48490eec2734fefb1055b05b1657ee00ed83a2c0bf2c1e1fbbcbb3b68ffe078d07f69b524964185bf0d01a013d08cf1f43a7
|
data/lib/dev/project.rb
CHANGED
|
@@ -90,8 +90,8 @@ module Dev
|
|
|
90
90
|
#
|
|
91
91
|
# @return [String] il file di versione dell'app.
|
|
92
92
|
def app_version_file(app_name = self.current_app)
|
|
93
|
-
Dir.glob("#{app_folder(app_name)}/lib/**/version.rb").
|
|
94
|
-
|
|
93
|
+
Dir.glob("#{app_folder(app_name)}/lib/**/version.rb").min_by do |filename|
|
|
94
|
+
filename.chars.count
|
|
95
95
|
end
|
|
96
96
|
end
|
|
97
97
|
|
|
@@ -103,7 +103,6 @@ module Dev
|
|
|
103
103
|
#
|
|
104
104
|
# @return [String] la versione dell'app.
|
|
105
105
|
def app_version(app_name = self.current_app)
|
|
106
|
-
chdir_app(app_name)
|
|
107
106
|
if File.exists? app_version_file(app_name).to_s
|
|
108
107
|
File.read(app_version_file(app_name))
|
|
109
108
|
.match(/VERSION = '([0-9\.]+)'\n/)
|
data/lib/dev/version.rb
CHANGED