basics_edit 0.0.2 → 0.0.3
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/bin/basics_edit +8 -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
|
-
|
|
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:
|
|
4
|
+
hash: 25
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.0.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Aditya Bhargava
|