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 +1 -1
- data/flydata.gemspec +1 -1
- data/lib/flydata.rb +1 -1
- data/lib/flydata/command/sender.rb +0 -1
- data/lib/flydata/credentials.rb +1 -1
- data/lib/flydata/cron.rb +0 -1
- data/lib/flydata/helpers.rb +3 -12
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.5.
|
1
|
+
0.0.5.4
|
data/flydata.gemspec
CHANGED
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
|
-
|
15
|
+
FLYDATA_HOME = ENV['FLYDATA_HOME'] || "#{ENV['HOME']}/.flydata"
|
16
16
|
|
17
17
|
include Flydata::Heroku
|
18
18
|
end
|
data/lib/flydata/credentials.rb
CHANGED
@@ -33,7 +33,7 @@ module Flydata
|
|
33
33
|
end
|
34
34
|
private
|
35
35
|
def credentials_file
|
36
|
-
File.join(
|
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
data/lib/flydata/helpers.rb
CHANGED
@@ -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:
|
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(
|
59
|
+
File.join(FLYDATA_HOME, 'flydata_api_host')
|
69
60
|
end
|
70
61
|
|
71
62
|
def flydata_conf_file
|
72
|
-
File.join(
|
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.
|
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:
|
333
|
+
hash: 1029237572235561937
|
334
334
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
335
335
|
none: false
|
336
336
|
requirements:
|