trusty-cms 2.0.4.pre.beta → 2.0.5.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDI5M2U5YTVlMTU0ZTgwMzlmMGI0ZWVjZTFmMGIyZWQ3ZDM2OWEyMw==
4
+ ZDY1ZGU1YzIyMTI1NWVkMjNjOWM2NTczZDY0NjYxYjgwMWQwOTdiMw==
5
5
  data.tar.gz: !binary |-
6
- NzBjYzUyYmUzZWJhOWZhOThmYzUwOTRlYjk0OTUyMmRlM2U1ODNiMg==
6
+ MjA5YjAzNmRkNzk3NGNhOTlmOTAxYzRlMDY4YTFkY2ExY2Q0OTA2NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjFhMjY0YmIwMDEyY2Y0MDBiYWZjYmRmYjRjNDRmNzUzNDZhZjhhM2IxN2Q1
10
- Mjg2MTg2ZjE4YjczOTI5ZWVmNzNhMzVmN2E4NDM4NzI3NjViMmZmYTRmYmM0
11
- MGI0MWI1MmI2OGVmYWEyNTU4OTFjYTYxNjg3OTgwNmFjNTEyYjY=
9
+ Yjk4OGU5MGQ5MWU3Mzg0MWQwNTgzY2I3MzcwNTk5ODg0NGI0YTdhMjgwNTkw
10
+ ZGQ0YjRlMTc2NGJmODk0ZGFjZjJhNWM0ZjkyOWI0NTYzZjhlZDFjYjM0MjY1
11
+ ZDYxMjJhMzE0MGMxNmZiM2ViMTBjMGNjN2FiZTlkMjFhY2U2NDc=
12
12
  data.tar.gz: !binary |-
13
- Nzg0MDIwMTBhMDAxMzQzNTk5ZmM2ZjBjN2FkNDg3MmIxZmYyY2JiMDE2NGEx
14
- NWI2YWYxZTBhNmNiZDNkNGYyZjg1Njg2ZGU2ZTE1ODE5ODNmOWRhNGQ5ODdl
15
- NjIxZTM5ZjVlMThjMWFkODVkNWMzYWYzNGU1MTA0MzI4YmYxYTA=
13
+ YmM3YTFlYmJhYzNmMzhjMmI1ZDE5MTRkZGIwYjQ5MmFhMjgwOWUzNjY1ZGE1
14
+ ZmM0MTljNmQ3MGNhMGFlODAwNGExNTkyMTVkODM4MDRiZTU4ZDE4ZjAzOTll
15
+ ODkzMzA3MmI1ZWE3NDU1ODY5MDU4ZmM3Y2RkYzUyZjZiYzg4M2I=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (2.0.4.pre.beta)
4
+ trusty-cms (2.0.5.pre.beta)
5
5
  RedCloth (~> 4.2)
6
6
  acts_as_tree (~> 2.1)
7
7
  bundler (~> 1.7)
@@ -59,6 +59,7 @@ class CreateRadiantTables < ActiveRecord::Migration
59
59
  t.column "updated_at", :datetime
60
60
  t.column "created_by", :integer
61
61
  t.column "updated_by", :integer
62
+ t.column "salt", :string
62
63
  end
63
64
  add_index "users", ["login"], :name => "login", :unique => true
64
65
 
@@ -1,24 +1,11 @@
1
1
  class ConvertPageMetas < ActiveRecord::Migration
2
2
  def self.up
3
- # following add and remove column enables running this migration
4
- # when upgrading radiant with allowed_children_cache added to Page model
5
- add_column :pages, :allowed_children_cache, :text
6
- Page.all.each do |page|
7
- page.fields.create(:name => 'Keywords', :content => page.keywords)
8
- page.fields.create(:name => 'Description', :content => page.description)
9
- end
10
3
  remove_column :pages, :keywords
11
4
  remove_column :pages, :description
12
- remove_column :pages, :allowed_children_cache
13
5
  end
14
6
 
15
7
  def self.down
16
8
  add_column :pages, :description, :string
17
9
  add_column :pages, :keywords, :string
18
- Page.all.each do |page|
19
- page.description = page.field('description').content
20
- page.keywords = page.field('keywords').content
21
- page.save
22
- end
23
10
  end
24
11
  end
@@ -1,10 +1,6 @@
1
1
  class AddAllowedChildrenCacheToPages < ActiveRecord::Migration
2
2
  def self.up
3
3
  add_column :pages, :allowed_children_cache, :text
4
- Page.reset_column_information
5
- Page.find_each do |page|
6
- page.save # update the allowed_children_cache
7
- end
8
4
  end
9
5
 
10
6
  def self.down
@@ -1,6 +1,5 @@
1
1
  class ChangePagesAllowedChildrenCacheToText < ActiveRecord::Migration
2
2
  def self.up
3
- Page.reset_column_information
4
3
  change_column :pages, :allowed_children_cache, :text
5
4
  end
6
5
 
data/lib/trusty_cms.rb CHANGED
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = "2.0.4-beta"
5
+ VERSION = "2.0.5-beta"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4.pre.beta
4
+ version: 2.0.5.pre.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrustyCms CMS dev team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-27 00:00:00.000000000 Z
11
+ date: 2015-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo
@@ -588,7 +588,6 @@ files:
588
588
  - db/migrate/016_add_sessions.rb
589
589
  - db/migrate/017_rename_created_by_updated_by_columns.rb
590
590
  - db/migrate/018_add_description_and_keywords_to_pages.rb
591
- - db/migrate/019_add_salt_to_users.rb
592
591
  - db/migrate/020_add_session_info_to_users.rb
593
592
  - db/migrate/021_remove_session_expire_from_users.rb
594
593
  - db/migrate/20081203140407_add_indexes.rb
@@ -1,11 +0,0 @@
1
- class AddSaltToUsers < ActiveRecord::Migration
2
- def self.up
3
- add_column :users, :salt, :string
4
- User.reset_column_information
5
- User.update_all :salt => "sweet harmonious biscuits"
6
- end
7
-
8
- def self.down
9
- remove_column :users, :salt
10
- end
11
- end