autogen_sindb 0.1.1 → 0.1.2

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: 29e04bf93b59d2a892136e66c9a082591a04516b8c9bb2157e62e9b2c63754a3
4
- data.tar.gz: 0e6ff0c5587ef227cdf0d5e979a863a278557bfbd5a3bdda005338b66c4afc2d
3
+ metadata.gz: 213cee4df03453dd3e3a953d76604c43dff3e9b483286565e5f5d41a2b124000
4
+ data.tar.gz: 9a4a34f5a352750596e116a1aee82c1a7264e57ffbb77b964a91a1eb8c9d23fd
5
5
  SHA512:
6
- metadata.gz: 4ed5e97d2d6d4ab0e053cfde4e014385b8c29846fe37918a4feae844928b5c75bc378b1c2a6d59f5477815e860c45c421cec8a58c03182478ae955ed1cfaa513
7
- data.tar.gz: 1b67c48c31f63831c4555d283b9bc4e7e6031a2cb725a25ae8388596aaacaced25cdb81e3d78aa6fcc095c50e16e144a6be46b20950baaa3dc0beab45901c253
6
+ metadata.gz: df345e83f280b44b793673d8a76f0596158c084ba5fb9536b083d25edf2179d14576a6df792a9298ca79687a96e4106eb58a60481e657ad3668fb20cc7e469b5
7
+ data.tar.gz: 289128ead3a771ed8b6e1c85e66b02e3af76bfc8605359fc1827e91f70931a907627620b42dee2999be689f159dba23475195944fd13f660193a4bf3249569c0
@@ -13,9 +13,7 @@ class SinatrabaseFs::StructureMe
13
13
  end
14
14
 
15
15
  def make_dirs
16
- curr_dir = Dir.pwd
17
-
18
- FileUtils.cd(curr_dir) do |dir|
16
+ FileUtils.cd(Dir.pwd) do |dir|
19
17
  %w(app app/controllers app/models app/views config public public/css public/images public/js db/migrate spec).each do |directory|
20
18
  FileUtils.mkdir_p(directory)
21
19
  end
@@ -63,7 +61,7 @@ class SinatrabaseFs::StructureMe
63
61
  def write_to_config_ru
64
62
  FileUtils.cd(Dir.pwd) do |dir|
65
63
  file = File.open("config.ru", 'w')
66
- file.puts "require './config/environment'\n\nbegin\n\tfi_check_migration\n\n\tuse Rack::MethodOverride\n\n\trun ApplicationController # or whatever the app controller module/class name you want eg. App\nrescue ActiveRecord::PendingMigrationError => err\n\tSTDERR.puts err\n\texit 1\nend"
64
+ file.puts "require './config/environment'\n\nbegin\n\tfi_check_migration\n\n\tuse Rack::MethodOverride\n\n\trun App # or whatever the app controller module/class name you want eg. ApplicationController\nrescue ActiveRecord::PendingMigrationError => err\n\tSTDERR.puts err\n\texit 1\nend"
67
65
  file.close
68
66
  end
69
67
  end
@@ -84,4 +82,4 @@ class SinatrabaseFs::StructureMe
84
82
  end
85
83
  end
86
84
 
87
- end
85
+ end
@@ -1,3 +1,3 @@
1
1
  module SinatrabaseFs
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autogen_sindb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naya Willis