refinerycms-pages 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f671bbf3471ec20e06618e4d18e424ce5838b27b
4
- data.tar.gz: 43a5c33a9d34217b5c90e1e222bf444ad07bd8e2
3
+ metadata.gz: d45c4c923c980125d679282708711c7966858beb
4
+ data.tar.gz: 94737209d4ee30d1b66b8cbbe19e9235e7aec72d
5
5
  SHA512:
6
- metadata.gz: a049b5d3ee60f82603e5ae316bfbccf4ad6444bc6d56045a80bd4aa2d556152f738b83eef67bf47818cf1c26764c1d8b04540a544d24dc2c7a76156e9d924e83
7
- data.tar.gz: bd114c454f4be24eba2c7bbacca2c3f26c860ae6cdb06b8e2b0ab0d6e091522d9cb1f8065a7f692de80e9c80e62b1ef871192ccc24448826353b236b38b5def6
6
+ metadata.gz: 4aad0b3a3ef5b97748520143fcec076156add92c1aa91d6b4999efe028e9c0a1c0078cb6ee7c70f6422b5d9c65b33f59ae94454f2b91d4041722b79b243267e0
7
+ data.tar.gz: b530c24c745b9dbdee708a0122bcbeb583c239a836f0b2e9b530f7ffe366d8d0879f0f895b3117a3ccff706c1f99bb9e80a9566e4840fa32428533f0363e957b
@@ -9,7 +9,7 @@ module Refinery
9
9
  :include => [:translations, :children],
10
10
  :paging => false
11
11
 
12
- before_filter :load_valid_templates, :only => [:edit, :new]
12
+ before_filter :load_valid_templates, :only => [:edit, :new, :create]
13
13
  before_filter :restrict_access, :only => [:create, :update, :update_positions, :destroy]
14
14
  after_filter proc { Pages::Caching.new().expire! }, :only => :update_positions
15
15
 
@@ -1,6 +1,6 @@
1
1
  <%
2
2
  link_args = defined?(link_to_arguments) ? link_to_arguments : {}
3
- page_link_url = refinery.url_for(page_link.url)
3
+ page_link_url = Globalize.with_locale(params[:switch_locale]) { refinery.url_for(page_link.url) }
4
4
  # current_link is relative so check against the relative url portion before conditionally making it absolute
5
5
  linked = params[:current_link].present? && page_link_url == params[:current_link]
6
6
  page_link_url = "#{[request.protocol, request.host_with_port].join}#{page_link_url}" if Refinery::Pages.absolute_page_links
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.test_files = `git ls-files -- spec/*`.split("\n")
21
21
 
22
22
  s.add_dependency 'friendly_id', '~> 4.0.9'
23
- s.add_dependency 'globalize', '~> 3.0.1'
23
+ s.add_dependency 'globalize', '~> 3.1.0'
24
24
  s.add_dependency 'awesome_nested_set', '~> 2.1.3'
25
25
  s.add_dependency 'seo_meta', '~> 1.4.0'
26
26
  s.add_dependency 'refinerycms-core', version
@@ -150,6 +150,16 @@ module Refinery
150
150
  page.should have_content("'My first page' was successfully added.")
151
151
  page.body.should =~ %r{/pages/the-first-page}
152
152
  end
153
+
154
+ it "shows error if title is blank" do
155
+ visit refinery.admin_pages_path
156
+
157
+ click_link "Add new page"
158
+
159
+ click_button "Save"
160
+
161
+ page.should have_content("Title can't be blank")
162
+ end
153
163
  end
154
164
 
155
165
  describe "edit/update" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Arndt
@@ -10,62 +10,62 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-11-26 00:00:00.000000000 Z
13
+ date: 2014-03-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: friendly_id
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ~>
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
21
  version: 4.0.9
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ~>
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
28
  version: 4.0.9
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: globalize
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ~>
33
+ - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 3.0.1
35
+ version: 3.1.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ~>
40
+ - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 3.0.1
42
+ version: 3.1.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: awesome_nested_set
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ~>
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
49
  version: 2.1.3
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ~>
54
+ - - "~>"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 2.1.3
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: seo_meta
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ~>
61
+ - - "~>"
62
62
  - !ruby/object:Gem::Version
63
63
  version: 1.4.0
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ~>
68
+ - - "~>"
69
69
  - !ruby/object:Gem::Version
70
70
  version: 1.4.0
71
71
  - !ruby/object:Gem::Dependency
@@ -74,26 +74,26 @@ dependencies:
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 2.1.1
77
+ version: 2.1.2
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 2.1.1
84
+ version: 2.1.2
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: babosa
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - '!='
89
+ - - "!="
90
90
  - !ruby/object:Gem::Version
91
91
  version: 0.3.6
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - '!='
96
+ - - "!="
97
97
  - !ruby/object:Gem::Version
98
98
  version: 0.3.6
99
99
  description: The default content extension of Refinery CMS. This extension handles
@@ -221,17 +221,17 @@ require_paths:
221
221
  - lib
222
222
  required_ruby_version: !ruby/object:Gem::Requirement
223
223
  requirements:
224
- - - '>='
224
+ - - ">="
225
225
  - !ruby/object:Gem::Version
226
226
  version: '0'
227
227
  required_rubygems_version: !ruby/object:Gem::Requirement
228
228
  requirements:
229
- - - '>='
229
+ - - ">="
230
230
  - !ruby/object:Gem::Version
231
231
  version: '0'
232
232
  requirements: []
233
233
  rubyforge_project: refinerycms
234
- rubygems_version: 2.1.0
234
+ rubygems_version: 2.2.2
235
235
  signing_key:
236
236
  specification_version: 4
237
237
  summary: Pages extension for Refinery CMS