Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
We are hiring at OmbuLabs & FastRuby.io! https://www.ombulabs.com/jobs

Ernesto Tagwerker etagwerker

🚀
We are hiring at OmbuLabs & FastRuby.io! https://www.ombulabs.com/jobs
View GitHub Profile
View gist:cb9aa0dfab19401809f95d85d73d117d
Need help with your Ruby or Rails upgrade? Reach out to @FastRubyIO. Their team of Ruby and Rails developers are experts at assessing technical debt. Let them help you estimate your upgrade project at https://www.fastruby.io?utm_source=matz #UpgradeRails #UpgradeRuby
View gist:9c37c3b0e0793fab992fac0363b76f05
# /Users/etagwerker/.rvm/gems/ruby-2.7.3@dash/bundler/gems/rails-ac48eed08f26/railties/lib/rails/application.rb:389:in `initialize!'
# ./config/environment.rb:5:in `<main>'
# /Users/etagwerker/.rvm/gems/ruby-2.7.3@dash/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
# /Users/etagwerker/.rvm/gems/ruby-2.7.3@dash/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
# /Users/etagwerker/.rvm/gems/ruby-2.7.3@dash/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
# /Users/etagwerker/.rvm/gems/ruby-2.7.3@dash/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
# /Users/etagwerker/.rvm/gems/ruby-2.7.3@dash/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
# /Users/etagwerker/.rvm/gems/ruby-2.7.3@dash/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require'
# /Users/eta
View gist:188e9eda573e93a250ad1e5963fb877a
The folks at @OmbuLabs are looking for Ruby on Rails developers. If you're a mid to senior level developer or contractor then check out their listings:
https://www.ombulabs.com/jobs
View gist:c80248798f184317e1e48fcbdd39a16e
# ./app/assets/stylesheets/bootstrap_and_overrides.css:6
6) LeaderboardController#projects leaderboard exists project without logged minutes shows current leaderboard without params
Failure/Error: =require twitter-bootstrap-static/fontawesome
ActionView::Template::Error:
couldn't find file 'twitter-bootstrap-static/fontawesome' with type 'text/css'
Checked in these paths:
/code/app/assets/images
/code/app/assets/javascripts
View gist:c1ea17694eb8991062484169295ce222
next bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies......................................................................................................
Bundler could not find compatible versions for gem "actionpack":
In Gemfile.next:
rails (~> 5.0) was resolved to 5.0.1.rc1, which depends on
actionpack (= 5.0.1.rc1)
rspec-rails was resolved to 4.1.2, which depends on
View gist:4c56ab6cb66c1c88712c955d5467e549
➜ points git:(feature/upgrade-rails-5-2) ✗ bundle exec rspec
Randomized with seed 12014
......Capybara starting Puma...
* Version 3.12.6 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:51982
Unexpected confirm modal - accepting.You should be using `accept_confirm` or `dismiss_confirm`.
...............................................................................
View gist:267c4e7cee973db6d00044c20fe38fbd
The @FastRubyIO team has been doing Ruby and Rails upgrades for a long time. They even have some tips on how to upgrade when there is no time to write tests. https://www.fastruby.io/blog/rails/upgrade/testing/how-to-upgrade-rails-without-tests.html?utm_source=matz
@etagwerker
etagwerker / git-commit.log
Created Feb 2, 2021
git commit with points project
View git-commit.log
➜ points git:(feature/upgrade-rails-5-2) ✗ git commit Gemfile*
warning: parser/current is loading parser/ruby25, which recognizes
warning: 2.5.8-compliant syntax, but you are running 2.5.7.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
standard: Use Ruby Standard Style (https://github.com/testdouble/standard)
standard: Run `standardrb --fix` to automatically fix some problems.
Gemfile:33:7: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Gemfile:35:7: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Gemfile:35:23: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Gemfile:36:16: Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
View gist:5ec8880f36c4551b7ac4041aa4eadaea
➜ docker-lobsters git:(main) docker-compose down --volumes
Removing network docker-lobsters_default
WARNING: Network docker-lobsters_default not found.
Removing volume docker-lobsters_lobsters_database
WARNING: Volume docker-lobsters_lobsters_database not found.
➜ docker-lobsters git:(main) docker-compose up
Creating network "docker-lobsters_default" with the default driver
Creating volume "docker-lobsters_lobsters_database" with local driver
Creating docker-lobsters_proxy_1 ... done
Creating docker-lobsters_database_1 ... done
@etagwerker
etagwerker / gist:899e91fc0b9b745497d4a536d6aa411a
Created Jan 12, 2021
rake stats and bundle-stats for discourse
View gist:899e91fc0b9b745497d4a536d6aa411a
➜ fastruby rake stats\[./discourse\]
Directory: /Users/etagwerker/Projects/fastruby/discourse
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Mailers | 999 | 811 | 9 | 51 | 5 | 13 |
| Models | 42749 | 31367 | 242 | 2145 | 8 | 12 |
| Serializers | 7918 | 6022 | 179 | 1133 | 6 | 3 |