Erick Guan
ba99785ec5
Update metadata and Ruby
2024-07-09 00:39:14 +02:00
Charlie Savage
ce73892da0
Support icu naming conventions for msys2 on windows.
...
Co-authored-by: Charlie Savage <cfis@zerista.com>
2024-03-29 17:28:32 +01:00
Erick Guan
2d961a0768
Remove monkeypatch to String
...
String#bytesize returns byte size which might be longer than character
size.
2024-03-11 22:51:02 +01:00
Erick Guan
0ff63065bf
Update changelog
2024-03-09 19:42:46 +01:00
Erick Guan
cbcd8a2f88
Apply linting to source and test code
2024-03-09 19:42:46 +01:00
Erick Guan
be690a0263
Update gitignore
2024-03-09 19:42:46 +01:00
Erick Guan
4681abad00
Remove travis config
2024-03-09 19:42:46 +01:00
Erick Guan
9e273bbd6c
Set up linting and tests workflow
2024-03-09 19:42:46 +01:00
Erick Guan
30b31ab66c
Configure rubocops for linting
2024-03-09 19:42:46 +01:00
Erick Guan
4fddbed03e
Recommends a ruby version for development
2024-03-09 19:42:46 +01:00
Erick Guan
2001f1307c
Modernize gemspec
2024-03-09 19:42:46 +01:00
Erick Guan
b5f4b3a838
Add editorconfig
2024-03-09 19:42:46 +01:00
Erick Guan
532f5f0b70
Update document files
...
- Use simpler syntax for README
- Update LICENSE date
- Set up changelog
2024-03-09 19:42:46 +01:00
Damian Nelson
d30c065b26
Merge pull request #70 from erickguan/damiann/v0.5.3-release
...
v0.5.3 Release
2023-12-27 15:46:53 -08:00
Damian Nelson
e9a8c4baa6
v0.5.3
2023-12-27 15:36:21 -08:00
Damian Nelson
d179069844
Merge pull request #69 from erickguan/dnelson/fix_display_name_with_context
...
Flip locales for new Locale method
2023-12-27 15:30:59 -08:00
Damian Nelson
6e6b9e5a05
Flip locales for consistency with other Locale API methods
2023-12-27 14:09:14 -08:00
Damian Nelson
7a7ad193fe
Merge pull request #68 from erickguan/damiann/v0.5.2-release
...
v0.5.2 Release
2023-11-14 09:25:34 -08:00
Damian Nelson
d4b6129a51
v0.5.2
2023-11-13 15:12:29 -08:00
Damian Nelson
8f343bb540
Merge pull request #67 from erickguan/dnelson/add_display_names
...
Display locale name with alternative territory name
2023-11-13 15:00:49 -08:00
Damian Nelson
0fa0373704
Add Locale with examples to README.md
2023-11-13 11:42:22 -08:00
Damian Nelson
08197e74ed
Close ULocaleDisplayNames pointer to prevent memory leak
2023-11-13 11:18:11 -08:00
Damian Nelson
19656fd041
Add locale display name with display context
2023-10-30 16:09:05 -07:00
Alexandre Schmitt
685ced1291
`0.5.1` release ( #65 )
2023-06-15 11:34:30 -07:00
Alexandre Schmitt
1831df9a74
Don't replace quoted substr with hour cycle ( #64 )
...
This updated the regex (originally added in 514f145c1a
) to exclude any matching characters that are quoted (single quotes), addressing an issue with 12h formatting for Finnish where 'klo' ('at') became 'hlo' in the formatted output.
2023-06-15 11:07:00 -07:00
Erick Guan
2a9b94a0ce
update documentation about duration formatting
2022-12-20 12:31:37 +01:00
Erick Guan
55f96af699
release 0.5.0
2022-12-20 12:17:20 +01:00
Erick Guan
59f7c32e98
Merge pull request #56 from KJTsanaktsidis/ktsanaktsidis/duration_formatting
...
Add formatting for durations e.g. "2h 4min. 2sec."
2022-12-20 11:32:22 +01:00
KJ Tsanaktsidis
8daded67af
Explicitly unsupport negative durations
2022-12-20 11:13:42 +01:00
KJ Tsanaktsidis
da26ebcfbc
Add formatting for durations e.g. "2h 4min. 2sec."
...
Uses unumf_* to format the individual components of the duration, and
ulistfmt_* to join them. That's roughly analogous with what the C++
MeasureFormatter class does internally.
I asked about some feedback for this approach on the ICU mailing list
too: https://sourceforge.net/p/icu/mailman/message/37645785/
2022-12-20 11:13:42 +01:00
KJ Tsanaktsidis
44b11a658f
Add a helper for attaching functions if present
2022-12-20 11:13:42 +01:00
Erick Guan
d47b79fa11
Merge pull request #61 from erickguan/update-travis
...
Update travis with ICU 71.1
2022-12-20 10:32:29 +01:00
Erick Guan
1f54f1550f
build icu
2022-12-19 23:50:42 +01:00
Erick Guan
79a471f4b0
get more information about icu
2022-12-19 21:30:19 +01:00
Erick Guan
40dc82b538
Merge pull request #59 from sandbergja/add-transliteration-example-to-readme
...
Add transliteration example to README
2022-12-12 21:55:31 +01:00
Erick Guan
744f49f230
Merge pull request #58 from day7/collator_improvements
...
Fix pull 32 Collator Improvements
2022-12-12 21:54:48 +01:00
Erick Guan
a4d889dac0
Merge pull request #60 from erickguan/revert-32-collator_improvements
...
Revert "Two collator improvements"
2022-12-12 21:54:30 +01:00
Erick Guan
b5e740471e
Revert "Two collator improvements"
2022-12-12 21:51:59 +01:00
Erick Guan
67ed2859d0
Merge pull request #32 from ccutrer/collator_improvements
...
Two collator improvements
2022-12-12 21:50:59 +01:00
Jane Sandberg
0d8505405f
Add transliteration example to README
2022-09-12 14:21:46 -07:00
Craig Alan Pettersen
6834c33462
change 'be_true' and 'be_false' to 'be true' and 'be false' in spec/collation_spec.rb so tests will pass
2022-05-31 15:29:52 -05:00
Craig Alan Pettersen
57a5b61d05
Merge commit 'refs/pull/32/head' of https://github.com/erickguan/ffi-icu into collator_improvements
2022-05-31 15:05:09 -05:00
Damian Nelson
b57e49bad5
v0.4.3
2022-04-15 11:30:42 -07:00
Damian Nelson
7280d2dd40
Merge pull request #55 from KJTsanaktsidis/ktsanaktsidis/dont_include_ampm_by_itself
...
Don't add am/pm marker if there is no time in the format string
2022-04-15 10:31:16 -07:00
KJ Tsanaktsidis
bf6cfa6bb1
Don't add am/pm marker if there is no time in the format string
...
Currently, doing something like `format(time, time: :none, hour_cycle:
'h12')` will give a string like "10/04/2021 PM" - the am/pm marker is
added to the skeleton even though the skeleton has no other time
markers.
2022-04-15 14:08:48 +10:00
Damian Nelson
2554722181
v0.4.2
2022-04-06 16:54:51 -07:00
Damian Nelson
0da02b1725
Merge pull request #53 from KJTsanaktsidis/ktsanaktsidis/handle_hour_cycle
...
Add support for h11/h12/h23/h24 hour cycle
2022-04-06 16:49:26 -07:00
KJ Tsanaktsidis
514f145c1a
Add support for h11/h12/h23/h24 hour cycle
...
The hour cycle can be directly specified to the call to #format, or
inferred from an "@hours=" keyword on the locale.
The algorithm for fixing up the skeletons & patterns is the same as that
used in Firefox:
https://github.com/tc39/ecma402/issues/665#issuecomment-1084833809
2022-04-06 16:36:43 +10:00
Damian Nelson
59a20a72d8
Merge pull request #54 from KJTsanaktsidis/ktsanaktsidis/allow_overriding_icu_on_macos
...
Allow overriding libicu on MacOS with FFI_ICU_LIB
2022-04-01 17:29:02 -07:00
Damian Nelson
e1797c0f66
Merge pull request #52 from KJTsanaktsidis/ktsanaktsidis/fix_udatpg_destructor
...
Use the correct function to delete udatpg objects
2022-04-01 08:55:44 -07:00