git_goggles 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,40 @@
1
+ var GitGoggles = {
2
+ getRepos: function(callback) {
3
+ this._get('repositories', callback);
4
+ },
5
+
6
+ getRepo: function(repo, callback) {
7
+ this._get('repository/' + repo, callback);
8
+ },
9
+
10
+ getCommits: function(repo, callback) {
11
+ this._get('repository/' + repo + '/commits', callback);
12
+ },
13
+
14
+ getCommit: function(repo, sha, callback) {
15
+ this._get('repository/' + repo + '/commit/' + sha, callback);
16
+ },
17
+
18
+ getTags: function(repo, callback) {
19
+ this._get('repository/' + repo + '/tags', callback);
20
+ },
21
+
22
+ getTag: function(repo, tag, callback) {
23
+ this._get('repository/' + repo + '/tag/' + tag, callback);
24
+ },
25
+
26
+ getBranches: function(repo, callback) {
27
+ this._get('repository/' + repo + '/branches', callback);
28
+ },
29
+
30
+ getBranch: function(repo, branch, callback) {
31
+ this._get('repository/' + repo + '/branch/' + branch, callback);
32
+ },
33
+
34
+ _root: 'http://localhost:9292',
35
+
36
+ _get: function(path, callback) {
37
+ $.getJSON(this._root + path + '?callback=?', callback);
38
+ }
39
+
40
+ };
@@ -20,7 +20,7 @@ module GitGoggles
20
20
  def commits
21
21
  output = []
22
22
 
23
- _repo.commits.each do |commit|
23
+ _repo.commits('master', false).each do |commit|
24
24
  output << {
25
25
  :author => "#{commit.author.name} <#{commit.author.email}>",
26
26
  :message => commit.message,
@@ -1,3 +1,3 @@
1
1
  module GitGoggles
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_goggles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -141,6 +141,7 @@ files:
141
141
  - README.md
142
142
  - Rakefile
143
143
  - bin/git-goggles
144
+ - clients/gitgoggles.js/gitgoggles.js
144
145
  - clients/python/.gitignore
145
146
  - clients/python/gitgoggles.py
146
147
  - config.ru