webs 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/helper/params.rb +5 -1
- data/lib/webs.rb +1 -1
- metadata +3 -3
data/lib/helper/params.rb
CHANGED
@@ -2,7 +2,7 @@ module Webs
|
|
2
2
|
module Helper
|
3
3
|
module Params
|
4
4
|
[:fw_sig, :fw_sig_site, :fw_sig_is_admin, :fw_sig_permission_level, :fw_sig_session_key, :fw_sig_tier, :fw_sig_permissions, :fw_sig_time, :fw_sig_api_key,
|
5
|
-
:fw_sig_url, :fw_sig, :fw_sig_user, :fw_sig_width, :fw_sig_social, :fb_sig_network].each do |fw_param|
|
5
|
+
:fw_sig_url, :fw_sig, :fw_sig_user, :fw_sig_width, :fw_sig_social, :fw_sig_premium, :fb_sig_network].each do |fw_param|
|
6
6
|
module_eval( "def #{fw_param.to_s}() params[:#{fw_param.to_s}] end" )
|
7
7
|
end
|
8
8
|
|
@@ -53,6 +53,10 @@ module Webs
|
|
53
53
|
webs_admin? || webs_owner?
|
54
54
|
end
|
55
55
|
|
56
|
+
def fw_sig_premium?
|
57
|
+
fw_sig_premium == '1'
|
58
|
+
end
|
59
|
+
|
56
60
|
def webs_social?
|
57
61
|
fw_sig_social == '1'
|
58
62
|
end
|
data/lib/webs.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 9
|
10
|
+
version: 0.1.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chuck Olczak
|