fasta 0.1.0 → 0.1.1

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: bca369d2b0bc8525bee24ba440da8b1d9f45468620157bcfb457d3515c7a7fc7
4
- data.tar.gz: 2b9e3c263c59ca2a39d2eab7b3f03d7a1e6f93ee344b10ba5d63040f816f2710
3
+ metadata.gz: eac1a562caf536005ee9e27e13c7689c706662f7043be88841df97ee5afe9b65
4
+ data.tar.gz: 054a93bd53523370748f382526a2e1d86cd410d9e495a8f17a1fc655c38a1d55
5
5
  SHA512:
6
- metadata.gz: 378179c7b21f4369423802bfa52304fee408c59c79c7ed658a9e246dcc0a6a3ee56ea7de9dbd9e3b476c8bc17fd1ebd455ce74fa9eff79760a2e2ad79978f34f
7
- data.tar.gz: 433a8c4456650d360c99bbe190448a8a09be75cc49237dc6cc8430843dca4dcf229e9b7aad4f8024d0d01ef3f28122847c9fb7daf3d2b67213826b7a6b1e7d05
6
+ metadata.gz: 74537a638f40e10c215ed46692a471bbc5bfc13206ff306fce0fc839e4bb15844c7db06f99b75d6785e9ac71541085a497052610be002c95c592cd716c0beec3
7
+ data.tar.gz: 1bccd4b62df4690fb824c3c1bb48a540a762d16bf41a7ab119de20103855623078851361114f60df388bedb4f6096aff32a2a79776b28dfec521c60b03f0fcb4
data/exe/fasta CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "fasta"
3
+ require_relative '../lib/fasta/cli'
4
4
  Fasta::Installer.start( ARGV )
5
+ require "fasta" rescue 0
data/lib/fasta/cli.rb CHANGED
@@ -6,11 +6,11 @@ module Fasta
6
6
  source_root File.expand_path("../../../templates",__FILE__)
7
7
 
8
8
  desc 'some', 'some 2'
9
- def some(name)
9
+ def install(name)
10
10
  @name = name
11
11
  directory 'config', "#{name}/config"
12
12
  create_file "#{name}/app/endpoints/.keep"
13
- create_file "#{name}/log/.keep"
13
+ create_file "#{name}/log/db.log"
14
14
  directory 'app', "#{name}/app"
15
15
  copy_file 'application.rb', "#{name}/application.rb"
16
16
  copy_file 'boot.ru', "#{name}/boot.ru"
@@ -5,8 +5,8 @@ require 'pg'
5
5
  require 'yaml'
6
6
  require 'erb'
7
7
 
8
- db_log_file = File.open('log/db.log', File::WRONLY | File::APPEND | File::CREAT)
9
- request_log_file = File.open('log/request.log', File::WRONLY | File::APPEND | File::CREAT)
8
+ db_log_file = File.open('log/db.log', File::WRONLY | File::APPEND | File::CREAT) rescue 0
9
+ request_log_file = File.open('log/request.log', File::WRONLY | File::APPEND | File::CREAT) rescue 0
10
10
  $logger = ::Logger.new(request_log_file)
11
11
  $logger.level = Logger::INFO
12
12
 
data/lib/fasta/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fasta
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fasta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaro