ohajiki 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,13 +2,16 @@
2
2
 
3
3
  Minimum Dropbox clone using Ruby and Git
4
4
 
5
+ ## Naming
6
+ >節子,それドロップ(Drop)やない,おはじき(Ohajiki)や (火垂るの墓より)
7
+
5
8
  ## Installation
6
9
 
7
10
  $ gem install ohajiki
8
11
 
9
12
  ## Usage
10
13
  Write config file
11
- ```
14
+ ```ruby
12
15
  REMOTE_REPO_URL = 'https://github.com/kitak/ohajiki.git' # Your remote repository url (necessary entry)
13
16
  SYNC_DIR_PATH = '/Users/kitak/.ohajiki' # Sync target (necessary entry)
14
17
  SYNC_INTERVAL_SEC = 5 # Polling Interval (optional entry. default 10)
@@ -8,7 +8,7 @@ if __FILE__ == $0
8
8
  Ohajiki::Config.load(File.expand_path(ARGV[3]))
9
9
  end
10
10
 
11
- pid_dir = File.expand_path('../../tmp', `gem which ohajiki`)
11
+ pid_dir = 'tmp'
12
12
  Daemons.run_proc('ohajiki', {:dir => pid_dir}) do
13
13
  controller = Ohajiki::Controller.new
14
14
  controller.start
@@ -14,7 +14,7 @@ module Ohajiki
14
14
  # Default settings
15
15
  case id
16
16
  when :LOG_PATH
17
- File.expand_path('../../tmp/ohajiki.log', `gem which ohajiki`)
17
+ '/tmp/ohajiki.log'
18
18
  when :REMOTE_REPO_URL
19
19
  raise ConfigNotFound, "require REMOTE_REPO_URL in config file"
20
20
  when :SYNC_DIR_PATH
@@ -1,3 +1,3 @@
1
1
  module Ohajiki
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
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.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: