simple-datatable 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ae017add1485f1d27addbb38987d6248ebdf6b3f34300ca4eec66b67cce04fe
4
- data.tar.gz: b15f26ee3c907bb0c9018749d4783864dbb7fafbef006ce652819292cc509644
3
+ metadata.gz: 6546720f990be32ef557c2db9e4d4b311a85c31a3afe7c3053d5673ad180ee36
4
+ data.tar.gz: a8d92d1c1da51150d823313c8ac93f2f78e84f96ac5c822d7c90cec52094ebb1
5
5
  SHA512:
6
- metadata.gz: d841027417996a1b12e8bcff666b66a77694b20c532a92797b52017409f34594914aed6883a069cea143ca697ff0e4ebe43b9c7cc3ea17c7769edb702681c223
7
- data.tar.gz: 9522b5a65d164bfbebcc1dcdb4b2167238bea34743fbfd782ed03348771a62a4a8107a502ddd0121071eade82ed39aec2fa3d45fb4d1ff3ca82320be9890718d
6
+ metadata.gz: fca861d0c1fc1e2dec43980bdf5baae3b708ce7104b81d3477e4870a6eb05226aa533fe048d96842d8ff55e5192db82d62fcc0cc7d03fabe8bb969cfcbc10818
7
+ data.tar.gz: df26f00ff3eb2730d94e054167dd111f627c849599023e04b39574767288ce47a7d86bf28e57705ad58ccf168ac220f35a8355cbb128220ba39c109fde9afa1a
@@ -26,6 +26,7 @@ module Datatable
26
26
  end
27
27
 
28
28
  def create_principal
29
+ return if File.exist?("#{@dirname}/application_datatable.rb")
29
30
  result = generate_template('application_datatable.erb')
30
31
  puts result
31
32
  File.open("#{@dirname}/application_datatable.rb", 'w') { |file| file.write(result) }
@@ -33,6 +34,10 @@ module Datatable
33
34
  end
34
35
 
35
36
  def create_file
37
+ if File.exist?("#{@dirname}/#{@name.downcase}_datatable.rb")
38
+ puts "Ya existe el archivo: #{@dirname}/#{@name.downcase}_datatable.rb, intenta con otro nombre"
39
+ return
40
+ end
36
41
  result = generate_template('template_datatable.erb')
37
42
  puts result
38
43
  File.open("#{@dirname}/#{@name.downcase}_datatable.rb", 'w') { |file| file.write(result) }
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = %q{simple-datatable}
3
- spec.version = "0.0.5"
3
+ spec.version = "0.0.6"
4
4
  spec.date = %q{2019-11-24}
5
5
  spec.summary = %q{awesome_gem is the best datatable Rails Gem}
6
6
  spec.authors = ["DevTeam AppTec"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-datatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - DevTeam AppTec