utc_converter_tool 0.0.2 → 0.0.3

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
- NTc3MDU4MzJkY2Y2OTNmYzE3YTgzNzAyYzQ0OGUyN2JlYjcwNGZlZg==
4
+ M2FmNmM4MWJmMTVjOWI1ZDliZDdjOGE5NTgzMzQ2ZjUwMmJlNTY3Yg==
5
5
  data.tar.gz: !binary |-
6
- YjZlZjFlZDlmNzhmZWNmZGI3ZjkyZTVlYTliNWU0Y2JiMTNlY2Y0MQ==
6
+ OTFiNjkyNTVmZDE0NmFjZTU4NzIyNGY5ZjE4NzM2YjBjODBmMGQ1MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjY1MjBkMGM3Nzg5NmQyM2I3ODAwYWQ2OTQwODg1MjcxMTUxN2Q5NGU3NTUw
10
- YmZkNGEwMjlmMjg2OGNlOTQ0YmRmNTc0ZTI5M2Q5ZGJmYWMyODBlY2U2OWZm
11
- MTFjYTMxODkzZmM4NmUxYTQyY2RlMjYxMTJhZWM5ZTRlNDI5Nzg=
9
+ NTI2NWJhMjY3ZTkyOGRlYjU2MDYyMTIwYjNmZGYyOGFjYTQwZDQzNjA5ZWIx
10
+ YjZmZGI4OTI3YmM0ZTg3MDlhZDA5YmJkOWQyZmEyYjJjMDdmNWRmYjc3NDll
11
+ NjI2ZGM0ZmU2NjNmZDk4OTI1NDg1MjMxMGFmOTJlNzMzYWFhMmU=
12
12
  data.tar.gz: !binary |-
13
- NGNjZjc5MGRkNjBjMmE0OTMyNDY2NDlhM2I4MDQ5MGJjZmQyOGJjZDNiNTQx
14
- ZWNlNjVkNTA5YjhiMGI2ODg1MjAxMDFhODE2YWUxNzIwYmJjMjUwNzI3NjIz
15
- NGEzYWY5ZDVlNWY1NWZiNmY0OTQ3ZTg4YzJlYzc4MmNlYmFlYjM=
13
+ YjFhZDRhMTI1ODc2NDkwYWM4YzA5YzYwOGYxODc0ZmU4M2Y4ZWQxMWNmMjY1
14
+ ODAxMjY2YjU5MTYyOGRkNTgwYjQ4ZjIzZjVhNzk5YmUyMDI2ZTUzNDZhZjA3
15
+ NjQwMTBiOGE5YjM5MTVhZTNkZmQxNGNjOWE3MzZiNGNlZDA2MjY=
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utc_converter_tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zack Walkingstick
@@ -16,11 +16,8 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - lib/README.md
20
- - lib/cucumber/features/step_definitions/time_converter.rb
21
- - lib/cucumber/features/step_definitions/time_converter_steps.rb
22
- - lib/cucumber/features/time_converter.feature
23
- homepage: http://rubygems.org/gems/UTC_converter_tool
19
+ - lib/time_converter.rb
20
+ homepage: http://rubygems.org/gems/utc_converter_tool
24
21
  licenses:
25
22
  - GPL-3.0
26
23
  metadata: {}
data/lib/README.md DELETED
@@ -1,17 +0,0 @@
1
- time_converter
2
- ==============
3
-
4
- Converts 24 hr UTC time into USA Time
5
-
6
- Description:
7
- The goal of this app is to take the default UTC time and convert it to your choice of USA time ('PST', 'EST', 'CST' etc....).
8
- Currently, you can see that if you create a new senario and/or alter a current scenario in the .features file the app will successfully
9
- convert your time (hours:minutes:seconds ex: 12:00:00) to the selected USA format.
10
-
11
- My eventual goal for this gem is to convert UTC time to any time zone in the world but have yet to complete that work. Also, in its
12
- current state daylight savings is not fully implemented so the conversion is currently happening in a non-daylight savings time scenario.
13
- Obviously this is my next phase to make this app actually useful. This update will involve knowing the daylight savings dates for each given
14
- year and converting according to what year is chosen.
15
-
16
- I can see this program eventually being hooked up to a simple front end UI where the user can select a time (current, future or past time),
17
- a date and the desired time zone and will return the accurate time conversion upon clicking the 'convert' button available.
@@ -1,19 +0,0 @@
1
- Given(/^I have entered (\d+):(\d+):(\d+)$/) do |arg1, arg2, arg3|
2
- @converter = Time_Converter.new(arg1, arg2, arg3)
3
- end
4
-
5
- Given(/^I have selected "(.*?)"$/) do |selected_timezone|
6
- @converter.selected_timezone(selected_timezone).should eq selected_timezone
7
- end
8
-
9
- Given(/^I have selected (\d+)\-(\d+)\-(\d+)$/) do |arg1, arg2, arg3|
10
- @converter.selected_date.should eq "#{arg1}-#{arg2}-#{arg3}"
11
- end
12
-
13
- When(/^I press convert$/) do
14
- @result = @converter.convert
15
- end
16
-
17
- Then(/^the result returned should be (\d+):(\d+):(\d+)$/) do |arg1, arg2, arg3|
18
- @result.should eq "#{arg1}:#{arg2}:#{arg3}"
19
- end
@@ -1,48 +0,0 @@
1
- Feature: 24 hour UTC to USA Time Converter
2
- In order to easily convert Current UTC time to USA time
3
- As a developer
4
- I want to convert the UTC time to the desired USA time zone.
5
-
6
- Scenario:
7
- Given I have entered 23:00:00
8
- And I have selected "CST"
9
- When I press convert
10
- Then the result returned should be 17:00:00
11
-
12
- Scenario:
13
- Given I have entered 05:00:00
14
- And I have selected "EST"
15
- When I press convert
16
- Then the result returned should be 24:00:00
17
-
18
- Scenario:
19
- Given I have entered 22:00:00
20
- And I have selected "HST"
21
- When I press convert
22
- Then the result returned should be 12:00:00
23
-
24
- Scenario:
25
- Given I have entered 21:00:00
26
- And I have selected "AKST"
27
- When I press convert
28
- Then the result returned should be 12:00:00
29
-
30
- Scenario:
31
- Given I have entered 01:00:00
32
- And I have selected "PST"
33
- When I press convert
34
- Then the result returned should be 17:00:00
35
-
36
- Scenario:
37
- Given I have entered 24:00:00
38
- And I have selected "MST"
39
- When I press convert
40
- Then the result returned should be 17:00:00
41
-
42
- Scenario:
43
- Given I have entered 22:00:00
44
- And I have selected "MST"
45
- When I press convert
46
- Then the result returned should be 15:00:00
47
-
48
-