radiant-concurrent_draft-extension 1.0.3 → 1.0.4
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/VERSION +1 -1
- data/app/views/admin/_draft_controls.html.haml +1 -1
- data/lib/concurrent_draft/site_controller_extensions.rb +1 -1
- data/radiant-concurrent_draft-extension.gemspec +6 -7
- data/spec/controllers/site_controller_extensions_spec.rb +2 -2
- metadata +9 -10
- data/pkg/radiant-concurrent_draft-extension-1.0.2.gem +0 -0
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ begin
|
|
7
7
|
gem.email = "avonderluft@avlux.net"
|
8
8
|
gem.homepage = "https://github.com/avonderluft/radiant-concurrent_draft-extension"
|
9
9
|
gem.authors = ['Andrew vonderLuft','Sean Cribbs']
|
10
|
-
gem.add_dependency 'radiant', ">=0.
|
10
|
+
gem.add_dependency 'radiant', ">=1.0.0"
|
11
11
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
12
12
|
end
|
13
13
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
@@ -51,7 +51,7 @@
|
|
51
51
|
= t('concurrent_draft.revert_draft_message')
|
52
52
|
%br/
|
53
53
|
%br/
|
54
|
-
%em= t('concurrent_draft.
|
54
|
+
%em= t('concurrent_draft.revert_draft_save_message')
|
55
55
|
%span{:style => 'padding-left:8px'}= link_to_function 'OK', "$(this).closePopup();"
|
56
56
|
|
57
57
|
- content_for :page_css do
|
@@ -7,7 +7,7 @@ module ConcurrentDraft::SiteControllerExtensions
|
|
7
7
|
|
8
8
|
def publish_if_scheduled
|
9
9
|
url = Array === params[:url] ? params[:url].join('/') : params[:url]
|
10
|
-
page = Page.
|
10
|
+
page = Page.find_by_path(url, false)
|
11
11
|
if page && !page.published? && page.draft_should_be_promoted?
|
12
12
|
page.update_attribute('status_id', Status[:published].id)
|
13
13
|
end
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{radiant-concurrent_draft-extension}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Andrew vonderLuft", "Sean Cribbs"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-05-27}
|
13
13
|
s.description = %q{Enables draft versions of pages, snippets and layouts, which can be scheduled for promotion.}
|
14
14
|
s.email = %q{avonderluft@avlux.net}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -42,7 +42,6 @@ Gem::Specification.new do |s|
|
|
42
42
|
"lib/concurrent_draft/site_controller_extensions.rb",
|
43
43
|
"lib/concurrent_draft/tags.rb",
|
44
44
|
"lib/tasks/concurrent_draft_extension_tasks.rake",
|
45
|
-
"pkg/radiant-concurrent_draft-extension-1.0.2.gem",
|
46
45
|
"public/images/admin/cancel.png",
|
47
46
|
"public/images/admin/clock.png",
|
48
47
|
"public/images/admin/page_delete.png",
|
@@ -70,7 +69,7 @@ Gem::Specification.new do |s|
|
|
70
69
|
]
|
71
70
|
s.homepage = %q{https://github.com/avonderluft/radiant-concurrent_draft-extension}
|
72
71
|
s.require_paths = ["lib"]
|
73
|
-
s.rubygems_version = %q{1.
|
72
|
+
s.rubygems_version = %q{1.6.2}
|
74
73
|
s.summary = %q{Concurrent Draft Extension for Radiant CMS}
|
75
74
|
s.test_files = [
|
76
75
|
"spec/controllers/admin_controller_extensions_spec.rb",
|
@@ -86,12 +85,12 @@ Gem::Specification.new do |s|
|
|
86
85
|
s.specification_version = 3
|
87
86
|
|
88
87
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
89
|
-
s.add_runtime_dependency(%q<radiant>, [">= 0.
|
88
|
+
s.add_runtime_dependency(%q<radiant>, [">= 1.0.0"])
|
90
89
|
else
|
91
|
-
s.add_dependency(%q<radiant>, [">= 0.
|
90
|
+
s.add_dependency(%q<radiant>, [">= 1.0.0"])
|
92
91
|
end
|
93
92
|
else
|
94
|
-
s.add_dependency(%q<radiant>, [">= 0.
|
93
|
+
s.add_dependency(%q<radiant>, [">= 1.0.0"])
|
95
94
|
end
|
96
95
|
end
|
97
96
|
|
@@ -7,7 +7,7 @@ describe SiteController, "(Extended) - concurrent draft changes" do
|
|
7
7
|
|
8
8
|
before :each do
|
9
9
|
@page = mock_model(Page, :published? => false, :draft_should_be_promoted? => true, :process => nil, :update_attribute => nil)
|
10
|
-
Page.stub!(:
|
10
|
+
Page.stub!(:find_by_path).and_return(@page)
|
11
11
|
end
|
12
12
|
|
13
13
|
it "should include the extension module" do
|
@@ -24,7 +24,7 @@ describe SiteController, "(Extended) - concurrent draft changes" do
|
|
24
24
|
end
|
25
25
|
|
26
26
|
it "should set the status to published if the draft should be promoted" do
|
27
|
-
Page.should_receive(:
|
27
|
+
Page.should_receive(:find_by_path).at_least(:once).and_return(@page)
|
28
28
|
@page.should_receive(:update_attribute).with('status_id', Status[:published].id)
|
29
29
|
get :show_page, :url => '/'
|
30
30
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-concurrent_draft-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 4
|
10
|
+
version: 1.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andrew vonderLuft
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-05-27 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -27,12 +27,12 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
30
|
+
hash: 23
|
31
31
|
segments:
|
32
|
-
- 0
|
33
|
-
- 9
|
34
32
|
- 1
|
35
|
-
|
33
|
+
- 0
|
34
|
+
- 0
|
35
|
+
version: 1.0.0
|
36
36
|
type: :runtime
|
37
37
|
version_requirements: *id001
|
38
38
|
description: Enables draft versions of pages, snippets and layouts, which can be scheduled for promotion.
|
@@ -70,7 +70,6 @@ files:
|
|
70
70
|
- lib/concurrent_draft/site_controller_extensions.rb
|
71
71
|
- lib/concurrent_draft/tags.rb
|
72
72
|
- lib/tasks/concurrent_draft_extension_tasks.rake
|
73
|
-
- pkg/radiant-concurrent_draft-extension-1.0.2.gem
|
74
73
|
- public/images/admin/cancel.png
|
75
74
|
- public/images/admin/clock.png
|
76
75
|
- public/images/admin/page_delete.png
|
@@ -125,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
124
|
requirements: []
|
126
125
|
|
127
126
|
rubyforge_project:
|
128
|
-
rubygems_version: 1.
|
127
|
+
rubygems_version: 1.6.2
|
129
128
|
signing_key:
|
130
129
|
specification_version: 3
|
131
130
|
summary: Concurrent Draft Extension for Radiant CMS
|
Binary file
|