rakvium / blog Goto Github PK
View Code? Open in Web Editor NEWThe first app from the Ruby on Rails Tutorial
The first app from the Ruby on Rails Tutorial
lv.yml
locale file to config/locales
lv.yml
file with Latvian oneslv
into array of available locales in https://github.com/rakvium/blog/blob/master/config/application.rbNotice: 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
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
en:
from config/locales/authentication.en.yml
to config/locales/en.yml
config/locales/authentication.en.yml
fileMore on localization for Ruby on Rails: https://guides.rubyonrails.org/i18n.html
Key words: i18n, internationalization, localization
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:
Commit Changes...
button to create a pull requestBuild 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:
codecov
with simplecov-cobertura
and SimpleCov::Formatter::Codecov
with SimpleCov::Formatter::CoberturaFormatter
as per the migration guide)codecov
from the project completely to rely on fewer less third-party services and avoid similar issues in the futurees.yml
locale file to config/locales
es.yml
file with Spanish oneses
into array of available locales in https://github.com/rakvium/blog/blob/master/config/application.rbNotice: 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
See https://stand-with-ukraine.pp.ua/AddBanner.html#badges for more info
bundle
locally so it would get into Gemfile.lock
fileconfig/locales/devise.en.yml
as it won't be needed anymoreen:
from config/locales/en.bootstrap.yml
to config/locales/en.yml
config/locales/en.bootstrap.yml
fileMore on localization for Ruby on Rails: https://guides.rubyonrails.org/i18n.html
Key words: i18n, internationalization, localization
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.
+
free
-
needs some efforts to set up the deployment
+
does not require significant changes for the deployment
-
costs money (approximately $5 a month)
+
does not require significant changes for the deployment
-
might still cost money already or in the future
Removal of Heroku Free Product Plans FAQ article by Heroku ↩
Introducing Our New Low-Cost Plans post in Heroku blog by Andrew Fawcett ↩
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 CI config file in the project.
This file is currently located in the root directory of the project.
The simplest way to clear this task is to:
...
(More file actions) buttonDelete file
Commit Changes...
button to create a pull requestconfig.i18n.available_locales
are valid and are subsets of English localeIt would give an opportunity for the project to use such Rails 6 major features as:
et.yml
locale file to config/locales
et.yml
file with Estonian oneset
into array of available locales in https://github.com/rakvium/blog/blob/master/config/application.rbNotice: 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
kk.yml
locale file to config/locales
kk.yml
file with Kazakh oneskk
into array of available locales in https://github.com/rakvium/blog/blob/master/config/application.rbNotice: 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ı
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.
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:
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:
[![Build Status](https://travis-ci.org/rakvium/blog.svg?branch=master)](https://travis-ci.org/rakvium/blog)
line from itCommit Changes...
button to create a pull requestlt.yml
locale file to config/locales
lt.yml
file with Lithuanian oneslt
into array of available locales in https://github.com/rakvium/blog/blob/master/config/application.rbNotice: 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
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
crh.yml
locale file to config/locales
crh.yml
file with Crimean Tatar onescrh
into array of available locales in https://github.com/rakvium/blog/blob/master/config/application.rbNotice: 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, قریم تاتار تلی
Ruby 2.4.5 contains several important security fixes.
See https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/
ka.yml
locale file to config/locales
en:
with ka:
in ka.yml
ka.yml
ka
into array of available locales in https://github.com/rakvium/blog/blob/master/config/application.rbNotice: 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
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)
hy.yml
locale file to config/locales
hy.yml
file with Armenian oneshy
into array of available locales in https://github.com/rakvium/blog/blob/master/config/application.rbNotice: 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
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
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.
de.yml
locale file to config/locales
en:
in the start of de.yml
file with de:
de.yml
file with German onesde
into array of available locales in https://github.com/rakvium/blog/blob/master/config/application.rbNotice: 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
Due to russian invasion into Ukraine there is no point to support russian locale anymore.
To drop the support:
ru.yml
locale file from config/locales
ru
from array of available locales in https://github.com/rakvium/blog/blob/master/config/application.rbLet's get rid of this single threaded server and set up puma one. @rakvium
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.