Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge with original fork (first since 2013) #8

Open
wants to merge 582 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
582 commits
Select commit Hold shift + click to select a range
3928666
^ Release 3.0.0.rc13
PikachuEXE Jun 29, 2016
6dac31d
Bugfix: make i18n-js compatible with rails 5
AubinWinddle Jul 15, 2016
63fa0a4
Merge pull request #413 from AubinWinddle/rails5
PikachuEXE Jul 18, 2016
56b8b2b
Merge two objects that has same key in separated files
takashi Aug 3, 2016
f37bec4
Update CHANGELOG.md
takashi Aug 10, 2016
e704cf7
Merge pull request #416 from takashi/support-multiple-translation-fil…
PikachuEXE Aug 11, 2016
c97ad33
~ Fix CHANGELOG entries
PikachuEXE Aug 11, 2016
eaa769b
* Support sprockets 2, 3 and 4 when registering preprocessor
PikachuEXE Aug 22, 2016
901d2f4
Merge pull request #418 from fnando/feature/support-sprockets-234
PikachuEXE Aug 24, 2016
5a29ac4
~ Update CHANGELOG
PikachuEXE Aug 29, 2016
babb881
^ Release 3.0.0.rc14
PikachuEXE Aug 29, 2016
a2ce930
* Use old syntax to define lambda for compatibility with older Rubies
PikachuEXE Aug 31, 2016
06652b6
Allow numeric values in YAML
dan-brooks-otb Sep 2, 2016
ea32629
Support booleans too
dan-brooks-otb Sep 2, 2016
12b8cbc
Merge pull request #420 from dan-brooks-otb/allow-numbers-in-translat…
PikachuEXE Sep 6, 2016
dcb5994
Remove fallback locale validation
akxcv Sep 17, 2016
3bc38ed
Merge pull request #425 from akxcv/master
PikachuEXE Sep 19, 2016
dbb29aa
* Use new syntax for stubbing
PikachuEXE Sep 19, 2016
b88747f
* Use our own implementation instead of `with_indifferent_access` fro…
PikachuEXE Sep 22, 2016
53735ab
* Remove active support entirely and use our own `#slice` method
PikachuEXE Sep 23, 2016
4e1737a
~ Update README for a known issue about loading order
PikachuEXE Sep 26, 2016
90a4c18
~ Update CHANGELOG
PikachuEXE Sep 26, 2016
4d663db
Merge pull request #427 from fnando/fix/missing-dependency
PikachuEXE Sep 27, 2016
3a21a62
Fix bug with pluralization or interpolation of 'null' message + tests…
MichaelHoste Oct 7, 2016
3554ec8
Add fallback to pluralize
xykox Nov 10, 2016
9998a91
Add fallback to pluralize
xykox Nov 10, 2016
7c02c22
Fallback to pluralize rewriting to meet the requirements
xykox Nov 14, 2016
9d36e15
Add fallback to pluralize (#433)
PikachuEXE Nov 15, 2016
2a6d9f8
BugFix : I18n pluralization missing subtree
xykox Nov 22, 2016
0457a24
Merge pull request #435 from xykox/pluralize_fallback_scope_level2
PikachuEXE Nov 23, 2016
6fa7737
! Fix error raised in middleware cache cleaning in parallel test
PikachuEXE Nov 30, 2016
b54c8b9
~ Update change log for recent changes
PikachuEXE Dec 7, 2016
c35f26c
^ Release 3.0.0.rc15
PikachuEXE Dec 7, 2016
21f40b7
Fix #437 make defaultValue works on plural translation
cantin Dec 13, 2016
6d84cc4
Merge pull request #438 from cantin/master
PikachuEXE Dec 13, 2016
0ca309c
~ Add tips for using pluralisation & number formatting together
PikachuEXE Jan 10, 2017
5c5bdd9
~ Fix typo
PikachuEXE Jan 10, 2017
6f410d8
! Fix UMD pattern so the global/root won’t be undefined (#446)
PikachuEXE Mar 13, 2017
72b72a6
* Install JS test framework with package.json
PikachuEXE Mar 13, 2017
0bc1cba
* Test against MRI 2.3.3 & 2.4.0
PikachuEXE Mar 13, 2017
a4dfe54
* Test against i18n 0.8.0 too
PikachuEXE Mar 13, 2017
bb9c3f2
* Forgot to put new gemfile in Travis config
PikachuEXE Mar 13, 2017
a6b73a2
* Stop testing for 2.0 (EOL)
PikachuEXE Mar 13, 2017
4df8623
* Enforce latest rake to be used
PikachuEXE Mar 13, 2017
2fde4ca
* Drop support for ruby < 2.1
PikachuEXE Mar 13, 2017
7ed2d29
^ Release 3.0.0.rc16
PikachuEXE Mar 13, 2017
f82b1ad
~ Update badges in README
PikachuEXE Mar 13, 2017
74ff061
~ Fix license badge in README
PikachuEXE Mar 13, 2017
56e2d2e
~ Flat style badge please
PikachuEXE Mar 13, 2017
b8fb918
^ Release 3.0.0
PikachuEXE Apr 1, 2017
2106dbc
Refactor/simplify initializer (#451)
Rafe Apr 11, 2017
3395177
Add lazy evaluation for default message, since default message is not…
Apr 5, 2017
0631a3d
Merge pull request #449 from Rafe/feature/lazy-default-message
PikachuEXE Apr 11, 2017
83d5c5f
Replace prepareOptions with single params to just set default object
Apr 5, 2017
1c85c04
Remove side effects in createTranslationOptions and pluralize
Apr 5, 2017
b2732c1
Merge pull request #450 from Rafe/refactor/remove-side-effect-and-pre…
PikachuEXE Apr 18, 2017
578555f
Fix #303 Rails 3, doesn't seem to pickup "new" stuff
artygus Apr 13, 2017
a23dc51
Merge pull request #453 from artygus/rails3_pipeline_fix
PikachuEXE Apr 19, 2017
490c384
* Update version to 3.0.0 in package.json
PikachuEXE May 19, 2017
aee2088
+ Add file .npmignore
PikachuEXE May 19, 2017
3b9def8
Update link to CLDR plural rules
bahrieinn Jun 13, 2017
3c5bb50
Merge pull request #458 from bahrieinn/patch-1
PikachuEXE Jun 14, 2017
f4cdecf
Update README.md (#459)
ydakuka Jun 16, 2017
2feb839
* Add spec for 3 part locale fallbacks
PikachuEXE Jul 20, 2017
d383e59
* Implement 3 part locale fallbacks
PikachuEXE Jul 20, 2017
343590d
Simplify Rails version checks
franzliedke Jul 25, 2017
eb86ad2
Merge pull request #467 from franzliedke-pulls/466-relax-rails-versio…
PikachuEXE Jul 28, 2017
c69d907
Merge pull request #465 from fnando/fix/new-locale-format-fallback
PikachuEXE Aug 2, 2017
5a28bc5
~ Add .editorconfig
PikachuEXE Aug 2, 2017
58b93e9
~ Update CHANGELOG
PikachuEXE Aug 2, 2017
a4f947f
^ Release 3.0.1
PikachuEXE Aug 2, 2017
ef1543a
* Update package.json before publishing to npm
PikachuEXE Aug 2, 2017
5abadf6
~ Update README about installation by NPM
PikachuEXE Aug 2, 2017
53aa17a
* Ignore unrelated files before publishing npm package
PikachuEXE Aug 2, 2017
ad2215c
Fix code format in Readme
ehoffmann Aug 28, 2017
ec28fff
Merge pull request #469 from ehoffmann/master
PikachuEXE Aug 29, 2017
5f8f167
Avoid writing files if we don't have to.
mipearson Sep 21, 2017
7146428
Merge pull request #473 from marketplacer/DontWriteIfUnchanged
PikachuEXE Sep 22, 2017
a88b206
! Fix not comparing files content
PikachuEXE Sep 25, 2017
dcf0425
* Run tests for I18n 0.9.x
PikachuEXE Oct 16, 2017
6edc1fb
* Update Travis config for ruby versions & gemfiles
PikachuEXE Oct 16, 2017
51b9025
fix fallback bug
Oct 26, 2017
6a6ae57
Add a test case for 3 part locale fallbacks
Oct 26, 2017
11c27b6
Merge pull request #475 from kilolumen/fix_fallback
PikachuEXE Oct 26, 2017
df29752
^ Release 3.0.2
PikachuEXE Oct 26, 2017
c37eba5
~ Remove useless entries in change log
PikachuEXE Oct 26, 2017
38a4883
~ Update instruction for Rails app without Asset Pipeline
PikachuEXE Dec 14, 2017
3a4b686
Fix extend when objects have array values
lourenci Dec 29, 2017
02380bc
Merge pull request #487 from lourenci/fix-extend-merge-with-array
PikachuEXE Jan 2, 2018
6f94d29
^ Release 3.0.3
PikachuEXE Jan 2, 2018
f7ec16a
* Test with MRI 2.5
PikachuEXE Jan 2, 2018
3b8b0e3
* Update rubygems to avoid issue
PikachuEXE Jan 2, 2018
43fe15c
^ Release 3.0.3 on npm
PikachuEXE Jan 3, 2018
51a81d1
Fix a bug when rails project has only Webpacker
lourenci Jan 24, 2018
83587a6
Merge pull request #488 from lourenci/fix-when-only-webpacker
PikachuEXE Jan 26, 2018
d2970d1
^ Release 3.0.4
PikachuEXE Jan 26, 2018
8a13dcf
making it clearer that creating translations.js is only for rails wit…
dowi Feb 1, 2018
53cb0c2
removed unneeded link
dowi Feb 1, 2018
8e74756
Merge pull request #489 from dowi/master
PikachuEXE Feb 1, 2018
becaa23
Allow i18n 1.x in gemspec
ragesoss Feb 21, 2018
307dc10
Add gemfile for i18n 1.0
ragesoss Feb 21, 2018
8d4f1a5
Formatting updates from running npm and appraisal commands
ragesoss Feb 21, 2018
2bfef8d
Merge pull request #492 from ragesoss/master
PikachuEXE Feb 26, 2018
236f4da
* Test against I18n 1.0.x on Travis
PikachuEXE Feb 26, 2018
01b9a35
^ Release 3.0.5
PikachuEXE Feb 26, 2018
19c728f
* Add TravisBuddy notifications in GitHub comments
PikachuEXE Apr 16, 2018
db3cdf8
Add config file as a dependency of filtered translations
zyla May 29, 2018
eea9830
Merge pull request #497 from restaumatic/bugfix/depend-on-config-file
PikachuEXE May 30, 2018
4141ae3
$ Rename a private method
PikachuEXE May 30, 2018
7f91499
~ Add more code comments
PikachuEXE May 30, 2018
c035e8b
^ Release 3.0.6
PikachuEXE May 30, 2018
3d3dfd7
! Fix error raised when config file absent
PikachuEXE May 30, 2018
5249d01
^ Release 3.0.7
PikachuEXE May 30, 2018
db6d797
Interpolate translation array (#498)
c100k Jun 6, 2018
cb073a0
^ Release 3.0.8
PikachuEXE Jun 6, 2018
9dd9e9e
* Release 3.0.8 on npm too
PikachuEXE Jun 6, 2018
a491da2
$ Use ES5 way to write spec
PikachuEXE Jun 21, 2018
a8cabca
$ Remove unused vars
PikachuEXE Jun 21, 2018
d3ec4c2
! Fix translation array interpolation for array with null
PikachuEXE Jun 21, 2018
8e0c302
^ Release 3.0.9
PikachuEXE Jun 21, 2018
b80a86f
* Add a test case for translation key with null
PikachuEXE Jun 21, 2018
eb5baab
Update i18n.js (#501)
metanest Jun 26, 2018
118c422
unnecessary empty statement removed (#502)
metanest Jun 27, 2018
c8f6ff4
Fix extend method when translations have null values
Jun 28, 2018
3681929
Merge pull request #503 from wanovak/fix-extend-merge-with-null
PikachuEXE Jun 29, 2018
6d7dd9b
^ Release 3.0.10
PikachuEXE Jun 29, 2018
94dafc6
* Cache yarn & node_modules on Travis
PikachuEXE Jun 29, 2018
34e70db
* Use yarn install on Travis
PikachuEXE Jun 29, 2018
397cc1a
The element of Array may not be "string"
HunDunDM Jul 1, 2018
683986e
add test case
HunDunDM Jul 5, 2018
6431b92
Merge pull request #505 from HunDunDM/master
PikachuEXE Jul 6, 2018
4070e7a
^ Release 3.0.11
PikachuEXE Jul 6, 2018
1674eb5
Documented toTime
danilobuerger Aug 11, 2018
7129e66
Merge pull request #509 from danilobuerger/patch-1
PikachuEXE Aug 13, 2018
8fd33e8
Clarify how interpolation works
Dagurmart Oct 3, 2018
ff9a88c
Merge pull request #512 from Dagurmart/Documentation-tweaks
PikachuEXE Oct 4, 2018
608d552
~ Add a new known issue to doc
PikachuEXE Oct 8, 2018
6d821a3
~ Update example for interpolation
PikachuEXE Oct 8, 2018
1179660
added code fix and test case to pluralize the correct scope when tran…
eriese Oct 13, 2018
5ed79cd
reverted whitespace in CHANGELOG
eriese Oct 14, 2018
77e0eac
Merge pull request #516 from eriese/fix-pluralization-with-defaults
PikachuEXE Oct 16, 2018
3503a84
Add option to set different backend for I18n::JS to use.
sbungartz Oct 26, 2018
c60dc13
Use I18n::JS.backend for fallback module detection.
sbungartz Oct 26, 2018
1064920
Merge pull request #519 from sbungartz/configurable-backend
PikachuEXE Nov 1, 2018
f2dbf5f
^ Release 3.1.0
PikachuEXE Nov 1, 2018
e9efb9a
~ Fix recent change log entries format
PikachuEXE Nov 1, 2018
e757cfb
* Use back minor MRI versions in Travis config
PikachuEXE Nov 1, 2018
290816a
* Add coveralls
PikachuEXE Nov 1, 2018
a7f599b
~ Update badges in README
PikachuEXE Nov 1, 2018
5fbae6b
! Fix coveralls usage
PikachuEXE Nov 1, 2018
89baf60
Add custom backend instructions to README
sbungartz Nov 7, 2018
81dbd81
Update README with information on reloading with I18n::JS.backend != …
sbungartz Nov 8, 2018
9d041cd
Merge pull request #521 from sbungartz/add-custom-backend-instruction…
PikachuEXE Nov 8, 2018
c4b0aaf
Add json only feature for file exports/nodejs imports
illogikal Nov 12, 2018
aa975a9
Merge pull request #524 from illogikal/json_only_feature
PikachuEXE Nov 14, 2018
b0d917a
* Update version requirement of I18n for CVE-2014-10077
PikachuEXE Nov 16, 2018
dc7caf9
* Test against i18n 1.1 and not < 0.8
PikachuEXE Nov 16, 2018
e85502c
* Ignore coverage files
PikachuEXE Nov 16, 2018
11b6f22
^ Release 3.2.0
PikachuEXE Nov 16, 2018
35c54e4
* Test against i18n 1.2.x
PikachuEXE Dec 11, 2018
0d626d8
* Test against i18n 1.2 & 1.3 on Travis
PikachuEXE Dec 21, 2018
361361d
* Stop testing ruby 2.1 & 2.2 since unable to run `gem update --system`
PikachuEXE Dec 21, 2018
57c1d83
$ Stop escaping char in Regexp unnecessarily
PikachuEXE Dec 21, 2018
7acc9a6
* Use strict value comparison in JS and refactor a bit
PikachuEXE Dec 21, 2018
c1f658e
* Add missing semicolons after some statements, remove unused var
PikachuEXE Dec 21, 2018
01272ae
* Test against ruby 2.6 & I18n 1.4
PikachuEXE Jan 2, 2019
f8ecc90
* Test against I18n 1.5
PikachuEXE Jan 7, 2019
b74036b
Loosen gem dependency of i18n gem
johnnyshields Jan 17, 2019
c380512
Version/test change
johnnyshields Jan 17, 2019
5e53f02
Remove line causing failure
johnnyshields Jan 17, 2019
606b444
Update i18n-js.gemspec
johnnyshields Jan 18, 2019
43af749
Update .travis.yml
johnnyshields Jan 18, 2019
621b48a
* Switch to expect syntax in spec files
PikachuEXE Jan 18, 2019
f734851
Merge pull request #530 from johnnyshields/patch-5
PikachuEXE Jan 18, 2019
c1b1165
Fix merging of plural keys (#472)
johnnyshields Jan 22, 2019
5786e88
json_only option should allow multiple locales in one file (#531)
johnnyshields Jan 22, 2019
931c534
^ Release 3.2.1
PikachuEXE Jan 22, 2019
869d168
! Return invalid date/time input values (null & undefined) as-is
PikachuEXE May 8, 2019
02ab0b0
* Test against i18n 1.6.x
PikachuEXE May 8, 2019
5c73e33
^ Release 3.2.2
PikachuEXE May 9, 2019
8568fdd
allow rails 6
mjhoy May 23, 2019
7b2c827
Merge pull request #536 from mjhoy/rails-6
PikachuEXE May 24, 2019
fac2e34
^ Release 3.2.3
PikachuEXE May 24, 2019
dcd371d
added support for , , and strftime formats
dancingshell Jun 4, 2019
d35dd5e
updated docs for P format
dancingshell Jun 4, 2019
dc76dcb
Merge pull request #537 from dancingshell/add-strftime-formats
PikachuEXE Jun 5, 2019
4b2ff1f
^ Release 3.3.0
PikachuEXE Jun 6, 2019
fc83dff
~ Add badge for NPM package
PikachuEXE Jun 6, 2019
1136345
~ Specify the badge source below badges
PikachuEXE Jun 6, 2019
f37d6ce
~ Forgot to use backquote syntax
PikachuEXE Jun 6, 2019
9b89dde
Added ability to import another js library in an es6 way
mcamara May 30, 2019
ffd39fa
Added tests and updated readme
Sep 16, 2019
2520f7a
Changed import to prefix
Oct 9, 2019
84dec7c
Merge pull request #549 from mcamara/master
PikachuEXE Oct 10, 2019
57bd670
* Test againest I18n 1.7
PikachuEXE Oct 10, 2019
6dbfa25
^ Release 3.4.0
PikachuEXE Oct 15, 2019
afb4be4
Fix merging of plural keys to work with fallbacks that aren't overridden
ghiculescu Oct 15, 2019
42571dd
better handling of locales where the pluralization keys differ from t…
ghiculescu Oct 15, 2019
1cbf146
Hash#slice was only added in Ruby 2.5
ghiculescu Oct 15, 2019
dd6135c
* Turn off noisy TravisBuddy
PikachuEXE Oct 16, 2019
64d8c5a
~ Fix typo in README
PikachuEXE Oct 16, 2019
d209e33
* Turn on TravisBuddy again with less noisy mode
PikachuEXE Oct 16, 2019
0c5dc6e
+ test
ghiculescu Oct 17, 2019
40efcbf
Merge pull request #551 from ghiculescu/merge_plural_fallbacks
PikachuEXE Nov 1, 2019
89fb62b
^ Release 3.4.1
PikachuEXE Nov 1, 2019
41dd9c9
added strftime format %k
JochenLutz Nov 8, 2019
faf66a3
Fix regression in 3.4.1
ghiculescu Nov 8, 2019
92ba756
Merge pull request #555 from ghiculescu/master
PikachuEXE Nov 11, 2019
1709aa8
^ Release 3.4.2
PikachuEXE Nov 11, 2019
2035daf
Merge pull request #554 from 1and1/add-strftime-format-k
PikachuEXE Nov 12, 2019
b82dace
^ Release 3.5.0
PikachuEXE Nov 12, 2019
7c48a03
Add Function.prototype.bind shim
bisubus Dec 20, 2019
37ce00f
Bind I18n shortcut functions
bisubus Dec 20, 2019
f759fc7
Update translate.spec.js
bisubus Dec 20, 2019
9df47a3
Update localization.spec.js
bisubus Dec 20, 2019
275dbbc
Update pluralization.spec.js
bisubus Dec 20, 2019
1e50039
Merge pull request #560 from bisubus/bound-shortcut-fns
PikachuEXE Dec 21, 2019
2535950
^ Release 3.5.1
PikachuEXE Dec 21, 2019
37da124
* Test against MRI 2.7
PikachuEXE Dec 27, 2019
5505008
* Test against I18n 1.8.x
PikachuEXE Jan 14, 2020
dba4d31
Add suffix option
Feb 13, 2020
7bca360
Updates based on feedback
Feb 13, 2020
0d0bc5e
Merge pull request #561 from webgroup-limited/add-suffix-option
PikachuEXE Feb 14, 2020
b4d1396
~ Update README for suffix option
PikachuEXE Feb 14, 2020
0c45eea
^ Release 3.6.0
PikachuEXE Feb 14, 2020
9c458ef
allow options for localization and add spec
RWOverdijk May 28, 2020
1a3ef3c
Merge pull request #570 from RWOverdijk/master
PikachuEXE May 29, 2020
ec63f77
^ Release 3.7.0
PikachuEXE May 29, 2020
b572f10
! Update version number in package.json
PikachuEXE May 29, 2020
e05ea82
* Update min version for dev dependency appraisal
PikachuEXE Jun 8, 2020
12bb048
Fixed: now all underscores replaces to spaces
Jun 26, 2020
20feaa7
Updated translate spec
Jun 29, 2020
22b9564
Changed spec
Jun 29, 2020
cba071a
Merge pull request #574 from klautu/fix/underscores_to_spaces
PikachuEXE Jun 30, 2020
d7e15c4
* Add back old test case for missing behaviour `guess` so both old & …
PikachuEXE Jun 30, 2020
5e36000
^ Release 3.7.1
PikachuEXE Jun 30, 2020
a5cb4f2
* Add support for option `separator` (key/scope separator) to transla…
PikachuEXE Jul 17, 2019
69fa4d0
Merge pull request #541 from fnando/feature/option-separator
PikachuEXE Sep 15, 2020
39cfc15
Add note for using yarn if using webpacker
Sep 15, 2020
dbab13a
Move webpacker section to installation section
Sep 16, 2020
7535a9f
Merge pull request #582 from mlodato517/ml-webpacker-docs
PikachuEXE Sep 17, 2020
e373c4b
Allow scoped calls to toHumanSize()
scumah-jt Sep 30, 2020
5214b1e
Update README
scumah-jt Oct 14, 2020
41c5554
Merge pull request #583 from scumah/allow-scoped-to-human-size
PikachuEXE Oct 15, 2020
eb8cb09
^ Release 3.8.0
PikachuEXE Oct 15, 2020
b2c041d
Use GitHub Actions instead of Travis CI (#586)
PikachuEXE Nov 16, 2020
ce7cc4e
Ditch the rest of Travis CI files and update readme. (#588)
fnando Nov 16, 2020
4bc46b3
Create FUNDING.yml
fnando Nov 16, 2020
f590c27
Bump lodash from 4.17.10 to 4.17.20 (#589)
dependabot[bot] Nov 16, 2020
b9ae3c7
Update FUNDING.yml
fnando Nov 16, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# default configuration
[*]
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

# Unix-style newlines with a newline ending every file
end_of_line = lf

# Set default charset
charset = utf-8

# Tab indentation (no size specified)
[Makefile]
indent_style = tab

[*.{md,markdown}]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
github: ["fnando"]
custom: ["https://paypal.me/nandovieira/🍕"]
111 changes: 111 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: Tests

on:
pull_request:
branches:
- master
paths-ignore:
- 'README.md'
push:
branches:
- master
paths-ignore:
- 'README.md'

jobs:
ruby_unit_tests:
name: Ruby Unit Tests
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
strategy:
fail-fast: false
matrix:
os:
- ubuntu
ruby:
- 2.4
- 2.5
- 2.6
- 2.7
gemfile:
- gemfiles/i18n_0_6.gemfile
- gemfiles/i18n_0_7.gemfile
- gemfiles/i18n_0_8.gemfile
- gemfiles/i18n_0_9.gemfile
- gemfiles/i18n_1_0.gemfile
- gemfiles/i18n_1_1.gemfile
- gemfiles/i18n_1_2.gemfile
- gemfiles/i18n_1_3.gemfile
- gemfiles/i18n_1_4.gemfile
- gemfiles/i18n_1_5.gemfile
- gemfiles/i18n_1_6.gemfile
- gemfiles/i18n_1_7.gemfile
- gemfiles/i18n_1_8.gemfile
allow_failures:
- false
include:
- os: ubuntu
ruby: ruby-head
gemfile: gemfiles/i18n_1_8.gemfile
allow_failures: true
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
BUNDLE_PATH: "./vendor/bundle"
ALLOW_FAILURES: "${{ matrix.allow_failures }}"
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/cache@v2
with:
path: gemfiles/vendor/bundle
key: ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ github.ref }}-${{ github.sha }}-v2
restore-keys: |
${{ runner.os }}-gems--${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ github.ref }}-
${{ runner.os }}-gems--${{ matrix.ruby }}-${{ matrix.gemfile }}-
${{ runner.os }}-gems--${{ matrix.ruby }}-
- name: Bundle Install
run: |
bundle install --jobs 4 --retry 3
- name: Test
run: bundle exec rake spec:ruby || $ALLOW_FAILURES

js_unit_tests:
name: JS Unit Tests
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
strategy:
fail-fast: false
matrix:
os:
- ubuntu
node:
- 10
- 12
- 14
runs-on: ${{ matrix.os }}-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ github.ref }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-yarn-${{ github.ref }}-
${{ runner.os }}-yarn-
- name: Install JS Dependencies
run: yarn install
- name: Test
run: npm test
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
doc
coverage
pkg
spec/tmp
.DS_Store
node_modules
Gemfile.lock
.idea/
coverage/
gemfiles/*.gemfile.lock
gemfiles/.bundle
27 changes: 27 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package

# tests
spec
coverage

# build tools
.travis.yml

# linters
.jscsrc
.jshintrc
.eslintrc*

# editor settings
.idea
.editorconfig

# Ruby code
app/assets/javascripts/i18n/
gemfiles
lib
Gemfile*
*.gemspec
Rakefile
Appraisals

1 change: 0 additions & 1 deletion .rspec

This file was deleted.

44 changes: 44 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

appraise "i18n_0_8" do
gem "i18n", "~> 0.8.0"
end

appraise "i18n_0_9" do
gem "i18n", "~> 0.9.0"
end

appraise "i18n_1_0" do
gem "i18n", "~> 1.0.0"
end

appraise "i18n_1_1" do
gem "i18n", "~> 1.1.0"
end

appraise "i18n_1_2" do
gem "i18n", "~> 1.2.0"
end

appraise "i18n_1_3" do
gem "i18n", "~> 1.3.0"
end

appraise "i18n_1_4" do
gem "i18n", "~> 1.4.0"
end

appraise "i18n_1_5" do
gem "i18n", "~> 1.5.1"
end

appraise "i18n_1_6" do
gem "i18n", "~> 1.6.0"
end

appraise "i18n_1_7" do
gem "i18n", "~> 1.7.0"
end

appraise "i18n_1_8" do
gem "i18n", "~> 1.8.0"
end
Loading