teamster 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7490c665702e2b85b10ac9f814d72a1ec8478fe1
4
- data.tar.gz: da63c5c7b93ce8110e0593a33dcada6d2957a229
3
+ metadata.gz: 352fed9c58d9e148cd5ea4d2b3678284d86cd546
4
+ data.tar.gz: e074460a270688178eac6d911f527d099a45a610
5
5
  SHA512:
6
- metadata.gz: ccc08971ad8ad872e9d64f4112b73e9f71b83e9b333f85cf5cde9e412172883a9e12dc743098c7918bee8cef2992eaf41c784df437d998a0044d97d3f63eae34
7
- data.tar.gz: a0cad880cddcf3c045b2dc7f08f8b5c85405a8942de23e090826a7650d6ac6220f6f7dcdf8df8fe2a0f672cfd83754a006050eba9d5fb3d5d2777fc1c34e877f
6
+ metadata.gz: ac9afe990868e69976eb0120a2433f2b0e5325cd5de534eec42edd73e7d4043063e341676ccea9a0ff5696d0d50b51579b8e494a0a51de4408d74320e320269f
7
+ data.tar.gz: 00ed4953d544d13fdace29b7e07249c234d2eaa2a52cc675df680d08a10a4603718decdf9c3cfcbfb902e8cdc2a56a52ff08d0745d992d0d44888e4febb397f0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
File without changes
@@ -1,6 +1,7 @@
1
+ <script src="/js/site.js"></script>
2
+ <%= add_other_js_files %>
1
3
  <div id="footer">
2
4
  <hr class="fancy-line">
3
- <script src="/js/custom.js"></script>
4
5
  <p>
5
6
  Layout by <a href="http://getbootstrap.com">Bootstrap</a>.<br />
6
7
  Powered by <a href="http://sinatrarb.com">Sinatra</a> and <a href="http://jquery.com">JQuery</a>.
@@ -35,6 +35,19 @@ module Teamster
35
35
  <script src="/js/bootstrap.min.js"></script>~
36
36
  end
37
37
 
38
+ CORE_JS = ['bootstrap.min.js', 'jquery-2.1.0.min.js', 'site.js']
39
+
40
+ def add_other_js_files
41
+ all_js = Dir.glob('public/js/*.js')
42
+ other_js = all_js.delete_if {|js| CORE_JS.include?(File.basename(js))}
43
+ other_js.map {|js| js.gsub('public', '')}
44
+ [].tap do |arr|
45
+ other_js.each do |js|
46
+ arr << "<script src=\"#{js}\"></script>"
47
+ end
48
+ end.join('\n')
49
+ end
50
+
38
51
  def navbar
39
52
  erb :navbar
40
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nur Muhammad Bin Sirat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-15 00:00:00.000000000 Z
11
+ date: 2014-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puma
@@ -61,8 +61,8 @@ files:
61
61
  - content/public/fonts/glyphicons-halflings-regular.ttf
62
62
  - content/public/fonts/glyphicons-halflings-regular.woff
63
63
  - content/public/js/bootstrap.min.js
64
- - content/public/js/custom.js
65
64
  - content/public/js/jquery-2.1.0.min.js
65
+ - content/public/js/site.js
66
66
  - content/views/footer.erb
67
67
  - content/views/index.erb
68
68
  - content/views/layout.erb