witt 0.1.0 → 0.2.0

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: 05f7e1816d320b6ef9ec2bf950f125920c1f5f81
4
- data.tar.gz: f83e482c2c717c08409622c093752c2288b662a1
3
+ metadata.gz: f5ee5ade61c2a698b89abacf215cf835eb4a6435
4
+ data.tar.gz: 7bd2ae3c28fe2446c4efd91f3de1805becd87955
5
5
  SHA512:
6
- metadata.gz: 02dc69d3768242f4a5602b00caa22745500e10b5516dea714104de72340f001ab2537fe4f3df524b086a2853929361250b0b218b9f8566f31ef902b0262b57a2
7
- data.tar.gz: e22d0cfd39d469419028ec6f68bd9763912dda2f7de52cba5a214e6eb2802590523ca91777dbd60dc47eede591a382987375cb24aad6d9c4c6d07a6e01f6fc01
6
+ metadata.gz: ce4a3b564004212a530e0c4f135e96054e1c0b4bea288381ece6e2c873b80ec4ba0f330e66f2d856e523dc1e17e205346a1a0e93e013cda825aeb7e30f326aaf
7
+ data.tar.gz: 72ce29d9fa0f3e8748c313aaf77782a0c7abe166f50e9b3cae849cf916d57fe69454ec276594a6070b5145e848da3a1ba693080d6c9d5ebc97f2771bde9925d7
data/README.md CHANGED
@@ -1,34 +1,27 @@
1
- # Witt
1
+ # witt - What Is The Time
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/witt`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Quickly check current time in different timezones without leaving your beloved terminal.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ This is basically a ruby port of [t](https://github.com/cv/t).
6
6
 
7
7
  ## Installation
8
8
 
9
- Add this line to your application's Gemfile:
9
+ As easy as running:
10
10
 
11
- ```ruby
12
- gem 'witt'
13
11
  ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install witt
12
+ $ gem install witt
13
+ ```
22
14
 
23
15
  ## Usage
24
16
 
25
- TODO: Write usage instructions here
17
+ Call it passing as many airport codes as you want, and it will give you the time at each airport:
26
18
 
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
19
+ ```
20
+ $ witt jfk lhr rus
21
+ JFK: ☀️ Oct 31, 14:23 (America/New_York)
22
+ LHR: ☀️ Oct 31, 18:23 (Europe/London)
23
+ RUS: 🌘 Nov 1, 05:23 (Pacific/Guadalcanal)
24
+ ```
32
25
 
33
26
  ## Contributing
34
27
 
data/bin/witt CHANGED
@@ -3,4 +3,5 @@ $LOAD_PATH.push File.expand_path("../../lib", __FILE__)
3
3
 
4
4
  require 'witt'
5
5
 
6
- Witt::WorlClock.new.time_in('America/Los_Angeles')
6
+ airports = ARGV
7
+ Witt.time_in(airports)