Code Monkey home page Code Monkey logo

blog's People

Contributors

deatheguard avatar dependabot[bot] avatar dnhunter3107 avatar m1ga avatar mantasio avatar rakvium avatar rk-1620 avatar shubhampaliwal3011 avatar sommelier98 avatar stunner33 avatar sudakov-eugene avatar taicoding avatar

Stargazers

 avatar

Watchers

 avatar

blog's Issues

Move hard-coded text to localization files

Move text entries like Your post could not be saved. Are you really want to leave this page? from views and controllers to config/en.yml locale and use I18n.t leading to those entries instead.

It would help us to add more interface languages easier.

Upgrade Rails to 6.1

Rails 6.0 and older are already deprecated

Hi everyone! Rails versions 7.0.5.1 and 6.1.7.4 have been released! These are security releases, so please upgrade when you get a chance! You can check out the CVE details here. Also, the 6.0 and older series are no longer supported. We’d encourage users on that release to upgrade to a supported version as soon as possible.

Codecov randomly fails the build due to inability to upload the results

Build and test with Rake step fails even though there is no failed tests due to exit 1 on unsuccessful upload to Codecov, see https://github.com/rakvium/blog/actions/runs/8965641702/job/24619519961:

Finished in 2.09 seconds (files took 4.1 seconds to load)
141 examples, 0 failures

Randomized with seed 34381


  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _\`|/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                               Ruby-0.2.12
==> GitHub Actions detected
==> Appending file network
==> Gzipping contents
==> Uploading reports
    url:   https://codecov.io/
    query: token=secret&flags&package=ruby-0.2.12&service=github-actions&branch=&slug=rakvium%2Fblog&build=8965588509&commit=cbe16ddaf939b98350c87ea35689be9ecf35dce9
->  Pinging Codecov
https://codecov.io/upload/v4?token=secret&flags&package=ruby-0.2.12&service=github-actions&branch=&slug=rakvium%2Fblog&build=8965588509&commit=cbe16ddaf939b98350c87ea35689be9ecf35dce9
/opt/hostedtoolcache/Ruby/3.0.6/x64/lib/ruby/3.0.0/uri/common.rb:676:in `URI': bad argument (expected URI object or URI string) (ArgumentError)
	from /opt/hostedtoolcache/Ruby/3.0.6/x64/lib/ruby/gems/3.0.0/gems/codecov-0.2.12/lib/codecov.rb:409:in `upload_to_v4'
	from /opt/hostedtoolcache/Ruby/3.0.6/x64/lib/ruby/gems/3.0.0/gems/codecov-0.2.12/lib/codecov.rb:375:in `upload_to_codecov'
	from /opt/hostedtoolcache/Ruby/3.0.6/x64/lib/ruby/gems/3.0.0/gems/codecov-0.2.12/lib/codecov.rb:473:in `format'
	from /opt/hostedtoolcache/Ruby/3.0.6/x64/lib/ruby/gems/3.0.0/gems/simplecov-0.13.0/lib/simplecov/result.rb:47:in `format!'
	from /opt/hostedtoolcache/Ruby/3.0.6/x64/lib/ruby/gems/3.0.0/gems/simplecov-0.13.0/lib/simplecov/configuration.rb:172:in `block in at_exit'
	from /opt/hostedtoolcache/Ruby/3.0.6/x64/lib/ruby/gems/3.0.0/gems/simplecov-0.13.0/lib/simplecov/defaults.rb:67:in `block in <top (required)>'
->  Uploading to

/opt/hostedtoolcache/Ruby/3.0.6/x64/bin/ruby -I/opt/hostedtoolcache/Ruby/3.0.6/x64/lib/ruby/gems/3.0.0/gems/rspec-core-3.9.3/lib:/opt/hostedtoolcache/Ruby/3.0.6/x64/lib/ruby/gems/3.0.0/gems/rspec-support-3.9.3/lib /opt/hostedtoolcache/Ruby/3.0.6/x64/lib/ruby/gems/3.0.0/gems/rspec-core-3.9.3/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed
Error: Process completed with exit code 1.

Possible solutions:

Add German (Deutsch) locale

Notice: language_name string would be for German language name in Deutsch


More on localization for Ruby on Rails: https://guides.rubyonrails.org/i18n.html
Key words: German, Deutsch, Deutsche Sprache, i18n, internationalization, localization

Resolve grammar mistakes in README.md

At the moment README.md file has some grammar mistakes.
It would be great to read it out and resolve them.

The simplest way to clear this task is to:

  • navigate to README.md file
  • resolve the grammar mistakes by editing the file right on GitHub
  • press Commit Changes... button to create a pull request

Add Georgian (kartuli ena) language translation

Notice: language_name translation is for Georgian language name in Georgian


More on localization for Ruby on Rails: https://guides.rubyonrails.org/i18n.html
Key words: Georgian, i18n, internationalization, ქართული ენა, Kartvelian, localization, Sakartvelo

Add Lithuanian locale for Lithuanian language support

Notice: language_name string would be for Lithuanian language name in Lithuanian


More on localization for Ruby on Rails: https://guides.rubyonrails.org/i18n.html
Key words: i18n, internationalisation, internationalization, Lithuanian, localisation, localization

Add Spanish locale to support Spanish language

Notice: language_name string would be for Spanish language name in Spanish


More on localization for Ruby on Rails: https://guides.rubyonrails.org/i18n.html
Key words: Castellano, Castilian, Español, i18n, internationalisation, internationalization, localisation, localization, Spanish

Add Crimean Tatar language translation

Notice: language_name string would be for Crimean Tatar language name in Crimean Tatar


More on localization for Ruby on Rails: https://guides.rubyonrails.org/i18n.html
Key words: Crimean Tatar, i18n, internationalization, къырымтатар тили, localization, qırımtatar tili, قریم تاتار تلی

