trusty-cms 2.0.5.pre.beta → 2.0.7.pre.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/app/models/trusty_cms/config.rb +1 -1
- data/lib/trusty_cms.rb +1 -1
- data/lib/trusty_cms/extension_migrator.rb +1 -2
- data/lib/trusty_cms/setup.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWY5YjBlNDg4Yzg4M2NkYWUxZWJjZmE2MGU2YzY4NmQxYzI2MmZlNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzAyMTkyYWI4ZTJmNWQwNGJjMWMzNjMwZTgwMmQ3NjdkZGM1ZThmOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTQyNmUzZWFiY2IyMmU3NGQ1ZDBkNzdkMmVhMzE4ZmJlNjFiYjVlZWFiODkz
|
10
|
+
OWU0MDFhMDU2MTAxNTU0ZGE1OWQwYjExZjRlZDRiZTM1ZWU3ZmMzMjFkMDdk
|
11
|
+
ZGIwMTA0YWM1ZmMwNTlmYTVlY2QyYzAwYTkwMDFkNDNkZWQ5YmU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTUxMGRjMGFmM2M1NTc5ZGNhZWFhYTU0OGJkY2U0NjY0YTBlY2MzOTE3NDFj
|
14
|
+
Y2UyNDdiNzNkZDExMGJmYTU1MGY2MDRiOTk2YmQwMDQ0Nzg5Mjk0YTM1NmQ4
|
15
|
+
YzIzM2VhNmUyZWY5NjAwNzUxOThlZWYyODQyMTk5ZTE2Y2U0MzM=
|
data/Gemfile.lock
CHANGED
data/lib/trusty_cms.rb
CHANGED
@@ -84,13 +84,12 @@ module TrustyCms
|
|
84
84
|
|
85
85
|
def record_version_state_after_migrating(version)
|
86
86
|
sm_table = self.class.schema_migrations_table_name
|
87
|
-
|
88
87
|
@migrated_versions ||= []
|
89
88
|
if down?
|
90
89
|
@migrated_versions.delete(version.to_i)
|
91
90
|
ActiveRecord::Base.connection.update("DELETE FROM #{sm_table} WHERE version = #{quote(version_string(version))}")
|
92
91
|
else
|
93
|
-
@migrated_versions.
|
92
|
+
@migrated_versions.add(version.to_i)
|
94
93
|
ActiveRecord::Base.connection.insert("INSERT INTO #{sm_table} (version) VALUES (#{quote(version_string(version))})")
|
95
94
|
end
|
96
95
|
end
|
data/lib/trusty_cms/setup.rb
CHANGED
@@ -36,7 +36,7 @@ module TrustyCms
|
|
36
36
|
:password => password,
|
37
37
|
:password_confirmation => password
|
38
38
|
}
|
39
|
-
admin = User.
|
39
|
+
admin = User.find_by(login: username)
|
40
40
|
admin = User.new unless admin
|
41
41
|
admin.update_attributes(attributes)
|
42
42
|
admin.admin = true
|
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
|
+
version: 2.0.7.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-
|
11
|
+
date: 2015-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tzinfo
|