console_utils 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/console_utils/request_utils/requester.rb +7 -5
- data/lib/console_utils/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad4d5f9bd6d4cf1de1823c6d9324cb63e0bdde7a
|
4
|
+
data.tar.gz: 7e26b5ed138029ee1cfede1739e626635d7e963f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d51785856f9560a3da0712885395c273fa9e234b3bd17ef7ff88e68fe768924b9178faa2e813c9f7398dc73cca1e4859ab98de79862168cead17a0e1ee20ccb9
|
7
|
+
data.tar.gz: 0db4069026917e568d057c188d9537a7880c9728596b9a42f3b5864b6309fc72717b6f53ba9e758521af810eff741832e3cb2667e674542c28da13cc2becd61c
|
data/README.md
CHANGED
@@ -109,7 +109,7 @@ exap.post("api/signup.json", nil, user: { name: "Guest" }).preview
|
|
109
109
|
|
110
110
|
**Note:** The `remo` requester supports the auto-token feature, but still fetchs tokens from a local DB.
|
111
111
|
|
112
|
-
##
|
112
|
+
## BenchUtils
|
113
113
|
|
114
114
|
Access to globally shared Benchmark.ips object, which works out of a block and allows to change the stack “on the fly” and to keep the result during the work.
|
115
115
|
|
@@ -233,7 +233,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
233
233
|
|
234
234
|
## Contributing
|
235
235
|
|
236
|
-
1. Fork it ( https://github.com/
|
236
|
+
1. Fork it ( https://github.com/estum/console_utils/fork )
|
237
237
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
238
238
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
239
239
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -85,17 +85,19 @@ module ConsoleUtils::RequestUtils #:nodoc:
|
|
85
85
|
@_args
|
86
86
|
end
|
87
87
|
|
88
|
-
|
89
|
-
private
|
90
|
-
|
91
|
-
PBCOPY_MESSAGE = Term::ANSIColor.green(" \u27A4 Response body copied to pasteboard\n").freeze
|
88
|
+
protected
|
92
89
|
|
93
90
|
# Copies to pasteboard
|
94
|
-
def pbcopy(content)
|
91
|
+
def pbcopy(content = nil)
|
92
|
+
content ||= to_body
|
95
93
|
IO.popen('pbcopy', 'w') { |io| io << content.to_s }
|
96
94
|
puts PBCOPY_MESSAGE
|
97
95
|
end
|
98
96
|
|
97
|
+
private
|
98
|
+
|
99
|
+
PBCOPY_MESSAGE = Term::ANSIColor.green(" \u27A4 Response body copied to pasteboard\n").freeze
|
100
|
+
|
99
101
|
COMPLETE_IN = Term::ANSIColor.green("Complete in %s").freeze
|
100
102
|
|
101
103
|
def show_complete_in!(reset = true)
|