pretty_stopwatch 0.1.2 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fcddcb209f62c6aa2dd5590919a588c549cd40a9d2b5719870b9d2d5d5b8f22
4
- data.tar.gz: 36244820de0bcee5d516eb7c78691dfd0dd3c1b4ad45d35a8e9151da79c41aa3
3
+ metadata.gz: f6c38e209a9aed274b4b020c88f62f806d627b7f4f52b1bf6ac25c8d4ef90ca1
4
+ data.tar.gz: cbf674f15bd8ba525a3a22ed957f7de8eab06fe228c2dc749b9e56811cf97116
5
5
  SHA512:
6
- metadata.gz: cb1fc44fb109dd7ed499330f537274071fbdbcae2c9fc0f4ca6811635f63a16fd64c41a3eba3007a137facaa9501866083ed9a320dfec9c36ab4565be8971834
7
- data.tar.gz: 7fb43e0f69b476c2dc2ab6d41cfed5b85f84501d3044749f129ad161db8f073292618f96d205e52af35f2ddd0e0c7f929fea1e259ec97d703ecd29bc0699d51c
6
+ metadata.gz: 6eea6338238a1def7bb6421e0183c9f19d7f5f22eb2909b293e8bdcda3809c32bd5f7cd9b9fb9bbd68e8c999ddcef423a59c5abb284b051766de4b5dc4ee19c4
7
+ data.tar.gz: 1caa1fd00ec324547fe0074deb304ebc3240abe4b314299a76440f8efadc823bb495c145c2cdfbd114ce9e1a62472b2ba4e829a62146eece0d7f25bd2770a475
data/README.md CHANGED
@@ -1,20 +1,27 @@
1
1
  # PrettyStopwatch
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
3
+ A simple Stopwatch with nanosecond precision and readable formatting.
4
4
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/pretty_stopwatch`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ Basic Usage:
6
+
7
+ stopwatch = Stopwatch::create_started
8
+ sleep(0.1)
9
+ stopwatch.stop # optional
10
+ puts "slept for #{stopwatch}" # to_s optional
11
+ # slept for 100.02 ms
6
12
 
7
- ## Installation
8
13
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
14
+ Based on the Guava Stopwatch com.google.common.base.Stopwatch. Credit: The Guava Authors
15
+
16
+ ## Installation
10
17
 
11
18
  Install the gem and add to the application's Gemfile by executing:
12
19
 
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
20
+ $ bundle add pretty_stopwatch
14
21
 
15
22
  If bundler is not being used to manage dependencies, install the gem by executing:
16
23
 
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
24
+ $ gem install pretty_stopwatch
18
25
 
19
26
  ## Usage
20
27
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PrettyStopwatch
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_stopwatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Mcfadyen
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.2'
27
- description: Pretty Stopwatch
27
+ description: A simple Stopwatch with nanosecond precision and readable formatting.
28
28
  email:
29
29
  - ben.mcfadyen3@gmail.com
30
30
  executables: []
@@ -65,5 +65,5 @@ requirements: []
65
65
  rubygems_version: 3.5.11
66
66
  signing_key:
67
67
  specification_version: 4
68
- summary: Pretty Stopwatch
68
+ summary: A simple Stopwatch with nanosecond precision and readable formatting.
69
69
  test_files: []