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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db3cc812c5661b7c40bc42c28bf05b6e76a42edb
4
- data.tar.gz: 6bd072010709a36781fd9f699ccede62917d1b01
3
+ metadata.gz: ad4d5f9bd6d4cf1de1823c6d9324cb63e0bdde7a
4
+ data.tar.gz: 7e26b5ed138029ee1cfede1739e626635d7e963f
5
5
  SHA512:
6
- metadata.gz: d0201a12347ff3f30cda294fcd1e83132aa7ff3309eeb11f780f4982c369bb3cb2ff893c5c7d05eeb82b321aa13cdf34c706a13a25137d45d29694904b3103c4
7
- data.tar.gz: eb94b91e56d4a1b5739a6789a4487b3a12168a33f081e019bb3f42d3bf6dd2e19dc4570cd601f79077284fcc6810567f1babec89053a9ce69f82c0d1500d5d2e
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
- ## BetchUtils
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/[my-github-username]/console_utils/fork )
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)
@@ -1,3 +1,3 @@
1
1
  module ConsoleUtils
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton