ns-ramaze-ext 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,20 @@
1
+ require 'ramaze'
2
+ require 'ramaze/spec/bacon'
3
+
4
+ require __DIR__('../app')
5
+
6
+ describe MainController do
7
+ behaves_like :rack_test
8
+
9
+ should 'show start page' do
10
+ get('/').status.should == 200
11
+ last_response['Content-Type'].should == 'text/html'
12
+ last_response.should =~ /<h1>Welcome to Ramaze!<\/h1>/
13
+ end
14
+
15
+ should 'show /notemplate' do
16
+ get('/notemplate').status.should == 200
17
+ last_response['Content-Type'].should == 'text/html'
18
+ last_response.should =~ /there is no 'notemplate\.xhtml' associated with this action/
19
+ end
20
+ end
@@ -0,0 +1,8 @@
1
+ # Use this file directly like `ruby start.rb` if you don't want to use the
2
+ # `ramaze start` command.
3
+ # All application related things should go into `app.rb`, this file is simply
4
+ # for options related to running the application locally.
5
+
6
+ require File.expand_path('../app', __FILE__)
7
+
8
+ Ramaze.start(:adapter => :mongrel, :port => 7000, :file => __FILE__)
@@ -0,0 +1,12 @@
1
+ <%
2
+ ## check if errors were provided
3
+ form_errors_from_model @banana
4
+ %>
5
+ <%=
6
+ form(:method => :post, :action => :create, :name => 'banana' ) do |f|
7
+ f.legend('Banana Details')
8
+ f.input_text 'Color', :color, @banana.color
9
+ f.input_text 'Country', :country, @banana.country
10
+ f.input_submit 'Create A Banana'
11
+ end
12
+ %>
@@ -0,0 +1,4 @@
1
+ <p>
2
+ Welcome to the BananForm demo app, please go to <a href="bananas/new">banana creation form</a> in order to check the validation feature
3
+ </p>
4
+
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ns-ramaze-ext}
5
- s.version = "0.0.7"
5
+ s.version = "0.0.8"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["funkomatic"]
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.description = %q{funkomatic ramaze extensions}
11
11
  s.email = %q{funkomatic@netscholar.net}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "README.rdoc", "lib/ext/ramaze/helper/banana_form.rb", "lib/ns-ramaze-ext.rb"]
13
- s.files = ["CHANGELOG", "Manifest", "README.rdoc", "Rakefile", "lib/ext/ramaze/helper/banana_form.rb", "lib/ns-ramaze-ext.rb", "ns-ramaze-ext.gemspec", "rake/doc.rb", "rake/gemdef.rb", "rake/rake.rb", "rake/tests.rb", "tests/ramaze/helper/banana_form.rb"]
13
+ s.files = ["CHANGELOG", "Manifest", "README.rdoc", "Rakefile", "example/bananaform/app.rb", "example/bananaform/config.ru", "example/bananaform/controller/bananas.rb", "example/bananaform/controller/init.rb", "example/bananaform/controller/main.rb", "example/bananaform/layout/default.rhtml", "example/bananaform/model/init.rb", "example/bananaform/public/css/form.css", "example/bananaform/public/css/screen.css", "example/bananaform/public/dispatch.fcgi", "example/bananaform/public/favicon.ico", "example/bananaform/public/js/jquery.js", "example/bananaform/public/ramaze.png", "example/bananaform/spec/main.rb", "example/bananaform/start.rb", "example/bananaform/view/bananas/new.rhtml", "example/bananaform/view/index.rhtml", "lib/ext/ramaze/helper/banana_form.rb", "lib/ns-ramaze-ext.rb", "rake/doc.rb", "rake/gemdef.rb", "rake/rake.rb", "rake/tests.rb", "tests/ramaze/helper/banana_form.rb", "ns-ramaze-ext.gemspec"]
14
14
  s.homepage = %q{http://github.com/funkomatic/ns-ramaze-ext}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Ns-ramaze-ext", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 7
9
- version: 0.0.7
8
+ - 8
9
+ version: 0.0.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - funkomatic
@@ -103,14 +103,31 @@ files:
103
103
  - Manifest
104
104
  - README.rdoc
105
105
  - Rakefile
106
+ - example/bananaform/app.rb
107
+ - example/bananaform/config.ru
108
+ - example/bananaform/controller/bananas.rb
109
+ - example/bananaform/controller/init.rb
110
+ - example/bananaform/controller/main.rb
111
+ - example/bananaform/layout/default.rhtml
112
+ - example/bananaform/model/init.rb
113
+ - example/bananaform/public/css/form.css
114
+ - example/bananaform/public/css/screen.css
115
+ - example/bananaform/public/dispatch.fcgi
116
+ - example/bananaform/public/favicon.ico
117
+ - example/bananaform/public/js/jquery.js
118
+ - example/bananaform/public/ramaze.png
119
+ - example/bananaform/spec/main.rb
120
+ - example/bananaform/start.rb
121
+ - example/bananaform/view/bananas/new.rhtml
122
+ - example/bananaform/view/index.rhtml
106
123
  - lib/ext/ramaze/helper/banana_form.rb
107
124
  - lib/ns-ramaze-ext.rb
108
- - ns-ramaze-ext.gemspec
109
125
  - rake/doc.rb
110
126
  - rake/gemdef.rb
111
127
  - rake/rake.rb
112
128
  - rake/tests.rb
113
129
  - tests/ramaze/helper/banana_form.rb
130
+ - ns-ramaze-ext.gemspec
114
131
  has_rdoc: true
115
132
  homepage: http://github.com/funkomatic/ns-ramaze-ext
116
133
  licenses: []