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 +4 -4
- data/README.md +19 -5
- data/lib/generators/templates/localeui_config.rb +1 -1
- data/lib/localeui/resources/source_file.rb +3 -2
- data/lib/localeui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 404f1048695866eb8223a9bd14f7dc3c8d1ed4bb0b0ddca7c79773bd1d2e9089
|
|
4
|
+
data.tar.gz: 4c763dd9166c37533df82b66ad6bfe6d53493c405f374af94b3335e210d4b23f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8365ecacd3310e244318547f5ace4250a4da74a4963b613dea1e320f3a9905962921176046d0460233df870c577c12b950fae9804f61d3f51c5248236dfa41b8
|
|
7
|
+
data.tar.gz: caf4f0a5e42374bfb3bd4f24efc42874fb7e9de68a805407d655d049206bfd734cd9a167d82f7c1deb3a0f07780965b645e404e704df4044746d975f1307207b
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# LocaleUIRails
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|

|
|
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
|
|
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
|
|
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 = '
|
|
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
|
-
|
|
96
|
-
|
|
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
|
data/lib/localeui/version.rb
CHANGED
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.
|
|
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:
|
|
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: []
|