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 +4 -4
- data/lib/silica/cli.rb +2 -1
- data/lib/silica/version.rb +1 -1
- data/template/project/bin/console +19 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8c256dceeea8dd0ede4ac3f51cf9c915d7c635f
|
4
|
+
data.tar.gz: 98fdffba28cf61d7388a66fd82a9e529389e6ba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61ccc092321e2244357dd9267fa0f60795c7da63d4bcd321e245b1bc063cbf550943d7e2d0d10807c0132be61ca403c468ade1f083b9c06811c207d1602313f5
|
7
|
+
data.tar.gz: ef514a8a292c1145d883ad7be5efe5515e92f6461672e780eadadeeb934d0501066f4f8d893b0d94ba7d63b3d4d8c0d960cebb145abeee7764c4660ac176681e
|
data/lib/silica/cli.rb
CHANGED
@@ -9,9 +9,10 @@ module Silica
|
|
9
9
|
def new(name)
|
10
10
|
puts "Create new project '#{name}'"
|
11
11
|
|
12
|
-
FileUtils.mkdir
|
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
|
|
data/lib/silica/version.rb
CHANGED
@@ -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.
|
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-
|
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
|