basics_edit 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/basics_edit +8 -2
  2. metadata +3 -3
data/bin/basics_edit CHANGED
@@ -75,7 +75,14 @@ class Be
75
75
  res = STDIN.readline.chomp
76
76
  if res =~ /^y/
77
77
  log "DELETING."
78
- res = Net::HTTP.post_form(URI.parse("http://basics.adit.io/delete/"), :id => opts[:id].to_i, :auth => auth)
78
+
79
+ log "Username?"
80
+ name = STDIN.readline.chomp
81
+
82
+ log "Password?"
83
+ password = STDIN.readline.chomp
84
+
85
+ res = Net::HTTP.post_form(URI.parse("http://basics.adit.io/delete/"), :id => opts[:id].to_i, :name => name, :password => password)
79
86
  puts res.body
80
87
  end
81
88
  exit
@@ -215,4 +222,3 @@ EOF
215
222
  end
216
223
 
217
224
  Be.new
218
-
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basics_edit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aditya Bhargava