etd_model 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/etd_model/etd_helper.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cbdd5ad66dd22c5e6b7f6a8d69fe22c13907475
4
- data.tar.gz: 87f167f1b457bd2f58625eda7ba20afdc0f00296
3
+ metadata.gz: bfab7e22ca2525e8f43727d95434e828b31f28b1
4
+ data.tar.gz: 60578973a4aba6e139ac5827a16d45f366df6f9c
5
5
  SHA512:
6
- metadata.gz: e651a3d04b05a7d6810a57150ca7df7b96addc8bc5edd17f4f75ab29d46960a9d4f0ed529a34a00e3356feff28e29caae0808fe5a539b489616a6ee452363999
7
- data.tar.gz: afe32c2f0d9652e11dfd8f6ff12a88dedfc2891e385ffdb2bcc09250cda1ef27eeb5ea134f40d76b00d69d3d55f7d6f41205d7c602f961f15f663a8a51bb3ce1
6
+ metadata.gz: b34cd9a37e593ed44a945fd1a641f7639883a2b92a2ed6b0fc2546f2f6b5a271a64c3edc77bb4a36667ef83f574a05f9f02ff1783f3dce078afa816ccb974ce1
7
+ data.tar.gz: fd2723c261f5c1fe7989177a1400b7bdeb756c719694aa8a3b87c7d31ee0903e14b596a087eb7e5a1bae3aea777717e2e65387850c678fea563ba323983ba137
@@ -17,7 +17,7 @@ module EtdModel
17
17
  else
18
18
  embargo_months = 0
19
19
  end
20
- return Time.parse(regaction).months_since(embargo_months)
20
+ return Time.strptime(regaction, "%m/%d/%Y %H:%M:%S") + embargo_months.months
21
21
  end
22
22
  nil
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etd_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Kim