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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d3b3ef2e9546e2767dbc32fc11ea4d3f500e39b
4
- data.tar.gz: db178ccd1aff7cc7e2f2b17b3bd65c95f3949279
3
+ metadata.gz: c43f0f8811b0fe987f07fd4aea464fbc653b31f3
4
+ data.tar.gz: 1ec732e30a776b2fa578769cd881095900f52d77
5
5
  SHA512:
6
- metadata.gz: 598abc9b2d4df75dcfa9e841667fd68cb4745d73b77e50d9427c4e29bc86e5bc82568d4c6336d2f1720f6caae75d4c735641b138613fa525c8bc96c99dc065b1
7
- data.tar.gz: 99f28b17ee7045ffb0bbcf24f13ec84b292e67fea52ac381cef3bd3ff086059631927a48ad2086f4318de6953fcef1311921db77b8dcc7df9056d1c0d4260f58
6
+ metadata.gz: 391393e1f98760948fa915afc5d440e72a44462ecfce2c3e12071bedb7b149d62a4b176c0a57df326c3c114c56f2a564eb0c53a8c9bed7ffa47d676b43992893
7
+ data.tar.gz: 2c32aa599833c864cdd3f25a1dfd40aacf9b7470779caa63aaefdd984e14ed3fea60a9441262d34133d826c31e00228b9ed3499838c27833effb12e4204d80cd
@@ -1,7 +1,7 @@
1
1
  module Blueprint
2
2
  module Generators
3
3
  module Rails
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
6
6
  end
7
7
  end
@@ -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
- git_remotes = `git remote show origin | grep 'Fetch URL: ' 2>&1`
193
- repo_url = git_remotes.match(/Fetch URL: (.*).git/).try(:captures)
194
- print_debug step_count, "! #{repo_url}"
195
- remote_origin_found = !repo_url.empty?
196
- if remote_origin_found
197
- repo_url = repo_url[0]
198
- print_debug step_count, "Remote repository URL is #{repo_url}"
199
- else
200
- print_debug step_count, 'No remote repository URL found'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blueprint-generators-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - benjii