whatup 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/whatup/server/db_init.rb +1 -1
- data/lib/whatup/version.rb +1 -1
- data/lib/whatup.rb +0 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c236a803d598d94e183de61c6a8c750f60c0fb7ba9ee7b6146cd5574bbce525
|
4
|
+
data.tar.gz: dffea436af3a21fe6148ab520567deacbc6d342122a92c9db2104f1e9b026d84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bda3ba71c444f9e2eea7575a63c589ba167b51a8f0a276780403f480da45168c2b401ddc6457bcc27a61c01e435aa78af47ec143ad4589c5b61c9b0f3b2200c
|
7
|
+
data.tar.gz: 68190fe40784698bb21fde77708c8b0305590625ffbe02fdabd42ae6cc240da926eb4d06d6c7ebb07af73703629f0ac7590aa9fbe4cb49746d99c57bb24aee0f
|
@@ -11,7 +11,7 @@ module Whatup
|
|
11
11
|
class << self
|
12
12
|
# Sets up our database, deleting all existing data.
|
13
13
|
def setup_db!
|
14
|
-
db = "#{
|
14
|
+
db = "#{Dir.home}/.whatup.db"
|
15
15
|
SQLite3::Database.new(db) unless File.exist?(db)
|
16
16
|
|
17
17
|
ActiveRecord::Base.establish_connection adapter: 'sqlite3',
|
data/lib/whatup/version.rb
CHANGED
data/lib/whatup.rb
CHANGED
@@ -8,11 +8,6 @@ module Whatup
|
|
8
8
|
class Error < StandardError
|
9
9
|
end
|
10
10
|
|
11
|
-
# @return [String] The full path to application root
|
12
|
-
def self.root
|
13
|
-
Dir.pwd
|
14
|
-
end
|
15
|
-
|
16
11
|
# @return [Bool] Whether or not the app is running in a test environment
|
17
12
|
def self.testing?
|
18
13
|
!!defined?(RSpec)
|