tp_common 0.2.0 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 29986a252b2cd1e669c85402ff82b51ef2f546c7
4
- data.tar.gz: e94b9ee973ec2ff62be762bafa82c5b511f56a02
2
+ SHA256:
3
+ metadata.gz: 956a9496037f69163ca3b611cdd1c28924e5bd43feb14637cca37d7f742c3a69
4
+ data.tar.gz: de9e90f3593f8d2cbebbf24cb6c5cd5f184fd0e00653ecfed8f54c4c68c62deb
5
5
  SHA512:
6
- metadata.gz: 91932453d5c34aac60641624f69a5de83d6f7cb0e3ca004d50443c2f128c9039a2083a8001f169e23973ef839fa3ddcd259097cd65a4bbd396b8ac4630d1dda3
7
- data.tar.gz: 3ace8095798c170b1df66b03a8fd5a0be6a767222b2e52348b7c6e1332c2957d7e5fbebdad5b56350da238c91d43ea6caa2e9b9075de7779a2a9cf268fd787f8
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.3.1
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
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- tp_common (0.2.0)
4
+ tp_common (0.2.1)
5
5
  activesupport (>= 4.2.0, <= 5.0.3)
6
6
  tzinfo (~> 1.2, >= 1.2.0)
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- tp_common (0.2.0)
4
+ tp_common (0.2.1)
5
5
  activesupport (>= 4.2.0, <= 5.0.3)
6
6
  tzinfo (~> 1.2, >= 1.2.0)
7
7
 
@@ -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[:name]).local_to_utc(time)
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
@@ -1,3 +1,3 @@
1
1
  module TpCommon
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-01-10 00:00:00.000000000 Z
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.10
197
+ rubygems_version: 2.7.6
198
198
  signing_key:
199
199
  specification_version: 4
200
200
  summary: Common libraries used for TINYpulse apps