git_multicast 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +11 -0
- data/Gemfile.lock +17 -1
- data/README.md +3 -3
- data/git_multicast.gemspec +29 -18
- data/lib/git_multicast/.rubocop.yml +11 -0
- data/lib/git_multicast/adapters/bitbucket.rb +35 -0
- data/lib/git_multicast/adapters/github.rb +17 -0
- data/lib/git_multicast/adapters.rb +5 -0
- data/lib/git_multicast/cli.rb +9 -2
- data/lib/git_multicast/cloner.rb +3 -3
- data/lib/git_multicast/output_formatter.rb +12 -10
- data/lib/git_multicast/repository_fetcher/bitbucket.rb +34 -0
- data/lib/git_multicast/repository_fetcher/github.rb +25 -0
- data/lib/git_multicast/repository_fetcher.rb +33 -14
- data/lib/git_multicast/version.rb +1 -1
- data/lib/git_multicast.rb +1 -3
- data/spec/fixtures/vcr_cassettes/bitbucket_all_user_repos.yml +170 -0
- data/spec/fixtures/vcr_cassettes/bitbucket_repo.yml +79 -0
- data/spec/fixtures/vcr_cassettes/github_all_user_repos.yml +107 -0
- data/spec/fixtures/vcr_cassettes/github_repo.yml +77 -0
- data/spec/fixtures/vcr_cassettes/github_repo_parent.yml +79 -0
- data/spec/fixtures/vcr_cassettes/repos_from_all_services.yml +274 -0
- data/spec/git_multicast/adapters/bitbucket_spec.rb +25 -0
- data/spec/git_multicast/puller_spec.rb +4 -0
- data/spec/git_multicast/repository_fetcher/bitbucket_spec.rb +80 -0
- data/spec/git_multicast/repository_fetcher/github_spec.rb +81 -0
- data/spec/git_multicast/repository_fetcher_spec.rb +101 -18
- data/spec/spec_helper.rb +5 -3
- metadata +76 -9
- data/lib/git_multicast/bitbucket_adapter.rb +0 -33
- data/lib/git_multicast/bitbucket_fetcher.rb +0 -36
- data/lib/git_multicast/github_fetcher.rb +0 -31
- data/spec/git_multicast/bitbucket_adapter_spec.rb +0 -25
- data/spec/git_multicast/bitbucket_fetcher_spec.rb +0 -97
- data/spec/git_multicast/github_fetcher_spec.rb +0 -74
@@ -0,0 +1,79 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://bitbucket.org/api/2.0/repositories/rranelli/cronofaker
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Host:
|
17
|
+
- bitbucket.org
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx/1.5.10
|
25
|
+
Date:
|
26
|
+
- Wed, 10 Sep 2014 06:11:45 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Vary:
|
34
|
+
- Authorization, Accept-Language, Cookie
|
35
|
+
X-Served-By:
|
36
|
+
- app15
|
37
|
+
X-Render-Time:
|
38
|
+
- '0.00865006446838'
|
39
|
+
Content-Language:
|
40
|
+
- en
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=900
|
43
|
+
X-Request-Count:
|
44
|
+
- '148'
|
45
|
+
Expires:
|
46
|
+
- Wed, 10 Sep 2014 06:19:38 GMT
|
47
|
+
X-Frame-Options:
|
48
|
+
- SAMEORIGIN
|
49
|
+
Last-Modified:
|
50
|
+
- Wed, 10 Sep 2014 06:04:38 GMT
|
51
|
+
X-Static-Version:
|
52
|
+
- a47fb0d97df3
|
53
|
+
X-Version:
|
54
|
+
- a47fb0d97df3
|
55
|
+
Strict-Transport-Security:
|
56
|
+
- max-age=31536000
|
57
|
+
X-Content-Type-Options:
|
58
|
+
- nosniff
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"scm": "git", "has_wiki": false, "description": "", "links": {"watchers":
|
62
|
+
{"href": "https://bitbucket.org/api/2.0/repositories/rranelli/cronofaker/watchers"},
|
63
|
+
"commits": {"href": "https://bitbucket.org/api/2.0/repositories/rranelli/cronofaker/commits"},
|
64
|
+
"self": {"href": "https://bitbucket.org/api/2.0/repositories/rranelli/cronofaker"},
|
65
|
+
"html": {"href": "https://bitbucket.org/rranelli/cronofaker"}, "avatar": {"href":
|
66
|
+
"https://d3oaxc4q5k2d6q.cloudfront.net/m/a47fb0d97df3/img/language-avatars/default_16.png"},
|
67
|
+
"forks": {"href": "https://bitbucket.org/api/2.0/repositories/rranelli/cronofaker/forks"},
|
68
|
+
"clone": [{"href": "https://bitbucket.org/rranelli/cronofaker.git", "name":
|
69
|
+
"https"}, {"href": "ssh://git@bitbucket.org/rranelli/cronofaker.git", "name":
|
70
|
+
"ssh"}], "pullrequests": {"href": "https://bitbucket.org/api/2.0/repositories/rranelli/cronofaker/pullrequests"}},
|
71
|
+
"fork_policy": "allow_forks", "language": "", "created_on": "2014-01-20T04:23:17.790837+00:00",
|
72
|
+
"full_name": "rranelli/cronofaker", "has_issues": false, "owner": {"username":
|
73
|
+
"rranelli", "display_name": "renan ranelli", "links": {"self": {"href": "https://bitbucket.org/api/2.0/users/rranelli"},
|
74
|
+
"html": {"href": "https://bitbucket.org/rranelli"}, "avatar": {"href": "https://secure.gravatar.com/avatar/4569aec00cb223b3fbf484f9e7ba1256?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2Fa47fb0d97df3%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32"}}},
|
75
|
+
"updated_on": "2014-04-23T03:18:44.640264+00:00", "size": 49645876, "is_private":
|
76
|
+
false, "name": "CronoFaker"}'
|
77
|
+
http_version:
|
78
|
+
recorded_at: Wed, 10 Sep 2014 06:11:46 GMT
|
79
|
+
recorded_with: VCR 2.9.3
|