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.
- data/.gitignore +8 -0
- data/LICENSE +20 -0
- data/README.rdoc +7 -0
- data/Rakefile +13 -0
- data/VERSION +1 -0
- data/cucumber.yml +2 -0
- data/features/model_notifier.feature +24 -0
- data/features/step_definitions/email_steps.rb +74 -0
- data/features/step_definitions/model_notifier_steps.rb +18 -0
- data/features/support/env.rb +12 -0
- data/lib/model_notifier.rb +61 -0
- data/spec/lib/model_notifier_spec.rb +82 -0
- data/spec/rcov.opts +2 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +53 -0
- data/test_rails_app/README +256 -0
- data/test_rails_app/Rakefile +10 -0
- data/test_rails_app/app/controllers/application.rb +15 -0
- data/test_rails_app/app/helpers/application_helper.rb +3 -0
- data/test_rails_app/app/models/contact_form.rb +2 -0
- data/test_rails_app/app/models/foo.rb +2 -0
- data/test_rails_app/app/views/model_notifier/contact_form/notification_email.erb +2 -0
- data/test_rails_app/app/views/model_notifier/foo/notification_email.erb +1 -0
- data/test_rails_app/config/boot.rb +109 -0
- data/test_rails_app/config/database.yml +22 -0
- data/test_rails_app/config/environment.rb +75 -0
- data/test_rails_app/config/environments/development.rb +17 -0
- data/test_rails_app/config/environments/production.rb +24 -0
- data/test_rails_app/config/environments/test.rb +24 -0
- data/test_rails_app/config/initializers/inflections.rb +10 -0
- data/test_rails_app/config/initializers/mime_types.rb +5 -0
- data/test_rails_app/config/initializers/new_rails_defaults.rb +17 -0
- data/test_rails_app/config/locales/en.yml +5 -0
- data/test_rails_app/config/routes.rb +43 -0
- data/test_rails_app/db/migrate/20090525195411_create_foos.rb +12 -0
- data/test_rails_app/db/migrate/20090525200701_create_contact_forms.rb +14 -0
- data/test_rails_app/lib/tasks/cucumber.rake +16 -0
- data/test_rails_app/lib/tasks/rspec.rake +167 -0
- data/test_rails_app/public/404.html +30 -0
- data/test_rails_app/public/422.html +30 -0
- data/test_rails_app/public/500.html +33 -0
- data/test_rails_app/public/dispatch.cgi +10 -0
- data/test_rails_app/public/dispatch.fcgi +24 -0
- data/test_rails_app/public/dispatch.rb +10 -0
- data/test_rails_app/public/favicon.ico +0 -0
- data/test_rails_app/public/images/rails.png +0 -0
- data/test_rails_app/public/index.html +274 -0
- data/test_rails_app/public/javascripts/application.js +2 -0
- data/test_rails_app/public/javascripts/controls.js +963 -0
- data/test_rails_app/public/javascripts/dragdrop.js +973 -0
- data/test_rails_app/public/javascripts/effects.js +1128 -0
- data/test_rails_app/public/javascripts/prototype.js +4320 -0
- data/test_rails_app/public/robots.txt +5 -0
- data/test_rails_app/script/about +4 -0
- data/test_rails_app/script/autospec +6 -0
- data/test_rails_app/script/console +3 -0
- data/test_rails_app/script/cucumber +8 -0
- data/test_rails_app/script/dbconsole +3 -0
- data/test_rails_app/script/destroy +3 -0
- data/test_rails_app/script/generate +3 -0
- data/test_rails_app/script/performance/benchmarker +3 -0
- data/test_rails_app/script/performance/profiler +3 -0
- data/test_rails_app/script/performance/request +3 -0
- data/test_rails_app/script/plugin +3 -0
- data/test_rails_app/script/process/inspector +3 -0
- data/test_rails_app/script/process/reaper +3 -0
- data/test_rails_app/script/process/spawner +3 -0
- data/test_rails_app/script/runner +3 -0
- data/test_rails_app/script/server +3 -0
- data/test_rails_app/script/spec +10 -0
- data/test_rails_app/script/spec_server +9 -0
- metadata +126 -0
@@ -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,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
|