This file contains hidden or 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
package desk | |
import ( | |
"fmt" | |
"testing" | |
. "github.com/smartystreets/goconvey/convey" | |
) | |
func TestJsonBuilder(t *testing.T) { | |
fmt.Println("") |
This file contains hidden or 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
package desk | |
import ( | |
"github.com/lann/builder" | |
) | |
type StructA struct { | |
Name *string | |
} |
This file contains hidden or 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
//Not very DRY at all, there should be a better way... | |
type Case struct { | |
ID *int `json:"id,omitempty"` | |
ExternalID *string `json:"external_id,omitempty"` | |
Type *string `json:"type,omitempty"` | |
} | |
type caseBuilder builder.Builder | |
func (b caseBuilder) Build() Case { | |
return builder.GetStruct(b).(Case) |
This file contains hidden or 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
require 'uri' | |
require 'net/http' | |
class Chunked | |
def initialize(data, chunk_size) | |
@size = chunk_size | |
if data.respond_to? :read | |
@file = data | |
end | |
end |
This file contains hidden or 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
diff --git a/lib/git/lib.rb b/lib/git/lib.rb | |
index 52fb2e6..b767fc9 100644 | |
--- a/lib/git/lib.rb | |
+++ b/lib/git/lib.rb | |
@@ -124,37 +124,43 @@ module Git | |
end | |
def process_commit_data(data, sha = nil, indent = 4) | |
- in_message = false | |
- |
NewerOlder