split_dmy 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 31735b92deac70f49b3d910445e504f16d818a62
4
- data.tar.gz: 19083a589f95add2d3e1610c1d8ea6ba8e60f4d0
3
+ metadata.gz: 4d5f2692704ad5aaf8a5b0958c75d91d11ec741b
4
+ data.tar.gz: 0995b8ee482f70ec8e1de6aa5d765288c3028464
5
5
  SHA512:
6
- metadata.gz: 8b30f8b20a42374ddef4a4e3ca84bf7b8e93a373d24ef125df141463d0f0ef22a096f829975268dde58e5be1fbe2a781875fa26a89152a0ab9a877629bef575f
7
- data.tar.gz: 98a9addb8fc1f2855c8595e5c20f586f60a5d577ac1aa3b46959e3a153696b1ca53f258bba06f5d24d8c60690198155d9efa8baa222e679cc07d95500f831b4a
6
+ metadata.gz: 401188b51ecb7281bfedd7817c37cd94d5c74a62576b53c6c8a8b90b0e6e5c473dfbec42f23fb972386c482ddf9a2b41a2666ca72c65bb71740d330ac83e9e11
7
+ data.tar.gz: 5ead4d9920fc5dca084b6874adfe42f4b772574b14c639ec31081a3d2cba4eeaff3dfa98831c983dfb974814956b73c8a9be8a8b629f0b9d4694eae63a9df8c8
data/README.md CHANGED
@@ -5,6 +5,7 @@
5
5
 
6
6
  [![security](https://hakiri.io/github/CeeBeeUK/split_dmy/master.svg)](https://hakiri.io/github/CeeBeeUK/split_dmy/master)
7
7
  [![Stories in Ready](https://badge.waffle.io/CeeBeeUK/split_dmy.svg?label=ready&title=Ready)](http://waffle.io/CeeBeeUK/split_dmy)
8
+ [![Gem Version](https://badge.fury.io/rb/split_dmy.svg)](http://badge.fury.io/rb/split_dmy)
8
9
 
9
10
  Allow splitting a date field into constituent day, month and year parts.
10
11
 
@@ -1,3 +1,3 @@
1
1
  module SplitDmy
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/split_dmy.gemspec CHANGED
@@ -8,11 +8,11 @@ Gem::Specification.new do |spec|
8
8
  spec.version = SplitDmy::VERSION
9
9
  spec.authors = ['Colin Bruce']
10
10
  spec.email = ['colinbruce@gmail.com']
11
- spec.summary = 'Add split accessors for date fields /
12
- into day, month, year parts'
11
+ spec.summary = 'Add split accessors for date fields into day, month, year parts'
13
12
  spec.description = <<-EOF
14
- Use `split_dmy_accessor :date_of_birth`to provide `date_of_birth_day`,
15
- `date_of_birth_month`, `date_of_birth_year` accessors on the model.'
13
+ Adds accessors to a class so that the date can be set as a string while days, months and years can be set as integers.
14
+ It also allows for month as short and long text inputs, e.g. Jan, March. It will validate resulting dates and generate
15
+ errors when parts are invalid and where combined parts are incorrect.
16
16
  EOF
17
17
  spec.homepage = 'https://github.com/CeeBeeUK/split_dmy'
18
18
  spec.license = 'MIT'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: split_dmy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Bruce
@@ -150,9 +150,10 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
- description: |2
154
- Use `split_dmy_accessor :date_of_birth`to provide `date_of_birth_day`,
155
- `date_of_birth_month`, `date_of_birth_year` accessors on the model.'
153
+ description: " Adds accessors to a class so that the date can be set as a string
154
+ while days, months and years can be set as integers. \n It also allows for month
155
+ as short and long text inputs, e.g. Jan, March. It will validate resulting dates
156
+ and generate \n errors when parts are invalid and where combined parts are incorrect.\n"
156
157
  email:
157
158
  - colinbruce@gmail.com
158
159
  executables: []
@@ -199,5 +200,5 @@ rubyforge_project:
199
200
  rubygems_version: 2.4.4
200
201
  signing_key:
201
202
  specification_version: 4
202
- summary: Add split accessors for date fields / into day, month, year parts
203
+ summary: Add split accessors for date fields into day, month, year parts
203
204
  test_files: []