Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
A simple function to help with file content access #25
Conversation
jeluard
added some commits
May 13, 2013
Raynes
reviewed
Jul 17, 2013
View changes
test/tentacles/gists_test.clj
+(deftest files-are-parsed | ||
+ (let [files (gists/file-contents gist)] | ||
+ (is (= (count files) 2)) | ||
+ (is (= (get-in files [:file1]) "content1")))) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
Raynes
reviewed
Jul 17, 2013
View changes
src/tentacles/gists.clj
+ "Extract a file->content map from a gist" | ||
+ [gist] | ||
+ (if-let [files (:files gist)] | ||
+ (zipmap (keys files) (map #(:content (second %)) files)))) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
Thanks for the comments! Should be cleaned now. |
added a commit
that referenced
this pull request
Jul 17, 2013
Raynes
merged commit f28a7c8
into
Raynes:master
Jul 17, 2013
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
Awesome! Thank you. Sorry it took me so long to get to this. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
No worries! It wasn't very important anyway. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jeluard commentedMay 13, 2013
No description provided.