louismrose-delivery 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.textile +18 -3
  2. data/Rakefile +2 -1
  3. metadata +12 -3
data/README.textile CHANGED
@@ -20,7 +20,7 @@ In config/environment.rb:
20
20
  config.gem "louismrose-delivery",
21
21
  :lib => 'delivery',
22
22
  :source => 'http://gems.github.com',
23
- :version => '0.1.1'
23
+ :version => '0.1.2'
24
24
  </code>
25
25
  </pre>
26
26
 
@@ -67,9 +67,24 @@ Define root_url to *something* in your config/routes.rb:
67
67
  </pre>
68
68
 
69
69
 
70
- h1. Contributing
70
+ h2. Usage
71
71
 
72
- TODO.
72
+ Delivery adds a couple of routes to its host application:
73
+
74
+ <pre>
75
+ <code>
76
+ > rake routes
77
+ subscriptions POST /subscriptions(.:format) {:action=>"create", :controller=>"delivery/subscriptions"}
78
+ new_subscription GET /subscriptions/new(.:format) {:action=>"new", :controller=>"delivery/subscriptions"}
79
+ </code>
80
+ </pre>
81
+
82
+ After running script/server, navigate to: http://localhost:3000/subscriptions/new. Submitting the form on this page causes an email to be sent to DELIVERY_OPTIONS[:to].
83
+
84
+
85
+ h2. Testing
86
+
87
+ To simplify testing, DELIVERY_OPTIONS[:via] may be set to :test. This causes Delivery::SubscriptionsController to buffer any new subscription notification. The buffer can be accessed through the email instance variable on Delivery::SubscriptionsController. For more details, see the example in "test/controllers/subscriptions_controller_test.rb":http://github.com/louismrose/delivery/tree/master/test/controllers/subscriptions_controller_test.rb.
73
88
 
74
89
 
75
90
  Copyright (c) 2009 Louis Rose, released under the MIT license
data/Rakefile CHANGED
@@ -25,12 +25,13 @@ end
25
25
 
26
26
  gem_spec = Gem::Specification.new do |s|
27
27
  s.name = "delivery"
28
- s.version = "0.1.1"
28
+ s.version = "0.1.2"
29
29
  s.author = "Louis Rose"
30
30
  s.email = "louismrose@gmail.com"
31
31
  s.homepage = "http://github.com/louismrose/delivery"
32
32
  s.summary = "Delivery is a Rails engine, providing a simple mailing list."
33
33
  s.files = FileList["[A-Z]*", "{app,config,lib,rails}/**/*"]
34
+ s.add_dependency('pony', '>= 0.3')
34
35
  end
35
36
 
36
37
  desc "Generate gemspec for the delivery plugin."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: louismrose-delivery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis Rose
@@ -11,8 +11,17 @@ cert_chain: []
11
11
 
12
12
  date: 2009-04-22 16:00:00 -07:00
13
13
  default_executable:
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: pony
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0.3"
24
+ version:
16
25
  description:
17
26
  email: louismrose@gmail.com
18
27
  executables: []