tz_pickup 0.0.1

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.
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ db/zone.*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in tz_pickup.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Yaroslav Zemlyanukhin
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,55 @@
1
+ # TzPickup
2
+
3
+ ## Description
4
+
5
+ Simple tool for picking up timezone identifier
6
+ using geographic coordinates.
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ gem 'tz_pickup'
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install tz_pickup
21
+
22
+ Run:
23
+
24
+ $ bundle exec tz_pickup charge
25
+
26
+ for charging with new zone.tab
27
+
28
+ ## Usage
29
+
30
+ * **TzPickup.tz_pickup(latitude, longitude)** returns timezone identifier,
31
+ `latitude`, `longitude` - are coordinates of the zone's principal location
32
+ in ISO 6709 sign-degrees-minutes-seconds format,
33
+ either +-DDMMSS+-DDMMSS or +-DDMMSS+-DDDMMSS,
34
+ first latitude (+ is north), then longitude (+ is east).
35
+
36
+ For example:
37
+
38
+ ```ruby
39
+ TzPickup.tz_pickup(554500, 373600)
40
+ => "Europe/Moscow"
41
+ ```
42
+
43
+ ## Contributing
44
+
45
+ 1. Fork it
46
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
47
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
48
+ 4. Push to the branch (`git push origin my-new-feature`)
49
+ 5. Create new Pull Request
50
+
51
+ =======
52
+ tz_pickup
53
+ =========
54
+
55
+ tz_pickup
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/USAGE ADDED
@@ -0,0 +1,5 @@
1
+ Now run:
2
+
3
+ $ bundle exec tz_pickup charge
4
+
5
+ for charging with new zone.tab
data/bin/tz_pickup ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'tz_pickup'
4
+ TzPickup::CLI.start
data/lib/tz_pickup.rb ADDED
@@ -0,0 +1,29 @@
1
+ require "tz_pickup/version"
2
+ require "tz_pickup/cli"
3
+ require "tz_pickup/tz_tree"
4
+ require "kdtree"
5
+
6
+ module TzPickup
7
+ ##
8
+ # Method return proper root path
9
+ # either for rails environment
10
+ # or for tests
11
+ #
12
+ # Input: none
13
+ # Output: root path
14
+ def self.root
15
+ (defined?(Rails) && !Rails.root.nil?) ? Rails.root : File.expand_path('.')
16
+ end
17
+
18
+ ##
19
+ # Method returns timezone
20
+ # based on location
21
+ # that is the nearest to +lat+ and +lon+
22
+ #
23
+ # Input: latitude and longitude
24
+ # Output: international timezone name
25
+ def self.tz_pickup(lat, lon)
26
+ tree = TzTree.get_tree(root)
27
+ tree.find_tz(lat, lon)
28
+ end
29
+ end
@@ -0,0 +1,63 @@
1
+ require 'thor'
2
+ require 'colorize'
3
+
4
+ module TzPickup
5
+ class CLI < Thor
6
+
7
+ DOWNLOAD_URL = 'ftp://ftp.iana.org/tz/tzdata-latest.tar.gz'
8
+
9
+ def initialize(*args)
10
+ super
11
+
12
+ @file = DOWNLOAD_URL.split('/')[-1]
13
+ @dst_dir = File.join(TzPickup.root, TzPickup::TzTree::DB_PATH)
14
+ @dst_file = File.join(@dst_dir, @file)
15
+
16
+ @commands = [
17
+ {
18
+ cmd: "mkdir -p #{ @dst_dir }",
19
+ success: "1. Using #{ @dst_dir }",
20
+ error: "1. Failed to use #{ @dst_dir }"
21
+ },
22
+ {
23
+ cmd: "wget -q #{ DOWNLOAD_URL } -O #{ @dst_file }",
24
+ success: "2. #{ @file } downloaded successfully and saved to #{ @dst_file }",
25
+ error: "2. #{ @file } failed to be downloaded from #{ DOWNLOAD_URL } and saved to #{ @dst_file }"
26
+ },
27
+ {
28
+ cmd: "tar zxf #{ @dst_file } -C #{ @dst_dir } #{ TzPickup::TzTree::ZONE_FILE }",
29
+ success: "3. #{ TzPickup::TzTree::ZONE_FILE } successfully extracted to #{ @dst_dir }",
30
+ error: "3. #{ TzPickup::TzTree::ZONE_FILE } failed to be extracted from #{ @dst_file } to #{ @dst_dir }"
31
+ }
32
+ ]
33
+
34
+ @ensure_block = {
35
+ cmd: "rm -f #{ @dst_file }",
36
+ success: "4. #{ @dst_file } removed successfully",
37
+ error: "4. #{ @dst_file } failed to be removed"
38
+ }
39
+ end
40
+
41
+ no_commands do
42
+ def execute(command)
43
+ if system(command[:cmd])
44
+ puts command[:success].green
45
+ else
46
+ puts command[:error].red
47
+ raise SystemCallError.new(command[:error], $?.to_i)
48
+ end
49
+ end
50
+ end
51
+
52
+ desc "charge", "Charge the latest tzdata file from #{ DOWNLOAD_URL }"
53
+ def charge
54
+ begin
55
+ @commands.each { |cmd| execute cmd }
56
+ rescue SystemCallError => error
57
+ puts "Errno: #{ error.errno }"
58
+ ensure
59
+ execute @ensure_block
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,133 @@
1
+ module TzPickup
2
+ class TzTree
3
+ DB_PATH = 'db'
4
+ ZONE_FILE = 'zone.tab'
5
+ TREE_FILE = 'zone.tree'
6
+ CITY_FILE = 'zone.cities'
7
+
8
+ ##
9
+ # Method creates object of TzTree
10
+ # that is based on zone-file located
11
+ # under +path+ directory
12
+ #
13
+ # Input: root-path for working directory
14
+ # Output: TzTree object
15
+ def self.get_tree(path)
16
+ TzPickup::TzTree.new(path)
17
+ end
18
+
19
+ ##
20
+ # Method parses +line+ of text
21
+ # to list of three params
22
+ #
23
+ # Input: line of text
24
+ # Output: list of longitude, latitude
25
+ # and timezone name
26
+ def self.parse_line(line)
27
+ return nil if line =~ /^\s*#/ #drop off comments
28
+
29
+ rx = %r|[A-Z]{2}\s+(?<latitude>[+\-]\d{4}(?:\d{2})?)(?<longitude>[+\-]\d{5}(?:\d{2})?)\s+(?<timezone>[\w/]+)|
30
+ matches = line.match(rx)
31
+
32
+ raise ArgumentError, "String should match tz database format (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)" unless matches
33
+
34
+ [normalize(matches[:latitude]), normalize(matches[:longitude]), matches[:timezone]]
35
+ end
36
+
37
+ def self.normalize(num)
38
+ return num.to_i * 100 if num =~ /^[+\-]\d{4}\d?$/
39
+ num.to_i
40
+ end
41
+ ##
42
+ # Constructor that search for tree-file under +path+
43
+ # and either loads tree to memory
44
+ # or creates file and loads its contents to memory
45
+ #
46
+ # Input: root-path for working directory
47
+ # Output: TzTree object
48
+ def initialize(path)
49
+ @path = path
50
+ @tree, @cities = if File.exists?(tree_dst_path) && File.exists?(city_dst_path)
51
+ TzPickup::TzTree.load(tree_dst_path, city_dst_path)
52
+ else
53
+ TzPickup::TzTree.create(src_path, tree_dst_path, city_dst_path)
54
+ end
55
+ end
56
+
57
+ def src_path
58
+ File.join(@path, TzPickup::TzTree::DB_PATH, TzPickup::TzTree::ZONE_FILE)
59
+ end
60
+
61
+ def tree_dst_path
62
+ File.join(@path, TzPickup::TzTree::DB_PATH, TzPickup::TzTree::TREE_FILE)
63
+ end
64
+
65
+ def city_dst_path
66
+ File.join(@path, TzPickup::TzTree::DB_PATH, TzPickup::TzTree::CITY_FILE)
67
+ end
68
+
69
+ ##
70
+ # Method finds to the nearest dot
71
+ # to the dot specified by +lat+ and +lon+
72
+ #
73
+ # Input: latitude and longitude
74
+ # Output: conventional timezone name
75
+ def find_tz(lat, lon)
76
+ city_index = @tree.nearest(lat, lon)
77
+ @cities.at(city_index)
78
+ end
79
+
80
+ ##
81
+ # Method creates tree structure from +src+ zone-file
82
+ # and dumps tree to +tree_dst+ file
83
+ # and dumps cities list to +city_dst+
84
+ #
85
+ # It raises exception on error of file reading
86
+ #
87
+ # Input: name of source zone-file,
88
+ # name of destination tree file,
89
+ # name of destination cities file,
90
+ # Output: list of tree structure for time-zones and cities list
91
+ def self.create(src, tree_dst, city_dst)
92
+ points = []
93
+ cities = []
94
+
95
+ File.open(src, 'r').each do |line|
96
+ timezone = TzPickup::TzTree.parse_line(line)
97
+
98
+ next unless timezone
99
+
100
+ cities << timezone[2]
101
+ points << [timezone[0], timezone[1], (cities.size - 1)]
102
+ end
103
+
104
+ tree = Kdtree.new(points)
105
+
106
+ File.open(tree_dst, 'w') { |f| tree.persist(f) }
107
+ File.open(city_dst, 'w') { |f| f.puts cities }
108
+
109
+ [tree, cities]
110
+ end
111
+
112
+ ##
113
+ # Method loads tree structure
114
+ # from existing +zone_file+
115
+ # and existiong +city_file+
116
+ #
117
+ # Input: name of zone tree file
118
+ # and name of cities file
119
+ # Output: tree structure for time-zones
120
+ # and city list
121
+ def self.load(zone_file, city_file)
122
+ cities = []
123
+
124
+ tree = File.open(zone_file) { |f| Kdtree.new(f) }
125
+
126
+ File.open(city_file, 'r').each do |line|
127
+ cities << line.chomp
128
+ end
129
+
130
+ [tree, cities]
131
+ end
132
+ end
133
+ end
@@ -0,0 +1,3 @@
1
+ module TzPickup
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,111 @@
1
+ # 2. Latitude and longitude of the zone's principal location
2
+ # in ISO 6709 sign-degrees-minutes-seconds format,
3
+ # either +-DDMM+-DDDMM or +-DDMMSS+-DDDMMSS,
4
+ # first latitude (+ is north), then longitude (+ is east).
5
+ # 3. Zone name used in value of TZ environment variable.
6
+
7
+ =begin
8
+ VI +1821-06456 America/St_Thomas
9
+ VN +1045+10640 Asia/Ho_Chi_Minh
10
+ VU -1740+16825 Pacific/Efate
11
+ WF -1318-17610 Pacific/Wallis
12
+ WS -1350-17144 Pacific/Apia
13
+ YE +1245+04512 Asia/Aden
14
+ YT -1247+04514 Indian/Mayotte
15
+ ZA -2615+02800 Africa/Johannesburg
16
+ ZM -1525+02817 Africa/Lusaka
17
+ ZW -1750+03103 Africa/Harare
18
+ =end
19
+ require 'tz_pickup'
20
+ require 'mocha/api'
21
+
22
+ describe TzPickup do
23
+ it "should return the nearest time zone for specified lon and lat" do
24
+ TzPickup.tz_pickup(-124800, 451500).should eql 'Indian/Mayotte'
25
+ end
26
+
27
+ it "should return root path for current env" do
28
+ TzPickup.root.should eql File.expand_path('.')
29
+
30
+ Rails = mock('Rails')
31
+ Rails.expects(:root).returns('correct rails root path').at_least_once
32
+
33
+ TzPickup.root.should eql 'correct rails root path'
34
+ end
35
+ end
36
+
37
+ describe TzPickup::TzTree do
38
+ before(:all) do
39
+ @path = File.expand_path('.')
40
+ @src = File.join(@path, TzPickup::TzTree::DB_PATH, TzPickup::TzTree::ZONE_FILE)
41
+ @zones = File.join(@path, TzPickup::TzTree::DB_PATH, TzPickup::TzTree::TREE_FILE)
42
+ @cities = File.join(@path, TzPickup::TzTree::DB_PATH, TzPickup::TzTree::CITY_FILE)
43
+ end
44
+
45
+ describe "get_tree" do
46
+ it "should return TzTree object for zone.tab under current root path" do
47
+ tree_object = TzPickup::TzTree.get_tree(@path)
48
+
49
+ tree_object.should respond_to(:find_tz)
50
+ end
51
+ end
52
+
53
+ describe "parse_line" do
54
+ it "should parse line of text with location specified by +-DDMM+-DDDMM to list [latitude, longitude, timezone]" do
55
+ line = "VI +1821-06456 America/St_Thomas"
56
+
57
+ TzPickup::TzTree.parse_line(line).should eql [182100, -645600, 'America/St_Thomas']
58
+ end
59
+
60
+ it "should parse line of text with location specified by +-DDMMSS+-DDDMMSS to list [latitude, longitude, timezone]" do
61
+ line = "US +211825-1575130 Pacific/Honolulu Hawaii"
62
+
63
+ TzPickup::TzTree.parse_line(line).should eql [211825, -1575130, 'Pacific/Honolulu']
64
+ end
65
+
66
+ it "should raise an exception on parsing incorrect line of text" do
67
+ line = "US 000000-121212121212 some_incorrect_data"
68
+
69
+ lambda { TzPickup::TzTree.parse_line(line) }.should raise_error(ArgumentError)
70
+ end
71
+ end
72
+
73
+ describe "create" do
74
+ before(:each) do
75
+ File.delete(@zones) if File.exists?(@zones)
76
+ File.delete(@cities) if File.exists?(@cities)
77
+ end
78
+
79
+ it "should create Kdtree file from zone-file" do
80
+ tree, cities = TzPickup::TzTree.send(:create, @src, @zones, @cities)
81
+
82
+ tree.should respond_to(:nearest)
83
+ File.exists?(@zones).should be true
84
+ File.exists?(@cities).should be true
85
+ end
86
+
87
+ it "should raise error if zone-file is unavailable" do
88
+ lambda { TzPickup::TzTree.send(:create, 'incorrect/file/name', @zones, @cities) }.should raise_error(Errno::ENOENT)
89
+ end
90
+ end
91
+
92
+ describe "load" do
93
+ it "should load Kdtree from zone-file" do
94
+ TzPickup::TzTree.send(:create, @src, @zones, @cities)
95
+ tree, cities = TzPickup::TzTree.send(:load, @zones, @cities)
96
+
97
+ tree.should respond_to(:nearest)
98
+ cities.should respond_to(:index)
99
+ end
100
+
101
+ it "should raise error if tree-file is unavailable" do
102
+ lambda { TzPickup::TzTree.send(:load, 'incorrect/file/name', @cities) }.should raise_error(Errno::ENOENT)
103
+ end
104
+ end
105
+
106
+ describe "find_tz" do
107
+ it "should find timezone by given lat and lon" do
108
+ TzPickup::TzTree.new(@path).find_tz(+182100, -645600).should eql 'America/St_Thomas'
109
+ end
110
+ end
111
+ end
data/tz_pickup.gemspec ADDED
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'tz_pickup/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "tz_pickup"
8
+ spec.version = TzPickup::VERSION
9
+ spec.authors = ["Yaroslav Zemlyanukhin"]
10
+ spec.email = ["y.zemlyanukhin@mdterra.org"]
11
+ spec.description = %q{Simple tool for picking up timezone identifier using geographic coordinates.}
12
+ spec.summary = %q{Timezone pick up utility}
13
+ spec.homepage = "https://github.com/d4rk5eed/tz_pickup"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec"
24
+ spec.add_development_dependency "mocha"
25
+
26
+ spec.post_install_message = File.read('USAGE')
27
+
28
+ spec.add_dependency "kdtree"
29
+ spec.add_dependency "thor"
30
+ spec.add_dependency "colorize"
31
+ end
metadata ADDED
@@ -0,0 +1,175 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tz_pickup
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Yaroslav Zemlyanukhin
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-04-25 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.3'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rspec
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: mocha
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: kdtree
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: thor
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: colorize
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ description: Simple tool for picking up timezone identifier using geographic coordinates.
127
+ email:
128
+ - y.zemlyanukhin@mdterra.org
129
+ executables:
130
+ - tz_pickup
131
+ extensions: []
132
+ extra_rdoc_files: []
133
+ files:
134
+ - .gitignore
135
+ - Gemfile
136
+ - LICENSE.txt
137
+ - README.md
138
+ - Rakefile
139
+ - USAGE
140
+ - bin/tz_pickup
141
+ - db/zone.tab
142
+ - lib/tz_pickup.rb
143
+ - lib/tz_pickup/cli.rb
144
+ - lib/tz_pickup/tz_tree.rb
145
+ - lib/tz_pickup/version.rb
146
+ - spec/tz_pickup_spec.rb
147
+ - tz_pickup.gemspec
148
+ homepage: https://github.com/d4rk5eed/tz_pickup
149
+ licenses:
150
+ - MIT
151
+ post_install_message: ! "Now run:\n\n\t$ bundle exec tz_pickup charge\n\nfor charging
152
+ with new zone.tab"
153
+ rdoc_options: []
154
+ require_paths:
155
+ - lib
156
+ required_ruby_version: !ruby/object:Gem::Requirement
157
+ none: false
158
+ requirements:
159
+ - - ! '>='
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
+ none: false
164
+ requirements:
165
+ - - ! '>='
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ requirements: []
169
+ rubyforge_project:
170
+ rubygems_version: 1.8.25
171
+ signing_key:
172
+ specification_version: 3
173
+ summary: Timezone pick up utility
174
+ test_files:
175
+ - spec/tz_pickup_spec.rb