dolt 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/.travis.yml +8 -0
  2. data/Gemfile.lock +3 -3
  3. data/bin/dolt +1 -4
  4. data/dolt.gemspec +2 -2
  5. data/lib/dolt/sinatra/actions.rb +1 -0
  6. data/lib/dolt/sinatra/multi_repo_browser.rb +2 -0
  7. data/lib/dolt/sinatra/single_repo_browser.rb +2 -0
  8. data/vendor/ui/.gitmodules +3 -0
  9. data/vendor/ui/autolint.js +13 -0
  10. data/vendor/ui/buster.js +8 -5
  11. data/vendor/ui/css/gitorious.css +13 -29
  12. data/vendor/ui/dist/gitorious3.min.js +3 -3
  13. data/vendor/ui/js/src/app.js +17 -0
  14. data/vendor/ui/js/src/components/abbrev.js +2 -3
  15. data/vendor/ui/js/src/components/blob.js +133 -18
  16. data/vendor/ui/js/src/components/clone-url-selection.js +5 -0
  17. data/vendor/ui/js/src/components/dropdown.js +3 -2
  18. data/vendor/ui/js/src/components/ganalytics.js +5 -2
  19. data/vendor/ui/js/src/components/live-markdown-preview.js +13 -17
  20. data/vendor/ui/js/src/components/ref-selector.js +4 -3
  21. data/vendor/ui/js/src/components/tree-history.js +3 -2
  22. data/vendor/ui/js/src/components/url.js +2 -1
  23. data/vendor/ui/js/src/gitorious.js +21 -15
  24. data/vendor/ui/js/src/logger.js +19 -6
  25. data/vendor/ui/js/test/components/abbrev-test.js +1 -0
  26. data/vendor/ui/js/test/components/blob-test.js +90 -0
  27. data/vendor/ui/js/test/components/clone-url-selection-test.js +25 -0
  28. data/vendor/ui/js/test/components/commit-linker-test.js +26 -21
  29. data/vendor/ui/js/test/components/live-markdown-preview-test.js +37 -0
  30. data/vendor/ui/js/test/components/profile-menu-test.js +1 -1
  31. data/vendor/ui/js/test/components/ref-selector-test.js +1 -1
  32. data/vendor/ui/js/test/components/tree-history-test.js +5 -3
  33. data/vendor/ui/js/test/components/url-template-test.js +9 -5
  34. metadata +9 -5
  35. data/lib/dolt/ruby19.rb +0 -24
@@ -1,4 +1,4 @@
1
- /*global gts*/
1
+ /*global buster, assert, gts*/
2
2
 
3
3
  buster.testCase("Profile menu", {
4
4
  "does nothing when no user": function () {
@@ -1,4 +1,4 @@
1
- /*global gts*/
1
+ /*global buster, assert, refute, jQuery, gts*/
2
2
  buster.testCase("Ref selector", {
3
3
  "returns div": function () {
4
4
  var element = gts.refSelector.build({});
@@ -1,3 +1,5 @@
1
+ /*global buster, assert, refute, jQuery, gts*/
2
+ /*jslint maxlen: 130*/
1
3
  buster.testCase("Tree history", {
2
4
  setUp: function () {
3
5
  /*:DOC table = <table class="table table-striped gts-tree-explorer">
@@ -171,7 +173,7 @@ buster.testCase("Tree history", {
171
173
  var cells = row.getElementsByTagName("td");
172
174
 
173
175
  assert.equals(cells[1].innerHTML, "Sep 10 2012");
174
- assert.equals($(cells[2]).attr("data-gts-commit-oid"),
176
+ assert.equals(jQuery(cells[2]).attr("data-gts-commit-oid"),
175
177
  "906d67b4f3e5de7364ba9b57d174d8998d53ced6");
176
178
  assert.equals(cells[2].innerHTML, "#906d67b");
177
179
  assert.match(cells[3].innerHTML, "Working Moron server for viewing blobs");
@@ -183,7 +185,7 @@ buster.testCase("Tree history", {
183
185
  var cells = row.getElementsByTagName("td");
184
186
 
185
187
  assert.equals(cells[1].innerHTML, "Aug 23 2012");
186
- assert.equals($(cells[2]).attr("data-gts-commit-oid"),
188
+ assert.equals(jQuery(cells[2]).attr("data-gts-commit-oid"),
187
189
  "26139a3aba4aac8cbf658c0d0ea58b8983e4090b");
188
190
  assert.equals(cells[2].innerHTML, "#26139a3");
189
191
  assert.match(cells[3].innerHTML, "Initial commit");
@@ -250,7 +252,7 @@ buster.testCase("Tree history", {
250
252
  var cells = row.getElementsByTagName("td");
251
253
 
252
254
  assert.equals(cells[2].innerHTML, "Oct 2 2012");
253
- assert.equals($(cells[3]).attr("data-gts-commit-oid"),
255
+ assert.equals(jQuery(cells[3]).attr("data-gts-commit-oid"),
254
256
  "2ca8e4e51aeb7d4cff7145c1e4e2ccb9cde19181");
255
257
  assert.equals(cells[3].innerHTML, "#2ca8e4e");
256
258
  assert.match(cells[4].innerHTML, "Add support for async tree history");
@@ -1,3 +1,4 @@
1
+ /*global buster, assert, refute, jQuery, gts*/
1
2
  buster.testCase("URL", {
2
3
  "templatize": {
3
4
  "returns only path": function () {
@@ -16,20 +17,22 @@ buster.testCase("URL", {
16
17
  },
17
18
 
18
19
  "replaces all occurrences of value": function () {
19
- var url = gts.url.templatize("http://localhost:3000/master/some/master", {
20
+ var url = "http://localhost:3000/master/some/master";
21
+ var template = gts.url.templatize(url, {
20
22
  ref: "master"
21
23
  });
22
24
 
23
- assert.equals(url, "/#{ref}/some/#{ref}");
25
+ assert.equals(template, "/#{ref}/some/#{ref}");
24
26
  },
25
27
 
26
28
  "replaces all values": function () {
27
- var url = gts.url.templatize("http://localhost:3000/master:lib/file.js", {
29
+ var url = "http://localhost:3000/master:lib/file.js";
30
+ var template = gts.url.templatize(url, {
28
31
  ref: "master",
29
32
  path: "lib/file.js"
30
33
  });
31
34
 
32
- assert.equals(url, "/#{ref}:#{path}");
35
+ assert.equals(template, "/#{ref}:#{path}");
33
36
  }
34
37
  },
35
38
 
@@ -54,7 +57,8 @@ buster.testCase("URL", {
54
57
  },
55
58
 
56
59
  "extracts ref with slashes": function () {
57
- var ref = gts.url.currentRef("http://localhost/blob/refs/heads/something:");
60
+ var url = "http://localhost/blob/refs/heads/something:";
61
+ var ref = gts.url.currentRef(url);
58
62
  assert.equals(ref, "refs/heads/something");
59
63
  }
60
64
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
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-06-14 00:00:00.000000000 Z
12
+ date: 2013-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: libdolt
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '0.20'
21
+ version: '0.21'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '0.20'
29
+ version: '0.21'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: thin
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -164,13 +164,13 @@ extensions: []
164
164
  extra_rdoc_files: []
165
165
  files:
166
166
  - ./.gitmodules
167
+ - ./.travis.yml
167
168
  - ./Gemfile
168
169
  - ./Gemfile.lock
169
170
  - ./Rakefile
170
171
  - ./Readme.org
171
172
  - ./bin/dolt
172
173
  - ./dolt.gemspec
173
- - ./lib/dolt/ruby19.rb
174
174
  - ./lib/dolt/sinatra/actions.rb
175
175
  - ./lib/dolt/sinatra/base.rb
176
176
  - ./lib/dolt/sinatra/multi_repo_browser.rb
@@ -181,6 +181,7 @@ files:
181
181
  - ./test/test_helper.rb
182
182
  - vendor/ui/.gitignore
183
183
  - vendor/ui/.gitmodules
184
+ - vendor/ui/autolint.js
184
185
  - vendor/ui/build
185
186
  - vendor/ui/buster.js
186
187
  - vendor/ui/css/gitorious.css
@@ -210,7 +211,10 @@ files:
210
211
  - vendor/ui/js/src/logger.js
211
212
  - vendor/ui/js/test-libs/jquery-1.9.1.min.js
212
213
  - vendor/ui/js/test/components/abbrev-test.js
214
+ - vendor/ui/js/test/components/blob-test.js
215
+ - vendor/ui/js/test/components/clone-url-selection-test.js
213
216
  - vendor/ui/js/test/components/commit-linker-test.js
217
+ - vendor/ui/js/test/components/live-markdown-preview-test.js
214
218
  - vendor/ui/js/test/components/profile-menu-test.js
215
219
  - vendor/ui/js/test/components/ref-selector-test.js
216
220
  - vendor/ui/js/test/components/tree-history-test.js
@@ -1,24 +0,0 @@
1
- # encoding: utf-8
2
- #--
3
- # Copyright (C) 2013 Gitorious AS
4
- #
5
- # This program is free software: you can redistribute it and/or modify
6
- # it under the terms of the GNU Affero General Public License as published by
7
- # the Free Software Foundation, either version 3 of the License, or
8
- # (at your option) any later version.
9
- #
10
- # This program is distributed in the hope that it will be useful,
11
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- # GNU Affero General Public License for more details.
14
- #
15
- # You should have received a copy of the GNU Affero General Public License
16
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
- #++
18
- unless defined?(Encoding)
19
- class Encoding
20
- def self.default_external
21
- nil
22
- end
23
- end
24
- end