Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Stuck on Rails 4.2? Download The Complete Guide to Upgrade Rails at FastRuby.io

Ernesto Tagwerker etagwerker

🚀
Stuck on Rails 4.2? Download The Complete Guide to Upgrade Rails at FastRuby.io
View GitHub Profile
@etagwerker
etagwerker / FalseNewsTrumpQAnonSpanish
Created Nov 12, 2020
Q-Anon-Spanish-Conspiracy-Theories
View FalseNewsTrumpQAnonSpanish
Comparto esto que escribió la Esposa de Mi Primo que Viven en Estados Unidos en ahora El estado de La Florida, hace más de 20, 30 años. No lo recuerdo...lean...
Es bueno saberlo.
Aunque le hayan dicho “payaso”
El “payaso en la Casa Blanca" acaba de negociar TRES Acuerdos de Paz en Medio Oriente, algo que 71 años de intervención política y guerra sin fin no lograron producir.
El bufón en la Casa Blanca es el PRIMER presidente que NO nos ha involucrado en una GUERRA extranjera desde Eisenhower.
El “payaso en la Casa Blanca” ha tenido el MAYOR impacto en la economía, trayendo trabajo y REDUCIENDO el desempleo a la población negra y latina que CUALQUIER presidente anterior.
El “bufón en la Casa Blanca” ha EXPUESTO la profunda, generalizada y antigua corrupción en el FBI, la CIA, la NSA y los partidos republicanos y demócratas.
@etagwerker
etagwerker / rake.log
Created Oct 23, 2020
rake skunk with ruby 2.5.x
View rake.log
➜ skunk git:(feature/update-dependencies) ✗ rvm-prompt
ruby-2.5.7
➜ skunk git:(feature/update-dependencies) ✗ COVERAGE=true bundle exec rake
/Users/etagwerker/Projects/fastruby/skunk/test/test_helper.rb:8:in `<top (required)>': [DEPRECATION] ::[] is deprecated. Use ::new instead.
/Users/etagwerker/.rvm/gems/ruby-2.5.7/gems/simplecov-0.19.0/lib/simplecov/configuration.rb:203: warning: instance variable @enable_for_subprocesses not initialized
Using SimpleCov v0.19.0
/Users/etagwerker/.rvm/gems/ruby-2.5.7/gems/ruby_parser-3.15.0/lib/ruby_lexer.rb:1312: warning: shadowing outer local variable - s
Run options: --seed 58645
# Running:
@etagwerker
etagwerker / rake.log
Created Oct 23, 2020
rake with ruby 2.4 and skunk
View rake.log
COVERAGE=true BUNDLE_GEMFILE=Gemfile-Ruby-2-4 bundle exec rake
/Users/etagwerker/Projects/fastruby/skunk/test/test_helper.rb:8:in `<top (required)>': [DEPRECATION] ::[] is deprecated. Use ::new instead.
Using SimpleCov v0.18.5
/Users/etagwerker/.rvm/gems/ruby-2.4.10/gems/ruby_parser-3.15.0/lib/ruby_lexer.rb:1312: warning: shadowing outer local variable - s
Run options: --seed 48456
# Running:
running flay smells
View rubyfmt-test-drive
➜ rails git:(master) ✗ rubyfmt .
warning: actioncable/lib/action_cable/channel/streams.rb contains syntax errors, ignoring for now
🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛🐛
🐛 🐛
🐛 Rubyfmt failed to correctly deserialize a tree from ripper. This is absolutely a bug 🐛
🐛 and you should send us a bug report at https://github.com/penelopezone/rubyfmt/issues/new. 🐛
🐛 Ideally you would include the full source code of the program you ran rubyfmt with. 🐛
🐛 If you can't do that for some reason, the best thing you can do is 🐛
🐛 rerun rubyfmt on this program with the debug binary with `2>log_file` on the end 🐛
@etagwerker
etagwerker / rails_stats_discourse.md
Created Oct 14, 2020
rails_stats and bundle-stats for discourse
View rails_stats_discourse.md

rails_stats

bundle exec rails stats
+----------------------+-------+-------+---------+---------+-----+-------+
| Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Mailers              |   998 |   810 |       9 |      51 |   5 |    13 |
| Models               | 42186 | 30911 |     241 |    2093 |   8 |    12 |
| Serializers          |  7871 |  5985 |     179 |    1127 |   6 |     3 |
View rails_stats.md

rails_stats

