remail 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 Alexander MacCaw (info@eribium.org)
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.
@@ -42,7 +42,7 @@ Then create a email controller, that looks a bit like this (remember to configur
42
42
  return head(:unauthorized)
43
43
  end
44
44
  UserMailer.receive(params[:email][:raw])
45
- head :success
45
+ head :ok
46
46
  end
47
47
  end
48
48
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -19,6 +19,7 @@ module Remail
19
19
  class Email < ActiveResource::Base
20
20
  self.timeout = 5
21
21
  self.format = :json
22
+ self.include_root_in_json = false
22
23
 
23
24
  cattr_accessor :headers
24
25
  @@headers = {}
@@ -5,17 +5,18 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{remail}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alex MacCaw"]
12
- s.date = %q{2010-03-22}
12
+ s.date = %q{2010-08-29}
13
13
  s.email = %q{info@eribium.org}
14
14
  s.extra_rdoc_files = [
15
15
  "README.markdown"
16
16
  ]
17
17
  s.files = [
18
18
  ".gitignore",
19
+ "MIT-LICENSE",
19
20
  "README.markdown",
20
21
  "Rakefile",
21
22
  "VERSION",
@@ -25,14 +26,17 @@ Gem::Specification.new do |s|
25
26
  s.homepage = %q{http://github.com/maccman/remail}
26
27
  s.rdoc_options = ["--charset=UTF-8"]
27
28
  s.require_paths = ["lib"]
28
- s.rubygems_version = %q{1.3.6}
29
+ s.rubygems_version = %q{1.3.7}
29
30
  s.summary = %q{RESTful email}
31
+ s.test_files = [
32
+ "test/test_receive.rb"
33
+ ]
30
34
 
31
35
  if s.respond_to? :specification_version then
32
36
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
33
37
  s.specification_version = 3
34
38
 
35
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
39
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
36
40
  s.add_runtime_dependency(%q<activeresource>, [">= 0"])
37
41
  else
38
42
  s.add_dependency(%q<activeresource>, [">= 0"])
@@ -0,0 +1,15 @@
1
+ gem "nestful"
2
+ require "nestful"
3
+
4
+ Nestful.post(
5
+ "http://localhost/emails",
6
+ :format => :form,
7
+ :params => {
8
+ :email => {
9
+ :raw => File.read("email.eml")
10
+ }
11
+ },
12
+ :headers => {
13
+ "Authorization" => "changeme"
14
+ }
15
+ )
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alex MacCaw
@@ -14,13 +14,14 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-22 00:00:00 +00:00
17
+ date: 2010-08-29 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: activeresource
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
24
25
  requirements:
25
26
  - - ">="
26
27
  - !ruby/object:Gem::Version
@@ -39,11 +40,13 @@ extra_rdoc_files:
39
40
  - README.markdown
40
41
  files:
41
42
  - .gitignore
43
+ - MIT-LICENSE
42
44
  - README.markdown
43
45
  - Rakefile
44
46
  - VERSION
45
47
  - lib/remail.rb
46
48
  - remail.gemspec
49
+ - test/test_receive.rb
47
50
  has_rdoc: true
48
51
  homepage: http://github.com/maccman/remail
49
52
  licenses: []
@@ -54,6 +57,7 @@ rdoc_options:
54
57
  require_paths:
55
58
  - lib
56
59
  required_ruby_version: !ruby/object:Gem::Requirement
60
+ none: false
57
61
  requirements:
58
62
  - - ">="
59
63
  - !ruby/object:Gem::Version
@@ -61,6 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
65
  - 0
62
66
  version: "0"
63
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
+ none: false
64
69
  requirements:
65
70
  - - ">="
66
71
  - !ruby/object:Gem::Version
@@ -70,9 +75,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
75
  requirements: []
71
76
 
72
77
  rubyforge_project:
73
- rubygems_version: 1.3.6
78
+ rubygems_version: 1.3.7
74
79
  signing_key:
75
80
  specification_version: 3
76
81
  summary: RESTful email
77
- test_files: []
78
-
82
+ test_files:
83
+ - test/test_receive.rb