acts_as_contactable 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. data/.rvmrc +1 -0
  2. data/Gemfile +2 -2
  3. data/Gemfile.lock +66 -1
  4. data/MIT-LICENSE +20 -0
  5. data/README.rdoc +2 -18
  6. data/Rakefile +23 -0
  7. data/VERSION +1 -1
  8. data/acts_as_contactable._old_gemspec +94 -0
  9. data/acts_as_contactable.gemspec +57 -5
  10. data/app/assets/images/acts_as_contactable/.gitkeep +0 -0
  11. data/app/assets/javascripts/acts_as_contactable/application.js +15 -0
  12. data/app/assets/stylesheets/acts_as_contactable/application.css +13 -0
  13. data/app/controllers/acts_as_contactable/application_controller.rb +4 -0
  14. data/app/helpers/acts_as_contactable/application_helper.rb +4 -0
  15. data/app/views/layouts/acts_as_contactable/application.html.erb +14 -0
  16. data/config/routes.rb +2 -0
  17. data/lib/acts_as_contactable/engine.rb +5 -0
  18. data/lib/acts_as_contactable/version.rb +3 -0
  19. data/lib/acts_as_contactable.rb +4 -0
  20. data/lib/tasks/acts_as_contactable_tasks.rake +4 -0
  21. data/script/rails +8 -0
  22. data/test/acts_as_contactable_test.rb +7 -0
  23. data/test/dummy/README.rdoc +261 -0
  24. data/test/dummy/Rakefile +7 -0
  25. data/test/dummy/app/assets/javascripts/application.js +15 -0
  26. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  27. data/test/dummy/app/controllers/application_controller.rb +3 -0
  28. data/test/dummy/app/helpers/application_helper.rb +2 -0
  29. data/test/dummy/app/mailers/.gitkeep +0 -0
  30. data/test/dummy/app/models/.gitkeep +0 -0
  31. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  32. data/test/dummy/config/application.rb +56 -0
  33. data/test/dummy/config/boot.rb +10 -0
  34. data/test/dummy/config/database.yml +25 -0
  35. data/test/dummy/config/environment.rb +5 -0
  36. data/test/dummy/config/environments/development.rb +37 -0
  37. data/test/dummy/config/environments/production.rb +67 -0
  38. data/test/dummy/config/environments/test.rb +37 -0
  39. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  40. data/test/dummy/config/initializers/inflections.rb +15 -0
  41. data/test/dummy/config/initializers/mime_types.rb +5 -0
  42. data/test/dummy/config/initializers/secret_token.rb +7 -0
  43. data/test/dummy/config/initializers/session_store.rb +8 -0
  44. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  45. data/test/dummy/config/locales/en.yml +5 -0
  46. data/test/dummy/config/routes.rb +4 -0
  47. data/test/dummy/config.ru +4 -0
  48. data/test/dummy/lib/assets/.gitkeep +0 -0
  49. data/test/dummy/log/.gitkeep +0 -0
  50. data/test/dummy/public/404.html +26 -0
  51. data/test/dummy/public/422.html +26 -0
  52. data/test/dummy/public/500.html +25 -0
  53. data/test/dummy/public/favicon.ico +0 -0
  54. data/test/dummy/script/rails +6 -0
  55. data/test/integration/navigation_test.rb +10 -0
  56. data/test/test_helper.rb +15 -0
  57. metadata +68 -3
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm 1.9.3-p125@tn-gems
data/Gemfile CHANGED
@@ -1,9 +1,9 @@
1
1
  source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
- gem "activesupport", ">= 3.2"
4
+ gem "rails", ">= 3.2"
5
5
  gem "mongoid", "~> 2.4.8"
6
-
6
+ gem 'bson_ext'
7
7
  # Add dependencies to develop your gem here.
8
8
  # Include everything needed to run rake, tests, features, etc.
9
9
  group :development do
