This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule DateTimeGenerators do | |
use ExUnitProperties | |
@time_zones ["Etc/UTC"] | |
def date do | |
gen all year <- integer(1970..2050), | |
month <- integer(1..12), | |
day <- integer(1..31), | |
match?({:ok, _}, Date.from_erl({year, month, day})) do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule MyApp.DefStructTest do | |
use ExUnit.Case, async: true | |
test "to cover defstruct" do | |
project_structs() | |
|> Enum.each(&assert &1.__struct__(), to_string(&1)) | |
end | |
defp project_structs do | |
{:ok, modules} = :application.get_key(:my_app, :modules) # change to your app's name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
raise on line: https://github.com/rails/rails/blob/7b5cc5a5dfcf38522be0a4b5daa97c5b2ba26c20/activerecord/lib/active_record/associations/join_dependency/join_association.rb#L58 | |
RuntimeError: | |
now I have the table | |
# /.gem/ruby/2.5.3/gems/activerecord-5.2.4.3/lib/active_record/associations/join_dependency/join_association.rb:58:in `tables=' | |
# /.gem/ruby/2.5.3/gems/activerecord-5.2.4.3/lib/active_record/associations/join_dependency.rb:145:in `block in construct_tables!' | |
# /.gem/ruby/2.5.3/gems/activerecord-5.2.4.3/lib/active_record/associations/join_dependency/join_part.rb:38:in `block in each_children' | |
# /.gem/ruby/2.5.3/gems/activerecord-5.2.4.3/lib/active_record/associations/join_dependency/join_part.rb:37:in `each' | |
# /.gem/ruby/2.5.3/gems/activerecord-5.2.4.3/lib/active_record/associations/join_dependency/join_part.rb:37:in `each_children' | |
# /.gem/ruby/2.5.3/gems/activerecord-5.2.4.3/lib/active_record/associations/join_dependency.rb:144:in `construct_tables!' | |
# /.gem/ruby/2.5.3/gems/polyamoro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NFe* | |
Pendente* | |
transmitir -> Aguardando Autorização | |
Aguardando Autorização | |
autorizada -> Autorizada | |
erro -> Erro | |
volta -> Pendente | |
Autorizada | |
Erro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
Remove rbenv and any rubies, gems etc.:
$ rm -rf ~/.rbenv
Uninstall rbenv if installed via Homebrew
$ brew uninstall rbenv
Remove references to rbenv in ~/.bash_profile
etc.
made with esnextbin
made with esnextbin
NewerOlder