period_calculator 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzE5YTg1NDZlMWJlYjIxZmNiODAxY2EzMmUxY2Q1MzQxODhlZjI4MA==
4
+ OTMwYzQ5OGE3MDEyZmZjYzNjNWVhMTMzZWY0NDMyMTAxNTc2NWY2NQ==
5
5
  data.tar.gz: !binary |-
6
- MzBiM2NlMTQ5YzViN2NhZTM0OTE2MWUwZDZiY2M3YWY3NGQ3ZTc5MA==
6
+ NWIzNjYxODIyNTA0OTRmMDFlNGY5NTBlYjQwY2JmNDAzOGM0ZGUzNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWQ4YjZkOTc5MmU1ZmNlOTI4NWJhODg4YTI3MWNjYTM2YjE4NDU1NjhkNWNl
10
- YWQyODVjYWE1ODZjZjY0YTI4NDJkYzRlMTEzNWUyMDYxOTM4NTQyZDM4YzRl
11
- ODM0NmIzYzFjYmEzYWMyZDZlNjI0Njk5YzMzNTIwYjA5MThmNGM=
9
+ OGYyY2U1ZDZhMjFjMjQxYzE2NzMyYTQxMzRjYjM2ZWVlZTA3MTE3N2ZlMjc3
10
+ ZDI0OWUwZTE2NGQyZTQ2YTNjMjcwMGU4OGVmZjY3ODY5YzIzYzE0ODc0M2Y3
11
+ NTFmZDY5MDhiODgxMGNiZDlmZTVhZWZmN2MxN2JmOTJhZDdiMDI=
12
12
  data.tar.gz: !binary |-
13
- NDc3NTk5ZDk1NTU4NTMzZmZiNzkzYjBiMjAxNTRkNTA5ODY1MzAwOGMzZjdm
14
- YTc1OWQwYzU3ZTkzNzMwOTg5ZGI4OTk4NjM4OWIxZDkxOWZjMDZhODY1NTU0
15
- ZTAwOGExOTQzMmVjNmFmZGNhYjdlOTBmOGJlMDNmNTJhNWQwNjQ=
13
+ N2Q4MzczNjU0Zjk2M2EzMmRjMzcxZjJiMGM5Mzk1OTc5NDIyMDdmNjhhYzg0
14
+ OGFjYWMzZjgxMzc0MmU5NmUxOGVjODZiZjkzYjAxMTdiMmIxYWIzMWRiOTdl
15
+ YzhlZWEzMzY1Nzk3MTAxNDAxMzM3ZWIyOTg2YTVmOTk2NmUwZjg=
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # PeriodCalculator
2
2
 
3
- TODO: Write a gem description
3
+ ##Know your next period date (Approx)
4
+
5
+ ##We are writing IPHONE & ANDRIOD APPS for women health care.
4
6
 
5
7
  ## Installation
6
8
 
@@ -18,7 +20,12 @@ Or install it yourself as:
18
20
 
19
21
  ## Usage
20
22
 
21
- TODO: Write usage instructions here
23
+ To knoow your next period date
24
+
25
+ ##
26
+
27
+ period('2014-07-10')
28
+
22
29
 
23
30
  ## Contributing
24
31
 
@@ -1,3 +1,3 @@
1
1
  module PeriodCalculator
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -2,4 +2,9 @@ require "period_calculator/version"
2
2
 
3
3
  module PeriodCalculator
4
4
  # Your code goes here...
5
+
6
+ a = [28,29,30]
7
+ def period(date)
8
+ (Date.parse(date) - a.sample ).to_s
9
+ end
5
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: period_calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - saikiranmothe