indolib_rails 1.0.0 → 1.2.0

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
2
  SHA256:
3
- metadata.gz: 297b371f8f8d113a813c0708dd4d1c40e4f8ee12435cea6c7757116d19116e4f
4
- data.tar.gz: e4923c455ebac29f50680f0a19edef7b22977f31eb7bdd3fbd2ec38b81495d3d
3
+ metadata.gz: 54a103452ae6eecd9610c509eedb6852d45f30a86a724ee8f4b767ecf30e2a4d
4
+ data.tar.gz: fe7449378f1c990cd5bedb2c715b4af6853da7f8dc32294116399b9affcba824
5
5
  SHA512:
6
- metadata.gz: fac8df0bd938e26816785e4f6d9ea704fe7a1d8809d0aaeabf67a494ab506fa2dd3f83b58375aa1da4bed74a5a263e881ebb727d42469fb9b7addd6b411c31a4
7
- data.tar.gz: bd8c70531ec39c08c6c132ee588f0ed3de59e2a1ad4bc1baefef2992460258cbc458e1f561ebab7b0b2fbca057e5f74777990eba27badc3544e521a826c19415
6
+ metadata.gz: 3a4178f197ac0bff565faf1ba658feb2e00ff6e277118f6e7b94d1f7f486111d34e8b65ca7c8f0447699f383413276effbb921058fc9977218c1cd2e07ccef48
7
+ data.tar.gz: 328da32de36a22e8da2e7b001c5dc772d8a06f5920f5c58f4936b03fc8c5868f89e22696ac9d52b44ec057444434fb7bb8600ed2ac1c197ab8f0acd94db974ce
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
@@ -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.2.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,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,8 @@
1
1
  class IndolibRails
2
- def self.hi
3
- puts "Hello world!"
2
+ def self.hi(langauage= "english")
3
+ translator = Translator.new(langauage)
4
+ translator.hi
4
5
  end
5
- end
6
+ end
7
+
8
+ require 'indolib_rails/translator'
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.2.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-10 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
@@ -25,6 +25,7 @@ files:
25
25
  - README.md
26
26
  - indolib_rails.gemspec
27
27
  - lib/indolib_rails.rb
28
+ - lib/indolib_rails/translator.rb
28
29
  - lib/indolib_rails/version.rb
29
30
  homepage: https://github.com/megharana412/indolib_rails.git
30
31
  licenses: