blueprint-generators-rails 0.2.6 → 0.2.7

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: 3fb8258b57568556bb746776bf78dd46f4664dc5
4
- data.tar.gz: b66585bf797629728c7342efb264a3a2c2b1098c
3
+ metadata.gz: 84207239952b0a1f1e8e7c976acd12fb212c1e5b
4
+ data.tar.gz: a39cbd7a2fca6781c32143dbd3c509f707a5bece
5
5
  SHA512:
6
- metadata.gz: b4742ca621750fed5a2e91750c610620dfe962348ca4f9893caccd312f818deb2cb159e2f7048273ef08d03327430878fbca55f9e7e23f8f55a714b6d1346e53
7
- data.tar.gz: 137dfe20f43c6b16681c82d469d7db145d567b5d9e49395edc5bfc75101d8697b81577f311988194cad23cec22f27b30bfa34e93dcf3465aed942bcc9ba16638
6
+ metadata.gz: ab6de7de8339559e3ec3976f96776b173e6b004b90eb76ce4342b57da67e819db2053ee36fef939d4edef430831f395bb817b85eda7306b8546819a784b1693f
7
+ data.tar.gz: cf1be1b30c279293c78fbd50b8629a31016cb5dcb4fd07516ff05ba6de52442b934d2e65d2eb3a66f12264f8fa2b6802780966e8cc668d696bdbe54b5b156373
@@ -1,7 +1,7 @@
1
1
  module Blueprint
2
2
  module Generators
3
3
  module Rails
4
- VERSION = '0.2.6'
4
+ VERSION = '0.2.7'
5
5
  end
6
6
  end
7
7
  end
@@ -18,6 +18,36 @@ namespace :blueprint do
18
18
 
19
19
  @debug = false
20
20
 
21
+ desc 'Scans a repository for .blueprint files, extracts the contents, and passes back to the caller'
22
+ task :scan, :root_dir, :debug do |t, args|
23
+ root_dir = args[:root_dir] || '.'
24
+ @debug = args[:debug]
25
+
26
+ if @debug
27
+ puts "Debug mode #{@debug}"
28
+ puts "Root directory for analysis is: #{root_dir}"
29
+ end
30
+
31
+ # for debugging purposes
32
+ step_count = 1
33
+
34
+ # find the remote git repository name (so that we can link to it directly in our diagrams)
35
+ repo_url = determine_remote_repository root_dir
36
+ remote_origin_found = repo_url.present?
37
+
38
+ print_debug step_count, remote_origin_found ? "Remote repository URL is #{repo_url}" : 'No remote repository URL found'
39
+
40
+ pogos = [ ]
41
+
42
+ Dir.chdir(root_dir) do
43
+ Dir.glob('**/*.blueprint').each { |f|
44
+ pogos << File.open(f).read
45
+ }
46
+ end
47
+
48
+ self.print_results pogos
49
+ end
50
+
21
51
  desc 'Generate Concept States diagrams for the current Rails project (requires use of semantic tags)'
22
52
  task :states, :root_dir, :debug do |t, args|
23
53
  root_dir = args[:root_dir] || '.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blueprint-generators-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - benjii
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-23 00:00:00.000000000 Z
11
+ date: 2016-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler