zitgit 0.1.0 → 0.1.1

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.
data/README.md CHANGED
@@ -4,19 +4,7 @@ Simple sinatra-based web-interface to view git repository history
4
4
 
5
5
  ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'zitgit'
10
-
11
- or install from GitHub:
12
-
13
- gem 'zitgit', git: 'https://github.com/rsludge/zitgit.git'
14
-
15
- And then execute:
16
-
17
- $ bundle install
18
-
19
- Or install with:
7
+ To install execute:
20
8
 
21
9
  $ gem install zitgit
22
10
 
data/lib/zitgit.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require_relative 'zitgit/version'
2
2
  require_relative 'zitgit/helpers/views'
3
3
  require_relative 'zitgit/helpers/git'
4
+ require 'grit'
4
5
  require_relative 'grit/status'
5
6
  require 'sinatra/base'
6
- require 'grit'
7
7
  require 'slim'
8
8
  require 'base64'
9
9
 
@@ -1,3 +1,3 @@
1
1
  module Zitgit
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -67,21 +67,6 @@ SwitchBranch = ->
67
67
  e.preventDefault()
68
68
  ChangeBranch($(this))
69
69
 
70
- RefreshStatus = ->
71
- $.get '/status/', (data)->
72
- $('.status').replaceWith data
73
-
74
- RefreshContent = ->
75
- RefreshStatus()
76
- $('.current_branch').each (index)->
77
- if $(this).text() != ''
78
- branch_name = $(this).text()
79
- $(this).parent('.has-dropdown').find('.dropdown li a').each (index)->
80
- if $(this).text() == branch_name
81
- ChangeBranch($(this))
82
- return false
83
- return false
84
-
85
70
  SelectRow = ($row) ->
86
71
  if $row.offset().top < $('.history').offset().top
87
72
  current_scroll = $('.history').scrollTop()
@@ -142,9 +127,6 @@ $ ->
142
127
  $('.history').on 'click', '.status-link', (e)->
143
128
  e.preventDefault()
144
129
  LoadStatus()
145
- $('.refresh').on 'click', (e)->
146
- e.preventDefault()
147
- RefreshContent()
148
130
  $('.show_commit').on 'click', '.diff-names li', (e)->
149
131
  SelectDiff $(this)
150
132
 
data/public/css/app.css CHANGED
@@ -4073,7 +4073,8 @@ a.th {
4073
4073
  display: block; }
4074
4074
 
4075
4075
  .hidden {
4076
- display: none; }
4076
+ display: none;
4077
+ visibility: hidden; }
4077
4078
 
4078
4079
  .show_commit .commit {
4079
4080
  padding: 8px;
@@ -1,5 +1,5 @@
1
1
  (function() {
2
- var ChangeBranch, ChangeCommit, CommitArrows, LoadStatus, RefreshContent, RefreshStatus, SelectDiff, SelectRow, SetHeight, SwitchBranch, TableArrows, UpdateDiffsWidth;
2
+ var ChangeBranch, ChangeCommit, CommitArrows, LoadStatus, SelectDiff, SelectRow, SetHeight, SwitchBranch, TableArrows, UpdateDiffsWidth;
3
3
 
4
4
  ChangeCommit = function($commit) {
5
5
  var $target_commit;
@@ -95,30 +95,6 @@
95
95
  });
96
96
  };
97
97
 
98
- RefreshStatus = function() {
99
- return $.get('/status/', function(data) {
100
- return $('.status').replaceWith(data);
101
- });
102
- };
103
-
104
- RefreshContent = function() {
105
- RefreshStatus();
106
- return $('.current_branch').each(function(index) {
107
- var branch_name;
108
-
109
- if ($(this).text() !== '') {
110
- branch_name = $(this).text();
111
- $(this).parent('.has-dropdown').find('.dropdown li a').each(function(index) {
112
- if ($(this).text() === branch_name) {
113
- ChangeBranch($(this));
114
- return false;
115
- }
116
- });
117
- return false;
118
- }
119
- });
120
- };
121
-
122
98
  SelectRow = function($row) {
123
99
  var current_scroll, offset;
124
100
 
@@ -206,10 +182,6 @@
206
182
  e.preventDefault();
207
183
  return LoadStatus();
208
184
  });
209
- $('.refresh').on('click', function(e) {
210
- e.preventDefault();
211
- return RefreshContent();
212
- });
213
185
  $('.show_commit').on('click', '.diff-names li', function(e) {
214
186
  return SelectDiff($(this));
215
187
  });
data/public/scss/app.scss CHANGED
@@ -164,6 +164,7 @@
164
164
  }
165
165
  .hidden{
166
166
  display: none;
167
+ visibility: hidden;
167
168
  }
168
169
 
169
170
  .show_commit{
data/views/index.slim CHANGED
@@ -28,10 +28,6 @@ nav.top-bar
28
28
  a.active.current_branch
29
29
  ul.dropdown.tags
30
30
  == slim :'refs/dropdown', :locals => {refs: @tags}, :layout => false
31
- ul.right
32
- li
33
- a.refresh href="/"
34
- img src="images/refresh.png"
35
31
  .loader
36
32
  .main
37
33
  .history.large-6.columns
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zitgit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-26 00:00:00.000000000 Z
12
+ date: 2013-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
@@ -195,7 +195,6 @@ files:
195
195
  - public/coffee/application.coffee
196
196
  - public/css/app.css
197
197
  - public/images/loader.gif
198
- - public/images/refresh.png
199
198
  - public/js/application.js
200
199
  - public/js/jquery.js
201
200
  - public/js/jquery.nicescroll.js
Binary file