email_manager 0.0.4 → 0.0.5

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/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.5
2
+
3
+ * Removed find_by calls to work better with rails 3.1
4
+
1
5
  == 0.0.4
2
6
 
3
7
  * Fixed minor issues in the controller
@@ -2,12 +2,12 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  abstract (1.0.0)
5
- actionmailer (3.0.9)
6
- actionpack (= 3.0.9)
5
+ actionmailer (3.0.7)
6
+ actionpack (= 3.0.7)
7
7
  mail (~> 2.2.19)
8
- actionpack (3.0.9)
9
- activemodel (= 3.0.9)
10
- activesupport (= 3.0.9)
8
+ actionpack (3.0.7)
9
+ activemodel (= 3.0.7)
10
+ activesupport (= 3.0.7)
11
11
  builder (~> 2.1.2)
12
12
  erubis (~> 2.6.6)
13
13
  i18n (~> 0.5.0)
@@ -15,19 +15,19 @@ GEM
15
15
  rack-mount (~> 0.6.14)
16
16
  rack-test (~> 0.5.7)
17
17
  tzinfo (~> 0.3.23)
18
- activemodel (3.0.9)
19
- activesupport (= 3.0.9)
18
+ activemodel (3.0.7)
19
+ activesupport (= 3.0.7)
20
20
  builder (~> 2.1.2)
21
21
  i18n (~> 0.5.0)
22
- activerecord (3.0.9)
23
- activemodel (= 3.0.9)
24
- activesupport (= 3.0.9)
22
+ activerecord (3.0.7)
23
+ activemodel (= 3.0.7)
24
+ activesupport (= 3.0.7)
25
25
  arel (~> 2.0.10)
26
26
  tzinfo (~> 0.3.23)
27
- activeresource (3.0.9)
28
- activemodel (= 3.0.9)
29
- activesupport (= 3.0.9)
30
- activesupport (3.0.9)
27
+ activeresource (3.0.7)
28
+ activemodel (= 3.0.7)
29
+ activesupport (= 3.0.7)
30
+ activesupport (3.0.7)
31
31
  archive-tar-minitar (0.5.2)
32
32
  arel (2.0.10)
33
33
  builder (2.1.2)
@@ -75,17 +75,17 @@ GEM
75
75
  rack (>= 1.0.0)
76
76
  rack-test (0.5.7)
77
77
  rack (>= 1.0)
78
- rails (3.0.9)
79
- actionmailer (= 3.0.9)
80
- actionpack (= 3.0.9)
81
- activerecord (= 3.0.9)
82
- activeresource (= 3.0.9)
83
- activesupport (= 3.0.9)
78
+ rails (3.0.7)
79
+ actionmailer (= 3.0.7)
80
+ actionpack (= 3.0.7)
81
+ activerecord (= 3.0.7)
82
+ activeresource (= 3.0.7)
83
+ activesupport (= 3.0.7)
84
84
  bundler (~> 1.0)
85
- railties (= 3.0.9)
86
- railties (3.0.9)
87
- actionpack (= 3.0.9)
88
- activesupport (= 3.0.9)
85
+ railties (= 3.0.7)
86
+ railties (3.0.7)
87
+ actionpack (= 3.0.7)
88
+ activesupport (= 3.0.7)
89
89
  rake (>= 0.8.7)
90
90
  rdoc (~> 3.4)
91
91
  thor (~> 0.14.4)
data/Rakefile CHANGED
@@ -35,8 +35,6 @@ require 'rspec/core/rake_task'
35
35
 
36
36
  RSpec::Core::RakeTask.new(:spec)
37
37
 
38
- task :default => :spec
39
-
40
38
  Rake::RDocTask.new(:rdoc) do |rdoc|
41
39
  rdoc.rdoc_dir = 'rdoc'
42
40
  rdoc.title = 'EmailManager'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -36,7 +36,7 @@ module EmailManager
