indolib_rails 1.0.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 297b371f8f8d113a813c0708dd4d1c40e4f8ee12435cea6c7757116d19116e4f
4
- data.tar.gz: e4923c455ebac29f50680f0a19edef7b22977f31eb7bdd3fbd2ec38b81495d3d
3
+ metadata.gz: ceb3694637db050dff99968f398619fbf7da904d84900bab06cc69bb7f2e1fea
4
+ data.tar.gz: 8a7bc67abe0bb54655f4cb0c7618fbd7622792b3a8c182394a39e78fe43ed036
5
5
  SHA512:
6
- metadata.gz: fac8df0bd938e26816785e4f6d9ea704fe7a1d8809d0aaeabf67a494ab506fa2dd3f83b58375aa1da4bed74a5a263e881ebb727d42469fb9b7addd6b411c31a4
7
- data.tar.gz: bd8c70531ec39c08c6c132ee588f0ed3de59e2a1ad4bc1baefef2992460258cbc458e1f561ebab7b0b2fbca057e5f74777990eba27badc3544e521a826c19415
6
+ metadata.gz: 394d0280232b032e05abd698b323ec274dcff85a7682bec3578a1601c8ad260ed32a8416ca9790caae7a136f4b3c82bc091edecc21e0f72e348ad8a40ac13193
7
+ data.tar.gz: 7b67067de57c306adada42ba1556d64895263bce7ec264c2f520ef59ac92aebc57a3d3e5a83d0a4d8da22bf9813407d59f79169947da027ffda131a8421527cd
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Lokalise team, Ilya Krukowski
3
+ Copyright (c) 2022 Indolib team, Megha Rana
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
data/Rakefile ADDED
File without changes
@@ -1,7 +1,7 @@
1
1
  require File.expand_path('lib/indolib_rails/version', __dir__)
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = 'indolib_rails'
4
- spec.version = IndolibRails::VERSION
4
+ spec.version = '1.3.0'
5
5
  spec.authors = ['Megha Rana']
6
6
  spec.email = ['megha.rana@iwcts.com']
7
7
  spec.summary = 'Indolib integration for Ruby on Rails'
@@ -0,0 +1,19 @@
1
+ require 'active_support/core_ext/time'
2
+ class IndolibRails::Timezone
3
+
4
+
5
+ def initialize(dttime)
6
+ @dttime = dttime
7
+ end
8
+
9
+ def hi
10
+ date = Time.now
11
+ if @dttime.present?
12
+ date_est = date.in_time_zone(ActiveSupport::TimeZone["#{@dttime}"])
13
+ @date_ist = date_est.in_time_zone("Chennai")
14
+ puts @date_ist
15
+ else
16
+ alert "Cannot convert @dttime into local timezone"
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,14 @@
1
+ # class IndolibRails::Translator
2
+ # def initialize(langauage)
3
+ # @langauage = langauage
4
+ # end
5
+
6
+ # def hi
7
+ # case @langauage
8
+ # when "spanish"
9
+ # "hola mundo"
10
+ # else
11
+ # "hello world !"
12
+ # end
13
+ # end
14
+ # end
data/lib/indolib_rails.rb CHANGED
@@ -1,5 +1,11 @@
1
1
  class IndolibRails
2
- def self.hi
3
- puts "Hello world!"
2
+ def self.hi(dttime = "Eastern Time (US & Canada)")
3
+ #translator = Translator.new(langauage)
4
+ #translator.hi
5
+ timezone = Timezone.new(dttime)
6
+ timezone.hi
4
7
  end
5
- end
8
+ end
9
+
10
+ #require 'indolib_rails/translator'
11
+ require 'indolib_rails/timezone'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: indolib_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Megha Rana
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-09 00:00:00.000000000 Z
11
+ date: 2022-11-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem allows to convert different time zones to local server time
14
14
  zone
@@ -23,8 +23,11 @@ files:
23
23
  - Gemfile
24
24
  - LICENSE
25
25
  - README.md
26
+ - Rakefile
26
27
  - indolib_rails.gemspec
27
28
  - lib/indolib_rails.rb
29
+ - lib/indolib_rails/timezone.rb
30
+ - lib/indolib_rails/translator.rb
28
31
  - lib/indolib_rails/version.rb
29
32
  homepage: https://github.com/megharana412/indolib_rails.git
30
33
  licenses: