diff --git a/.blade.yml b/.blade.yml deleted file mode 100644 index c819fcd..0000000 --- a/.blade.yml +++ /dev/null @@ -1,40 +0,0 @@ -load_paths: - - lib/assets/javascripts/src - - test/javascripts/src - - test/javascripts/vendor - - test/javascripts/fixtures - -logical_paths: - - local-time.js - - test.js - -build: - logical_paths: - - local-time.js - path: app/assets/javascripts - js_compressor: uglifier - -require: - - sprockets/export - -plugins: - sauce_labs: - test_config: - time_zone: Central - browsers: - Google Chrome: - version: -2 - os: Mac, Windows, Linux - Firefox: - version: -2 - os: Mac, Windows, Linux - Safari: - version: -2 - Microsoft Edge: - version: -2 - Internet Explorer: - version: -3 - iPhone: - version: -1 - Android: - version: -1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..ed97dec --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,31 @@ +name: Tests + +on: + pull_request: + push: + +jobs: + test: + name: JavaScript Test Action + runs-on: ubuntu-latest + strategy: + matrix: + node: [14, 16, 18] + + steps: + - uses: actions/checkout@master + + - name: Setup Node v${{ matrix.node }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + cache: 'yarn' + + - name: Yarn install + run: yarn install + + - name: Run JavaScript Tests + run: yarn build + + - name: Run JavaScript Tests + run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f935609..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: ruby -cache: bundler -branches: - only: - - master -before_install: - - true && `base64 --decode <<< ZXhwb3J0IFNBVUNFX1VTRVJOQU1FPWJhc2VjYW1wX2xvY2FsX3RpbWUK` - - true && `base64 --decode <<< ZXhwb3J0IFNBVUNFX0FDQ0VTU19LRVk9ZWM5Y2QyMjMtOTFjNS00NmRkLWJmNDktZWIyYmZiY2NjYzMzCg==` diff --git a/CHANGELOG.md b/CHANGELOG.md index 260f71a..e86a381 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +**3.0.0-beta.1** (September 30, 2022) + +* Migrate Codebase to modern JavaScript [Marco Roth] + **2.1.0** (September 4, 2018) * Add support for non-padded numerical strftime values (`%-d`, `%-m`, etc.) [Paco Benavent] diff --git a/MIT-LICENSE b/MIT-LICENSE index 140a332..0c72788 100644 --- a/MIT-LICENSE +++ b/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright 2018 Javan Makhmali, Basecamp +Copyright 2022 Marco Roth Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -18,3 +18,7 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Copyright for portions of project local-time are held by Javan Makhmali, +Basecamp 2018 as part of project local-time. All other copyright for +project @marcoroth/local-time are held by Marco Roth, 2022 diff --git a/README.md b/README.md index 64d6531..e2642f1 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,19 @@ -# Local Time +# Modern Local Time + +> This is a modern fork of Basecamp's `local-time` npm package and gem. The original repo can be found here: https://github.com/basecamp/local_time Local Time makes it easy to display times and dates to users in their local time. Its Rails helpers render `