36
36
  # shows a single managed email's body text
37
37
  # @param [String] id The id of the selected managed email
38
38
  def show
39
- @managed_email = EmailManager::ManagedEmail.find_by_id(params[:id])
39
+ @managed_email = EmailManager::ManagedEmail.find(params[:id])
40
40
 
41
41
  respond_to do |format|
42
42
  format.html
@@ -44,7 +44,7 @@ module EmailManager
44
44
  end
45
45
 
46
46
  def body
47
- @managed_email = EmailManager::ManagedEmail.find_by_id(params[:id])
47
+ @managed_email = EmailManager::ManagedEmail.find(params[:id])
48
48
 
49
49
  respond_to do |format|
50
50
  format.html { render :text => @managed_email.body }
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{email_manager}
8
- s.version = "0.0.4"
7
+ s.name = "email_manager"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Jeremiah Hemphill}]
12
- s.date = %q{2011-07-06}
13
- s.description = %q{System for storing and managing emails sent by ActionMailer}
14
- s.email = %q{jeremiah@cloudspace.com}
11
+ s.authors = ["Jeremiah Hemphill"]
12
+ s.date = "2012-04-06"
13
+ s.description = "System for storing and managing emails sent by ActionMailer"
14
+ s.email = "jeremiah@cloudspace.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.rdoc"
@@ -92,11 +92,11 @@ Gem::Specification.new do |s|
92
92
  "spec/routing/managed_emails_spec.rb",
93
93
  "spec/spec_helper.rb"
94
94
  ]
95
- s.homepage = %q{https://github.com/jeremiahishere/email_manager}
96
- s.licenses = [%q{MIT}]
97
- s.require_paths = [%q{lib}]
98
- s.rubygems_version = %q{1.8.5}
99
- s.summary = %q{An email manager}
95
+ s.homepage = "https://github.com/jeremiahishere/email_manager"
96
+ s.licenses = ["MIT"]
97
+ s.require_paths = ["lib"]
98
+ s.rubygems_version = "1.8.15"
99
+ s.summary = "An email manager"
100
100
 
101
101
  if s.respond_to? :specification_version then
102
102
  s.specification_version = 3
@@ -60,7 +60,7 @@ describe EmailManager::ManagedEmailsController do
60
60
  describe "show" do
61
61
  before(:each) do
62
62
  @managed_email = mock_model(EmailManager::ManagedEmail)
63
- EmailManager::ManagedEmail.stub!(:find_by_id).with(1).and_return(@managed_email)
63
+ EmailManager::ManagedEmail.stub!(:find).with(1).and_return(@managed_email)
64
64
  end
65
65
 
66
66
  def do_show
@@ -88,7 +88,7 @@ describe EmailManager::ManagedEmailsController do
88
88
  @managed_email = mock_model(EmailManager::ManagedEmail)
89
89
  @managed_email_body = "The body of the mocked email"
90
90
  @managed_email.stub!(:body).and_return(@managed_email_body)
91
- EmailManager::ManagedEmail.stub!(:find_by_id).with(1).and_return(@managed_email)
91
+ EmailManager::ManagedEmail.stub!(:find).with(1).and_return(@managed_email)
92
92
  end
93
93
 
94
94
  def do_body
Binary file
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: email_manager
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jeremiah Hemphill
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-06 00:00:00 Z
13
+ date: 2012-04-06 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -241,7 +241,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
241
241
  requirements:
242
242
  - - ">="
243
243
  - !ruby/object:Gem::Version
244
- hash: -2074967605751505543
244
+ hash: 46700724754865621
245
245
  segments:
246
246
  - 0
247
247
  version: "0"
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  requirements: []
255
255
 
256
256
  rubyforge_project:
257
- rubygems_version: 1.8.5
257
+ rubygems_version: 1.8.15
258
258
  signing_key:
259
259
  specification_version: 3
260
260
  summary: An email manager