webs 0.1.47 → 0.1.48
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.
- data/Rakefile +1 -1
- data/lib/helper/params.rb +6 -2
- data/lib/webs.rb +1 -1
- data/webs.gemspec +2 -2
- metadata +32 -34
- data/lib/helper/encoding.rb +0 -18
data/Rakefile
CHANGED
data/lib/helper/params.rb
CHANGED
@@ -2,7 +2,7 @@ module Webs
|
|
2
2
|
module Helper
|
3
3
|
module Params
|
4
4
|
FW_PARAMS = [: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_user, :fw_sig_width, :fw_sig_social, :fw_sig_premium, :fb_sig_network]
|
5
|
+
:fw_sig_url, :fw_sig_user, :fw_sig_width, :fw_sig_social, :fw_sig_premium, :fb_sig_network, :fw_sig_captcha_valid]
|
6
6
|
|
7
7
|
FW_PARAMS.each do |fw_param|
|
8
8
|
module_eval( "def #{fw_param.to_s}() params[:#{fw_param.to_s}] end" )
|
@@ -63,6 +63,10 @@ module Webs
|
|
63
63
|
webs_admin? || webs_owner?
|
64
64
|
end
|
65
65
|
|
66
|
+
def webs_captcha_valid?
|
67
|
+
fw_sig_captcha_valid == '1'
|
68
|
+
end
|
69
|
+
|
66
70
|
def webs_site_id
|
67
71
|
fw_sig_site.to_i if !fw_sig_site.blank?
|
68
72
|
end
|
@@ -81,4 +85,4 @@ module Webs
|
|
81
85
|
end
|
82
86
|
end
|
83
87
|
end
|
84
|
-
end
|
88
|
+
end
|
data/lib/webs.rb
CHANGED
data/webs.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{webs}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.48"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Chuck Olczak"]
|
9
|
-
s.date = %q{2011-09-
|
9
|
+
s.date = %q{2011-09-28}
|
10
10
|
s.description = %q{Reusable webs stuff.}
|
11
11
|
s.email = %q{chuck@webs.com}
|
12
12
|
gemfiles = Dir.glob( "**/*.{erb,rb,rdoc}" )
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.48
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-
|
12
|
+
date: 2011-09-28 00:00:00.000000000 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
description: Reusable webs stuff.
|
@@ -17,56 +17,54 @@ email: chuck@webs.com
|
|
17
17
|
executables: []
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files:
|
20
|
-
- lib/views/layouts/webs_utility.html.erb
|
21
20
|
- lib/views/layouts/webs_page.html.erb
|
21
|
+
- lib/views/layouts/webs_utility.html.erb
|
22
|
+
- lib/views/shared/_error_msgs.html.erb
|
23
|
+
- lib/views/shared/_flash_msg.html.erb
|
22
24
|
- lib/views/shared/_jquery_noconflict.html.erb
|
23
25
|
- lib/views/shared/_webs_info.html.erb
|
24
|
-
- lib/
|
25
|
-
- lib/
|
26
|
-
- lib/
|
27
|
-
- lib/
|
28
|
-
- lib/
|
26
|
+
- lib/cache/cache.rb
|
27
|
+
- lib/config/initializers/http_accept_patch.rb
|
28
|
+
- lib/config/initializers/intl_select.rb
|
29
|
+
- lib/config/initializers/webs_view_path.rb
|
30
|
+
- lib/config/webs_constants.rb
|
31
|
+
- lib/config/webs_initializer.rb
|
29
32
|
- lib/controller/alive_controller.rb
|
33
|
+
- lib/controller/info_controller.rb
|
30
34
|
- lib/controller/permission_converter.rb
|
31
|
-
- lib/
|
32
|
-
- lib/
|
33
|
-
- lib/helper/params.rb
|
35
|
+
- lib/controller/url_for_context_path.rb
|
36
|
+
- lib/controller/webs_controller.rb
|
34
37
|
- lib/helper/application.rb
|
38
|
+
- lib/helper/params.rb
|
39
|
+
- lib/helper/tags.rb
|
35
40
|
- lib/middleware/parameter_fixer.rb
|
36
|
-
- lib/webs.rb
|
37
|
-
- lib/cache/cache.rb
|
38
41
|
- lib/test/webs_test_helper.rb
|
39
|
-
- lib/
|
40
|
-
- lib/config/initializers/http_accept_patch.rb
|
41
|
-
- lib/config/initializers/webs_view_path.rb
|
42
|
-
- lib/config/initializers/intl_select.rb
|
43
|
-
- lib/config/webs_initializer.rb
|
42
|
+
- lib/webs.rb
|
44
43
|
- README.rdoc
|
45
44
|
files:
|
46
|
-
- lib/views/layouts/webs_utility.html.erb
|
47
45
|
- lib/views/layouts/webs_page.html.erb
|
46
|
+
- lib/views/layouts/webs_utility.html.erb
|
47
|
+
- lib/views/shared/_error_msgs.html.erb
|
48
|
+
- lib/views/shared/_flash_msg.html.erb
|
48
49
|
- lib/views/shared/_jquery_noconflict.html.erb
|
49
50
|
- lib/views/shared/_webs_info.html.erb
|
50
|
-
- lib/
|
51
|
-
- lib/
|
52
|
-
- lib/
|
53
|
-
- lib/
|
54
|
-
- lib/
|
51
|
+
- lib/cache/cache.rb
|
52
|
+
- lib/config/initializers/http_accept_patch.rb
|
53
|
+
- lib/config/initializers/intl_select.rb
|
54
|
+
- lib/config/initializers/webs_view_path.rb
|
55
|
+
- lib/config/webs_constants.rb
|
56
|
+
- lib/config/webs_initializer.rb
|
55
57
|
- lib/controller/alive_controller.rb
|
58
|
+
- lib/controller/info_controller.rb
|
56
59
|
- lib/controller/permission_converter.rb
|
57
|
-
- lib/
|
58
|
-
- lib/
|
59
|
-
- lib/helper/params.rb
|
60
|
+
- lib/controller/url_for_context_path.rb
|
61
|
+
- lib/controller/webs_controller.rb
|
60
62
|
- lib/helper/application.rb
|
63
|
+
- lib/helper/params.rb
|
64
|
+
- lib/helper/tags.rb
|
61
65
|
- lib/middleware/parameter_fixer.rb
|
62
|
-
- lib/webs.rb
|
63
|
-
- lib/cache/cache.rb
|
64
66
|
- lib/test/webs_test_helper.rb
|
65
|
-
- lib/
|
66
|
-
- lib/config/initializers/http_accept_patch.rb
|
67
|
-
- lib/config/initializers/webs_view_path.rb
|
68
|
-
- lib/config/initializers/intl_select.rb
|
69
|
-
- lib/config/webs_initializer.rb
|
67
|
+
- lib/webs.rb
|
70
68
|
- README.rdoc
|
71
69
|
- Rakefile
|
72
70
|
- webs.gemspec
|
data/lib/helper/encoding.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'iconv'
|
2
|
-
|
3
|
-
module Webs
|
4
|
-
module Helper
|
5
|
-
module Encoding
|
6
|
-
def to_utf8( s )
|
7
|
-
Iconv.conv("utf-8", "ISO-8859-1", s)
|
8
|
-
rescue
|
9
|
-
s
|
10
|
-
end
|
11
|
-
def to_iso8859( s )
|
12
|
-
Iconv.conv("ISO-8859-1", "utf-8", s )
|
13
|
-
rescue
|
14
|
-
s
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|