rakismet 1.0.0 → 1.0.1

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,9 @@
1
+ = 1.0.1
2
+ * Fix hash access for Ruby 1.9 [Alex Crichton]
3
+ = 1.0.0
4
+ * Update for Rails 3
5
+ * Remove filters and replace with middleware
6
+ * Remove initializers and replace with Railtie
1
7
  = 0.4.0
2
8
  * Rakismet is no longer injected into ActiveRecord or ActionController
3
9
  * API changes to support newly decoupled modules
@@ -11,4 +17,4 @@
11
17
  * Abstract out Rakismet version string
12
18
  * Set default Akismet Host
13
19
  * Abstract out the Akismet host [Mike Burns]
14
- * Started keeping a changelog :P
20
+ * Started keeping a changelog :P
data/Rakefile CHANGED
@@ -17,10 +17,10 @@ rescue LoadError
17
17
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
18
18
  end
19
19
 
20
- #require 'spec/rake/spectask'
21
- #Spec::Rake::SpecTask.new(:spec) do |spec|
22
- # spec.libs << 'lib' << 'spec'
23
- # spec.spec_files = FileList['spec/**/*_spec.rb']
24
- #end
20
+ require 'spec/rake/spectask'
21
+ Spec::Rake::SpecTask.new(:spec) do |spec|
22
+ spec.libs << 'lib' << 'spec'
23
+ spec.spec_files = FileList['spec/**/*_spec.rb']
24
+ end
25
25
 
26
- #task :default => :spec
26
+ task :default => :spec
data/VERSION.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  :minor: 0
3
3
  :build:
4
- :patch: 0
4
+ :patch: 1
5
5
  :major: 1
6
+
@@ -9,9 +9,9 @@ module Rakismet
9
9
  config.rakismet.use_middleware = true
10
10
 
11
11
  initializer 'rakismet.setup', :after => :load_config_initializers do |app|
12
- Rakismet.key = app.config.rakismet.key
13
- Rakismet.url = app.config.rakismet.url
14
- Rakismet.host = app.config.rakismet.host
12
+ Rakismet.key = app.config.rakismet[:key]
13
+ Rakismet.url = app.config.rakismet[:url]
14
+ Rakismet.host = app.config.rakismet[:host]
15
15
  app.middleware.use Rakismet::Middleware if app.config.rakismet.use_middleware
16
16
  end
17
17
 
data/rakismet.gemspec ADDED
@@ -0,0 +1,59 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{rakismet}
8
+ s.version = "1.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Josh French"]
12
+ s.date = %q{2010-10-25}
13
+ s.description = %q{Rakismet is the easiest way to integrate Akismet or TypePad's AntiSpam into your Rails app.}
14
+ s.email = %q{josh@digitalpulp.com}
15
+ s.extra_rdoc_files = [
16
+ "README.md"
17
+ ]
18
+ s.files = [
19
+ ".gitignore",
20
+ "CHANGELOG",
21
+ "MIT-LICENSE",
22
+ "README.md",
23
+ "Rakefile",
24
+ "VERSION.yml",
25
+ "lib/rakismet.rb",
26
+ "lib/rakismet/middleware.rb",
27
+ "lib/rakismet/model.rb",
28
+ "lib/rakismet/railtie.rb",
29
+ "rakismet.gemspec",
30
+ "spec/.rspec",
31
+ "spec/rakismet_middleware_spec.rb",
32
+ "spec/rakismet_model_spec.rb",
33
+ "spec/rakismet_spec.rb",
34
+ "spec/spec_helper.rb"
35
+ ]
36
+ s.homepage = %q{http://github.com/joshfrench/rakismet}
37
+ s.rdoc_options = ["--charset=UTF-8"]
38
+ s.require_paths = ["lib"]
39
+ s.rubyforge_project = %q{rakismet}
40
+ s.rubygems_version = %q{1.3.7}
41
+ s.summary = %q{Akismet and TypePad AntiSpam integration for Rails.}
42
+ s.test_files = [
43
+ "spec/rakismet_middleware_spec.rb",
44
+ "spec/rakismet_model_spec.rb",
45
+ "spec/rakismet_spec.rb",
46
+ "spec/spec_helper.rb"
47
+ ]
48
+
49
+ if s.respond_to? :specification_version then
50
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
51
+ s.specification_version = 3
52
+
53
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
+ else
55
+ end
56
+ else
57
+ end
58
+ end
59
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rakismet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh French
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-23 00:00:00 -04:00
18
+ date: 2010-10-25 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -38,6 +38,7 @@ files:
38
38
  - lib/rakismet/middleware.rb
39
39
  - lib/rakismet/model.rb
40
40
  - lib/rakismet/railtie.rb
41
+ - rakismet.gemspec
41
42
  - spec/.rspec
42
43
  - spec/rakismet_middleware_spec.rb
43
44
  - spec/rakismet_model_spec.rb