tp_common 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +10 -1
- data/README.md +10 -0
- data/gemfiles/rails_4.gemfile.lock +1 -1
- data/gemfiles/rails_5.gemfile.lock +1 -1
- data/lib/tp_common/timezones.rb +2 -1
- data/lib/tp_common/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 956a9496037f69163ca3b611cdd1c28924e5bd43feb14637cca37d7f742c3a69
|
4
|
+
data.tar.gz: de9e90f3593f8d2cbebbf24cb6c5cd5f184fd0e00653ecfed8f54c4c68c62deb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 612270814d47910a62c93fe0fe3d37591b3d670ef1eebd7d9e37c0c75fb458cd2bdc256fb7cb187298c8a55ec7f07c35b2b5742d3d31d5b96a9a4128695c9154
|
7
|
+
data.tar.gz: 20fad257e557778b89eeafdb4d669d048367ff27ba334c61320634a24787d487e4867bf849c4866120f3302ecb4ef6703140a1a8c5202577f4cd118f05f34cd0
|
data/.travis.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
|
-
- 2.
|
4
|
+
- 2.4.1
|
5
5
|
gemfile:
|
6
6
|
- gemfiles/rails_4.gemfile
|
7
7
|
- gemfiles/rails_5.gemfile
|
@@ -10,3 +10,12 @@ script:
|
|
10
10
|
- bundle exec rspec --exclude-pattern "spec/integration/**/*_spec.rb"
|
11
11
|
- bundle exec rspec spec/integration/rails_spec.rb
|
12
12
|
- bundle exec rspec spec/integration/rails_custom_timezones_spec.rb
|
13
|
+
deploy:
|
14
|
+
provider: rubygems
|
15
|
+
api_key:
|
16
|
+
secure: nHtQxeCICi2KYSS/K7fQ1n50eLrE2kVwagxYXVU3cXDAfLyQRMT0StzZMqT3lM6HNhFrCQveZJMDgTpxaQKkYjbR4t9dmDA6OxaZmD/AUw6/rykNGiQVptGJymvnygmPUO+igXOlNot4IEN3VXQMuhpsVBY26ScUmMhIWvPU0hb8ZniG6NSU7/uORD46UqLWVvaU0jy3+OYQzyFBo/OxhTZmVPRMlK+Kz8SgrIHtp3A/l5KBg6s/KXGY/St58D3aQ6GsholYpdMEuMt2pEGF4PyJZJvIOJKGzY1GuSRUfB0lhFLWbPExY4PDzICtM3+8r69rMw9mnKVuq9kkYOMsiqi+iRZbsFd6v6y+V/n/00U/GW6/pf5GEzgBCW1okaYEI0Bau3E+hUe8nmbylOQGg99SdbEAs0B6U2vB5eCbnqZ1QZLK3xxIQpj54kd9RRnStcmO/CdNaLWsYqjWCizaAlmUOxFTJlP5cGeAdhbXytJxgDunjLpLXbdq1PnldF4AVZKr6hKBT50kt5Z0h2uAWiNMfjVxHLMk4CLYj4XDaBGiqzNhINaDzl06rDBAZ1oiHTeowq03+1gyXB64UVZW5IgnTEJYCEM75OF5yvEPf2NIowb7wU+pxnKo9tsjPoD7DafFz/NlYzHFauairj6SvKvjrPO3A3E+kFqVCIDY+gM=
|
17
|
+
gem: tp_common
|
18
|
+
on:
|
19
|
+
tags: true
|
20
|
+
branch: master
|
21
|
+
repo: TINYhr/tp_common
|
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
[![Build Status](https://travis-ci.org/TINYhr/tp_common.svg?branch=master)](https://travis-ci.org/TINYhr/tp_common)
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/tp_common.svg)](https://badge.fury.io/rb/tp_common)
|
2
3
|
|
3
4
|
# TpCommon
|
4
5
|
|
@@ -60,6 +61,15 @@ $ bundle exec appraisal rails-5 rspec spec/integration/rails_custom_timezones_sp
|
|
60
61
|
|
61
62
|
```
|
62
63
|
|
64
|
+
## Deploy
|
65
|
+
|
66
|
+
1. Branch from master
|
67
|
+
2. Bump version `/lib/tp_common/version.rb`
|
68
|
+
3. Run `bundle && bundle exec appraisal install`
|
69
|
+
4. Push to CI to run test
|
70
|
+
5. Merge to `master`
|
71
|
+
6. Pull and tag `master` new version
|
72
|
+
7. Push tag
|
63
73
|
|
64
74
|
## Contributing
|
65
75
|
|
data/lib/tp_common/timezones.rb
CHANGED
@@ -65,7 +65,8 @@ module TpCommon
|
|
65
65
|
#
|
66
66
|
def self.local_to_utc(time, zone)
|
67
67
|
zone_value = LIST_ZONES[zone]
|
68
|
-
ActiveSupport::TimeZone.new(zone_value[:
|
68
|
+
(ActiveSupport::TimeZone.new(zone_value[:title]) ||
|
69
|
+
ActiveSupport::TimeZone.new(zone_value[:name])).local_to_utc(time)
|
69
70
|
end
|
70
71
|
|
71
72
|
# Opposite of #local_to_utc It conver a time to time in zone defined in LIST_ZONES
|
data/lib/tp_common/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tp_common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TINYpulse Devops
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
196
|
rubyforge_project:
|
197
|
-
rubygems_version: 2.6
|
197
|
+
rubygems_version: 2.7.6
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: Common libraries used for TINYpulse apps
|