quarter 1.2.0 → 1.3.0

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: 43375d0c4b1028806f1a4e065d6da6b910b23e354377270125ac8953c629b15d
4
- data.tar.gz: b40a713d14c5b278fe823571413117e7da417734d19fb5e522f6829e34a2ab79
3
+ metadata.gz: e533cbd8d56c9242f27314b40c8b4bb2897a0a3cf17c5990bb355abbd3a830dc
4
+ data.tar.gz: 725ed81c685d185d7a0ca5878f675cc401cad6aa6e06b141c51dcdbc2e6276e0
5
5
  SHA512:
6
- metadata.gz: d417b09e7c7aba1451fdbe4dd4c1c5672c5043622e8b076497e2c5af3d5e83aa7ec42efbbe36dd6a5a0dc04b91a8a02a4ac85c2d36145a80abae908db49212c8
7
- data.tar.gz: 84932606227d90523473be6ee607b9c746211568b76e430f9b082c30270bb17931b5db6a10aa8cad5c03c15392b452b3b7e68de6338a3425c4adcbcc0841f1cd
6
+ metadata.gz: ca2d38f260082035ba18f6384d87ae9c83e8dd1ba009d66db82b37df574b1386e86223f1c9764ae021fb57f8c38b5411eab7e8959a8fa95218bcd1895538d7a8
7
+ data.tar.gz: db500b2e4ed21fcb03cbf42b76ca9a7ace2bf47ae13d4be829c49e394c60af9c9b9d49178dd7acc2f39577289ece81b3c5c6eabc5f308a73cfa75cb9e5f784b7
data/CHANGES.md ADDED
@@ -0,0 +1,31 @@
1
+ # 1.3.0
2
+
3
+ * Added Quarter#inspect method
4
+
5
+ # 1.2.1
6
+
7
+ * Added CHANGES.md to gem files
8
+
9
+ * Fixed outdated changelog_uri
10
+
11
+ # 1.2.0
12
+
13
+ * Added Quarter::Methods module
14
+
15
+ * Added Quarter::Constants module
16
+
17
+ # 1.1.0
18
+
19
+ * Added optional YAML integration
20
+
21
+ This makes it possible to dump/load quarter objects to/from YAML as scalar values. For example:
22
+
23
+ require 'quarter/yaml'
24
+
25
+ puts YAML.dump([Quarter.today])
26
+
27
+ This functionality is not enabled by default, due to the use of Module#prepend.
28
+
29
+ # 1.0.0
30
+
31
+ * First version!
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2020 TIMCRAFT
1
+ Copyright (c) 2020-2025 TIMCRAFT
2
2
 
3
3
  This is an Open Source project licensed under the terms of the LGPLv3 license.
4
4
  Please see <http://www.gnu.org/licenses/lgpl-3.0.html> for license text.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # quarter
2
2
 
3
3
  ![Gem Version](https://badge.fury.io/rb/quarter.svg)
4
- ![Build Status](https://github.com/readysteady/quarter/workflows/Test/badge.svg)
4
+ ![Test Status](https://github.com/readysteady/quarter/actions/workflows/test.yml/badge.svg)
5
5
 
6
6
 
7
7
  Ruby gem for working with standard calendar quarters.
data/lib/quarter.rb CHANGED
@@ -30,6 +30,10 @@ class Quarter
30
30
  "#{@year}-Q#{@number}"
31
31
  end
32
32
 
33
+ def inspect
34
+ "<Quarter: #{to_s}>"
35
+ end
36
+
33
37
  def hash
34
38
  iso8601.hash
35
39
  end
data/quarter.gemspec CHANGED
@@ -1,19 +1,19 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'quarter'
3
- s.version = '1.2.0'
3
+ s.version = '1.3.0'
4
4
  s.license = 'LGPL-3.0'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ['Tim Craft']
7
- s.email = ['mail@timcraft.com']
7
+ s.email = ['email@timcraft.com']
8
8
  s.homepage = 'https://github.com/readysteady/quarter'
9
9
  s.description = 'Ruby gem for working with standard calendar quarters'
10
10
  s.summary = 'See description'
11
- s.files = Dir.glob('lib/**/*.rb') + %w[LICENSE.txt README.md quarter.gemspec]
11
+ s.files = Dir.glob('lib/**/*.rb') + %w[CHANGES.md LICENSE.txt README.md quarter.gemspec]
12
12
  s.require_path = 'lib'
13
13
  s.metadata = {
14
14
  'homepage' => 'https://github.com/readysteady/quarter',
15
15
  'source_code_uri' => 'https://github.com/readysteady/quarter',
16
16
  'bug_tracker_uri' => 'https://github.com/readysteady/quarter/issues',
17
- 'changelog_uri' => 'https://github.com/readysteady/quarter/blob/master/CHANGES.md'
17
+ 'changelog_uri' => 'https://github.com/readysteady/quarter/blob/main/CHANGES.md'
18
18
  }
19
19
  end
metadata CHANGED
@@ -1,22 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quarter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Craft
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-13 00:00:00.000000000 Z
11
+ date: 2025-01-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby gem for working with standard calendar quarters
14
14
  email:
15
- - mail@timcraft.com
15
+ - email@timcraft.com
16
16
  executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - CHANGES.md
20
21
  - LICENSE.txt
21
22
  - README.md
22
23
  - lib/quarter.rb
@@ -29,7 +30,7 @@ metadata:
29
30
  homepage: https://github.com/readysteady/quarter
30
31
  source_code_uri: https://github.com/readysteady/quarter
31
32
  bug_tracker_uri: https://github.com/readysteady/quarter/issues
32
- changelog_uri: https://github.com/readysteady/quarter/blob/master/CHANGES.md
33
+ changelog_uri: https://github.com/readysteady/quarter/blob/main/CHANGES.md
33
34
  post_install_message:
34
35
  rdoc_options: []
35
36
  require_paths:
@@ -45,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
46
  - !ruby/object:Gem::Version
46
47
  version: '0'
47
48
  requirements: []
48
- rubygems_version: 3.1.4
49
+ rubygems_version: 3.5.22
49
50
  signing_key:
50
51
  specification_version: 4
51
52
  summary: See description