data/Gemfile.lock CHANGED
@@ -1,22 +1,54 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ actionmailer (3.2.3)
5
+ actionpack (= 3.2.3)
6
+ mail (~> 2.4.4)
7
+ actionpack (3.2.3)
8
+ activemodel (= 3.2.3)
9
+ activesupport (= 3.2.3)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ journey (~> 1.0.1)
13
+ rack (~> 1.4.0)
14
+ rack-cache (~> 1.2)
15
+ rack-test (~> 0.6.1)
16
+ sprockets (~> 2.1.2)
4
17
  activemodel (3.2.3)
5
18
  activesupport (= 3.2.3)
6
19
  builder (~> 3.0.0)
20
+ activerecord (3.2.3)
21
+ activemodel (= 3.2.3)
22
+ activesupport (= 3.2.3)
23
+ arel (~> 3.0.2)
24
+ tzinfo (~> 0.3.29)
25
+ activeresource (3.2.3)
26
+ activemodel (= 3.2.3)
27
+ activesupport (= 3.2.3)
7
28
  activesupport (3.2.3)
8
29
  i18n (~> 0.6)
9
30
  multi_json (~> 1.0)
31
+ arel (3.0.2)
10
32
  bson (1.6.2)
33
+ bson_ext (1.6.2)
34
+ bson (~> 1.6.2)
11
35
  builder (3.0.0)
36
+ erubis (2.7.0)
12
37
  git (1.2.5)
38
+ hike (1.2.1)
13
39
  i18n (0.6.0)
14
40
  jeweler (1.8.3)
15
41
  bundler (~> 1.0)
16
42
  git (>= 1.2.5)
17
43
  rake
18
44
  rdoc
45
+ journey (1.0.3)
19
46
  json (1.6.6)
47
+ mail (2.4.4)
48
+ i18n (>= 0.4.0)
49
+ mime-types (~> 1.16)
50
+ treetop (~> 1.4.8)
51
+ mime-types (1.18)
20
52
  mongo (1.6.2)
21
53
  bson (~> 1.6.2)
22
54
  mongoid (2.4.8)
@@ -24,6 +56,29 @@ GEM
24
56
  mongo (~> 1.3)
25
57
  tzinfo (~> 0.3.22)
26
58
  multi_json (1.3.2)
59
+ polyglot (0.3.3)
60
+ rack (1.4.1)
61
+ rack-cache (1.2)
62
+ rack (>= 0.4)
63
+ rack-ssl (1.3.2)
64
+ rack
65
+ rack-test (0.6.1)
66
+ rack (>= 1.0)
67
+ rails (3.2.3)
68
+ actionmailer (= 3.2.3)
69
+ actionpack (= 3.2.3)
70
+ activerecord (= 3.2.3)
71
+ activeresource (= 3.2.3)
72
+ activesupport (= 3.2.3)
73
+ bundler (~> 1.0)
74
+ railties (= 3.2.3)
75
+ railties (3.2.3)
76
+ actionpack (= 3.2.3)
77
+ activesupport (= 3.2.3)
78
+ rack-ssl (~> 1.3.2)
79
+ rake (>= 0.8.7)
80
+ rdoc (~> 3.4)
81
+ thor (~> 0.14.6)
27
82
  rake (0.9.2.2)
28
83
  rdoc (3.12)
29
84
  json (~> 1.4)
@@ -36,16 +91,26 @@ GEM
36
91
  multi_json (~> 1.3)
37
92
  simplecov-html (~> 0.5.3)
38
93
  simplecov-html (0.5.3)
94
+ sprockets (2.1.2)
95
+ hike (~> 1.2)
96
+ rack (~> 1.0)
97
+ tilt (~> 1.1, != 1.3.0)
98
+ thor (0.14.6)
99
+ tilt (1.3.3)
100
+ treetop (1.4.10)
101
+ polyglot
102
+ polyglot (>= 0.3.1)
39
103
  tzinfo (0.3.33)
40
104
 
41
105
  PLATFORMS
42
106
  ruby
43
107
 
44
108
  DEPENDENCIES
45
- activesupport (>= 3.2)
109
+ bson_ext
46
110
  bundler (~> 1.1.3)
47
111
  jeweler (~> 1.8.3)
