kealy_contact_form 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "rails", "3.0.9"
4
+ gem "capybara", ">= 0.4.0"
5
+ gem "sqlite3"
6
+
7
+ gem "rspec-rails", ">= 2.0.0.beta"
8
+
9
+ # To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
10
+ # gem 'ruby-debug'
11
+ # gem 'ruby-debug19'
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2011 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = KealyContactForm
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,25 @@
1
+ # encoding: UTF-8
2
+ require 'rubygems'
3
+ begin
4
+ require 'bundler/setup'
5
+ rescue LoadError
6
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
7
+ end
8
+
9
+ require 'rake'
10
+ require 'rake/rdoctask'
11
+
12
+ require 'rspec/core'
13
+ require 'rspec/core/rake_task'
14
+
15
+ RSpec::Core::RakeTask.new(:spec)
16
+
17
+ task :default => :spec
18
+
19
+ Rake::RDocTask.new(:rdoc) do |rdoc|
20
+ rdoc.rdoc_dir = 'rdoc'
21
+ rdoc.title = 'KealyContactForm'
22
+ rdoc.options << '--line-numbers' << '--inline-source'
23
+ rdoc.rdoc_files.include('README.rdoc')
24
+ rdoc.rdoc_files.include('lib/**/*.rb')
25
+ end
@@ -0,0 +1,10 @@
1
+ module KealyContactForm
2
+ class ContactController < ::ApplicationController
3
+ def new
4
+ @hello = "hello!!"
5
+ end
6
+ def create
7
+ @hello = "yowza"
8
+ end
9
+ end
10
+ end
File without changes
@@ -0,0 +1,9 @@
1
+ en:
2
+ kealy_contact_form:
3
+ form_title: Send An Email
4
+ headers:
5
+ subject: Message From aRailsDemo User
6
+ to: arailsdemo@example.com
7
+ from: Anonymous
8
+ success: Thanks for the message!
9
+ redirect_url: new_kealy_contact_form_url
data/config/routes.rb ADDED
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+ get "contact", :to => 'kealy_contact_form/contact#new', :as => 'new_kealy_contact_form'
3
+ post 'contact', :to => 'kealy_contact_form/contact#create', :as => 'kealy_contact_form'
4
+ end
@@ -0,0 +1,4 @@
1
+ module KealyContactForm
2
+ require 'kealy_contact_form/engine'
3
+ autoload :Form, 'kealy_contact_form/form'
4
+ end
@@ -0,0 +1,9 @@
1
+ # engine.rb
2
+ module KealyContactForm
3
+ class Engine < Rails::Engine
4
+ # paths.app << 'lib/app'
5
+ # paths.app.views << 'lib/app/views'
6
+ # paths.config.routes << "lib/config/routes.rb"
7
+ # paths.config.locales << 'lib/config/locales'
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kealy_contact_form
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - john kealy
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-07-19 00:00:00 Z
14
+ dependencies: []
15
+
16
+ description: Insert KealyContactForm description.
17
+ email:
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files: []
23
+
24
+ files:
25
+ - app/views/kealy_contact_form/contact/create.html.erb
26
+ - app/views/kealy_contact_form/contact/new.html.erb
27
+ - app/controllers/kealy_contact_form/contact_controller.rb
28
+ - lib/kealy_contact_form.rb
29
+ - lib/kealy_contact_form/engine.rb
30
+ - config/locales/en.yml
31
+ - config/routes.rb
32
+ - MIT-LICENSE
33
+ - Rakefile
34
+ - Gemfile
35
+ - README.rdoc
36
+ homepage:
37
+ licenses: []
38
+
39
+ post_install_message:
40
+ rdoc_options: []
41
+
42
+ require_paths:
43
+ - lib
44
+ required_ruby_version: !ruby/object:Gem::Requirement
45
+ none: false
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: "0"
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: "0"
56
+ requirements: []
57
+
58
+ rubyforge_project:
59
+ rubygems_version: 1.8.5
60
+ signing_key:
61
+ specification_version: 3
62
+ summary: Insert KealyContactForm summary.
63
+ test_files: []
64
+