architecture-js 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/architecture-js.gemspec +1 -1
- data/lib/architecture-js/generator.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.6
|
data/architecture-js.gemspec
CHANGED
@@ -48,12 +48,12 @@ module ArchitectureJS
|
|
48
48
|
filename = "#{config[:filename]}#{@templates[template][:ext]}"
|
49
49
|
|
50
50
|
generate_file(filename, render_template(template, filename, arguments, options))
|
51
|
-
puts ArchitectureJS::Notification.added "#{filename} #{template} added"
|
52
51
|
end
|
53
52
|
|
54
53
|
def generate_file(filename, template, path = nil)
|
55
54
|
path ||= File.expand_path(Dir.getwd)
|
56
55
|
File.open("#{path}/#{filename}", "w+") { |f| f.write template }
|
56
|
+
puts ArchitectureJS::Notification.added "#{filename} #{template} added" if File.exists("#{path}/#{filename}")
|
57
57
|
end
|
58
58
|
|
59
59
|
def render_template(template, filename, arguments, options)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: architecture-js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -272,7 +272,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
272
272
|
version: '0'
|
273
273
|
segments:
|
274
274
|
- 0
|
275
|
-
hash:
|
275
|
+
hash: -2075971460209142801
|
276
276
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
277
277
|
none: false
|
278
278
|
requirements:
|