48
112
  mongoid (~> 2.4.8)
113
+ rails (>= 3.2)
49
114
  rdoc (~> 3.12)
50
115
  shoulda
51
116
  simplecov
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2012 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 CHANGED
@@ -1,19 +1,3 @@
1
- = acts_as_contactable
2
-
3
- Description goes here.
4
-
5
- == Contributing to acts_as_contactable
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
- * Fork the project.
10
- * Start a feature/bugfix branch.
11
- * Commit and push until you are happy with your contribution.
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2012 Michael North. See LICENSE.txt for
18
- further details.
1
+ = ActsAsContactable
19
2
 
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile CHANGED
@@ -1,7 +1,24 @@
1
+ ####### from jeweler
1
2
  # encoding: utf-8
2
3
 
3
4
  require 'rubygems'
4
5
  require 'bundler'
6
+
7
+ begin
8
+ require 'bundler/setup'
9
+ rescue LoadError
10
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
11
+ end
12
+
13
+ begin
14
+ require 'rdoc/task'
15
+ rescue LoadError
16
+ require 'rdoc/rdoc'
17
+ require 'rake/rdoctask'
18
+ RDoc::Task = Rake::RDocTask
19
+ end
20
+
21
+
5
22
  begin
6
23
  Bundler.setup(:default, :development)
7
24
  rescue Bundler::BundlerError => e
@@ -43,3 +60,9 @@ Rake::RDocTask.new do |rdoc|
43
60
  rdoc.rdoc_files.include('README*')
44
61
  rdoc.rdoc_files.include('lib/**/*.rb')
45
62
  end
63
+
64
+
65
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
66
+ load 'rails/tasks/engine.rake'
67
+
68
+ Bundler::GemHelper.install_tasks
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -0,0 +1,94 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ # Maintain your gem's version:
4
+ require "acts_as_contactable/version"
5
+
6
+ # Describe your gem and declare its dependencies:
7
+ Gem::Specification.new do |s|
8
+ s.name = "acts_as_contactable"
9
+ s.version = ActsAsContactable::VERSION
10
+ s.authors = ["TODO: Your name"]
11
+ s.email = ["TODO: Your email"]
12
+ s.homepage = "TODO"
13
+ s.summary = "TODO: Summary of ActsAsContactable."
14
+ s.description = "TODO: Description of ActsAsContactable."
15
+
16
+ s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
17
+ s.test_files = Dir["test/**/*"]
18
+
19
+ s.add_dependency "rails", "~> 3.2.3"
20
+ # s.add_dependency "jquery-rails"
21
+
22
+ s.add_development_dependency "sqlite3"
23
+ end
24
+
25
+
26
+
27
+ # Generated by jeweler
28
+ # DO NOT EDIT THIS FILE DIRECTLY
29
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
30
+ # -*- encoding: utf-8 -*-
31
+
32
+ Gem::Specification.new do |s|
33
+ s.name = "acts_as_contactable"
34
+ s.version = "0.0.0"
35
+
36
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
37
+ s.authors = ["Michael North"]
38
+ s.date = "2012-04-24"
39
+ s.description = "Add embedded contact info to a mongoid model"
40
+ s.email = "michael.north@truenorthapps.com"
41
+ s.extra_rdoc_files = [
42
+ "LICENSE.txt",
43
+ "README.rdoc"
44
+ ]
45
+ s.files = [
46
+ ".document",
47
+ "Gemfile",
48
+ "Gemfile.lock",
49
+ "LICENSE.txt",
50
+ "README.rdoc",
51
+ "Rakefile",
52
+ "VERSION",
53
+ "acts_as_contactable.gemspec",
54
+ "lib/acts_as_contactable.rb",
55
+ "test/helper.rb",
56
+ "test/test_acts_as_contactable.rb"
57
+ ]
58
+ s.homepage = "http://github.com/TrueNorth/acts_as_contactable"
59
+ s.licenses = ["MIT"]
60
+ s.require_paths = ["lib"]
61
+ s.rubygems_version = "1.8.21"
62
+ s.summary = "Add embedded contact info to a mongoid model"
63
+
64
+ if s.respond_to? :specification_version then
65
+ s.specification_version = 3
66
+
67
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
68
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.2"])
69
+ s.add_runtime_dependency(%q<mongoid>, ["~> 2.4.8"])
70
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
71
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
72
+ s.add_development_dependency(%q<bundler>, ["~> 1.1.3"])
73
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
74
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
75
+ else
76
+ s.add_dependency(%q<activesupport>, [">= 3.2"])
77
+ s.add_dependency(%q<mongoid>, ["~> 2.4.8"])
78
+ s.add_dependency(%q<shoulda>, [">= 0"])
79
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
80
+ s.add_dependency(%q<bundler>, ["~> 1.1.3"])
81
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
82
+ s.add_dependency(%q<simplecov>, [">= 0"])
83
+ end
84
+ else
85
+ s.add_dependency(%q<activesupport>, [">= 3.2"])
86
+ s.add_dependency(%q<mongoid>, ["~> 2.4.8"])
87
+ s.add_dependency(%q<shoulda>, [">= 0"])
88
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
89
+ s.add_dependency(%q<bundler>, ["~> 1.1.3"])
90
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
91
+ s.add_dependency(%q<simplecov>, [">= 0"])
92
+ end
93
+ end
94
+
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "acts_as_contactable"
8
- s.version = "0.0.0"
8
+ s.version = "0.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael North"]
@@ -18,16 +18,65 @@ Gem::Specification.new do |s|
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
+ ".rvmrc",
21
22
  "Gemfile",