bundle exec rake stats
+----------------------+-------+-------+---------+---------+-----+-------+
| Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Uploaders            |    76 |    61 |       5 |      11 |   2 |     3 |
| Sanitizers           |    32 |    27 |       1 |       3 |   3 |     7 |
| Mailers              |   239 |   186 |       4 |      24 |   6 |     5 |
View gist:03ea84352f772ea0ddb9b8ce29e84ffa
[etagwerker@luft points (fixes/update-readme ✗)]$ git status
On branch fixes/update-readme
Your branch is up to date with 'origin/fixes/update-readme'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: README.md
no changes added to commit (use "git add" and/or "git commit -a")
View gist:ee1c9a9e751df6057a4f1a62bb07329d
➜ actionview git:(simplecov) ✗ bundle exec rake test
/Users/etagwerker/.rvm/rubies/ruby-2.5.7/bin/ruby -w -I"lib:test" -I"/Users/etagwerker/.rvm/gems/ruby-2.5.7@rails/gems/rake-13.0.1/lib" "/Users/etagwerker/.rvm/gems/ruby-2.5.7@rails/gems/rake-13.0.1/lib/rake/rake_test_loader.rb" "test/template/active_model_helper_test.rb" "test/template/asset_tag_helper_test.rb" "test/template/atom_feed_helper_test.rb" "test/template/capture_helper_test.rb" "test/template/compiled_templates_test.rb" "test/template/controller_helper_test.rb" "test/template/csp_helper_test.rb" "test/template/csrf_helper_test.rb" "test/template/date_helper_i18n_test.rb" "test/template/date_helper_test.rb" "test/template/dependency_tracker_test.rb" "test/template/digestor_test.rb" "test/template/erb/erbubi_test.rb" "test/template/erb/form_for_test.rb" "test/template/erb/tag_helper_test.rb" "test/template/erb_util_test.rb" "test/template/fallback_file_system_resolver_test.rb" "test/template/file_system_resolver_test.rb" "test/template/form_coll
View gist:75f5eb3139e70aa103ddc20ff9c37a83
yarn install v1.22.4
[1/4] 🔍 Resolving packages...
success Already up-to-date.
✨ Done in 0.39s.
rake aborted!
Sprockets::ArgumentError: link_directory argument must be a directory
/Users/etagwerker/Projects/fastruby/rails/actiontext/test/dummy/app/assets/config/manifest.js:2
/Users/etagwerker/.rvm/gems/ruby-2.5.7@rails/gems/sprockets-4.0.0/lib/sprockets/directive_processor.rb:389:in `expand_relative_dirname'
/Users/etagwerker/.rvm/gems/ruby-2.5.7@rails/gems/sprockets-4.0.0/lib/sprockets/directive_processor.rb:325:in `process_link_directory_directive'
/Users/etagwerker/.rvm/gems/ruby-2.5.7@rails/gems/sprockets-4.0.0/lib/sprockets/directive_processor.rb:189:in `block in process_directives'
View gist:370c4d4f48d777ce22cf704443bd7502
bundle exec rake test:system
/Users/etagwerker/.rvm/rubies/ruby-2.5.7/bin/ruby -w -I"lib:test" -I"/Users/etagwerker/.rvm/gems/ruby-2.5.7@rails/gems/rake-13.0.1/lib" "/Users/etagwerker/.rvm/gems/ruby-2.5.7@rails/gems/rake-13.0.1/lib/rake/rake_test_loader.rb" "test/system/system_test_helper_test.rb"
/Users/etagwerker/.rvm/gems/ruby-2.5.7@rails/gems/simplecov-0.19.0/lib/simplecov/configuration.rb:203: warning: instance variable @enable_for_subprocesses not initialized
/Users/etagwerker/.rvm/gems/ruby-2.5.7@rails/gems/mail-2.7.1/lib/mail/parsers/address_lists_parser.rb:32454: warning: statement not reached
/Users/etagwerker/.rvm/gems/ruby-2.5.7@rails/gems/mail-2.7.1/lib/mail/parsers/address_lists_parser.rb:32615: warning: statement not reached
/Users/etagwerker/.rvm/gems/ruby-2.5.7@rails/gems/mail-2.7.1/lib/mail/parsers/address_lists_parser.rb:32651: warning: statement not reached
/Users/etagwerker/.rvm/gems/ruby-2.5.7@rails/gems/mail-2.7.1/lib/mail/parsers/address_lists_parser.rb:32740: warning: statement not re
You can’t perform that action at this time.