marty 2.1.2 → 2.1.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/Gemfile.lock +1 -1
- data/app/components/marty/extras/misc.rb +10 -0
- data/app/components/marty/main_auth_app.rb +1 -10
- data/lib/marty/version.rb +1 -1
- 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: 3bf0f31bb663ffc3669aac3ae5011873733aa5be
|
|
4
|
+
data.tar.gz: f7a446e2edd7eb3d32d93122172cf7a264c1c989
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b3bd29273e8c4499177c8009db0033b760602c0c54166711ec5e30d0c5141f320816a05745ff77a9e7bf60f8539aeba30d52308a4af311362c9fb0732dfa3d9
|
|
7
|
+
data.tar.gz: d158854afe0bad5977abb32d983dc26807f8a96a73a8fe4a51bbe8f03493abd92d6fd9301de4d614f0c50a7f126252a335de70693892a46cea7a463c464343a7
|
data/Gemfile.lock
CHANGED
|
@@ -28,4 +28,14 @@ module Marty::Extras::Misc
|
|
|
28
28
|
mouse_wheel_enabled: false }
|
|
29
29
|
}
|
|
30
30
|
end
|
|
31
|
+
|
|
32
|
+
def sep
|
|
33
|
+
{ xtype: 'tbseparator' }
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def icon_hack(name)
|
|
37
|
+
# There's a Netzke bug whereby, using an icon name in a hash
|
|
38
|
+
# doesn't generate a proper URL.
|
|
39
|
+
"#{Netzke::Core.ext_uri}/../icons/#{name}.png"
|
|
40
|
+
end
|
|
31
41
|
end
|
|
@@ -14,6 +14,7 @@ require 'marty/data_grid_view'
|
|
|
14
14
|
|
|
15
15
|
class Marty::MainAuthApp < Marty::AuthApp
|
|
16
16
|
extend ::Marty::Permissions
|
|
17
|
+
include Marty::Extras::Misc
|
|
17
18
|
|
|
18
19
|
# set of posting types user is allowed to post with
|
|
19
20
|
def self.has_posting_perm?
|
|
@@ -24,16 +25,6 @@ class Marty::MainAuthApp < Marty::AuthApp
|
|
|
24
25
|
self.has_admin_perm?
|
|
25
26
|
end
|
|
26
27
|
|
|
27
|
-
def sep
|
|
28
|
-
{ xtype: 'tbseparator' }
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
def icon_hack(name)
|
|
32
|
-
# There's a Netzke bug whereby, using an icon name in a hash
|
|
33
|
-
# doesn't generate a proper URL.
|
|
34
|
-
"#{Netzke::Core.ext_uri}/../icons/#{name}.png"
|
|
35
|
-
end
|
|
36
|
-
|
|
37
28
|
def posting_menu
|
|
38
29
|
{
|
|
39
30
|
text: warped ? "#{Marty::Util.get_posting.name}" : I18n.t("postings"),
|
data/lib/marty/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: marty
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Arman Bostani
|
|
@@ -14,7 +14,7 @@ authors:
|
|
|
14
14
|
autorequire:
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
|
-
date: 2018-07-
|
|
17
|
+
date: 2018-07-03 00:00:00.000000000 Z
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|
|
20
20
|
name: pg
|