Commit Graph

233 Commits

Author SHA1 Message Date
half-ogre 2bcfd8802c add model for creating a new repository 2013-10-01 17:15:28 -07:00
Phil Haack a8a5249726 Merge pull request #44 from octokit/haacked/response-status-code
Add status code to ApiResponse
2013-09-27 16:38:43 -07:00
Haacked 0a5acdb0cb Add status code to ApiResponse
We weren't setting this before.
2013-09-27 16:37:52 -07:00
Phil Haack 2a79109780 Merge pull request #43 from octokit/haacked/user-get-emails
Add support for retrieving emails
2013-09-27 14:45:23 -07:00
Haacked 1f0f5d1dc9 Add support for retrieving user emails 2013-09-27 14:43:05 -07:00
Haacked 878672bd08 Add IReadOnlyList interface to net45 shims
In .NET 4.5, ReadOnlyCollection<T> implement IReadOnlyList<T>.
Yeah, confusing.
2013-09-27 14:18:40 -07:00
Phil Haack 3339e29269 Merge pull request #41 from octokit/half-ogre/fix-ci
Fix CI
2013-09-27 13:01:19 -07:00
half-ogre 1bce2998e4 ignore CI test results 2013-09-27 12:56:55 -07:00
half-ogre dcc7c12dd8 remove where we try to run tests for RT 2013-09-27 12:45:26 -07:00
Phil Haack d97a889057 Merge pull request #40 from octokit/haacked/octokit-null-pushed-at
Fix serialization error with null PushedAt
2013-09-27 09:39:28 -07:00
Haacked c58b23f6bd Fix serialization error with null PushedAt
It's possible for a repository to have a null value for
the "pushed_at" field. For example, if it's been created
online and never pushed to via git.
2013-09-27 09:35:44 -07:00
Haacked 7f97bb9fed Teach Code Analysis about Gravatars 2013-09-25 15:26:22 -07:00
Phil Haack 61b3841020 Merge pull request #39 from octokit/haacked/user-org-account-refactor
Refactor Organization and User with common base class
2013-09-25 15:08:16 -07:00
Haacked 21ff44e2e3 Refactor Organization and User with common base class
Both organization and user are instances of an "account" and have
most of their data the same. Making them share a common base class
(rather than having Org : User as we did in GHfW) makes using them
a lot easier.
2013-09-25 14:59:46 -07:00
Phil Haack 7c484be35d Merge pull request #38 from octokit/haacked/api-fixes
Haacked/api fixes
2013-09-24 14:15:09 -07:00
Haacked 38264fcde5 Replace long with int
Turns out that we store these values as int(11) in MySql.
The 11 is irrelevant and pertains to display. int is a 4 byte
(aka 32 bit) integer. So this maps to a .NET Int32 (aka int).

While changing keeping it long might be future proofing, it also
requires changes to GHfW and I figure let's jump that hurdle
when we get there.
2013-09-24 14:12:50 -07:00
Haacked caad25abd0 Remove the Size field
Per @technoweenie's recommendation, this value is innaccurate and
useless. It doesn't factor in git alternates etc.

Calculating a better value is expensive.
2013-09-24 14:10:09 -07:00
Phil Haack d285b9fbc7 Merge pull request #37 from octokit/haacked/OctokitRT-unit-tests
Haacked/octokit rt unit tests
2013-09-24 14:03:02 -07:00
Haacked 3b5b4f2e9b Run OctokitRT tests 2013-09-24 14:00:40 -07:00
Haacked 9ba3cea3db Add unit tests for OctokitRT project 2013-09-24 13:57:29 -07:00
Phil Haack 16655ef7fe Merge pull request #32 from octokit/haacked/user-site-admin
Add SiteAdmin property to user
2013-09-24 10:17:09 -07:00
Phil Haack 6b67bd1ba0 Merge pull request #36 from octokit/haacked/update-nuget-packages
Haacked/update nuget packages
2013-09-24 10:07:24 -07:00
Haacked 8066a12802 Update Microsoft.Bcl to 1.1.13 2013-09-24 10:05:21 -07:00
Haacked a53f54d753 Update Rx libraries 2013-09-24 10:03:07 -07:00
Haacked 4a7f7b8372 Fix the packages.config for Octokit.csproj 2013-09-24 09:55:42 -07:00
Haacked c4ff136aa3 Updated to NSubstitute 1.6.1 2013-09-24 09:55:23 -07:00
Haacked 48b9f663b2 Update SimpleJson to 0.24.0
Also corrected some small mistakes I made earlier:

