MrMurano 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/TODO.taskpaper +6 -0
- data/lib/MrMurano/Account.rb +7 -7
- data/lib/MrMurano/configFile.rb +1 -0
- data/lib/MrMurano/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30d48034f5391a6edaca9fbe64b6615b5d3224fa
|
4
|
+
data.tar.gz: f60967a24c13ba28b07e54d6c86bf5132be0017d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99a4c4bac57e8b288615b37f45e13e130818d8a5fe8b1022eca162d2e00763af5e690c90d94c51ec3938745cd232a01e44bfb3312d94f971f0b4052ec05c1cbf
|
7
|
+
data.tar.gz: f15d2379a7c6ac706dfc78c7b70eff1d5816345ff5dcba6a7a1b180f795a8960880822b0b62362877e9b708e647db0a86294b5f3e04c1d8eae63785836477a70
|
data/TODO.taskpaper
CHANGED
@@ -1,14 +1,19 @@
|
|
1
1
|
|
2
2
|
Commands:
|
3
|
+
- First time run needs to be smoothed out.
|
3
4
|
- Status will show things have changes when they don’t.
|
4
5
|
- Default for most commands should be -same @done(2016-08-02)
|
5
6
|
- Add Diff Command @done(2016-07-27)
|
6
7
|
|
8
|
+
Account:
|
9
|
+
- Netrc library (or the netrc format) doesn't allow '#' in passwords.
|
10
|
+
|
7
11
|
Endpoints:
|
8
12
|
- Add support for multiple endpoints in one file (maybe)
|
9
13
|
- Add directory support like in modules @done(2016-07-26)
|
10
14
|
|
11
15
|
Files:
|
16
|
+
- Switch to mime-types v3
|
12
17
|
- Fix upload. @done(2016-08-01)
|
13
18
|
- Files won't update, they always delete then add. @done(2016-07-28)
|
14
19
|
|
@@ -28,6 +33,7 @@ Config:
|
|
28
33
|
|
29
34
|
SolutionBase:
|
30
35
|
- All network traffic is serialized. Make some parallel.
|
36
|
+
- Add the --curl verbose option.
|
31
37
|
- Rebuild how local names and paths are computed from remote items. @done(2016-07-27)
|
32
38
|
|
33
39
|
Bundles:
|
data/lib/MrMurano/Account.rb
CHANGED
@@ -14,12 +14,12 @@ module MrMurano
|
|
14
14
|
URI('https://' + $cfg['net.host'] + '/api:1/' + path.to_s)
|
15
15
|
end
|
16
16
|
|
17
|
-
def
|
17
|
+
def _loginInfo
|
18
18
|
host = $cfg['net.host']
|
19
19
|
user = $cfg['user.name']
|
20
20
|
if user.nil? then
|
21
21
|
user = ask("Account name: ")
|
22
|
-
$cfg
|
22
|
+
$cfg.set('user.name', user, :user)
|
23
23
|
end
|
24
24
|
# Maybe in the future use Keychain. For now all in Netrc.
|
25
25
|
# if (/darwin/ =~ RUBY_PLATFORM) != nil then
|
@@ -37,7 +37,10 @@ module MrMurano
|
|
37
37
|
nrc[host] = user, pws
|
38
38
|
nrc.save
|
39
39
|
end
|
40
|
-
|
40
|
+
{
|
41
|
+
:email => $cfg['user.name'],
|
42
|
+
:password => pws
|
43
|
+
}
|
41
44
|
end
|
42
45
|
|
43
46
|
def token
|
@@ -47,10 +50,7 @@ module MrMurano
|
|
47
50
|
request = Net::HTTP::Post.new(r)
|
48
51
|
request.content_type = 'application/json'
|
49
52
|
#request.basic_auth(username(), password())
|
50
|
-
request.body = JSON.generate(
|
51
|
-
:email => $cfg['user.name'],
|
52
|
-
:password => _password
|
53
|
-
})
|
53
|
+
request.body = JSON.generate(_loginInfo)
|
54
54
|
|
55
55
|
response = http.request(request)
|
56
56
|
case response
|
data/lib/MrMurano/configFile.rb
CHANGED
data/lib/MrMurano/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: MrMurano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Conrad Tadpol Tilstra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|