ohajiki 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Minimum Dropbox clone using Ruby and Git
4
4
 
5
5
  ## Naming
6
- >節子,それドロップ(Drop)やない,おはじき(Ohajiki)や (火垂るの墓より)
6
+ >節子,それドロップ(Drop)やない,おはじき(Ohajiki)や :「火垂るの墓」より
7
7
 
8
8
  ## Installation
9
9
 
@@ -3,14 +3,12 @@
3
3
  require 'daemons'
4
4
  require 'ohajiki'
5
5
 
6
- if __FILE__ == $0
7
- if ARGV.size == 4 && ARGV[1] == "--" && (ARGV[2] == "--config" || ARGV[2] == "-c")
8
- Ohajiki::Config.load(File.expand_path(ARGV[3]))
9
- end
6
+ if ARGV.size == 4 && ARGV[1] == "--" && (ARGV[2] == "--config" || ARGV[2] == "-c")
7
+ Ohajiki::Config.load(File.expand_path(ARGV[3]))
8
+ end
10
9
 
11
- pid_dir = 'tmp'
12
- Daemons.run_proc('ohajiki', {:dir => pid_dir}) do
13
- controller = Ohajiki::Controller.new
14
- controller.start
15
- end
10
+ pid_dir = '/tmp'
11
+ Daemons.run_proc('ohajiki', {:dir => pid_dir}) do
12
+ controller = Ohajiki::Controller.new
13
+ controller.start
16
14
  end
@@ -22,6 +22,8 @@ module Ohajiki
22
22
  Repo.new dir_path
23
23
  end
24
24
  rescue => e
25
+ puts "#{e.message}"
26
+ puts "#{e.backtrace}"
25
27
  @log.error "start: #{e.message}" if @log
26
28
  end
27
29
 
@@ -1,3 +1,3 @@
1
1
  module Ohajiki
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohajiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: