padrino-admin 0.15.1 → 0.15.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/padrino-admin/generators/orm.rb +2 -2
- data/test/helper.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 656b9fea29a75bcef82ebd5ab907bcbd553e86a86a430dba73da01588261ac36
|
4
|
+
data.tar.gz: 052f61880ff6d26e189d653f0d11bb929e7cbe514596a5425abb69a467202335
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aa68109a507f110759150edb55636a636e6f12678c6b079175b830d766bdc0806c16db3545d423185fd1cfe0d00d3ce388c20d3ffb60c13253126d22d295a73
|
7
|
+
data.tar.gz: 1ea5e74c5c5fa4bd84c5c7be0f84a1d815a36470de0d979a97d4b3a68e99f5b68db08c38623e85dc385bd2535df1f4cbee218cc8e5154723296b59082de36c73
|
@@ -124,8 +124,8 @@ module Padrino
|
|
124
124
|
|
125
125
|
def update_attributes(params=nil)
|
126
126
|
case orm
|
127
|
-
when :
|
128
|
-
when :datamapper, :ohm then "@#{name_singular}.update(#{params})"
|
127
|
+
when :mongomapper, :mongoid, :couchrest, :dynamoid then "@#{name_singular}.update_attributes(#{params})"
|
128
|
+
when :activerecord, :minirecord, :datamapper, :ohm then "@#{name_singular}.update(#{params})"
|
129
129
|
when :sequel then "@#{name_singular}.modified! && @#{name_singular}.update(#{params})"
|
130
130
|
else raise OrmError, "Adapter #{orm} is not yet supported!"
|
131
131
|
end
|
data/test/helper.rb
CHANGED
@@ -3,7 +3,6 @@ PADRINO_ROOT = File.dirname(__FILE__) unless defined? PADRINO_ROOT
|
|
3
3
|
|
4
4
|
require 'minitest/autorun'
|
5
5
|
require 'minitest/pride'
|
6
|
-
require 'mocha/setup'
|
7
6
|
require 'rack/test'
|
8
7
|
require 'thor/group'
|
9
8
|
require 'sequel/model'
|
@@ -11,6 +10,7 @@ require 'padrino-admin'
|
|
11
10
|
|
12
11
|
require 'ext/minitest-spec'
|
13
12
|
require 'ext/rack-test-methods'
|
13
|
+
require 'mocha/minitest'
|
14
14
|
|
15
15
|
Padrino::Generators.load_components!
|
16
16
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Padrino Team
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2023-02-25 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: padrino-core
|
@@ -19,28 +19,28 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.15.
|
22
|
+
version: 0.15.3
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.15.
|
29
|
+
version: 0.15.3
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: padrino-helpers
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
34
|
- - '='
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.15.
|
36
|
+
version: 0.15.3
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - '='
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.15.
|
43
|
+
version: 0.15.3
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: therubyracer
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|