silica 0.1.3 → 0.1.5

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
  SHA1:
3
- metadata.gz: 1d893c4274715aab16c095d5c6903fd95fca9989
4
- data.tar.gz: 5508c59a37c890dadea6cb2e9597580b6c4c01cd
3
+ metadata.gz: e8c256dceeea8dd0ede4ac3f51cf9c915d7c635f
4
+ data.tar.gz: 98fdffba28cf61d7388a66fd82a9e529389e6ba2
5
5
  SHA512:
6
- metadata.gz: cc70d13dbb9eea354e16f1614185e30fff6e83de286c7dd80027ead1429ce1f487eb14bd18e11b5ae83cd27549c4909971f34f17d1285b4fa999eb86aeb1b5c1
7
- data.tar.gz: 349effde1014588db720aa92cc58f8a34837c7fc0285986927c91bf8221de02a7eaf97c0d07ff736e6f992922d1d3be85ff53c39485ac72ac38d4992f469509f
6
+ metadata.gz: 61ccc092321e2244357dd9267fa0f60795c7da63d4bcd321e245b1bc063cbf550943d7e2d0d10807c0132be61ca403c468ade1f083b9c06811c207d1602313f5
7
+ data.tar.gz: ef514a8a292c1145d883ad7be5efe5515e92f6461672e780eadadeeb934d0501066f4f8d893b0d94ba7d63b3d4d8c0d960cebb145abeee7764c4660ac176681e
@@ -9,9 +9,10 @@ module Silica
9
9
  def new(name)
10
10
  puts "Create new project '#{name}'"
11
11
 
12
- FileUtils.mkdir name
12
+ Dir.exist?(name) or FileUtils.mkdir(name)
13
13
  dir = Dir.new(__dir__+'/../../template/project')
14
14
  dir.each do |file|
15
+ next if file == '..'
15
16
  FileUtils.cp_r(dir.path + '/' + file, name)
16
17
  end
17
18
 
@@ -1,3 +1,3 @@
1
1
  module Silica
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.5'
3
3
  end
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+
5
+ require 'menilite'
6
+ require 'sinatra/activerecord'
7
+
8
+ Dir[File.expand_path('../../app/models/', __FILE__) + '/**/*.rb'].each {|file| require(file) }
9
+ Dir[File.expand_path('../../app/controllers/', __FILE__) + '/**/*.rb'].each {|file| require(file) }
10
+
11
+ # You can add fixtures and/or initialization code here to make experimenting
12
+ # with your gem easier. You can also use a different console, if you like.
13
+
14
+ # (If you use this, don't forget to add pry to your Gemfile!)
15
+ # require "pry"
16
+ # Pry.start
17
+
18
+ require "irb"
19
+ IRB.start
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: silica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - youchan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-06 00:00:00.000000000 Z
11
+ date: 2016-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -100,6 +100,7 @@ files:
100
100
  - template/project/app/application.rb
101
101
  - template/project/app/controllers/application_controller.rb
102
102
  - template/project/assets/css/application.scss
103
+ - template/project/bin/console
103
104
  - template/project/config.ru
104
105
  - template/project/config/database.yml
105
106
  - template/project/server.rb