business-period 0.0.2.4 → 0.0.2.5
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 +4 -4
- data/README.md +1 -1
- data/build.sh +1 -0
- data/lib/business_period/version.rb +1 -1
- data/lib/business_period.rb +17 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 667f4e19a6046a517c34f9535a19ec09f2b9924a
|
|
4
|
+
data.tar.gz: a9aef440d7dd39567f0122fa25193241edb8dc3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aee8c92a935a7871cfcfcdf0b63157b30915e36fb68244e8c12ae68bdb6cddf295fbf550bee30b0d39408f81625b2cb44b58a6bb70c72a262246201ade9065dc
|
|
7
|
+
data.tar.gz: 14f92ba5b6190dbcfb0f4e742e472fbc9c2b0aaead1c78bb06cdf564a4c9590df95b94190f8d110b1663a3b587e81c38a3fa9a87920c2404ad13ecabd6fbc4c7
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[](https://github.com/matass/business-period)
|
|
2
2
|
[](https://codeclimate.com/github/matass/business-period/maintainability)
|
|
3
|
-
|
|
3
|
+
[](https://badge.fury.io/rb/business-period)
|
|
4
4
|
# Business period
|
|
5
5
|
|
|
6
6
|
**BusinessPeriod** is a ruby library that calculates business period by given array.
|
data/build.sh
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
gem build business-period.gemspec
|
data/lib/business_period.rb
CHANGED
|
@@ -2,7 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
require 'yaml'
|
|
4
4
|
|
|
5
|
-
require 'business_period/version'
|
|
6
5
|
require 'business_period/configuration'
|
|
6
|
+
require 'business_period/version'
|
|
7
7
|
require 'business_period/base'
|
|
8
8
|
require 'business_period/days'
|
|
9
|
+
|
|
10
|
+
#module BusinessPeriod
|
|
11
|
+
#attr_accessor :configuration
|
|
12
|
+
|
|
13
|
+
#def self.configuration
|
|
14
|
+
#@configuration ||= Configuration.new
|
|
15
|
+
#end
|
|
16
|
+
|
|
17
|
+
#def self.configure
|
|
18
|
+
#yield configuration
|
|
19
|
+
#end
|
|
20
|
+
|
|
21
|
+
#class Configuration
|
|
22
|
+
#attr_accessor :locale, :work_days
|
|
23
|
+
#end
|
|
24
|
+
#end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: business-period
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.2.
|
|
4
|
+
version: 0.0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- matas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-09-
|
|
11
|
+
date: 2018-09-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -41,6 +41,7 @@ files:
|
|
|
41
41
|
- LICENSE.txt
|
|
42
42
|
- README.md
|
|
43
43
|
- Rakefile
|
|
44
|
+
- build.sh
|
|
44
45
|
- business-period.gemspec
|
|
45
46
|
- config/holidays/lt.yml
|
|
46
47
|
- lib/business_period.rb
|