shiftly 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -8
- data/Rakefile +1 -2
- data/lib/generators/shiftly/config_generator.rb +1 -1
- data/lib/shiftly/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9b9c13fbe9c0dcefa9de355618f882ed58fc031
|
4
|
+
data.tar.gz: ad73ee25acafda5d3f34d72693d18f4fd53d1e9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ebadc9f3980f67a2346c87d0f62acd297eded6f416ebc97abc92e297007569f243cd1466504c727a1ca3a68281647cfd3a0db7b143e1abf35551664ee14612c
|
7
|
+
data.tar.gz: 65562a1a0ff2d51f12c465fc92107beaddd18d2ebb85982468b5f226a5ff4db00a478d075d3775d853a570ef6329bbe2fa76728db69aa0e0e195cfb7ca7c4080
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
## Shiftly
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/shiftly.svg)](http://badge.fury.io/rb/shiftly)
|
4
|
+
[![Build Status](https://travis-ci.org/logicorg/shiftly.svg?branch=master)](https://travis-ci.org/logicorg/shiftly)
|
4
5
|
[![Code Climate](https://codeclimate.com/github/logicorg/shiftly/badges/gpa.svg)](https://codeclimate.com/github/logicorg/shiftly)
|
5
6
|
|
6
7
|
Factory shift methods collection by [RubyLogic, PL](http://rubylogic.eu)
|
@@ -28,19 +29,13 @@ Then you have access to the following extensions.
|
|
28
29
|
```ruby
|
29
30
|
Time.now.to_factory_date
|
30
31
|
# returns yesterday when it is before 6am and today otherwise
|
31
|
-
```
|
32
32
|
|
33
|
-
```ruby
|
34
33
|
Time.now.shift
|
35
34
|
# returns shift number for datetime
|
36
|
-
```
|
37
35
|
|
38
|
-
```ruby
|
39
36
|
Time.now.shift_beg
|
40
37
|
# returns shift beginning datetime
|
41
|
-
```
|
42
38
|
|
43
|
-
```ruby
|
44
39
|
Time.now.shift_end
|
45
40
|
# returns shift end datetime
|
46
41
|
```
|
@@ -50,9 +45,7 @@ Time.now.shift_end
|
|
50
45
|
```ruby
|
51
46
|
1.next_shift
|
52
47
|
# returns next shift for 1, 2 or 3
|
53
|
-
```
|
54
48
|
|
55
|
-
```ruby
|
56
49
|
1.prev_shift
|
57
50
|
# returns previous shift for 1, 2 or 3
|
58
51
|
```
|
data/Rakefile
CHANGED
data/lib/shiftly/version.rb
CHANGED