bakedweb-model_notifier 0.2.0

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.
Files changed (72) hide show
  1. data/.gitignore +8 -0
  2. data/LICENSE +20 -0
  3. data/README.rdoc +7 -0
  4. data/Rakefile +13 -0
  5. data/VERSION +1 -0
  6. data/cucumber.yml +2 -0
  7. data/features/model_notifier.feature +24 -0
  8. data/features/step_definitions/email_steps.rb +74 -0
  9. data/features/step_definitions/model_notifier_steps.rb +18 -0
  10. data/features/support/env.rb +12 -0
  11. data/lib/model_notifier.rb +61 -0
  12. data/spec/lib/model_notifier_spec.rb +82 -0
  13. data/spec/rcov.opts +2 -0
  14. data/spec/spec.opts +4 -0
  15. data/spec/spec_helper.rb +53 -0
  16. data/test_rails_app/README +256 -0
  17. data/test_rails_app/Rakefile +10 -0
  18. data/test_rails_app/app/controllers/application.rb +15 -0
  19. data/test_rails_app/app/helpers/application_helper.rb +3 -0
  20. data/test_rails_app/app/models/contact_form.rb +2 -0
  21. data/test_rails_app/app/models/foo.rb +2 -0
  22. data/test_rails_app/app/views/model_notifier/contact_form/notification_email.erb +2 -0
  23. data/test_rails_app/app/views/model_notifier/foo/notification_email.erb +1 -0
  24. data/test_rails_app/config/boot.rb +109 -0
  25. data/test_rails_app/config/database.yml +22 -0
  26. data/test_rails_app/config/environment.rb +75 -0
  27. data/test_rails_app/config/environments/development.rb +17 -0
  28. data/test_rails_app/config/environments/production.rb +24 -0
  29. data/test_rails_app/config/environments/test.rb +24 -0
  30. data/test_rails_app/config/initializers/inflections.rb +10 -0
  31. data/test_rails_app/config/initializers/mime_types.rb +5 -0
  32. data/test_rails_app/config/initializers/new_rails_defaults.rb +17 -0
  33. data/test_rails_app/config/locales/en.yml +5 -0
  34. data/test_rails_app/config/routes.rb +43 -0
  35. data/test_rails_app/db/migrate/20090525195411_create_foos.rb +12 -0
  36. data/test_rails_app/db/migrate/20090525200701_create_contact_forms.rb +14 -0
  37. data/test_rails_app/lib/tasks/cucumber.rake +16 -0
  38. data/test_rails_app/lib/tasks/rspec.rake +167 -0
  39. data/test_rails_app/public/404.html +30 -0
  40. data/test_rails_app/public/422.html +30 -0
  41. data/test_rails_app/public/500.html +33 -0
  42. data/test_rails_app/public/dispatch.cgi +10 -0
  43. data/test_rails_app/public/dispatch.fcgi +24 -0
  44. data/test_rails_app/public/dispatch.rb +10 -0
  45. data/test_rails_app/public/favicon.ico +0 -0
  46. data/test_rails_app/public/images/rails.png +0 -0
  47. data/test_rails_app/public/index.html +274 -0
  48. data/test_rails_app/public/javascripts/application.js +2 -0
  49. data/test_rails_app/public/javascripts/controls.js +963 -0
  50. data/test_rails_app/public/javascripts/dragdrop.js +973 -0
  51. data/test_rails_app/public/javascripts/effects.js +1128 -0
  52. data/test_rails_app/public/javascripts/prototype.js +4320 -0
  53. data/test_rails_app/public/robots.txt +5 -0
  54. data/test_rails_app/script/about +4 -0
  55. data/test_rails_app/script/autospec +6 -0
  56. data/test_rails_app/script/console +3 -0
  57. data/test_rails_app/script/cucumber +8 -0
  58. data/test_rails_app/script/dbconsole +3 -0
  59. data/test_rails_app/script/destroy +3 -0
  60. data/test_rails_app/script/generate +3 -0
  61. data/test_rails_app/script/performance/benchmarker +3 -0
  62. data/test_rails_app/script/performance/profiler +3 -0
  63. data/test_rails_app/script/performance/request +3 -0
  64. data/test_rails_app/script/plugin +3 -0
  65. data/test_rails_app/script/process/inspector +3 -0
  66. data/test_rails_app/script/process/reaper +3 -0
  67. data/test_rails_app/script/process/spawner +3 -0
  68. data/test_rails_app/script/runner +3 -0
  69. data/test_rails_app/script/server +3 -0
  70. data/test_rails_app/script/spec +10 -0
  71. data/test_rails_app/script/spec_server +9 -0
  72. metadata +126 -0
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
4
+ require 'commands/about'
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
3
+ ENV['RSPEC'] = 'true' # allows autotest to discover rspec
4
+ ENV['AUTOTEST'] = 'true' # allows autotest to run w/ color on linux
5
+ system((RUBY_PLATFORM =~ /mswin|mingw/ ? 'autotest.bat' : 'autotest'), *ARGV) ||
6
+ $stderr.puts("Unable to find autotest. Please install ZenTest or fix your PATH")
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/console'
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path(File.dirname(__FILE__) + "/../vendor/plugins/cucumber/bin/cucumber")
4
+ rescue LoadError => e
5
+ raise unless e.to_s =~ /cucumber/
6
+ require "rubygems"
7
+ load File.join(Gem.bindir, "cucumber")
8
+ end
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/dbconsole'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/destroy'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/generate'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/benchmarker'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/profiler'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/request'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/plugin'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/inspector'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/reaper'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/spawner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/runner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/server'
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+ if ARGV.any? {|arg| %w[--drb -X --generate-options -G --help -h --version -v].include?(arg)}
3
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
4
+ else
5
+ gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
6
+ ENV["RAILS_ENV"] ||= 'test'
7
+ require File.expand_path(File.dirname(__FILE__) + "/../config/environment") unless defined?(RAILS_ROOT)
8
+ end
9
+ require 'spec/autorun'
10
+ exit ::Spec::Runner::CommandLine.run
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+ gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
3
+
4
+ puts "Loading Rails environment"
5
+ ENV["RAILS_ENV"] ||= 'test'
6
+ require File.expand_path(File.dirname(__FILE__) + "/../config/environment") unless defined?(RAILS_ROOT)
7
+
8
+ require 'optparse'
9
+ require 'spec/rails/spec_server'
metadata ADDED
@@ -0,0 +1,126 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bakedweb-model_notifier
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Ivan Acosta-Rubio
8
+ - Corey Haines
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2009-05-27 00:00:00 -07:00
14
+ default_executable:
15
+ dependencies: []
16
+
17
+ description: Notifies when a model is created
18
+ email: ivan@bakedweb.net
19
+ executables: []
20
+
21
+ extensions: []
22
+
23
+ extra_rdoc_files:
24
+ - LICENSE
25
+ - README.rdoc
26
+ files:
27
+ - .gitignore
28
+ - LICENSE
29
+ - README.rdoc
30
+ - Rakefile
31
+ - VERSION
32
+ - cucumber.yml
33
+ - features/model_notifier.feature
34
+ - features/step_definitions/email_steps.rb
35
+ - features/step_definitions/model_notifier_steps.rb
36
+ - features/support/env.rb
37
+ - lib/model_notifier.rb
38
+ - spec/lib/model_notifier_spec.rb
39
+ - spec/rcov.opts
40
+ - spec/spec.opts
41
+ - spec/spec_helper.rb
42
+ - test_rails_app/README
43
+ - test_rails_app/Rakefile
44
+ - test_rails_app/app/controllers/application.rb
45
+ - test_rails_app/app/helpers/application_helper.rb
46
+ - test_rails_app/app/models/contact_form.rb
47
+ - test_rails_app/app/models/foo.rb
48
+ - test_rails_app/app/views/model_notifier/contact_form/notification_email.erb
49
+ - test_rails_app/app/views/model_notifier/foo/notification_email.erb
50
+ - test_rails_app/config/boot.rb
51
+ - test_rails_app/config/database.yml
52
+ - test_rails_app/config/environment.rb
53
+ - test_rails_app/config/environments/development.rb
54
+ - test_rails_app/config/environments/production.rb
55
+ - test_rails_app/config/environments/test.rb
56
+ - test_rails_app/config/initializers/inflections.rb
57
+ - test_rails_app/config/initializers/mime_types.rb
58
+ - test_rails_app/config/initializers/new_rails_defaults.rb
59
+ - test_rails_app/config/locales/en.yml
60
+ - test_rails_app/config/routes.rb
61
+ - test_rails_app/db/migrate/20090525195411_create_foos.rb
62
+ - test_rails_app/db/migrate/20090525200701_create_contact_forms.rb
63
+ - test_rails_app/lib/tasks/cucumber.rake
64
+ - test_rails_app/lib/tasks/rspec.rake
65
+ - test_rails_app/public/404.html
66
+ - test_rails_app/public/422.html
67
+ - test_rails_app/public/500.html
68
+ - test_rails_app/public/dispatch.cgi
69
+ - test_rails_app/public/dispatch.fcgi
70
+ - test_rails_app/public/dispatch.rb
71
+ - test_rails_app/public/favicon.ico
72
+ - test_rails_app/public/images/rails.png
73
+ - test_rails_app/public/index.html
74
+ - test_rails_app/public/javascripts/application.js
75
+ - test_rails_app/public/javascripts/controls.js
76
+ - test_rails_app/public/javascripts/dragdrop.js
77
+ - test_rails_app/public/javascripts/effects.js
78
+ - test_rails_app/public/javascripts/prototype.js
79
+ - test_rails_app/public/robots.txt
80
+ - test_rails_app/script/about
81
+ - test_rails_app/script/autospec
82
+ - test_rails_app/script/console
83
+ - test_rails_app/script/cucumber
84
+ - test_rails_app/script/dbconsole
85
+ - test_rails_app/script/destroy
86
+ - test_rails_app/script/generate
87
+ - test_rails_app/script/performance/benchmarker
88
+ - test_rails_app/script/performance/profiler
89
+ - test_rails_app/script/performance/request
90
+ - test_rails_app/script/plugin
91
+ - test_rails_app/script/process/inspector
92
+ - test_rails_app/script/process/reaper
93
+ - test_rails_app/script/process/spawner
94
+ - test_rails_app/script/runner
95
+ - test_rails_app/script/server
96
+ - test_rails_app/script/spec
97
+ - test_rails_app/script/spec_server
98
+ has_rdoc: true
99
+ homepage: http://github.com/bakedweb/model_notifier
100
+ post_install_message:
101
+ rdoc_options:
102
+ - --charset=UTF-8
103
+ require_paths:
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: "0"
110
+ version:
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: "0"
116
+ version:
117
+ requirements: []
118
+
119
+ rubyforge_project:
120
+ rubygems_version: 1.2.0
121
+ signing_key:
122
+ specification_version: 2
123
+ summary: send an email when a watched model is created
124
+ test_files:
125
+ - spec/lib/model_notifier_spec.rb
126
+ - spec/spec_helper.rb