natural_time 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: c4b40e761d45e9aa1632c1e6569005bf60c1ce6ba4fea1f897740238f70ddf6d
4
- data.tar.gz: 42b36e25bcb2392cf293dcb2bdd7d3f77cfcd2cdc8aad56e2718e7187baed5c5
3
+ metadata.gz: dc0600ac24f45a8a17ae4a5bac6d37847b962bbd68b1abbe38cec3f5efdfa9d9
4
+ data.tar.gz: 8864817b4fa5773e718ba802146fd0a03aaabc57348a7453651957e6cdf9c93a
5
5
  SHA512:
6
- metadata.gz: 5c432a254a76167015c30cf860152e56dc22c077c00b0306749622aabc0001f6721988fa36e51054654b2af7dffc418f4402f6be02cea8d47d954ceaef08c775
7
- data.tar.gz: 4ce289e049c3bb9aaf96f19bfc8fc1eaf28ef0ad3417cf7bea9fc813710013370c464f1ec55abae1515ded8faca212e5993756160625f527a12715d10ed776e7
6
+ metadata.gz: 5b3bf330bf47e6064493fd4d3a0e2f380d93fdf245a1a7afffdd868ee770172811b8d67f5df3c109a72b40f11dc25b0cb2da0c90641db8faad55388000f5d53b
7
+ data.tar.gz: 7a9a4d434c4fc5645efa00aec11fc841ce8929816cf95a2527db3a0b153528a8db937016c80e970b5d8ecfec9594fe9b3f91c6ba5873ac3287b0045612cc73b9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- natural_time (0.4.0)
4
+ natural_time (0.4.1)
5
5
  activesupport (~> 5.1.4)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -62,6 +62,11 @@ It works with `:precision` too:
62
62
 
63
63
  NaturalTime.distance(-10000, precision: 2) #=> "2 hours and 46 minutes ago"
64
64
 
65
+ ### Documentation
66
+
67
+ Documentation can be generated with:
68
+
69
+ yard doc -m markdown
65
70
 
66
71
  ## Note on Patches/Pull Requests
67
72
 
@@ -75,11 +75,11 @@ module NaturalTime
75
75
  # @return [String]
76
76
  #
77
77
  # @example
78
- # NaturalTime.to_sentence(65) #=> "1 minute and 5 seconds"
78
+ # NaturalTime.natural_time(65) #=> "1 minute, 5 seconds"
79
79
  #
80
- # NaturalTime.to_sentence(120) #=> "2 minutes"
80
+ # NaturalTime.natural_time(120) #=> "2 minutes"
81
81
  #
82
- # NaturalTime.to_sentence(10000) #=> "2 hours, 46 minutes, and 40 seconds"
82
+ # NaturalTime.natural_time(10000) #=> "2 hours, 46 minutes, 40 seconds"
83
83
  #
84
84
  def natural_time(duration, precision: nil)
85
85
  to_array(duration, precision: precision).join(", ")
@@ -1,3 +1,3 @@
1
1
  module NaturalTime
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: natural_time
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Priestley