padrino-admin 0.2.6 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.9
data/lib/padrino-admin.rb CHANGED
@@ -1 +1,2 @@
1
+ require 'padrino-gen'
1
2
  Dir[File.dirname(__FILE__) + '/padrino-admin/**/*.rb'].each {|file| require file }
@@ -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.6"
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
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.2.6
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team