spree_static_content 0.60.0 → 0.60.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/app/controllers/admin/pages_controller.rb +9 -1
- data/app/models/page.rb +1 -0
- data/spree_static_content.gemspec +8 -8
- metadata +7 -5
data/Rakefile
CHANGED
@@ -21,9 +21,9 @@ Jeweler::Tasks.new do |s|
|
|
21
21
|
#s.email = ""
|
22
22
|
s.homepage = "http://github.com/spree/spree-static-content"
|
23
23
|
s.authors = ["Peter Berkenbosch", "Roman Smirnov"]
|
24
|
-
s.add_dependency 'spree_core',
|
25
|
-
s.add_dependency 'spree_editor'
|
26
|
-
s.add_dependency 'formtastic', '1.2.3'
|
24
|
+
s.add_dependency 'spree_core', '>= 0.60.0'
|
25
|
+
s.add_dependency 'spree_editor', '>= 0.50.0'
|
26
|
+
s.add_dependency 'formtastic', '~> 1.2.3'
|
27
27
|
#s.has_rdoc = false
|
28
28
|
#s.extra_rdoc_files = [ "README.rdoc"]
|
29
29
|
#s.rdoc_options = ["--main", "README.rdoc", "--inline-source", "--line-numbers"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.60.
|
1
|
+
0.60.1
|
@@ -1,8 +1,16 @@
|
|
1
1
|
class Admin::PagesController < Admin::ResourceController
|
2
2
|
update.after :expire_cache
|
3
3
|
|
4
|
+
def new
|
5
|
+
@page = @object
|
6
|
+
end
|
7
|
+
|
8
|
+
def edit
|
9
|
+
@page = @object
|
10
|
+
end
|
11
|
+
|
4
12
|
private
|
5
13
|
def expire_cache
|
6
|
-
expire_page :controller => '/static_content', :action => 'show', :path => @
|
14
|
+
expire_page :controller => '/static_content', :action => 'show', :path => @object.slug
|
7
15
|
end
|
8
16
|
end
|
data/app/models/page.rb
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{spree_static_content}
|
8
|
-
s.version = "0.60.
|
8
|
+
s.version = "0.60.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Peter Berkenbosch", "Roman Smirnov"]
|
12
|
-
s.date = %q{2011-06-
|
12
|
+
s.date = %q{2011-06-25}
|
13
13
|
s.description = %q{Extention to manage the static pages for your Spree shop.}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.rdoc"
|
@@ -80,17 +80,17 @@ Gem::Specification.new do |s|
|
|
80
80
|
|
81
81
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
82
82
|
s.add_runtime_dependency(%q<spree_core>, [">= 0.60.0"])
|
83
|
-
s.add_runtime_dependency(%q<spree_editor>, [">= 0"])
|
84
|
-
s.add_runtime_dependency(%q<formtastic>, ["
|
83
|
+
s.add_runtime_dependency(%q<spree_editor>, [">= 0.50.0"])
|
84
|
+
s.add_runtime_dependency(%q<formtastic>, ["~> 1.2.3"])
|
85
85
|
else
|
86
86
|
s.add_dependency(%q<spree_core>, [">= 0.60.0"])
|
87
|
-
s.add_dependency(%q<spree_editor>, [">= 0"])
|
88
|
-
s.add_dependency(%q<formtastic>, ["
|
87
|
+
s.add_dependency(%q<spree_editor>, [">= 0.50.0"])
|
88
|
+
s.add_dependency(%q<formtastic>, ["~> 1.2.3"])
|
89
89
|
end
|
90
90
|
else
|
91
91
|
s.add_dependency(%q<spree_core>, [">= 0.60.0"])
|
92
|
-
s.add_dependency(%q<spree_editor>, [">= 0"])
|
93
|
-
s.add_dependency(%q<formtastic>, ["
|
92
|
+
s.add_dependency(%q<spree_editor>, [">= 0.50.0"])
|
93
|
+
s.add_dependency(%q<formtastic>, ["~> 1.2.3"])
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 60
|
8
|
-
-
|
9
|
-
version: 0.60.
|
8
|
+
- 1
|
9
|
+
version: 0.60.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Peter Berkenbosch
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-25 00:00:00 +04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -41,7 +41,9 @@ dependencies:
|
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
segments:
|
43
43
|
- 0
|
44
|
-
|
44
|
+
- 50
|
45
|
+
- 0
|
46
|
+
version: 0.50.0
|
45
47
|
type: :runtime
|
46
48
|
version_requirements: *id002
|
47
49
|
- !ruby/object:Gem::Dependency
|
@@ -49,7 +51,7 @@ dependencies:
|
|
49
51
|
prerelease: false
|
50
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
51
53
|
requirements:
|
52
|
-
- -
|
54
|
+
- - ~>
|
53
55
|
- !ruby/object:Gem::Version
|
54
56
|
segments:
|
55
57
|
- 1
|