webs 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/lib/helper/params.rb +8 -8
  2. data/lib/webs.rb +1 -1
  3. metadata +4 -6
  4. data/Rakefile +0 -15
  5. data/webs.gemspec +0 -38
data/lib/helper/params.rb CHANGED
@@ -34,29 +34,29 @@ module Webs
34
34
  end
35
35
 
36
36
  def webs_admin?
37
- fw_sig_permissions && webs_permission == Permission::ADMIN
37
+ webs_permission == Permission::ADMIN
38
38
  end
39
39
 
40
40
  def webs_owner?
41
- fw_sig_permissions && webs_permission == Permission::MODERATORS
41
+ webs_permission == Permission::OWNER
42
42
  end
43
43
 
44
44
  def webs_contributor?
45
- fw_sig_permissions && webs_permission == Permission::LIMITED
45
+ webs_permission == Permission::MEMBERS
46
46
  end
47
47
 
48
48
  def webs_moderator?
49
- fw_sig_permissions && webs_permission == Permission::ANYONE
50
- end
51
-
52
- def webs_social?
53
- fw_sig_social == '1'
49
+ webs_permission == Permission::MODERATORS
54
50
  end
55
51
 
56
52
  def webs_site_owner_or_admin?
57
53
  webs_admin? || webs_owner?
58
54
  end
59
55
 
56
+ def webs_social?
57
+ fw_sig_social == '1'
58
+ end
59
+
60
60
  def webs_params
61
61
  params.select{ |k,v| k.starts_with?("fw_sig_") }.sort
62
62
  end
data/lib/webs.rb CHANGED
@@ -5,7 +5,7 @@ require dir + 'helper/params'
5
5
  require dir + 'helper/tags'
6
6
 
7
7
  module Webs
8
- VERSION = "0.1.7".freeze
8
+ VERSION = "0.1.8".freeze
9
9
 
10
10
  module Permission
11
11
  DISABLED = -1
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: 21
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chuck Olczak
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-04 00:00:00 -04:00
18
+ date: 2010-11-09 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -39,8 +39,6 @@ files:
39
39
  - lib/controller/webs_controller.rb
40
40
  - lib/helper/params.rb
41
41
  - lib/helper/tags.rb
42
- - Rakefile
43
- - webs.gemspec
44
42
  has_rdoc: true
45
43
  homepage: http://github.com/websdotcom/websgem
46
44
  licenses: []
data/Rakefile DELETED
@@ -1,15 +0,0 @@
1
- # Rakefile
2
- require 'rubygems'
3
- require 'rake'
4
- require 'echoe'
5
-
6
- Echoe.new('webs', '0.1.7') do |p|
7
- p.description = "Reusable webs stuff."
8
- p.url = "https://colczak@github.com/websdev/websgem.git"
9
- p.author = "Chuck Olczak"
10
- p.email = "chuck@webs.com"
11
- p.ignore_pattern = ["tmp/*", "script/*"]
12
- p.development_dependencies = []
13
- end
14
-
15
- Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
data/webs.gemspec DELETED
@@ -1,38 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- Gem::Specification.new do |s|
4
- s.name = %q{webs}
5
- s.version = "0.1.7"
6
-
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Chuck Olczak"]
9
- s.date = %q{2010-11-04}
10
- s.description = %q{Reusable webs stuff.}
11
- s.email = %q{chuck@webs.com}
12
- gemfiles = [
13
- "README.rdoc",
14
- "lib/webs.rb",
15
- "lib/config/webs_initializer.rb",
16
- "lib/controller/webs_controller.rb",
17
- "lib/helper/params.rb",
18
- "lib/helper/tags.rb",
19
- ]
20
- s.extra_rdoc_files = gemfiles
21
- s.files = gemfiles + [ "Rakefile", "webs.gemspec" ]
22
- s.homepage = %q{http://github.com/websdotcom/websgem}
23
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Webs", "--main", "README.rdoc"]
24
- s.require_paths = ["lib"]
25
- s.rubyforge_project = %q{webs}
26
- s.rubygems_version = %q{1.3.7}
27
- s.summary = %q{Reusable webs stuff.}
28
-
29
- if s.respond_to? :specification_version then
30
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
31
- s.specification_version = 3
32
-
33
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
34
- else
35
- end
36
- else
37
- end
38
- end