sharkey-web 3.3.2 → 3.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: 06c859fd93f5ac733140dd9cb2d3662e99c11d25
4
- data.tar.gz: 41e261fb32b555653c430a6c2e6a36e00da25ee2
3
+ metadata.gz: 5eed5d83a3fa4708b7b30081bf07abadcd12799c
4
+ data.tar.gz: 5e52ee04e42984e2fe767a7d935f3f3ce84cb223
5
5
  SHA512:
6
- metadata.gz: 6040314cc0df0c3e8b172651782d85f381469c707744440683226a5137c479ee1a067058f8bb04945f36d9a2f96b3eb27309ff1bbc17fd19a4db62acf2a60233
7
- data.tar.gz: 2b34103961644e0d9ec3434f144a41b679a0fe52547542105481566435a97e2e21dc4d9c1664786ab67bd22ac4f5091b2e85dda9c600d3a445e07cc186b662cf
6
+ metadata.gz: 7ce5e48188f73bda86a084f4c101ac0f45e7c73509311d27442c3965621ab690ddb9e9f3b98b496996d73dacd8599ae7e617de6bdd8fa4c4c9c233fc2cc8f122
7
+ data.tar.gz: bcbdd3cbf2579a1e2cc843c205abaaad9113a63b0338a1686746dc7348619e666c0807fc487c6f35ca803d326f59b1c1eb5cf65cba8536e8bd883f82fb4a2c4b
data/README.md CHANGED
@@ -43,7 +43,7 @@ were very complicated to install.
43
43
 
44
44
  Well, `sharkey` is an attempt to gather the best things from them.
45
45
 
46
- You should probably [check out the live demo][live]. <br />
46
+ You should probably check out the [live demo on saruman.link:5678](http://saruman.link:5678/). <br />
47
47
  Be warned, though, that since it's completely public it might have some
48
48
  nasty spam or _even worse things_. <br />
49
49
  But `sharkey` allows you to easily destroy all data so it shouldn't be
@@ -175,14 +175,13 @@ The whole code is released under the *MIT-license*.
175
175
  Check file `LICENSE.md` for details on what you can and
176
176
  cannot do with it.
177
177
 
178
- [delicious]: https://delicious.com/
179
- [hoard]: http://www.urbandictionary.com/define.php?term=Tab-Hoarder
180
- [gem]: http://link
181
- [live]: http://saruman.link/sharkey/
182
- [sinatra]: http://
183
- [ruby]:
184
- [vegas]:
185
- [bootstrap]:
186
- [bootswatch]:
187
- [jquery]:
178
+ [delicious]: https://delicious.com/
179
+ [hoard]: http://www.urbandictionary.com/define.php?term=Tab-Hoarder
180
+ [gem]: http://link
181
+ [sinatra]: http://
182
+ [ruby]: https://www.ruby-lang.org/
183
+ [vegas]: http://code.quirkey.com/vegas/
184
+ [bootstrap]: http://getbootstrap.com/
185
+ [bootswatch]: http://bootswatch.com/
186
+ [jquery]: http://jquery.com/
188
187
 
data/lib/sharkey/app.rb CHANGED
@@ -114,6 +114,17 @@ module Sharkey
114
114
 
115
115
  datetime.strftime '%Y-%m-%d %H:%m'
116
116
  end
117
+
118
+ # Returns an array with all the themes names
119
+ def get_themes
120
+ themes_dir = File.join(File.dirname(__FILE__), '/public/themes')
121
+
122
+ themes = []
123
+ Dir.entries(themes_dir).sort.each do |dir|
124
+ themes.push dir if ((dir != 'fonts') and (dir[0] != '.'))
125
+ end
126
+ themes
127
+ end
117
128
  end
118
129
 
119
130
  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Sharkey
3
- VERSION = '3.3.2'
3
+ VERSION = '3.3.3'
4
4
  end
5
5
 
@@ -50,12 +50,11 @@ h2.sub-header#appearance Appearance
50
50
  form#theme-form role="form" action="/setting" method="POST"
51
51
  .form-group
52
52
  select.form-control#theme-select name="theme" placeholder="Theme"
53
- - Dir.entries(File.expand_path('./lib/sharkey/public/themes')).sort.each do |dir|
54
- - if (dir != 'fonts') and (dir[0] != '.')
55
- - if dir == Sharkey::Setting['theme']
56
- option value="#{dir}" selected="true" = dir
57
- - else
58
- option value="#{dir}" = dir
53
+ - get_themes.each do |theme|
54
+ - if theme == Sharkey::Setting['theme']
55
+ option value="#{theme}" selected="true" = theme
56
+ - else
57
+ option value="#{theme}" = theme
59
58
 
60
59
  button.btn.btn-primary type="submit" title="Apply"
61
60
  span> class="glyphicon glyphicon-picture"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sharkey-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Dantas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-14 00:00:00.000000000 Z
11
+ date: 2014-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra