radiant-page_group_permissions-extension 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -14,16 +14,27 @@ rescue LoadError
14
14
  puts "Jeweler (or a dependency) not available. This is only required if you plan to package page_group_permissions as a gem."
15
15
  end
16
16
 
17
-
18
-
19
17
  # I think this is the one that should be moved to the extension Rakefile template
20
18
 
21
19
  # In rails 1.2, plugins aren't available in the path until they're loaded.
22
20
  # Check to see if the rspec plugin is installed first and require
23
21
  # it if it is. If not, use the gem version.
24
- require File.join(File.dirname(__FILE__), '..', '..', '..', 'config', 'boot')
22
+
23
+ # Determine where the RSpec plugin is by loading the boot
24
+ unless defined? RADIANT_ROOT
25
+ ENV["RAILS_ENV"] = "test"
26
+ case
27
+ when ENV["RADIANT_ENV_FILE"]
28
+ require File.dirname(ENV["RADIANT_ENV_FILE"]) + "/boot"
29
+ when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions}
30
+ require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../")}/config/boot"
31
+ else
32
+ require "#{File.expand_path(File.dirname(__FILE__) + "/../../../")}/config/boot"
33
+ end
34
+ end
35
+
25
36
  require 'rake'
26
- require 'rake/rdoctask'
37
+ require 'rdoc/task'
27
38
 
28
39
  rspec_base = File.expand_path(File.dirname(__FILE__) + '/../../radiant/vendor/plugins/rspec/lib')
29
40
  $LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -24,13 +24,17 @@ class PageGroupPermissionsExtension < Radiant::Extension
24
24
  if self.respond_to?(:tab)
25
25
  add_tab "Settings" do
26
26
  add_item "Groups", "/admin/groups", :after => "Users", :visibility => [:admin]
27
+ admin.page.index.add :node, "page_group_td", :before => "status_column"
28
+ admin.page.index.add :sitemap_head, "page_group_th", :before => "status_column_header"
29
+ admin.page.edit.add :form, 'page_group_form_part'
27
30
  end
28
31
  else
29
32
  admin.tabs.add "Groups", "/admin/groups", :after => "Layouts", :visibility => [:admin]
33
+ admin.pages.index.add :node, "page_group_td", :before => "status_column"
34
+ admin.pages.index.add :sitemap_head, "page_group_th", :before => "status_column_header"
35
+ admin.pages.edit.add :parts_bottom, "page_group_form_part", :after => "edit_timestamp"
30
36
  end
31
- admin.pages.index.add :node, "page_group_td", :before => "status_column"
32
- admin.pages.index.add :sitemap_head, "page_group_th", :before => "status_column_header"
33
- admin.pages.edit.add :parts_bottom, "page_group_form_part", :after => "edit_timestamp"
37
+
34
38
  end
35
39
  end
36
40
 
@@ -0,0 +1,68 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "radiant-page_group_permissions-extension"
8
+ s.version = "1.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Matt Freels", "Nikos Dimitrakopoulos", "Jim Gay", "Matthew Bass", "Andrew vonderLuft"]
12
+ s.date = "2013-02-18"
13
+ s.description = "Enables you to organize users into groups and apply group-based edit permissions to the page hierarchy."
14
+ s.email = "avonderluft@avlux.net"
15
+ s.extra_rdoc_files = [
16
+ "README.textile"
17
+ ]
18
+ s.files = [
19
+ "README.textile",
20
+ "Rakefile",
21
+ "VERSION",
22
+ "app/controllers/admin/groups_controller.rb",
23
+ "app/helpers/groups_helper.rb",
24
+ "app/models/group.rb",
25
+ "app/views/admin/groups/_form.html.haml",
26
+ "app/views/admin/groups/edit.html.haml",
27
+ "app/views/admin/groups/index.html.haml",
28
+ "app/views/admin/groups/new.html.haml",
29
+ "app/views/admin/groups/remove.html.haml",
30
+ "app/views/admin/groups/remove_member.html.haml",
31
+ "app/views/admin/pages/_page_group_form_part.html.haml",
32
+ "app/views/admin/pages/_page_group_td.html.haml",
33
+ "app/views/admin/pages/_page_group_th.html.haml",
34
+ "config/routes.rb",
35
+ "db/migrate/001_create_groups.rb",
36
+ "db/migrate/002_alter_user_columns.rb",
37
+ "lib/controller_extensions.rb",
38
+ "lib/model_extensions.rb",
39
+ "lib/tasks/page_group_permissions_extension_tasks.rake",
40
+ "page_group_permissions_extension.rb",
41
+ "public/images/page_group_permissions/add-member.png",
42
+ "public/images/page_group_permissions/new-group.png",
43
+ "public/images/page_group_permissions/remove-member.png",
44
+ "radiant-page_group_permissions-extension.gemspec",
45
+ "spec/controllers/groups_controller_spec.rb",
46
+ "spec/helpers/groups_helper_spec.rb",
47
+ "spec/models/group_spec.rb",
48
+ "spec/spec.opts",
49
+ "spec/spec_helper.rb"
50
+ ]
51
+ s.homepage = "https://github.com/avonderluft/radiant-page_group_permissions-extension"
52
+ s.require_paths = ["lib"]
53
+ s.rubygems_version = "1.8.25"
54
+ s.summary = "Page Group Permissions Extension for Radiant CMS"
55
+
56
+ if s.respond_to? :specification_version then
57
+ s.specification_version = 3
58
+
59
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
60
+ s.add_runtime_dependency(%q<radiant>, [">= 0.9.1"])
61
+ else
62
+ s.add_dependency(%q<radiant>, [">= 0.9.1"])
63
+ end
64
+ else
65
+ s.add_dependency(%q<radiant>, [">= 0.9.1"])
66
+ end
67
+ end
68
+
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Admin::GroupsController do
4
4
  dataset :users
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe GroupsHelper do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Group do
4
4
  before(:each) do
@@ -11,9 +11,14 @@ unless defined? RADIANT_ROOT
11
11
  end
12
12
  require "#{RADIANT_ROOT}/spec/spec_helper"
13
13
 
14
- if File.directory?(File.dirname(__FILE__) + "/scenarios")
15
- Scenario.load_paths.unshift File.dirname(__FILE__) + "/scenarios"
14
+ Dataset::Resolver.default << (File.dirname(__FILE__) + "/datasets")
15
+ # Include any datasets from loaded extensions
16
+ Radiant::Extension.descendants.each do |extension|
17
+ if File.directory?(extension.root + "/spec/datasets")
18
+ Dataset::Resolver.default << (extension.root + "/spec/datasets")
19
+ end
16
20
  end
21
+
17
22
  if File.directory?(File.dirname(__FILE__) + "/matchers")
18
23
  Dir[File.dirname(__FILE__) + "/matchers/*.rb"].each {|file| require file }
19
24
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-page_group_permissions-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Freels
@@ -19,12 +19,9 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2011-05-12 00:00:00 -07:00
23
- default_executable:
22
+ date: 2013-02-18 00:00:00 Z
24
23
  dependencies:
25
24
  - !ruby/object:Gem::Dependency
26
- name: radiant
27
- prerelease: false
28
25
  requirement: &id001 !ruby/object:Gem::Requirement
29
26
  none: false
30
27
  requirements:
@@ -36,8 +33,10 @@ dependencies:
36
33
  - 9
37
34
  - 1
38
35
  version: 0.9.1
39
- type: :runtime
40
36
  version_requirements: *id001
37
+ name: radiant
38
+ prerelease: false
39
+ type: :runtime
41
40
  description: Enables you to organize users into groups and apply group-based edit permissions to the page hierarchy.
42
41
  email: avonderluft@avlux.net
43
42
  executables: []
@@ -72,12 +71,12 @@ files:
72
71
  - public/images/page_group_permissions/add-member.png
73
72
  - public/images/page_group_permissions/new-group.png
74
73
  - public/images/page_group_permissions/remove-member.png
74
+ - radiant-page_group_permissions-extension.gemspec
75
75
  - spec/controllers/groups_controller_spec.rb
76
76
  - spec/helpers/groups_helper_spec.rb
77
77
  - spec/models/group_spec.rb
78
78
  - spec/spec.opts
79
79
  - spec/spec_helper.rb
80
- has_rdoc: true
81
80
  homepage: https://github.com/avonderluft/radiant-page_group_permissions-extension
82
81
  licenses: []
83
82
 
@@ -107,12 +106,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
106
  requirements: []
108
107
 
109
108
  rubyforge_project:
110
- rubygems_version: 1.5.2
109
+ rubygems_version: 1.8.25
111
110
  signing_key:
112
111
  specification_version: 3
113
112
  summary: Page Group Permissions Extension for Radiant CMS
114
- test_files:
115
- - spec/controllers/groups_controller_spec.rb
116
- - spec/helpers/groups_helper_spec.rb
117
- - spec/models/group_spec.rb
118
- - spec/spec_helper.rb
113
+ test_files: []
114
+