trusty-cms 3.9.3 → 3.9.4

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
  SHA256:
3
- metadata.gz: 5279c4c1c8f109c82909a9114c87e85bb1b7ae9384b360b4a7d1b2b7a6dc9d90
4
- data.tar.gz: e93cbf189eea0eacaa1f7f038f8aa24fbaa34f1ea49f2bc12cd5a71174b3f72f
3
+ metadata.gz: b321f2fd71bed76d9aae8c64c4b9452b12a6170c4eafeac1241399a528cefac5
4
+ data.tar.gz: 2916e6d45a09f4b16fa58f89004ec34df195a4698eaf970cec3e70e1b53c086c
5
5
  SHA512:
6
- metadata.gz: 8035bccc58e20699eaa2f81fce995c20eadd6fbed85a426f81fffcba77cc98a70b5e7dde945f15cfe306cf0570bb83e12a3618012b064beaa019c72f123aaf7c
7
- data.tar.gz: 644722ff7335dcca0eaf60ed97f4f8288bb199e51bdbd38053131a75fff997802ddd174465256b7c024d0fa102be89870bd7ae083bf0beb71b216d18a42f36e7
6
+ metadata.gz: 42e8ab55f6290273aabe879864ceddf48e67e5fb162c6d3bd3129ac5f8f2dee8ee1e6a03e3c7b9a6a6353d99130580a792c56d5128b34a47e7b61d98756e676b
7
+ data.tar.gz: 19675f865bd59f10cbdd5afebf8d814c79904b7308a8c7f2e0a5f8df6c416e1664a22b3533169a052634481957ff7ea088c0f094c8742e35dbf56756ca8ebbff
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (3.9.3)
4
+ trusty-cms (3.9.4)
5
5
  RedCloth (= 4.3.2)
6
6
  acts_as_list (~> 0.9.5)
7
7
  acts_as_tree (>= 2.6.1, < 2.9.0)
@@ -8,8 +8,8 @@ namespace :import do
8
8
  password = CHARS.sort_by { rand }.join[0...15]
9
9
 
10
10
  LegacyUser.all.each do |legacy|
11
- u = User.new(
12
- email: legacy.email,
11
+ u = User.find_or_create_by(email: legacy.email)
12
+ u.update_attributes(
13
13
  first_name: legacy.name.split(' ')[0],
14
14
  last_name: legacy.name.split(' ')[1],
15
15
  password: password,
@@ -17,9 +17,9 @@ namespace :import do
17
17
  admin: legacy.admin,
18
18
  designer: legacy.designer,
19
19
  content_editor: legacy.content_editor,
20
- notes: legacy.notes
20
+ notes: legacy.notes,
21
+ site_id: legacy.site_id
21
22
  )
22
- u.save!
23
23
  end
24
24
  end
25
25
  end
@@ -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 = '3.9.3'
5
+ VERSION = '3.9.4'
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: 3.9.3
4
+ version: 3.9.4
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: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2020-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list