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 +4 -4
- data/lib/blueprint/generators/rails/version.rb +1 -1
- data/lib/tasks/blueprint.rake +30 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84207239952b0a1f1e8e7c976acd12fb212c1e5b
|
|
4
|
+
data.tar.gz: a39cbd7a2fca6781c32143dbd3c509f707a5bece
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab6de7de8339559e3ec3976f96776b173e6b004b90eb76ce4342b57da67e819db2053ee36fef939d4edef430831f395bb817b85eda7306b8546819a784b1693f
|
|
7
|
+
data.tar.gz: cf1be1b30c279293c78fbd50b8629a31016cb5dcb4fd07516ff05ba6de52442b934d2e65d2eb3a66f12264f8fa2b6802780966e8cc668d696bdbe54b5b156373
|
data/lib/tasks/blueprint.rake
CHANGED
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2016-03-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|