dateoperations 0.1.1 → 0.1.2

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: ca9ed2b733741677a3c86973b244f275886263185581e67ce8f59f44481cec5b
4
+ data.tar.gz: 286ef9c3b9f9cdbd874d9dc8431bc7de89b9136b6ec5e32edeb2c7a7b57a5683
5
5
  SHA512:
6
- metadata.gz: 46447d09101d3c7f3b22bd96d04bb45517d0d398f40e7fbdf5303daac3892d628f82686ec381304e81871e54843f273eff762f61ea0e83e05a64e456ed3426db
7
- data.tar.gz: 6d080ac68f50ebd2b60308edbf9a8fb65957b9a34cca367685d1419a1c018c61a855ea3de5c4909c353d471b9bfab8de922e79f814267682893f711d1bb4cdaf
6
+ metadata.gz: 9785df7799a93e730d44b60d677d7f34b58b0e4272355c5fbaed8893a4a8d879733b4fdad4dab7dab3448e013aa31556caa3387efa6476cc3c87e76d8ce7b5fe
7
+ data.tar.gz: a06787a009d8575bd3921b9a381d41b8c3d1bea206d73630cefd738ff0d84ee6768bb9a9a6a29082326582344ae13d82eaf9ae9aada722ff902d6cad6acb959e
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,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # 0.1.2 - Aktualisierung der Dokumentations-Links auf RubyDoc.info
3
4
  # 0.1.1 - Umzug des Repositories zu Codeberg und Aktualisierung aller Homepage-URLs
4
5
  # 0.1.0 - Anhebung der Ruby-Mindestversion auf >= 3.4.0, Aktualisierung des holidays-Gems und Code-Refactoring
5
6
  class DateOperations
6
- VERSION = '0.1.1'
7
+ VERSION = '0.1.2'
7
8
  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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Schwarze