regis 0.0.8 → 0.0.9

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjZmNGQxMWZkMmQ3OTMxNTY5NGEyM2U3NTEyY2YwNWYxYTAxZjJjNg==
4
+ YzY0MDYzY2VhYjk0YmFmZmE0ODFlYzg0MjczODhmZTBiOTQ4NTE0OQ==
5
5
  data.tar.gz: !binary |-
6
- MjBhYTJkOWQ5Y2JhZGQzNDIyMTg1ZDBlNjg5Y2FjNWEzYmZhYjViMQ==
6
+ MGUyZTg5ZDViMmY4NjhkMTBhMjQwNjk5MDJkYzkwYjkwYzZlNTcxYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODM2MDcyODA0Yzg3MjFjODcxOTE2OTc2NGNlYTg5MzQ1MTE4ZGQwNjRlMTkz
10
- MDFkNWZjYzA3NDUyZGIxYjY2ODI1OWQ0MDgyMmQ0NGRlYjQ0Mjg2OWRjYTcz
11
- MDliZGI0MGE1MjMzMzY5ZmYyNzdlZGQ4NzdkN2Y5ODFiY2RhNzQ=
9
+ OTg0ZjU5MTVhZWIwMjJmZTVlMDFkNDY3OWJjZTZmNmUzYWVmZjFiYTBlN2Fi
10
+ YTdkZTViN2EyYjA3OGNlZTk3MjdjNWViZjUwNDU3MjYzN2IxZTEzNDg3NmMz
11
+ NGM3YWE3NGM5NjI5OTQxNjg0ZmM1MDAyZjBkMDE4M2M1YmE1MjU=
12
12
  data.tar.gz: !binary |-
13
- MzllMGI3ODdmYTIyYzlkZjg3NzZjYjE2MWYwZjBlMmM5ODZjNzE3Yzk0MmFm
14
- NzA5ZTliZjg5NTNlNTcyZjRjZWQxNjU5MzdmYmUzOWQxZmEwYmI4ZTRiODYw
15
- NzdkNDFmNjg4ZDVhZmYzOWE5ODM4ZDlkNmE5NTFkMzEyYjQ3Njg=
13
+ Y2RhYWQ5MzA2ZjE4ZGFhNTgwMTUwY2MwNWJmM2Y3MmU2YTBmN2NiOWFiZDk5
14
+ YjEyYmVlZDA2ZTEyNTk0YzJhYTVjYWY4NzYxMWE2OGZkODU2N2VlMTFlOTI4
15
+ NGI2MGZhZjE4ZmZmYjM5YjdjNjdiODIwMTc4OTM2NjI3ZWUyMzE=
@@ -20,4 +20,8 @@ Scenario: api is cached
20
20
  And I ask for a section
21
21
  Then I should receive the section I asked for
22
22
  When I ask for a section
23
- Then I should have a cached response
23
+ Then I should have a cached response
24
+
25
+ Scenario: section has formatted start and end dates
26
+ When I ask for a section
27
+ Then I should have formatted start and end dates
@@ -18,6 +18,11 @@ Then /^I should receive the section I asked for$/ do
18
18
  expect(@response.section.secUUID == $REGIS_TEST_VALUES['section_uuid']).to be true
19
19
  end
20
20
 
21
+ Then /^I should have formatted start and end dates$/ do
22
+ expect(@response.section.formatted_start_date).not_to be_empty
23
+ expect(@response.section.formatted_end_date).not_to be_empty
24
+ end
25
+
21
26
  Then /^I should have populated section values$/ do
22
27
  expect(@response.section.secUUID).not_to be_empty
23
28
  expect(@response.section.reporting_term).not_to be_empty
@@ -50,11 +50,11 @@ module Regis
50
50
  end
51
51
 
52
52
  def formatted_start_date(format="%b %-d")
53
- DateTime.strptime(self[:start_date],"%m\/%d\/%y").strftime(format)
53
+ DateTime.strptime(@start_date,"%Y-%m-%dT%H:%M:%S").strftime(format)
54
54
  end
55
55
 
56
56
  def formatted_end_date(format="%b %-d")
57
- DateTime.strptime(self[:end_date],"%m\/%d\/%y").strftime(format)
57
+ DateTime.strptime(@end_date,"%Y-%m-%dT%H:%M:%S").strftime(format)
58
58
  end
59
59
 
60
60
  def self.formatted_term(value)
@@ -1,3 +1,3 @@
1
1
  module Regis
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Tucker