padrino-admin 0.2.6 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/padrino-admin.rb +1 -0
- data/padrino-admin.gemspec +1 -1
- data/test/test_parsing.rb +3 -4
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.9
|
data/lib/padrino-admin.rb
CHANGED
data/padrino-admin.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{padrino-admin}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
|
data/test/test_parsing.rb
CHANGED
@@ -17,7 +17,7 @@ class ParsingTest < Test::Unit::TestCase
|
|
17
17
|
nested:
|
18
18
|
fn: !js function(){ alert('nested fn') }
|
19
19
|
fn: !js function(){ alert('fn') }
|
20
|
-
array: [!js function(){ alert('array') }]
|
20
|
+
array: [!js function(){ alert('array') }, perfect]
|
21
21
|
test_one: %fn
|
22
22
|
test_two: %nested/fn
|
23
23
|
test_three:
|
@@ -36,6 +36,7 @@ class ParsingTest < Test::Unit::TestCase
|
|
36
36
|
assert_equal "function(){ alert('fn') }", config["test_three"]["no_nested"]
|
37
37
|
assert_equal "function(){ alert('nested fn') }", config["test_three"]["nested"]
|
38
38
|
assert_equal "function(){ alert('array') }", config["array"].first
|
39
|
+
assert_equal "perfect", config["array"].last
|
39
40
|
end
|
40
41
|
|
41
42
|
should "Parse a multinested YAML" do
|
@@ -89,7 +90,6 @@ class ParsingTest < Test::Unit::TestCase
|
|
89
90
|
grid:
|
90
91
|
<<: %default/grid
|
91
92
|
editable: true
|
92
|
-
title: Elenco <%= @title %>
|
93
93
|
basepath: /backend/orders
|
94
94
|
sm: checkbox
|
95
95
|
template: custom
|
@@ -103,7 +103,7 @@ class ParsingTest < Test::Unit::TestCase
|
|
103
103
|
assert_equal "custom", config["grid"]["template"]
|
104
104
|
assert_equal ["Add", "Delete", "Test"], config["grid"]["tbar"]["buttons"].collect { |b| b["text"] }
|
105
105
|
end
|
106
|
-
|
106
|
+
|
107
107
|
should "Merge a complex config" do
|
108
108
|
config = ExtJs::Config.load <<-YAML
|
109
109
|
default:
|
@@ -123,7 +123,6 @@ class ParsingTest < Test::Unit::TestCase
|
|
123
123
|
grid:
|
124
124
|
<<: %default/grid
|
125
125
|
editable: true
|
126
|
-
title: Elenco <%= @title %>
|
127
126
|
basepath: /backend/orders
|
128
127
|
sm: checkbox
|
129
128
|
template: custom
|