sharkey-web 3.3.2 → 3.3.3
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 +4 -4
- data/README.md +10 -11
- data/lib/sharkey/app.rb +11 -0
- data/lib/sharkey/version.rb +1 -1
- data/lib/sharkey/views/settings_index.slim +5 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5eed5d83a3fa4708b7b30081bf07abadcd12799c
|
|
4
|
+
data.tar.gz: 5e52ee04e42984e2fe767a7d935f3f3ce84cb223
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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]:
|
|
179
|
-
[hoard]:
|
|
180
|
-
[gem]:
|
|
181
|
-
[
|
|
182
|
-
[
|
|
183
|
-
[
|
|
184
|
-
[
|
|
185
|
-
[
|
|
186
|
-
[
|
|
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
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
data/lib/sharkey/version.rb
CHANGED
|
@@ -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
|
-
-
|
|
54
|
-
- if
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2014-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sinatra
|