timestreamapp 0.0.5 → 0.0.6
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/lib/timestream.rb +6 -6
- data/lib/timestream/version.rb +1 -1
- metadata +3 -3
data/lib/timestream.rb
CHANGED
@@ -83,12 +83,6 @@ module Timestream
|
|
83
83
|
|
84
84
|
end
|
85
85
|
|
86
|
-
desc "login2", "Login2"
|
87
|
-
def login2
|
88
|
-
password = ask_password "Password:"
|
89
|
-
puts password
|
90
|
-
end
|
91
|
-
|
92
86
|
desc "login", "Login to your TimeStream account"
|
93
87
|
def login
|
94
88
|
# Ask for credentials
|
@@ -103,12 +97,18 @@ module Timestream
|
|
103
97
|
creds = {:username => username, :password => password}
|
104
98
|
# create_file "~/.tsconfig", JSON.pretty_generate(creds), :force => true
|
105
99
|
create_file "~/.tsconfig", JSON.pretty_generate(creds), {:force => true, :verbose => false}
|
100
|
+
say("Storing creds under ~/.tsconfig")
|
106
101
|
say(response.body, :green)
|
107
102
|
else
|
108
103
|
say("Invalid credentials, please try again.", :red)
|
109
104
|
login
|
110
105
|
end
|
106
|
+
end
|
111
107
|
|
108
|
+
desc "logout", "Logout of your TimeStream account"
|
109
|
+
def logout
|
110
|
+
remove_file "~/.tsconfig", {:verbose => false}
|
111
|
+
say("You are now logged out.", :red)
|
112
112
|
end
|
113
113
|
|
114
114
|
desc "new \"Some new status\"", "Add a new task"
|
data/lib/timestream/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timestreamapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ahmad Varoqua
|