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
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
# This illustrates a bug in graphql-ruby 1.9.8. Prior to this version, | |
# a resolver function passed in the map to GraphQL::Schema.from_definition | |
# could access its arguments as methods on the `args` object it gets passed; | |
# but starting in graphql-ruby 1.9.8 this no longer works. | |
require 'graphql' |
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
# frozen_string_literal: true | |
require 'dry/system/container' | |
class Application < Dry::System::Container | |
configure do |config| | |
config.auto_register = ['lib'] | |
end | |
load_paths!('lib') | |
end |
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
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require 'dry/container' | |
require 'dry/transaction' | |
require 'dry/transaction/operation' | |
# Run this as an around step | |
class First | |
# Running this transaction step will fail with |
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
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
# With dry-auto_inject 0.4.5, this prints out "a", "b", "c". | |
# With dry-auto_inject 0.4.6, "b" is lost. | |
# If you remove Base#initialize then "b" is still there. | |
require 'dry-auto_inject' | |
class Container |
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
# frozen_string_literal: true | |
require 'dry/system/container' | |
require 'dry/system/components' | |
require 'dry/types' | |
module Types | |
include Dry::Types.module | |
end |
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
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: {name: content} | |
data: | |
index.html: '<html><body><h1>Hello world</h1></body></html>' | |
--- | |
apiVersion: apps/v1beta2 | |
kind: Deployment | |
metadata: {name: lb} |
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
2016/11/14 12:14:22 [INFO] Terraform version: 0.7.10 fcf12bc46a34716652a5b9a4d7905361003293e7 | |
2016/11/14 12:14:22 [INFO] CLI args: []string{"/Users/dmaze/.virtualenvs/rollout7/bin/terraform", "plan"} | |
2016/11/14 12:14:22 [DEBUG] Detected home directory from env var: /Users/dmaze | |
2016/11/14 12:14:22 [DEBUG] Detected home directory from env var: /Users/dmaze | |
2016/11/14 12:14:22 [DEBUG] Attempting to open CLI config file: /Users/dmaze/.terraformrc | |
2016/11/14 12:14:22 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2016/11/14 12:14:22 [DEBUG] Detected home directory from env var: /Users/dmaze | |
2016/11/14 12:14:22 [TRACE] Preserving existing state lineage "ac150688-1724-4c02-9ded-8aae6718e098" | |
2016/11/14 12:14:22 [TRACE] Preserving existing state lineage "ac150688-1724-4c02-9ded-8aae6718e098" | |
2016/11/14 12:14:22 [TRACE] Graph after step *terraform.ConfigTransformerOld: |
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
// This file demonstrates an issue decoding nested extension objects. | |
// The actual extension is a simple wrapper for a Python tuple, which | |
// is implemented by wrapping a simple CBOR list with CBOR tag 128. | |
package main | |
import ( | |
"github.com/ugorji/go/codec" | |
"reflect" | |
"testing" |