Add Armenian language translation

Notice: language_name string would be for Armenian language name in Armenian


More on localization for Ruby on Rails: https://guides.rubyonrails.org/i18n.html
Key words: Armenian, հայերեն, հայերէն, i18n, internationalization, localization

Remove Travis CI build badge from the project

As far as Travis CI practically discontinued their free tier, and the project already uses GitHub Actions for CI, there is no reason to keep the Travis build badge in the project's description.

This badge is currently located in README.md file and it looks like this:
Build Status
In case the image above is not accessible anymore, at the moment of the issue creation it basically says build|unknown as.

The simplest way to clear this task is to:

  • navigate to README.md file
  • remove [![Build Status](https://travis-ci.org/rakvium/blog.svg?branch=master)](https://travis-ci.org/rakvium/blog) line from it
  • press Commit Changes... button to create a pull request

Add Latvian locale for Latvian language translation

Notice: language_name string would be for Latvian language name in Latvian


More on localization for Ruby on Rails: https://guides.rubyonrails.org/i18n.html
Key words: i18n, internationalisation, internationalization, Lettish, Latvian, latviešu valoda, localisation, localization

Update grape

Current version (0.17.0) suffers from a cross-site scripting (XSS) vulnerability via "format" parameter.

See CVE-2018-3769.

Gemfile.lock update suggested:
grape ~> 1.1.0

Migrate from sass-rails to sassc-rails

Post-install message from sass:

Ruby Sass is deprecated and will be unmaintained as of 26 March 2019.

* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
  primary implementation: https://sass-lang.com/install

* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
  sassc gem: https://github.com/sass/sassc-ruby#readme

* For more details, please refer to the Sass blog:
  http://sass.logdown.com/posts/7081811

bootstrap-sass dependency can be temporarily set on its bleeding edge branch next:
twbs/bootstrap-sass#1171

Add Kazakh language translation

Notice: language_name string would be for Kazakh language name in Kazakh


More on localization for Ruby on Rails: https://guides.rubyonrails.org/i18n.html
Key words: i18n, internationalization, Kazakh, қазақ тілі, қазақша, localization, qazaqşa, qazaq tılı

Resolve Devise error messages' deprecation warnings

DEPRECATION WARNING: [Devise] `DeviseHelper#devise_error_messages!` is deprecated and will be
removed in the next major version.

Devise now uses a partial under "devise/shared/error_messages" to display
error messages by default, and make them easier to customize. Update your
views changing calls from:

    <%= devise_error_messages! %>

to:

    <%= render "devise/shared/error_messages", resource: resource %>

To start customizing how errors are displayed, you can copy the partial
from devise to your `app/views` folder. Alternatively, you can run
`rails g devise:views` which will copy all of them again to your app.
 (called from block in _app_views_devise_registrations_new_html_erb__3296905225930654644_39740 at /home/sloboda/rails_projects/blog/app/views/devise/registrations/new.html.erb:5)
  Rendered devise/shared/_links.erb (Duration: 1.0ms | Allocations: 522)
  Rendered devise/registrations/new.html.erb within layouts/application (Duration: 5.6ms | Allocations: 3543)
  Rendered layouts/_shim.html.erb (Duration: 0.1ms | Allocations: 5)
  Rendered layouts/_header.html.erb (Duration: 3.4ms | Allocations: 489)
  Rendered layouts/_footer.html.erb (Duration: 0.3ms | Allocations: 96)
Completed 200 OK in 115ms (Views: 75.3ms | ActiveRecord: 4.8ms | Allocations: 81758)

Add tests for locales

  • add i18n-spec gem
  • test that files for locales listed in config.i18n.available_locales are valid and are subsets of English locale

Update GitHub Ruby action

GitHub action actions/setup-ruby@v1 has started to fail with the next log:

Run actions/setup-ruby@v1
  with:
    ruby-version: [2](https://github.com/rakvium/blog/actions/runs/3689165720/jobs/6244807104#step:4:2).7.x
------------------------
NOTE: This action is deprecated and is no longer maintained.
Please, migrate to https://github.com/ruby/setup-ruby, which is being actively maintained.
------------------------
Error: Version 2.[7](https://github.com/rakvium/blog/actions/runs/3689165720/jobs/6244807104#step:4:8).x not found

It seems like we need to replace deprecated GitHub-supervised action actions/setup-ruby@v1 with Ruby-supervised action ruby/setup-ruby@v1

Re-deploy the application for preview

As far as Heroku discontinued their free tier12 and thus removed the free server and the free PostgreSQL database the project was using, the existing https://hello-blog.herokuapp.com/ site became inaccessible and it became not possible to check the look and feel of the project without deploying it locally.

Possible solutions:

use Google Cloud Free Program

+ free
- needs some efforts to set up the deployment

pay for basic Heroku services

+ does not require significant changes for the deployment
- costs money (approximately $5 a month)

use some Heroku alternative

+ does not require significant changes for the deployment
- might still cost money already or in the future

Footnotes

  1. Removal of Heroku Free Product Plans FAQ article by Heroku

  2. Introducing Our New Low-Cost Plans post in Heroku blog by Andrew Fawcett

Add Estonian language translation

Notice: language_name string would be for Estonian language name in Estonian


More on localization for Ruby on Rails: https://guides.rubyonrails.org/i18n.html
Key words: Eesti keel, Estonian, i18n, internationalisation, internationalization, localisation, localization

Use devise-i18n gem

  • clone this project locally
  • install the project's current Ruby version and bundler gem
  • add devise-i18n gem to Gemfile
  • run bundle locally so it would get into Gemfile.lock file
  • remove config/locales/devise.en.yml as it won't be needed anymore
  • create a pull request with these changes to this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.