* Included packages.config in the Octokit projects.
* Made sure OctokitRT includes the ModelExtensions file.
2013-09-24 09:55:07 -07:00
Haacked 0733ba6ced Upgrade to xunit 1.9.2 2013-09-24 09:44:39 -07:00
Phil Haack 62619bd352 Merge pull request #35 from octokit/target-net40
Target Octokit.Reactive to net40
2013-09-24 09:32:05 -07:00
Haacked b6c6ec24ed Target Octokit.Reactive to net40
I thought I did this earlier, but must have made a mistake.
2013-09-24 09:31:05 -07:00
Phil Haack 97f6c1555b Merge pull request #34 from octokit/haacked/repository-model-fixes
Fixed a couple of errors in the repository model
2013-09-24 09:19:12 -07:00
Haacked 1b98d3a8c6 Fixed a couple of errors in the repository model 2013-09-24 09:18:21 -07:00
Phil Haack dec6c2b2ef Merge pull request #33 from octokit/remove-fluent-assertions
Remove fluent assertions
2013-09-24 08:56:36 -07:00
Haacked a8e6cbe578 Remove fluent assertions from integration tests 2013-09-23 18:30:10 -07:00
Haacked 91b5449ddd Removed fluent assertions 2013-09-23 17:41:04 -07:00
Haacked 01c41039e5 Add SiteAdmin property to user 2013-09-23 17:00:50 -07:00
Phil Haack 0974f4b168 Merge pull request #31 from octokit/haacked/ssh-key-extensions
Port ssh key helpers from GHfW
2013-09-23 16:35:21 -07:00
Haacked 3c52d13bff Port ssh key helpers from GHfW 2013-09-23 16:34:05 -07:00
Phil Haack 771e2ae384 Merge pull request #30 from octokit/haacked/target-net-40
Haacked/target net 40
2013-09-23 15:14:36 -07:00
Haacked 48873985d8 Target Octokit.Reactive to .NET 4.0
Needed to re-reference the rx dlls to point to the net40 versions
2013-09-23 11:54:35 -07:00
Haacked 50f7de785c Target .NET 4.0 with Microsoft.Bcl.Async package
Installed this package so I could have Octokit target .NET 4.0 but still
use await.
2013-09-23 11:43:39 -07:00
Haacked 3ea4be029e Add .net 4.5 compatibility shim classes
Implemented some of the interfaces and classes we use in our .NET 4.5
version.
2013-09-23 11:43:38 -07:00
Haacked 76f317b8de Remove unused method 2013-09-23 11:43:38 -07:00
Haacked c123da17c3 Suppress CA1020 too few types in namespace
Also set assemblycomparemode:StrongNameIgnoringVersion so
Microsoft.Build.Async doesn't break code analysis.
2013-09-23 11:43:37 -07:00
Phil Haack 9062d6df94 Merge pull request #27 from octokit/refactorings
Some refactorings to support query string parameters
2013-09-23 10:17:59 -07:00
Haacked 6a0e27274b Allow passing query parameters to connection
Change the API to support dictionary of query parameters.
2013-09-23 10:15:08 -07:00
Haacked de647ce403 Add method to supply query params to URI 2013-09-23 10:09:55 -07:00
Drew Miller 9cfb4e0e07 Merge pull request #29 from octokit/half-ogre/automation-settings
Keep automation settings in the environment
2013-09-17 09:54:48 -07:00
half-ogre 0798649a18 update README for setting up integration tests 2013-09-16 21:09:09 -07:00
half-ogre 6352cc8b24 skip integration tests in xunit when not set up 2013-09-16 21:03:11 -07:00