22
23
  "Gemfile.lock",
23
24
  "LICENSE.txt",
25
+ "MIT-LICENSE",
24
26
  "README.rdoc",
25
27
  "Rakefile",
26
28
  "VERSION",
29
+ "acts_as_contactable._old_gemspec",
27
30
  "acts_as_contactable.gemspec",
31
+ "app/assets/images/acts_as_contactable/.gitkeep",
32
+ "app/assets/javascripts/acts_as_contactable/application.js",
33
+ "app/assets/stylesheets/acts_as_contactable/application.css",
34
+ "app/controllers/acts_as_contactable/application_controller.rb",
35
+ "app/helpers/acts_as_contactable/application_helper.rb",
36
+ "app/views/layouts/acts_as_contactable/application.html.erb",
37
+ "config/routes.rb",
28
38
  "lib/acts_as_contactable.rb",
39
+ "lib/acts_as_contactable/engine.rb",
40
+ "lib/acts_as_contactable/version.rb",
41
+ "lib/tasks/acts_as_contactable_tasks.rake",
42
+ "script/rails",
43
+ "test/acts_as_contactable_test.rb",
44
+ "test/dummy/README.rdoc",
45
+ "test/dummy/Rakefile",
46
+ "test/dummy/app/assets/javascripts/application.js",
47
+ "test/dummy/app/assets/stylesheets/application.css",
48
+ "test/dummy/app/controllers/application_controller.rb",
49
+ "test/dummy/app/helpers/application_helper.rb",
50
+ "test/dummy/app/mailers/.gitkeep",
51
+ "test/dummy/app/models/.gitkeep",
52
+ "test/dummy/app/views/layouts/application.html.erb",
53
+ "test/dummy/config.ru",
54
+ "test/dummy/config/application.rb",
55
+ "test/dummy/config/boot.rb",
56
+ "test/dummy/config/database.yml",
57
+ "test/dummy/config/environment.rb",
58
+ "test/dummy/config/environments/development.rb",
59
+ "test/dummy/config/environments/production.rb",
60
+ "test/dummy/config/environments/test.rb",
61
+ "test/dummy/config/initializers/backtrace_silencers.rb",
62
+ "test/dummy/config/initializers/inflections.rb",
63
+ "test/dummy/config/initializers/mime_types.rb",
64
+ "test/dummy/config/initializers/secret_token.rb",
65
+ "test/dummy/config/initializers/session_store.rb",
66
+ "test/dummy/config/initializers/wrap_parameters.rb",
67
+ "test/dummy/config/locales/en.yml",
68
+ "test/dummy/config/routes.rb",
69
+ "test/dummy/lib/assets/.gitkeep",
70
+ "test/dummy/log/.gitkeep",
71
+ "test/dummy/public/404.html",
72
+ "test/dummy/public/422.html",
73
+ "test/dummy/public/500.html",
74
+ "test/dummy/public/favicon.ico",
75
+ "test/dummy/script/rails",
29
76
  "test/helper.rb",
30
- "test/test_acts_as_contactable.rb"
77
+ "test/integration/navigation_test.rb",
78
+ "test/test_acts_as_contactable.rb",
79
+ "test/test_helper.rb"
31
80
  ]
32
81
  s.homepage = "http://github.com/TrueNorth/acts_as_contactable"
33
82
  s.licenses = ["MIT"]
@@ -39,16 +88,18 @@ Gem::Specification.new do |s|
39
88
  s.specification_version = 3
40
89
 
41
90
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
- s.add_runtime_dependency(%q<activesupport>, [">= 3.2"])
91
+ s.add_runtime_dependency(%q<rails>, [">= 3.2"])
43
92
  s.add_runtime_dependency(%q<mongoid>, ["~> 2.4.8"])
93
+ s.add_runtime_dependency(%q<bson_ext>, [">= 0"])
44
94
  s.add_development_dependency(%q<shoulda>, [">= 0"])
45
95
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
46
96
  s.add_development_dependency(%q<bundler>, ["~> 1.1.3"])
47
97
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
48
98
  s.add_development_dependency(%q<simplecov>, [">= 0"])
49
99
  else
50
- s.add_dependency(%q<activesupport>, [">= 3.2"])
100
+ s.add_dependency(%q<rails>, [">= 3.2"])
51
101
  s.add_dependency(%q<mongoid>, ["~> 2.4.8"])
102
+ s.add_dependency(%q<bson_ext>, [">= 0"])
52
103
  s.add_dependency(%q<shoulda>, [">= 0"])
53
104
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
54
105
  s.add_dependency(%q<bundler>, ["~> 1.1.3"])
@@ -56,8 +107,9 @@ Gem::Specification.new do |s|
56
107
  s.add_dependency(%q<simplecov>, [">= 0"])
57
108
  end
58
109
  else
59
- s.add_dependency(%q<activesupport>, [">= 3.2"])
110
+ s.add_dependency(%q<rails>, [">= 3.2"])
60
111
  s.add_dependency(%q<mongoid>, ["~> 2.4.8"])
112
+ s.add_dependency(%q<bson_ext>, [">= 0"])
61
113
  s.add_dependency(%q<shoulda>, [">= 0"])
62
114
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
63
115
  s.add_dependency(%q<bundler>, ["~> 1.1.3"])
File without changes
@@ -0,0 +1,15 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require_tree .
@@ -0,0 +1,13 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require_tree .
13
+ */
@@ -0,0 +1,4 @@
1
+ module ActsAsContactable
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module ActsAsContactable
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>ActsAsContactable</title>
5
+ <%= stylesheet_link_tag "acts_as_contactable/application", :media => "all" %>
6
+ <%= javascript_include_tag "acts_as_contactable/application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
data/config/routes.rb ADDED
@@ -0,0 +1,2 @@
1
+ ActsAsContactable::Engine.routes.draw do
2
+ end
@@ -0,0 +1,5 @@
1
+ module ActsAsContactable
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace ActsAsContactable
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module ActsAsContactable
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,4 @@
1
+ require "acts_as_contactable/engine"
2
+
3
+ module ActsAsContactable
4
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :acts_as_contactable do
3
+ # # Task goes here
4
+ # end
data/script/rails ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ ENGINE_ROOT = File.expand_path('../..', __FILE__)
5
+ ENGINE_PATH = File.expand_path('../../lib/acts_as_contactable/engine', __FILE__)
6
+
7
+ require 'rails/all'
8
+ require 'rails/engine/commands'
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ActsAsContactableTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, ActsAsContactable
6
+ end
7
+ end