localeui 0.1.0 → 0.1.2

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: 34ebbd165eaa32936d46e399b8300910a67df1372dfcd7afe305ffb30b862682
4
- data.tar.gz: 2b848e39e1b5a84614c110998103966792291aff6a9c7e9b17688c5207681faf
3
+ metadata.gz: 404f1048695866eb8223a9bd14f7dc3c8d1ed4bb0b0ddca7c79773bd1d2e9089
4
+ data.tar.gz: 4c763dd9166c37533df82b66ad6bfe6d53493c405f374af94b3335e210d4b23f
5
5
  SHA512:
6
- metadata.gz: 86d70ebe060920ce041f2731cbed9aa65bbcd4b86fa4e6130e48880ef8d4113c447b148218cd4722190428d6c0c0fefd61df9d6261a14a95297cd48eb8bab52c
7
- data.tar.gz: 94bbf3d795a02511b45209b276f3810e99a687c1fa9661a620faef1ac0155cdc9b39eaf672e9e358bc1d38538a2338b50adeb168692a93c2cb30377efde48ba6
6
+ metadata.gz: 8365ecacd3310e244318547f5ace4250a4da74a4963b613dea1e320f3a9905962921176046d0460233df870c577c12b950fae9804f61d3f51c5248236dfa41b8
7
+ data.tar.gz: caf4f0a5e42374bfb3bd4f24efc42874fb7e9de68a805407d655d049206bfd734cd9a167d82f7c1deb3a0f07780965b645e404e704df4044746d975f1307207b
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # LocaleUIRails
2
2
 
3
- ![Gem Version](https://img.shields.io/gem/v/localeui-rails)
3
+ ![Gem Version](https://img.shields.io/gem/v/localeui)
4
4
  ![CI Status](https://github.com/localeUI/localeui-rails/actions/workflows/main.yml/badge.svg)
5
5
 
6
6
  The LocaleUI-Rails Gem is a Ruby on Rails application gem that provides developers with a seamless way to manage and synchronise translation files with LocaleUI.com. By integrating the Gem into the Rails application, translations can be automatically synchronised, updated and deployed directly to LocaleUI without manually uploading or copying language files.
@@ -13,15 +13,13 @@ This gem requires Ruby 3.2+ and Rails 7.1+.
13
13
 
14
14
  ## Installation
15
15
 
16
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
17
-
18
16
  Install the gem and add to the application's Gemfile by executing:
19
17
 
20
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
18
+ $ bundle add localeui
21
19
 
22
20
  If bundler is not being used to manage dependencies, install the gem by executing:
23
21
 
24
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
22
+ $ gem install localeui
25
23
 
26
24
  Next, you need to create a config file for localeui-rails. Run the following command to copy a basic config file.
27
25
 
@@ -57,6 +55,22 @@ Run tests with in the terminal
57
55
 
58
56
  $ bin/test
59
57
 
58
+ ## Release
59
+
60
+ 1. Bump the version in `lib/localeui/version.rb` and update `CHANGELOG.md`.
61
+
62
+ 2. Commit and create a git tag for the release:
63
+
64
+ $ git add lib/localeui/version.rb CHANGELOG.md
65
+ $ git commit -m "Release vX.Y.Z"
66
+ $ git tag vX.Y.Z
67
+ $ git push origin main --tags
68
+
69
+ 3. Build and publish the gem to RubyGems:
70
+
71
+ $ gem build localeui.gemspec
72
+ $ gem push localeui-X.Y.Z.gem
73
+
60
74
  ## Contributing
61
75
 
62
76
  Bug reports and pull requests are welcome on GitHub at https://github.com/localeUI/localeui_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/localeUI/localeui-rails/blob/main/CODE_OF_CONDUCT.md).
@@ -5,7 +5,7 @@ require 'localeui'
5
5
  Localeui.config do |config|
6
6
  # These are mandatory parameters that must be set before rake tasks are executed
7
7
  # Base API Endpoint
8
- config.base_api = 'http://localhost:3000/api/v1/'
8
+ config.base_api = 'https://localeui.com/api/v1/'
9
9
 
10
10
  # Authentication Token
11
11
  config.api_token = ''
@@ -92,8 +92,9 @@ module Localeui
92
92
  end
93
93
 
94
94
  def self.all
95
- files = Dir.glob("#{Localeui.locales_path}/**/*").select { |file| File.file?(file) }
96
- files.map { |file| file[Rails.root.join('config/locales/').to_s.length..] }
95
+ Dir.glob("#{Localeui.locales_path}/**/*")
96
+ .select { |path| File.file?(path) }
97
+ .map { |path| path.delete_prefix("#{Localeui.locales_path}/") }
97
98
  end
98
99
  end
99
100
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Localeui
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localeui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Klindwordt
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubygems_version: 3.7.2
105
+ rubygems_version: 4.0.3
106
106
  specification_version: 4
107
107
  summary: LocaleUI Gem for Ruby on Rails applications
108
108
  test_files: []