rocket_docs 0.0.10 → 0.0.11

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2342f8ee780ed0c251c135a856bd21ff4ad8f5d4
4
- data.tar.gz: 98ebbf609b3a62b7bd388ddbbf88b44a1165096f
3
+ metadata.gz: ce3ab38f9119caae39146ade5325747199de221a
4
+ data.tar.gz: bae834461f9a46f891c68c3a5eeac6fbbe8696c6
5
5
  SHA512:
6
- metadata.gz: cc146fa2bb54a53a04e06cdd2dad0a164563c00aa1edd30b1551854da2dd05b9ff3ca1829ce28f76c058dca3859f494d2a7fc4447eab35930ab04a1fa76c6aaa
7
- data.tar.gz: b3a625649cd0539846eb57c26444866a07bd3ba16e7f19ad50c050942ce402adac2df29a2d143969d6ea61e7246ab207306dba7dc0632dba9603704624d05203
6
+ metadata.gz: 40812c65063748683033e9f9831c62dc51f8d9eed94708821d25562ee57113ac8870c558b05864b30b78ab6366b5ebb4537b58074ec5c9c29bc5bf864509e0bc
7
+ data.tar.gz: f09dc45a5346e29e701cc414c22c60502f82adefe13727d8460145e2e0244367c973bb78394d2119e63451d5090c5bc1f5e9221ce6702d9833838e0fae90cec8
@@ -3,6 +3,11 @@
3
3
  //= require bootstrap
4
4
 
5
5
  $(document).ready(function () {
6
+
7
+ ///////////////////
8
+ // Try out modal //
9
+ ///////////////////
10
+
6
11
  $('#try-out-modal').on('show.bs.modal', function (event) {
7
12
  var $modal = $(this);
8
13
  var $triggerButton = $(event.relatedTarget);
@@ -203,4 +208,17 @@ $(document).ready(function () {
203
208
  }
204
209
  return content;
205
210
  }
211
+
212
+ ///////////////////////////
213
+ // URL Accordion Anchors //
214
+ ///////////////////////////
215
+
216
+ if(window.location.hash !== '') {
217
+ var $element = $(window.location.hash);
218
+ $("#accordion .in").removeClass("in");
219
+ var $parents = $element.parents('.panel-collapse');
220
+ $parents.addClass('in');
221
+ $element.addClass('in');
222
+ $('html,body').animate({scrollTop: $element.offset().top}, 'fast');
223
+ }
206
224
  });
@@ -38,6 +38,7 @@ module RocketDocs
38
38
 
39
39
  def build_controllers
40
40
  @controllers = []
41
+ @controllers_in ||= []
41
42
  @controllers_in.each do |n, v|
42
43
  @controllers << Controller.new(n, v[:path], v[:actions], self)
43
44
  end
@@ -1,3 +1,3 @@
1
1
  module RocketDocs
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanko Krtalić Rusendić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-25 00:00:00.000000000 Z
11
+ date: 2015-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails