flydata 0.0.5.3 → 0.0.5.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5.3
1
+ 0.0.5.4
data/flydata.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "flydata"
8
- s.version = "0.0.5.3"
8
+ s.version = "0.0.5.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Koichi Fujikawa"]
data/lib/flydata.rb CHANGED
@@ -12,7 +12,7 @@ lib_dir = File.expand_path(File.dirname(__FILE__))
12
12
  ActiveSupport::Dependencies.autoload_paths << lib_dir
13
13
 
14
14
  module Flydata
15
- HOME_DIR= ENV['FLYDATA_HOME'] || "#{ENV['HOME']}/.flydata"
15
+ FLYDATA_HOME = ENV['FLYDATA_HOME'] || "#{ENV['HOME']}/.flydata"
16
16
 
17
17
  include Flydata::Heroku
18
18
  end
@@ -1,7 +1,6 @@
1
1
  module Flydata
2
2
  module Command
3
3
  class Sender < Base
4
- FLYDATA_HOME=Flydata::HOME_DIR
5
4
  def start
6
5
  # Check if process exist
7
6
  if process_exist?
@@ -33,7 +33,7 @@ module Flydata
33
33
  end
34
34
  private
35
35
  def credentials_file
36
- File.join(home_directory, '.flydata', 'credentials')
36
+ File.join(FLYDATA_HOME, 'credentials')
37
37
  end
38
38
  def encode(str)
39
39
  str.unpack('H*') # want to change more complecated? still useful for shoulder hacking.
data/lib/flydata/cron.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  module Flydata
2
2
  class Cron
3
- FLYDATA_HOME=Flydata::HOME_DIR
4
3
  CRON_TMP_PATH="#{FLYDATA_HOME}/cron_list.tmp"
5
4
  CRON_BACKUP_PATH="#{FLYDATA_HOME}/cron_list.back"
6
5
  LOG_PATH="#{FLYDATA_HOME}/flydata_cron.log"
@@ -26,7 +26,7 @@ please setup flydata again by following commands.
26
26
  flydata setup
27
27
 
28
28
  You can check the logs of sender(flydata) process.
29
- Log path: ~/.flydata/flydata.log
29
+ Log path: #{File.join(FLYDATA_HOME, 'flydata.log')}
30
30
  EOM
31
31
  puts '-' * 64
32
32
  end
@@ -55,21 +55,12 @@ You can check the logs of sender(flydata) process.
55
55
  end
56
56
  end
57
57
 
58
- # file paths
59
- def home_directory
60
- ENV['HOME'] || Dir.pwd
61
- end
62
-
63
- def flydata_home_directory
64
- File.join(home_directory, '.flydata')
65
- end
66
-
67
58
  def flydata_api_host_file
68
- File.join(flydata_home_directory, 'flydata_api_host')
59
+ File.join(FLYDATA_HOME, 'flydata_api_host')
69
60
  end
70
61
 
71
62
  def flydata_conf_file
72
- File.join(flydata_home_directory, 'flydata.conf')
63
+ File.join(FLYDATA_HOME, 'flydata.conf')
73
64
  end
74
65
  end
75
66
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flydata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5.3
4
+ version: 0.0.5.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -330,7 +330,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
330
330
  version: '0'
331
331
  segments:
332
332
  - 0
333
- hash: 1056384679042727559
333
+ hash: 1029237572235561937
334
334
  required_rubygems_version: !ruby/object:Gem::Requirement
335
335
  none: false
336
336
  requirements: