docurium 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/docurium.gemspec CHANGED
@@ -6,9 +6,9 @@ Gem::Specification.new do |s|
6
6
  s.name = "docurium"
7
7
  s.version = Docurium::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
- s.authors = ["Scott Chacon"]
10
- s.email = ["schacon@gmail.com"]
11
- s.homepage = "http://github.com/schacon/docurium"
9
+ s.authors = ["Carlos Martín Nieto", "Scott Chacon"]
10
+ s.email = ["cmn@dwim.me", "schacon@gmail.com"]
11
+ s.homepage = "https://github.com/libgit2/docurium"
12
12
  s.summary = "A simpler, prettier Doxygen replacement."
13
13
  s.description = s.summary
14
14
 
data/lib/docurium.rb CHANGED
@@ -80,7 +80,8 @@ class Docurium
80
80
  rocco_layout.version = version
81
81
  rf = rocco_layout.render
82
82
 
83
- rf_path = File.basename(file).split('.')[0..-2].join('.') + '.html'
83
+ extlen = -(File.extname(file).length + 1)
84
+ rf_path = file[0..extlen] + '.html'
84
85
  rel_path = "ex/#{version}/#{rf_path}"
85
86
 
86
87
  # look for function names in the examples and link
@@ -1,3 +1,3 @@
1
1
  class Docurium
2
- Version = VERSION = '0.2.0'
2
+ Version = VERSION = '0.2.1'
3
3
  end
data/site/js/docurium.js CHANGED
@@ -537,10 +537,13 @@ $(function() {
537
537
 
538
538
  search: function(data) {
539
539
  var searchResults = []
540
- var value = $('#search-field').attr('value')
540
+ var value = $('#search-field').val()
541
+
541
542
  if (value.length < 3) {
542
- return false
543
+ docurium.showIndexPage(false)
544
+ return
543
545
  }
546
+
544
547
  this.searchResults = []
545
548
 
546
549
  ws.navigate(searchLink(value))
@@ -634,7 +637,7 @@ $(function() {
634
637
 
635
638
  search: function(version, query) {
636
639
  docurium.setVersion(version)
637
- $('#search-field').attr('value', query)
640
+ $('#search-field').val(query)
638
641
  docurium.search()
639
642
  },
640
643
 
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docurium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
+ - Carlos Martín Nieto
8
9
  - Scott Chacon
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-07-26 00:00:00.000000000 Z
13
+ date: 2013-07-27 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: version_sorter
@@ -125,6 +126,7 @@ dependencies:
125
126
  version: '1.0'
126
127
  description: A simpler, prettier Doxygen replacement.
127
128
  email:
129
+ - cmn@dwim.me
128
130
  - schacon@gmail.com
129
131
  executables:
130
132
  - cm
@@ -185,7 +187,7 @@ files:
185
187
  - test/fixtures/git2/zlib.h
186
188
  - test/repo_test.rb
187
189
  - test/test_helper.rb
188
- homepage: http://github.com/schacon/docurium
190
+ homepage: https://github.com/libgit2/docurium
189
191
  licenses: []
190
192
  post_install_message:
191
193
  rdoc_options: []