blueprint-generators-rails 0.2.1 → 0.2.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/lib/blueprint/generators/rails/version.rb +1 -1
- data/lib/tasks/blueprint.rake +17 -10
- 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: c43f0f8811b0fe987f07fd4aea464fbc653b31f3
|
4
|
+
data.tar.gz: 1ec732e30a776b2fa578769cd881095900f52d77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 391393e1f98760948fa915afc5d440e72a44462ecfce2c3e12071bedb7b149d62a4b176c0a57df326c3c114c56f2a564eb0c53a8c9bed7ffa47d676b43992893
|
7
|
+
data.tar.gz: 2c32aa599833c864cdd3f25a1dfd40aacf9b7470779caa63aaefdd984e14ed3fea60a9441262d34133d826c31e00228b9ed3499838c27833effb12e4204d80cd
|
data/lib/tasks/blueprint.rake
CHANGED
@@ -189,17 +189,24 @@ namespace :blueprint do
|
|
189
189
|
end
|
190
190
|
|
191
191
|
# find the remote git repository name (so that we can link to it directly in our diagrams)
|
192
|
-
|
193
|
-
repo_url =
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
repo_url =
|
198
|
-
|
199
|
-
|
200
|
-
|
192
|
+
remote_origin_found = false
|
193
|
+
repo_url = nil
|
194
|
+
|
195
|
+
Dir.chdir(root_dir) do
|
196
|
+
git_remotes = `git remote show origin | grep 'Fetch URL: ' 2>&1`
|
197
|
+
repo_url = git_remotes.match(/Fetch URL: (.*).git/).try(:captures)
|
198
|
+
|
199
|
+
remote_origin_found = !repo_url.empty?
|
200
|
+
|
201
|
+
if remote_origin_found
|
202
|
+
repo_url = repo_url[0]
|
203
|
+
print_debug step_count, "Remote repository URL is #{repo_url}"
|
204
|
+
else
|
205
|
+
print_debug step_count, 'No remote repository URL found'
|
206
|
+
end
|
207
|
+
|
208
|
+
step_count += 1
|
201
209
|
end
|
202
|
-
step_count += 1
|
203
210
|
|
204
211
|
# otherwise continue analysis
|
205
212
|
Dir.chdir(root_dir + '/app/models') do
|