dateoperations 0.1.1 → 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: 3e958298f0636cb1b72291ef587c23d400923ca9e4aa11363acb4876de121b13
4
- data.tar.gz: 95a0988eb45f54e20d3a9c2a89963b0fab43dbaac75b9fad07e8479dd4f803c0
3
+ metadata.gz: 71a32576031137949efaca61f4be7a8a5446f7356028e777a84c115ae342b774
4
+ data.tar.gz: eafd84b765c367205f0501db7b1aacbf732d8cd7317819e19781a70424ecb033
5
5
  SHA512:
6
- metadata.gz: 46447d09101d3c7f3b22bd96d04bb45517d0d398f40e7fbdf5303daac3892d628f82686ec381304e81871e54843f273eff762f61ea0e83e05a64e456ed3426db
7
- data.tar.gz: 6d080ac68f50ebd2b60308edbf9a8fb65957b9a34cca367685d1419a1c018c61a855ea3de5c4909c353d471b9bfab8de922e79f814267682893f711d1bb4cdaf
6
+ metadata.gz: e18dc5ae78ec3c5c805446d646838162c46be05aaa35fe63af1a937e0e76f00681c168b47aff617d699b7bf447514620e4ada9f29788677b6a5e9865be6ce703
7
+ data.tar.gz: f26198c4fddab7650dab50ee9e53e71e20feda97cd24f92c19df46e97773ecbfce9c667ef0313a533afc5f0dbf163332a16fd9c5783b05a5842f68a44fd66528
data/README.md CHANGED
@@ -1,36 +1,49 @@
1
1
  # DateOperations
2
2
 
3
- [![](https://codescene.io/projects/5634/status.svg) Get more details at **codescene.io**.](https://codescene.io/projects/5634/jobs/latest-successful/results)
3
+ Different date operations, primarily around business days, based on the [Holidays Gem](https://github.com/holidays/holidays).
4
4
 
5
- ## Overview
5
+ ## Installation
6
6
 
7
- Different date operations, primarily around business days; based on the [Holidays Gem](https://github.com/holidays/holidays).
7
+ Add this line to your application's Gemfile:
8
8
 
9
- ## Synopsis
10
- DateOperations.[...]
11
-
12
- ## Installation
13
- Download the gem, then install it:
9
+ ```ruby
10
+ gem 'dateoperations'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ ```bash
16
+ bundle install
17
+ ```
14
18
 
15
- gem install dateoperations.gemspec
19
+ Or install it yourself as:
20
+
21
+ ```bash
22
+ gem install dateoperations
23
+ ```
16
24
 
17
25
  ## Examples
18
- require 'dateoperations'
19
- ...
20
- DateOperations.country #=> :de
21
-
22
- DateOperations.holiday?(Date.new(2016, 10, 3)) #=> true
23
-
24
- DateOperations.country = :us #=> :us
25
- DateOperations.holiday?(Date.new(2016, 10, 3)) # => false
26
-
27
- DateOperations.country = :de #=> :de
28
- DateOperations.number_of_business_days_between(Date.new(2016, 10, 1), Date.new(2016, 10, -1)) #=> 20
29
-
30
- DateOperations.country = :au #=> :au
31
- DateOperations.number_of_business_days_between(Date.new(2016, 10, 1), Date.new(2016, 10, -1)) #=> 21
32
-
33
- DateOperations.weekend?(DateOperations.weekend?(Date.new(2016, 6, 18)) #=> true
26
+
27
+ ```ruby
28
+ require 'dateoperations'
29
+
30
+ DateOperations.country #=> :de
31
+
32
+ DateOperations.holiday?(Date.new(2016, 10, 3)) #=> true
33
+
34
+ DateOperations.country = :us #=> :us
35
+ DateOperations.holiday?(Date.new(2016, 10, 3)) #=> false
36
+
37
+ DateOperations.country = :de #=> :de
38
+ DateOperations.number_of_business_days_between(Date.new(2016, 10, 1), Date.new(2016, 10, -1)) #=> 20
39
+
40
+ DateOperations.country = :au #=> :au
41
+ DateOperations.number_of_business_days_between(Date.new(2016, 10, 1), Date.new(2016, 10, -1)) #=> 21
42
+
43
+ DateOperations.weekend?(Date.new(2016, 6, 18)) #=> true
44
+ ```
34
45
 
35
46
  ## Documentation
36
- [Documentation](http://dateoperations.schwarze-web.de/DateOperations.html)
47
+
48
+ - [Official Documentation](https://rubydoc.info/gems/dateoperations)
49
+ - [Source Code and Issues on Codeberg](https://codeberg.org/msc01/dateoperations)
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # 0.1.3 - Explizite Definition der Metadaten-Links in der Gemspec für RubyGems.org
4
+ # 0.1.2 - Aktualisierung der Dokumentations-Links auf RubyDoc.info
3
5
  # 0.1.1 - Umzug des Repositories zu Codeberg und Aktualisierung aller Homepage-URLs
4
6
  # 0.1.0 - Anhebung der Ruby-Mindestversion auf >= 3.4.0, Aktualisierung des holidays-Gems und Code-Refactoring
5
7
  class DateOperations
6
- VERSION = '0.1.1'
8
+ VERSION = '0.1.3'
7
9
  end
@@ -7,7 +7,7 @@ require_relative 'dateoperations/version'
7
7
  ##
8
8
  # Different date operations, primarily around business days, based on the Holidays[https://github.com/holidays/holidays] Gem.
9
9
  # - Home[https://codeberg.org/msc01/dateoperations]
10
- # - Documentation[http://dateoperations.schwarze-web.de/DateOperations.html]
10
+ # - Documentation[https://rubydoc.info/gems/dateoperations]
11
11
  class DateOperations
12
12
  @country = :de
13
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dateoperations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Schwarze
@@ -39,6 +39,10 @@ licenses:
39
39
  - MIT
40
40
  metadata:
41
41
  rubygems_mfa_required: 'true'
42
+ homepage_uri: https://codeberg.org/msc01/dateoperations
43
+ source_code_uri: https://codeberg.org/msc01/dateoperations
44
+ bug_tracker_uri: https://codeberg.org/msc01/dateoperations/issues
45
+ documentation_uri: https://rubydoc.info/gems/dateoperations
42
46
  rdoc_options: []
43
47
  require_paths:
44
48
  - lib