force-utc 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 +7 -0
- data/CHANGES +13 -0
- data/LICENSE +21 -0
- data/README.md +24 -0
- data/Rakefile +4 -0
- data/force-utc.gemspec +19 -0
- data/lib/force-utc.rb +6 -0
- metadata +64 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7a3a064fad3ed8bbbb596aed1d2644c86e1f3acb
|
4
|
+
data.tar.gz: 75b1002a5a6338b913a791047c3fd40e020de7eb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9e5b33be8ef9f749477adf4c50d6eb616c7da7b05509f35523e4251dc69710840c195e0478a4071bcd4e950522cf1bdc841ef4697fc7d290e9fda3231bf23c84
|
7
|
+
data.tar.gz: 46ca81f8901e5003c894b2557be07bd7894f9d237d641208167789b23cc4d3b31774dd3723ffc58138d601d81b1331b3ddb79f71f746659d81d5a5c31169fdd3
|
data/CHANGES
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
0.0.3 (2015-06-11):
|
2
|
+
|
3
|
+
Do not package vendor and pkg dirs.
|
4
|
+
|
5
|
+
#-------------------------------------------------------------------------------
|
6
|
+
0.0.2 (2015-06-11):
|
7
|
+
|
8
|
+
Fix library file name to match the new gem name.
|
9
|
+
|
10
|
+
#-------------------------------------------------------------------------------
|
11
|
+
0.0.1 (2015-06-11):
|
12
|
+
|
13
|
+
Initial opensource release.
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2014-2015 Alexey Kovyrin
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
What is this?
|
2
|
+
-------------
|
3
|
+
|
4
|
+
This simple ruby gem forces a process requiring it to use UTC timezone no matter
|
5
|
+
what TZ value is configured in the environment.
|
6
|
+
|
7
|
+
|
8
|
+
Why do I need this?
|
9
|
+
-------------------
|
10
|
+
|
11
|
+
I have created this gem to make sure our ruby projects would use the same
|
12
|
+
timezone on development machines, testing containers, production servers and
|
13
|
+
everywhere in between. Even when you try to configure rails and ruby to use a
|
14
|
+
specific timezone, there is always some library that would use a system TZ value.
|
15
|
+
|
16
|
+
Who are the authors?
|
17
|
+
--------------------
|
18
|
+
|
19
|
+
This ruby gem has been created at Swiftype.com for our internal use and then the
|
20
|
+
sources were opened for other people to use. All the code in this package has
|
21
|
+
been developed by Oleksiy Kovyrin for Swiftype.com and is released under the MIT
|
22
|
+
license.
|
23
|
+
|
24
|
+
For more details, see LICENSE file.
|
data/Rakefile
ADDED
data/force-utc.gemspec
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = 'force-utc'
|
6
|
+
s.version = '0.0.3'
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
s.authors = [ 'Oleksiy Kovyrin' ]
|
9
|
+
s.email = [ 'alexey@kovyrin.net' ]
|
10
|
+
s.homepage = 'https://github.com/kovyrin/force-utc-rubygem'
|
11
|
+
|
12
|
+
s.summary = %q{Force evetrything to use UTC}
|
13
|
+
s.description = %q{Processes using this gem will use UTC for all date and time operations no matter what timezone is used on the server}
|
14
|
+
|
15
|
+
s.add_development_dependency 'rake'
|
16
|
+
|
17
|
+
s.files = Dir.glob("**/*").reject { |f| f =~ /^(vendor|pkg|Gemfile)/ }
|
18
|
+
s.require_paths = [ 'lib' ]
|
19
|
+
end
|
data/lib/force-utc.rb
ADDED
metadata
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: force-utc
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Oleksiy Kovyrin
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: Processes using this gem will use UTC for all date and time operations
|
28
|
+
no matter what timezone is used on the server
|
29
|
+
email:
|
30
|
+
- alexey@kovyrin.net
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- CHANGES
|
36
|
+
- LICENSE
|
37
|
+
- README.md
|
38
|
+
- Rakefile
|
39
|
+
- force-utc.gemspec
|
40
|
+
- lib/force-utc.rb
|
41
|
+
homepage: https://github.com/kovyrin/force-utc-rubygem
|
42
|
+
licenses: []
|
43
|
+
metadata: {}
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options: []
|
46
|
+
require_paths:
|
47
|
+
- lib
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
requirements: []
|
59
|
+
rubyforge_project:
|
60
|
+
rubygems_version: 2.4.5
|
61
|
+
signing_key:
|
62
|
+
specification_version: 4
|
63
|
+
summary: Force evetrything to use UTC
|
64
|
+
test_files: []
|