latest_version 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
  SHA1:
3
- metadata.gz: 68f299f299d037cbd1b7b2a657198ae1e66cfbf8
4
- data.tar.gz: 30a0b933c6959e26b91576667624ce60e4b7fb62
3
+ metadata.gz: 5fa8085b7889c7b5a1cca136a75bcc5e152c9d52
4
+ data.tar.gz: 81883c693d29eba5420a3d5487460760a9726954
5
5
  SHA512:
6
- metadata.gz: f640866198c3d1211e7aea905cec773152fa18fd1bc4030b2431dacec571f0af0c085ff477b17d540fbd39e3b37baed9f8b09651992cc7a9c3017f5eba20baa7
7
- data.tar.gz: cd397dcca305c40704bdde30d4d2ae0c04f7fad470c48c6b8f4a5609eaef1df83208e939fa1374af42f6738198e94544e6870cbea09c01a393ddac117bac289e
6
+ metadata.gz: d1622ad12b699d7d82e95741f2ebd6221e03824dbf4ac3346dafc5753c7f14c37b656fefd0130f7530e8e4ec83fd7a416e7ace22392b3653be2adaaec8ca5228
7
+ data.tar.gz: 965390787d87ce376bb165368c2808705c968ed62f33fefcfce6f02e044a92ad41b38b7740dcd456870dd192bf0fe4e6f7470c046e6ee4200d43f139eb00055e
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.3] - 2020-02-19
11
+
12
+ ### Added
13
+
14
+ - Update syntax to `LatestVersion.of(library)`.
15
+
10
16
  ## [0.1.2] - 2020-02-18
11
17
 
12
18
  ### Added
@@ -26,7 +32,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
26
32
 
27
33
  - Support for ruby, rails and python.
28
34
 
29
- [unreleased]: https://github.com/zubin/latest_version/compare/v0.1.2...HEAD
35
+ [unreleased]: https://github.com/zubin/latest_version/compare/v0.1.3...HEAD
36
+ [0.1.3]: https://github.com/zubin/latest_version/compare/v0.1.2...v0.1.3
30
37
  [0.1.2]: https://github.com/zubin/latest_version/compare/v0.1.1...v0.1.2
31
38
  [0.1.1]: https://github.com/zubin/latest_version/compare/v0.1.0...v0.1.1
32
39
  [0.1.0]: https://github.com/zubin/latest_version/releases/tag/v0.1.0
@@ -20,7 +20,7 @@ module LatestVersion
20
20
  UnknownLibraryError = Class.new(StandardError)
21
21
  private_constant :LIBRARIES
22
22
 
23
- def self.call(library)
23
+ def self.of(library)
24
24
  LIBRARIES.fetch(library.to_sym) { raise UnknownLibraryError, library }.call
25
25
  end
26
26
 
@@ -12,7 +12,7 @@ module LatestVersion
12
12
 
13
13
  LatestVersion.supported_libraries.each do |library|
14
14
  desc library, "Returns latest version of #{library}"
15
- define_method(library) { puts LatestVersion.call(library) }
15
+ define_method(library) { puts LatestVersion.of(library) }
16
16
  end
17
17
 
18
18
  desc 'completion SHELL', "Installs shell completion"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LatestVersion
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: latest_version
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
  - Zubin Henner