alchemy_cms 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,10 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
3
+ - ree
4
4
  - 1.9.2
5
5
  - 1.9.3
6
- - ree
7
- - rbx-19mode
8
6
  branches:
9
7
  only:
10
8
  - 2.2-stable
@@ -16,7 +14,3 @@ script: "bundle exec rspec spec --format=doc"
16
14
  env:
17
15
  - DB=mysql
18
16
  - DB=postgresql
19
- - DB=sqlite
20
- matrix:
21
- allow_failures:
22
- - rvm: rbx-19mode
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Alchemy CMS
2
2
  ===========
3
3
 
4
- [![Build Status](https://secure.travis-ci.org/magiclabs/alchemy_cms.png?branch=master)](http://travis-ci.org/magiclabs/alchemy_cms)
4
+ [![Build Status](https://secure.travis-ci.org/magiclabs/alchemy_cms.png?branch=2.2-stable)](http://travis-ci.org/magiclabs/alchemy_cms)
5
5
  ![Status](http://stillmaintained.com/magiclabs/alchemy_cms.png)
6
6
 
7
7
  About
@@ -235,8 +235,7 @@ module Alchemy
235
235
  private
236
236
 
237
237
  def load_page
238
- @page = Page.find_by_id(params[:id])
239
- raise ActiveRecord::RecordNotFound if @page.nil?
238
+ @page = Page.find(params[:id])
240
239
  end
241
240
 
242
241
  def pages_from_raw_request
@@ -80,12 +80,6 @@ module Alchemy
80
80
  scope :flushables, not_locked.published.contentpages
81
81
  scope :searchables, not_restricted.published.contentpages
82
82
 
83
- # Using the urlname value as id parameter in URLs.
84
- # Falls back to id, if no urlname is set yet.
85
- def to_param
86
- urlname || id.to_s
87
- end
88
-
89
83
  # Finds selected elements from page.
90
84
  #
91
85
  # Options are:
@@ -1,5 +1,5 @@
1
1
  module Alchemy
2
2
 
3
- VERSION = "2.2.0"
3
+ VERSION = "2.2.1"
4
4
 
5
5
  end
@@ -93,20 +93,5 @@ module Alchemy
93
93
 
94
94
  end
95
95
 
96
- describe '#edit' do
97
-
98
- before(:each) do
99
- @language = Language.get_default
100
- @page = FactoryGirl.create(:public_page, :language => @language)
101
- session[:language_id] = @language.id
102
- end
103
-
104
- it "should find a page from id" do
105
- get :edit, {:id => @page.id}
106
- response.status.should == 200
107
- end
108
-
109
- end
110
-
111
96
  end
112
97
  end
@@ -527,17 +527,5 @@ module Alchemy
527
527
 
528
528
  end
529
529
 
530
- describe '#to_param' do
531
-
532
- before(:each) do
533
- @page = FactoryGirl.create(:public_page)
534
- end
535
-
536
- it "should use the urlname as id parameter in urls" do
537
- @page.to_param.should == @page.urlname
538
- end
539
-
540
- end
541
-
542
530
  end
543
531
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-06-25 00:00:00.000000000 Z
15
+ date: 2012-06-26 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails
@@ -1039,7 +1039,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1039
1039
  version: '0'
1040
1040
  segments:
1041
1041
  - 0
1042
- hash: 1665960692087372061
1042
+ hash: 3374243950541601124
1043
1043
  requirements:
1044
1044
  - ImageMagick (libmagick), v6.6 or greater.
1045
1045
  rubyforge_project: