remote_i18n_extension 1.0.0 → 1.0.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
2
  SHA256:
3
- metadata.gz: 7534fa537c20f856e3ad95d19b8108731289d5966a2fdde6b72d90420e7f1652
4
- data.tar.gz: 4a974f71c326f864d06d76aa3c00f6b7a06733386081693b0e16a193bad8272f
3
+ metadata.gz: 4462d111b6ff6d1d02b12a70886bde530d9e771e0dfc84303bc17021ef818341
4
+ data.tar.gz: 3b265d9c63a98829b818ab821af981ec4d15c8c53de4b0a6eec4ccbc260fe400
5
5
  SHA512:
6
- metadata.gz: 42d66376720540baff95b4f1de7556eaa3a920750fc73912f5162db4e6d68a2b89a978a655bd754ffcbc6f0ae8db82c685497b8f4777d6fd29a49cb418c564f9
7
- data.tar.gz: '08f0700de67562a9a619306c6b10f5f2339d04571698a93ca199de5e18990e3b80d09d5b2f6911abb9b19b4c687b238f3d70f642f868a170e8f06200a39e55e6'
6
+ metadata.gz: 548957f28def7ad18ce9af042ed059d913e729fa1096a51b5b0014e3278fd6a66b73dbaa3dcf2f85256a73c3debc301f299fc887baa5452b4944a1468fd2f653
7
+ data.tar.gz: 8b29e326aa9f245eee1097c768e85f4efec98efbd0cf3d7b4d4e63013253917fe90d8ba11fd70a65d48a267ffdbd776130fb9a2108683c2e343426f299c434af
@@ -1,10 +1,10 @@
1
1
  require 'rails/generators'
2
2
 
3
- module RemoteI18nExtensionHcc
3
+ module RemoteI18nExtension
4
4
  class InstallGenerator < Rails::Generators::Base
5
5
  source_root File.expand_path('../templates', __dir__)
6
6
 
7
- desc 'Creates config file for RemoteI18nExtensionHcc'
7
+ desc 'Creates config file for RemoteI18nExtension'
8
8
 
9
9
  def copy_config
10
10
  template 'remote_i18n_extension_config.rb', "#{Rails.root}/config/remote_i18n_extension.rb"
@@ -1,6 +1,6 @@
1
1
  require 'remote_i18n_extension'
2
2
 
3
- RemoteI18nExtensionHcc.config do |config|
3
+ RemoteI18nExtension.config do |config|
4
4
  # All the configurations are mandatory
5
5
 
6
6
  # URL to your remote locales folder housing all the translations
@@ -1,6 +1,6 @@
1
1
  require 'open-uri'
2
2
 
3
- module RemoteI18nExtensionHcc
3
+ module RemoteI18nExtension
4
4
  module Backend
5
5
  class Remote < I18n::Backend::Simple
6
6
  protected
@@ -35,7 +35,7 @@ module RemoteI18nExtensionHcc
35
35
  private
36
36
 
37
37
  def load_remote_locales(filename)
38
- remote_host = RemoteI18nExtensionHcc.remote_host
38
+ remote_host = RemoteI18nExtension.remote_host
39
39
  URI.parse("#{remote_host}/#{filename}").read
40
40
  end
41
41
  end
@@ -1,3 +1,3 @@
1
- module RemoteI18nExtensionHcc
2
- VERSION = '1.0.0'.freeze
1
+ module RemoteI18nExtension
2
+ VERSION = '1.0.1'.freeze
3
3
  end
@@ -1,9 +1,9 @@
1
1
  require 'i18n'
2
2
  require_relative 'remote_i18n_extension/backend/remote'
3
3
 
4
- module RemoteI18nExtensionHcc
4
+ module RemoteI18nExtension
5
5
  I18n.backend = I18n::Backend::Chain.new(
6
- RemoteI18nExtensionHcc::Backend::Remote.new,
6
+ RemoteI18nExtension::Backend::Remote.new,
7
7
  I18n::Backend::Simple.new
8
8
  )
9
9
 
@@ -37,7 +37,7 @@ module RemoteI18nExtensionHcc
37
37
 
38
38
  def init_i18n_backend
39
39
  I18n.backend = I18n::Backend::Chain.new(
40
- RemoteI18nExtensionHcc::Backend::Remote.new,
40
+ RemoteI18nExtension::Backend::Remote.new,
41
41
  I18n::Backend::Simple.new
42
42
  )
43
43
  end
@@ -2,12 +2,12 @@ require File.expand_path('lib/remote_i18n_extension/version', __dir__)
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'remote_i18n_extension'
5
- spec.version = RemoteI18nExtensionHcc::VERSION
5
+ spec.version = RemoteI18nExtension::VERSION
6
6
  spec.authors = ['Hassan Ahmed']
7
7
  spec.email = ['hassan91ahmed@gmail.com']
8
8
  spec.summary = 'Support remote fetching of locales'
9
9
  spec.description = 'Support remote fetching of locales'
10
- spec.homepage = 'https://github.com/Gooner91/remoteI18nExtensionHcc'
10
+ spec.homepage = 'https://github.com/Gooner91/remote_i18n_extension'
11
11
  spec.license = 'MIT'
12
12
  spec.platform = Gem::Platform::RUBY
13
13
  spec.required_ruby_version = '>=3.1.3'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote_i18n_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hassan Ahmed
@@ -97,7 +97,7 @@ files:
97
97
  - lib/remote_i18n_extension/backend/remote.rb
98
98
  - lib/remote_i18n_extension/version.rb
99
99
  - remote_i18n_extension.gemspec
100
- homepage: https://github.com/Gooner91/remoteI18nExtensionHcc
100
+ homepage: https://github.com/Gooner91/remote_i18n_extension
101
101
  licenses:
102
102
  - MIT
103
103
  metadata: