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 CHANGED
@@ -1 +1 @@
1
- 0.3.5
1
+ 0.3.6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "architecture-js"
8
- s.version = "0.3.5"
8
+ s.version = "0.3.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dayton Nolan"]
@@ -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.5
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: 1658397872561961321
275
+ hash: -2075971460209142801
276
276
  required_rubygems_version: !ruby/object:Gem::Requirement
277
277
  none: false
278
278
  requirements: