rails_blog_engine 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. data/.gitignore +12 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +24 -0
  4. data/Guardfile +21 -0
  5. data/Procfile +1 -0
  6. data/TODO.txt +31 -0
  7. data/app/assets/images/rails_blog_engine/.gitkeep +0 -0
  8. data/app/controllers/rails_blog_engine/comments_controller.rb +1 -1
  9. data/app/controllers/rails_blog_engine/posts_controller.rb +1 -1
  10. data/lib/rails_blog_engine.rb +2 -0
  11. data/lib/rails_blog_engine/version.rb +1 -1
  12. data/rails_blog_engine.gemspec +64 -0
  13. data/script/rails +6 -0
  14. data/spec/acceptance/acceptance_helper.rb +4 -0
  15. data/spec/acceptance/rails_blog_engine/posts_admin_spec.rb +33 -0
  16. data/spec/acceptance/rails_blog_engine/posts_spec.rb +74 -0
  17. data/spec/acceptance/rails_blog_engine/spam_filtering_spec.rb +110 -0
  18. data/spec/acceptance/support/helpers.rb +18 -0
  19. data/spec/acceptance/support/paths.rb +5 -0
  20. data/spec/controllers/rails_blog_engine/comments_controller_spec.rb +22 -0
  21. data/spec/controllers/rails_blog_engine/posts_controller_spec.rb +81 -0
  22. data/spec/dummy/Rakefile +7 -0
  23. data/spec/dummy/app/assets/javascripts/application.js +10 -0
  24. data/spec/dummy/app/assets/stylesheets/application.css +8 -0
  25. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  26. data/spec/dummy/app/controllers/home_controller.rb +4 -0
  27. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  28. data/spec/dummy/app/mailers/.gitkeep +0 -0
  29. data/spec/dummy/app/models/.gitkeep +0 -0
  30. data/spec/dummy/app/models/ability.rb +11 -0
  31. data/spec/dummy/app/models/user.rb +9 -0
  32. data/spec/dummy/app/views/home/index.html.haml +2 -0
  33. data/spec/dummy/app/views/layouts/application.html.erb +15 -0
  34. data/spec/dummy/config.ru +4 -0
  35. data/spec/dummy/config/application.rb +54 -0
  36. data/spec/dummy/config/boot.rb +10 -0
  37. data/spec/dummy/config/database.yml +25 -0
  38. data/spec/dummy/config/environment.rb +5 -0
  39. data/spec/dummy/config/environments/development.rb +30 -0
  40. data/spec/dummy/config/environments/production.rb +60 -0
  41. data/spec/dummy/config/environments/test.rb +42 -0
  42. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  43. data/spec/dummy/config/initializers/devise.rb +211 -0
  44. data/spec/dummy/config/initializers/inflections.rb +10 -0
  45. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  46. data/spec/dummy/config/initializers/rails_blog_engine.rb +13 -0
  47. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  48. data/spec/dummy/config/initializers/session_store.rb +8 -0
  49. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  50. data/spec/dummy/config/locales/devise.en.yml +58 -0
  51. data/spec/dummy/config/locales/en.yml +5 -0
  52. data/spec/dummy/config/routes.rb +6 -0
  53. data/spec/dummy/db/migrate/20110913113004_devise_create_users.rb +28 -0
  54. data/spec/dummy/db/schema.rb +67 -0
  55. data/spec/dummy/lib/assets/.gitkeep +0 -0
  56. data/spec/dummy/log/.gitkeep +0 -0
  57. data/spec/dummy/public/404.html +26 -0
  58. data/spec/dummy/public/422.html +26 -0
  59. data/spec/dummy/public/500.html +26 -0
  60. data/spec/dummy/public/favicon.ico +0 -0
  61. data/spec/dummy/script/rails +6 -0
  62. data/spec/helpers/rails_blog_engine/application_helper_spec.rb +56 -0
  63. data/spec/helpers/rails_blog_engine/comments_helper_spec.rb +14 -0
  64. data/spec/helpers/rails_blog_engine/posts_helper_spec.rb +14 -0
  65. data/spec/lib/generators/rails_blog_engine/install_generator_spec.rb +78 -0
  66. data/spec/lib/rails_blog_engine/filters/base_spec.rb +13 -0
  67. data/spec/lib/rails_blog_engine/filters/code_spec.rb +16 -0
  68. data/spec/lib/rails_blog_engine/filters_spec.rb +58 -0
  69. data/spec/models/rails_blog_engine/comment_spec.rb +84 -0
  70. data/spec/models/rails_blog_engine/post_spec.rb +121 -0
  71. data/spec/spec_helper.rb +36 -0
  72. data/spec/support/blueprints.rb +25 -0
  73. data/spec/support/javascript.rb +27 -0
  74. data/spec/support/vcr.rb +8 -0
  75. data/spec/vcr_cassettes/rakismet-ham.yml +30 -0
  76. data/spec/vcr_cassettes/rakismet-spam.yml +30 -0
  77. data/spec/vcr_cassettes/rakismet-train-as-ham.yml +32 -0
  78. data/spec/vcr_cassettes/rakismet-train-as-spam.yml +32 -0
  79. metadata +175 -101
@@ -0,0 +1,36 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV["RAILS_ENV"] ||= 'test'
3
+ require File.expand_path("../dummy/config/environment", __FILE__)
4
+ require 'rspec/rails'
5
+
6
+ # For some reason, this isn't loading correctly when Shoulda launches.
7
+ require 'shoulda/matchers/integrations/rspec'
8
+
9
+ # The root directory of our engine, and not our dummy application.
10
+ ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
11
+
12
+ # Requires supporting ruby files with custom matchers and macros, etc,
13
+ # in spec/support/ and its subdirectories.
14
+ Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
15
+
16
+ RSpec.configure do |config|
17
+ # == Mock Framework
18
+ #
19
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
20
+ #
21
+ # config.mock_with :mocha
22
+ # config.mock_with :flexmock
23
+ # config.mock_with :rr
24
+ config.mock_with :rspec
25
+
26
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
27
+ #config.fixture_path = "#{::Rails.root}/spec/fixtures"
28
+
29
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
30
+ # examples within a transaction, remove the following line or assign false
31
+ # instead of true.
32
+ config.use_transactional_fixtures = false
33
+
34
+ # Merge in URL helpers. This is the key trick to making Steak work!
35
+ config.include RailsBlogEngine::Engine.routes.url_helpers
36
+ end
@@ -0,0 +1,25 @@
1
+ require 'machinist/active_record'
2
+
3
+ RailsBlogEngine::Post.blueprint do
4
+ title { "Post #{sn}" }
5
+ body { "Body text" }
6
+ permalink { "permalink-#{sn}" }
7
+ author { User.make }
8
+ end
9
+
10
+ RailsBlogEngine::Post.blueprint(:published) do
11
+ state { "published" }
12
+ published_at { Time.now }
13
+ end
14
+
15
+ RailsBlogEngine::Comment.blueprint do
16
+ author_byline { "User #{sn}" }
17
+ body { "Comment body" }
18
+ end
19
+
20
+ # Devise User model for our dummy application.
21
+ User.blueprint do
22
+ email { "user#{sn}@example.com" }
23
+ password { "password" }
24
+ password_confirmation { "password" }
25
+ end
@@ -0,0 +1,27 @@
1
+ require "capybara-webkit"
2
+ require "database_cleaner"
3
+
4
+ # Use culerity to test specs which require JavaScript.
5
+ Capybara.javascript_driver = :webkit
6
+
7
+ # Set up database cleaner to erase all tables when running
8
+ # Adapted from https://github.com/lailsonbm/contact_manager_app
9
+ RSpec.configure do |config|
10
+ config.before(:suite) do
11
+ DatabaseCleaner.strategy = :transaction
12
+ DatabaseCleaner.clean_with :truncation
13
+ end
14
+
15
+ config.before(:each) do
16
+ if example.metadata[:js]
17
+ DatabaseCleaner.strategy = :truncation
18
+ else
19
+ DatabaseCleaner.strategy = :transaction
20
+ end
21
+ DatabaseCleaner.start
22
+ end
23
+
24
+ config.after(:each) do
25
+ DatabaseCleaner.clean
26
+ end
27
+ end
@@ -0,0 +1,8 @@
1
+ require 'fakeweb'
2
+ require 'vcr'
3
+
4
+ VCR.configure do |c|
5
+ c.cassette_library_dir = 'spec/vcr_cassettes'
6
+ c.hook_into :fakeweb
7
+ c.ignore_localhost = true
8
+ end
@@ -0,0 +1,30 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://fakekey.rest.akismet.com/1.1/comment-check
6
+ body: comment_author=Jane+Doe&comment_content=An+interesting+and+legitimate+post.&user_ip=127.0.0.1&referrer=http%3A%2F%2Fwww.example.com%2Fblog%2F2011%2F11%2F25%2Fpermalink-0040&comment_type=comment&blog=http%3A%2F%2Fwww.example.com%2F
7
+ headers:
8
+ User-Agent:
9
+ - Rails/3.1.3 | Rakismet/1.1.2
10
+ Content-Type:
11
+ - application/x-www-form-urlencoded
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Server:
18
+ - nginx
19
+ Date:
20
+ - Fri, 25 Nov 2011 20:53:43 GMT
21
+ Content-Type:
22
+ - text/plain; charset=utf-8
23
+ X-Akismet-Server:
24
+ - 192.168.6.136
25
+ Content-Length:
26
+ - '5'
27
+ body: 'false'
28
+ http_version: '1.1'
29
+ recorded_at: Fri, 25 Nov 2011 21:00:22 GMT
30
+ recorded_with: VCR 1.11.3
@@ -0,0 +1,30 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://fakekey.rest.akismet.com/1.1/comment-check
6
+ body: comment_author=viagra-test-123&comment_content=Buy+toner+cartridges+today%21&user_ip=127.0.0.1&referrer=http%3A%2F%2Fwww.example.com%2Fblog%2F2011%2F11%2F25%2Fpermalink-0041&comment_type=comment&blog=http%3A%2F%2Fwww.example.com%2F
7
+ headers:
8
+ User-Agent:
9
+ - Rails/3.1.3 | Rakismet/1.1.2
10
+ Content-Type:
11
+ - application/x-www-form-urlencoded
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Server:
18
+ - nginx
19
+ Date:
20
+ - Fri, 25 Nov 2011 20:53:44 GMT
21
+ Content-Type:
22
+ - text/plain; charset=utf-8
23
+ X-Akismet-Server:
24
+ - 192.168.7.151
25
+ Content-Length:
26
+ - '4'
27
+ body: 'true'
28
+ http_version: '1.1'
29
+ recorded_at: Fri, 25 Nov 2011 21:00:15 GMT
30
+ recorded_with: VCR 1.11.3
@@ -0,0 +1,32 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://fakekey.rest.akismet.com:80/1.1/submit-ham
6
+ body: comment_author=Jane+Doe&comment_content=An+interesting+and+legitimate+post.&user_ip=127.0.0.1&user_agent=Mozilla%2F5.0+%28X11%3B+U%3B+Linux+x86_64%3B+en-US%29+AppleWebKit%2F533.3+%28KHTML%2C+like+Gecko%29+capybara-webkit+Safari%2F533.3&referrer=http%3A%2F%2F127.0.0.1%3A57637%2Fblog%2F2011%2F11%2F26%2Fpermalink-0005&comment_type=comment&blog=http%3A%2F%2Fwww.example.com%2F
7
+ headers:
8
+ user-agent:
9
+ - Rails/3.1.3 | Rakismet/1.1.2
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ accept:
13
+ - ! '*/*'
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Sat, 26 Nov 2011 22:24:21 GMT
23
+ content-type:
24
+ - text/html; charset=utf-8
25
+ connection:
26
+ - close
27
+ content-length:
28
+ - '41'
29
+ body: Thanks for making the web a better place.
30
+ http_version: '1.1'
31
+ recorded_at: Sat, 26 Nov 2011 22:24:21 GMT
32
+ recorded_with: VCR 2.0.0.beta2
@@ -0,0 +1,32 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://fakekey.rest.akismet.com:80/1.1/submit-spam
6
+ body: comment_author=viagra-test-123&comment_content=Buy+toner+cartridges+today%21&user_ip=127.0.0.1&user_agent=Mozilla%2F5.0+%28X11%3B+U%3B+Linux+x86_64%3B+en-US%29+AppleWebKit%2F533.3+%28KHTML%2C+like+Gecko%29+capybara-webkit+Safari%2F533.3&referrer=http%3A%2F%2F127.0.0.1%3A60781%2Fblog%2F2011%2F11%2F26%2Fpermalink-0043&comment_type=comment&blog=http%3A%2F%2Fwww.example.com%2F
7
+ headers:
8
+ user-agent:
9
+ - Rails/3.1.3 | Rakismet/1.1.2
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ accept:
13
+ - ! '*/*'
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Sat, 26 Nov 2011 21:25:08 GMT
23
+ content-type:
24
+ - text/html; charset=utf-8
25
+ connection:
26
+ - close
27
+ content-length:
28
+ - '41'
29
+ body: Thanks for making the web a better place.
30
+ http_version: '1.1'
31
+ recorded_at: Sat, 26 Nov 2011 21:25:08 GMT
32
+ recorded_with: VCR 2.0.0.beta2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_blog_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-27 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &13041660 !ruby/object:Gem::Requirement
16
+ requirement: &24056660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,54 +21,54 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *13041660
24
+ version_requirements: *24056660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &13041160 !ruby/object:Gem::Requirement
27
+ requirement: &24056140 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 1.0.14
32
+ version: '1.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *13041160
35
+ version_requirements: *24056140
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sass-rails
38
- requirement: &13040700 !ruby/object:Gem::Requirement
38
+ requirement: &24055640 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: 3.1.0
43
+ version: '3.1'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *13040700
46
+ version_requirements: *24055640
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: coffee-script
49
- requirement: &13040240 !ruby/object:Gem::Requirement
49
+ requirement: &24055120 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 2.2.0
54
+ version: '2.2'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *13040240
57
+ version_requirements: *24055120
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: haml
60
- requirement: &13039780 !ruby/object:Gem::Requirement
60
+ requirement: &24054660 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
64
64
  - !ruby/object:Gem::Version
65
- version: 3.1.3
65
+ version: '3.1'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *13039780
68
+ version_requirements: *24054660
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: kaminari
71
- requirement: &13039320 !ruby/object:Gem::Requirement
71
+ requirement: &24054180 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,43 +76,43 @@ dependencies:
76
76
  version: 0.12.4
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *13039320
79
+ version_requirements: *24054180
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: cancan
82
- requirement: &13038860 !ruby/object:Gem::Requirement
82
+ requirement: &24043380 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
86
86
  - !ruby/object:Gem::Version
87
- version: 1.6.5
87
+ version: '1.6'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *13038860
90
+ version_requirements: *24043380
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rakismet
93
- requirement: &13038400 !ruby/object:Gem::Requirement
93
+ requirement: &24042880 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
97
97
  - !ruby/object:Gem::Version
98
- version: 1.1.2
98
+ version: '1.1'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *13038400
101
+ version_requirements: *24042880
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: simple_form
104
- requirement: &13037940 !ruby/object:Gem::Requirement
104
+ requirement: &24042360 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
108
108
  - !ruby/object:Gem::Version
109
- version: 1.4.2
109
+ version: '1.4'
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *13037940
112
+ version_requirements: *24042360
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: state_machine
115
- requirement: &13037480 !ruby/object:Gem::Requirement
115
+ requirement: &24041860 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,32 +120,32 @@ dependencies:
120
120
  version: 1.0.0
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *13037480
123
+ version_requirements: *24041860
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: rdiscount
126
- requirement: &13107640 !ruby/object:Gem::Requirement
126
+ requirement: &24041360 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
130
130
  - !ruby/object:Gem::Version
131
- version: 1.6.8
131
+ version: '1.6'
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *13107640
134
+ version_requirements: *24041360
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: sanitize
137
- requirement: &13107180 !ruby/object:Gem::Requirement
137
+ requirement: &24040900 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ~>
141
141
  - !ruby/object:Gem::Version
142
- version: 2.0.3
142
+ version: '2.0'
143
143
  type: :runtime
144
144
  prerelease: false
145
- version_requirements: *13107180
145
+ version_requirements: *24040900
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: sqlite3
148
- requirement: &13106800 !ruby/object:Gem::Requirement
148
+ requirement: &24040500 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: '0'
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *13106800
156
+ version_requirements: *24040500
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: devise
159
- requirement: &13106340 !ruby/object:Gem::Requirement
159
+ requirement: &24040020 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '0'
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *13106340
167
+ version_requirements: *24040020
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: steak
170
- requirement: &13105920 !ruby/object:Gem::Requirement
170
+ requirement: &24039600 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,10 +175,10 @@ dependencies:
175
175
  version: '0'
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *13105920
178
+ version_requirements: *24039600
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: foreman
181
- requirement: &13105500 !ruby/object:Gem::Requirement
181
+ requirement: &24039180 !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
184
184
  - - ! '>='
@@ -186,10 +186,10 @@ dependencies:
186
186
  version: '0'
187
187
  type: :development
188
188
  prerelease: false
189
- version_requirements: *13105500
189
+ version_requirements: *24039180
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: capybara-webkit
192
- requirement: &13105000 !ruby/object:Gem::Requirement
192
+ requirement: &24038660 !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
195
195
  - - ~>
@@ -197,10 +197,10 @@ dependencies:
197
197
  version: 0.6.1
198
198
  type: :development
199
199
  prerelease: false
200
- version_requirements: *13105000
200
+ version_requirements: *24038660
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: database_cleaner
203
- requirement: &13104580 !ruby/object:Gem::Requirement
203
+ requirement: &24038240 !ruby/object:Gem::Requirement
204
204
  none: false
205
205
  requirements:
206
206
  - - ! '>='
@@ -208,10 +208,10 @@ dependencies:
208
208
  version: '0'
209
209
  type: :development
210
210
  prerelease: false
211
- version_requirements: *13104580
211
+ version_requirements: *24038240
212
212
  - !ruby/object:Gem::Dependency
213
213
  name: shoulda-matchers
214
- requirement: &13104120 !ruby/object:Gem::Requirement
214
+ requirement: &24037740 !ruby/object:Gem::Requirement
215
215
  none: false
216
216
  requirements:
217
217
  - - ! '>='
@@ -219,10 +219,10 @@ dependencies:
219
219
  version: '0'
220
220
  type: :development
221
221
  prerelease: false
222
- version_requirements: *13104120
222
+ version_requirements: *24037740
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: generator_spec
225
- requirement: &13103700 !ruby/object:Gem::Requirement
225
+ requirement: &24037240 !ruby/object:Gem::Requirement
226
226
  none: false
227
227
  requirements:
228
228
  - - ! '>='
@@ -230,10 +230,10 @@ dependencies:
230
230
  version: '0'
231
231
  type: :development
232
232
  prerelease: false
233
- version_requirements: *13103700
233
+ version_requirements: *24037240
234
234
  - !ruby/object:Gem::Dependency
235
235
  name: vcr
236
- requirement: &13103200 !ruby/object:Gem::Requirement
236
+ requirement: &24036660 !ruby/object:Gem::Requirement
237
237
  none: false
238
238
  requirements:
239
239
  - - ! '>='
@@ -241,10 +241,10 @@ dependencies:
241
241
  version: 2.0.0.beta2
242
242
  type: :development
243
243
  prerelease: false
244
- version_requirements: *13103200
244
+ version_requirements: *24036660
245
245
  - !ruby/object:Gem::Dependency
246
246
  name: fakeweb
247
- requirement: &13102780 !ruby/object:Gem::Requirement
247
+ requirement: &24036240 !ruby/object:Gem::Requirement
248
248
  none: false
249
249
  requirements:
250
250
  - - ! '>='
@@ -252,10 +252,10 @@ dependencies:
252
252
  version: '0'
253
253
  type: :development
254
254
  prerelease: false
255
- version_requirements: *13102780
255
+ version_requirements: *24036240
256
256
  - !ruby/object:Gem::Dependency
257
257
  name: guard-rspec
258
- requirement: &13102320 !ruby/object:Gem::Requirement
258
+ requirement: &24035640 !ruby/object:Gem::Requirement
259
259
  none: false
260
260
  requirements:
261
261
  - - ! '>='
@@ -263,10 +263,10 @@ dependencies:
263
263
  version: '0'
264
264
  type: :development
265
265
  prerelease: false
266
- version_requirements: *13102320
266
+ version_requirements: *24035640
267
267
  - !ruby/object:Gem::Dependency
268
268
  name: rb-inotify
269
- requirement: &13101900 !ruby/object:Gem::Requirement
269
+ requirement: &24034260 !ruby/object:Gem::Requirement
270
270
  none: false
271
271
  requirements:
272
272
  - - ! '>='
@@ -274,10 +274,10 @@ dependencies:
274
274
  version: '0'
275
275
  type: :development
276
276
  prerelease: false
277
- version_requirements: *13101900
277
+ version_requirements: *24034260
278
278
  - !ruby/object:Gem::Dependency
279
279
  name: libnotify
280
- requirement: &13101480 !ruby/object:Gem::Requirement
280
+ requirement: &24033800 !ruby/object:Gem::Requirement
281
281
  none: false
282
282
  requirements:
283
283
  - - ! '>='
@@ -285,10 +285,10 @@ dependencies:
285
285
  version: '0'
286
286
  type: :development
287
287
  prerelease: false
288
- version_requirements: *13101480
288
+ version_requirements: *24033800
289
289
  - !ruby/object:Gem::Dependency
290
290
  name: launchy
291
- requirement: &13101060 !ruby/object:Gem::Requirement
291
+ requirement: &24033360 !ruby/object:Gem::Requirement
292
292
  none: false
293
293
  requirements:
294
294
  - - ! '>='
@@ -296,68 +296,142 @@ dependencies:
296
296
  version: '0'
297
297
  type: :development
298
298
  prerelease: false
299
- version_requirements: *13101060
300
- description: A simple blog engine which can be dropped into an existing Rails application
299
+ version_requirements: *24033360
300
+ description: Rails 3.1 drop-in blog engine for existing Rails applications
301
301
  email:
302
302
  - eric@kiddsoftware.com
303
303
  executables: []
304
304
  extensions: []
305
305
  extra_rdoc_files: []
306
306
  files:
307
- - app/models/rails_blog_engine/comment.rb
308
- - app/models/rails_blog_engine/post.rb
309
- - app/helpers/rails_blog_engine/posts_helper.rb
310
- - app/helpers/rails_blog_engine/comments_helper.rb
311
- - app/helpers/rails_blog_engine/application_helper.rb
307
+ - .gitignore
308
+ - .rspec
309
+ - BOOTSTRAP-LICENSE.txt
310
+ - Gemfile
311
+ - Guardfile
312
+ - MIT-LICENSE
313
+ - PYGMENTS-LICENSE.txt
314
+ - Procfile
315
+ - RAILS-LICENSE.txt
316
+ - README.md
317
+ - Rakefile
318
+ - TODO.txt
319
+ - app/assets/images/rails_blog_engine/.gitkeep
320
+ - app/assets/javascripts/rails_blog_engine.js
321
+ - app/assets/javascripts/rails_blog_engine/comments.js
322
+ - app/assets/javascripts/rails_blog_engine/posts.js
312
323
  - app/assets/stylesheets/rails_blog_engine.css
313
- - app/assets/stylesheets/rails_blog_engine/posts.css.scss
314
- - app/assets/stylesheets/rails_blog_engine/comments.css.scss
315
- - app/assets/stylesheets/rails_blog_engine/simple_form.css.scss
316
324
  - app/assets/stylesheets/rails_blog_engine/bootstrap_extracts.css.scss
317
325
  - app/assets/stylesheets/rails_blog_engine/code.css.scss
318
- - app/assets/javascripts/rails_blog_engine.js
319
- - app/assets/javascripts/rails_blog_engine/posts.js
320
- - app/assets/javascripts/rails_blog_engine/comments.js
326
+ - app/assets/stylesheets/rails_blog_engine/comments.css.scss
327
+ - app/assets/stylesheets/rails_blog_engine/posts.css.scss
328
+ - app/assets/stylesheets/rails_blog_engine/simple_form.css.scss
329
+ - app/controllers/rails_blog_engine/application_controller.rb
330
+ - app/controllers/rails_blog_engine/comments_controller.rb
331
+ - app/controllers/rails_blog_engine/posts_controller.rb
332
+ - app/helpers/rails_blog_engine/application_helper.rb
333
+ - app/helpers/rails_blog_engine/comments_helper.rb
334
+ - app/helpers/rails_blog_engine/posts_helper.rb
335
+ - app/models/rails_blog_engine/comment.rb
336
+ - app/models/rails_blog_engine/post.rb
337
+ - app/views/rails_blog_engine/comments/_comment.html.haml
338
+ - app/views/rails_blog_engine/comments/_form.html.haml
339
+ - app/views/rails_blog_engine/comments/_tools.html.haml
340
+ - app/views/rails_blog_engine/comments/new.html.haml
341
+ - app/views/rails_blog_engine/posts/_comments_section.html.haml
342
+ - app/views/rails_blog_engine/posts/_form.html.haml
343
+ - app/views/rails_blog_engine/posts/_post.html.haml
321
344
  - app/views/rails_blog_engine/posts/_tools.html.haml
322
- - app/views/rails_blog_engine/posts/show.html.haml
323
- - app/views/rails_blog_engine/posts/index.atom.builder
324
345
  - app/views/rails_blog_engine/posts/edit.html.haml
346
+ - app/views/rails_blog_engine/posts/index.atom.builder
325
347
  - app/views/rails_blog_engine/posts/index.html.haml
326
348
  - app/views/rails_blog_engine/posts/new.html.haml
327
- - app/views/rails_blog_engine/posts/_form.html.haml
328
- - app/views/rails_blog_engine/posts/_post.html.haml
329
- - app/views/rails_blog_engine/posts/_comments_section.html.haml
330
- - app/views/rails_blog_engine/comments/_tools.html.haml
331
- - app/views/rails_blog_engine/comments/_comment.html.haml
332
- - app/views/rails_blog_engine/comments/new.html.haml
333
- - app/views/rails_blog_engine/comments/_form.html.haml
334
- - app/controllers/rails_blog_engine/comments_controller.rb
335
- - app/controllers/rails_blog_engine/application_controller.rb
336
- - app/controllers/rails_blog_engine/posts_controller.rb
337
- - config/routes.rb
349
+ - app/views/rails_blog_engine/posts/show.html.haml
338
350
  - config/locales/rails_blog_engine.en.yml
339
351
  - config/locales/simple_form.en.yml
340
- - db/migrate/20110913190319_add_fields_to_rails_blog_engine_post.rb
352
+ - config/routes.rb
341
353
  - db/migrate/20110912153527_create_rails_blog_engine_posts.rb
354
+ - db/migrate/20110913190319_add_fields_to_rails_blog_engine_post.rb
342
355
  - db/migrate/20111125111958_create_rails_blog_engine_comments.rb
343
- - lib/tasks/rails_blog_engine_tasks.rake
344
- - lib/rails_blog_engine.rb
356
+ - lib/generators/rails_blog_engine/install/USAGE
345
357
  - lib/generators/rails_blog_engine/install/install_generator.rb
346
358
  - lib/generators/rails_blog_engine/install/templates/rails_blog_engine.rb
347
- - lib/generators/rails_blog_engine/install/USAGE
348
- - lib/rails_blog_engine/engine.rb
359
+ - lib/rails_blog_engine.rb
349
360
  - lib/rails_blog_engine/ability.rb
350
- - lib/rails_blog_engine/version.rb
361
+ - lib/rails_blog_engine/engine.rb
362
+ - lib/rails_blog_engine/filters.rb
351
363
  - lib/rails_blog_engine/filters/base.rb
352
364
  - lib/rails_blog_engine/filters/code.rb
353
- - lib/rails_blog_engine/filters.rb
354
- - MIT-LICENSE
355
- - Rakefile
356
- - README.md
357
- - BOOTSTRAP-LICENSE.txt
358
- - PYGMENTS-LICENSE.txt
359
- - RAILS-LICENSE.txt
360
- homepage: http://github.com/emk/rails_blog_engine
365
+ - lib/rails_blog_engine/version.rb
366
+ - lib/tasks/rails_blog_engine_tasks.rake
367
+ - rails_blog_engine.gemspec
368
+ - script/rails
369
+ - spec/acceptance/acceptance_helper.rb
370
+ - spec/acceptance/rails_blog_engine/posts_admin_spec.rb
371
+ - spec/acceptance/rails_blog_engine/posts_spec.rb
372
+ - spec/acceptance/rails_blog_engine/spam_filtering_spec.rb
373
+ - spec/acceptance/support/helpers.rb
374
+ - spec/acceptance/support/paths.rb
375
+ - spec/controllers/rails_blog_engine/comments_controller_spec.rb
376
+ - spec/controllers/rails_blog_engine/posts_controller_spec.rb
377
+ - spec/dummy/Rakefile
378
+ - spec/dummy/app/assets/javascripts/application.js
379
+ - spec/dummy/app/assets/stylesheets/application.css
380
+ - spec/dummy/app/controllers/application_controller.rb
381
+ - spec/dummy/app/controllers/home_controller.rb
382
+ - spec/dummy/app/helpers/application_helper.rb
383
+ - spec/dummy/app/mailers/.gitkeep
384
+ - spec/dummy/app/models/.gitkeep
385
+ - spec/dummy/app/models/ability.rb
386
+ - spec/dummy/app/models/user.rb
387
+ - spec/dummy/app/views/home/index.html.haml
388
+ - spec/dummy/app/views/layouts/application.html.erb
389
+ - spec/dummy/config.ru
390
+ - spec/dummy/config/application.rb
391
+ - spec/dummy/config/boot.rb
392
+ - spec/dummy/config/database.yml
393
+ - spec/dummy/config/environment.rb
394
+ - spec/dummy/config/environments/development.rb
395
+ - spec/dummy/config/environments/production.rb
396
+ - spec/dummy/config/environments/test.rb
397
+ - spec/dummy/config/initializers/backtrace_silencers.rb
398
+ - spec/dummy/config/initializers/devise.rb
399
+ - spec/dummy/config/initializers/inflections.rb
400
+ - spec/dummy/config/initializers/mime_types.rb
401
+ - spec/dummy/config/initializers/rails_blog_engine.rb
402
+ - spec/dummy/config/initializers/secret_token.rb
403
+ - spec/dummy/config/initializers/session_store.rb
404
+ - spec/dummy/config/initializers/wrap_parameters.rb
405
+ - spec/dummy/config/locales/devise.en.yml
406
+ - spec/dummy/config/locales/en.yml
407
+ - spec/dummy/config/routes.rb
408
+ - spec/dummy/db/migrate/20110913113004_devise_create_users.rb
409
+ - spec/dummy/db/schema.rb
410
+ - spec/dummy/lib/assets/.gitkeep
411
+ - spec/dummy/log/.gitkeep
412
+ - spec/dummy/public/404.html
413
+ - spec/dummy/public/422.html
414
+ - spec/dummy/public/500.html
415
+ - spec/dummy/public/favicon.ico
416
+ - spec/dummy/script/rails
417
+ - spec/helpers/rails_blog_engine/application_helper_spec.rb
418
+ - spec/helpers/rails_blog_engine/comments_helper_spec.rb
419
+ - spec/helpers/rails_blog_engine/posts_helper_spec.rb
420
+ - spec/lib/generators/rails_blog_engine/install_generator_spec.rb
421
+ - spec/lib/rails_blog_engine/filters/base_spec.rb
422
+ - spec/lib/rails_blog_engine/filters/code_spec.rb
423
+ - spec/lib/rails_blog_engine/filters_spec.rb
424
+ - spec/models/rails_blog_engine/comment_spec.rb
425
+ - spec/models/rails_blog_engine/post_spec.rb
426
+ - spec/spec_helper.rb
427
+ - spec/support/blueprints.rb
428
+ - spec/support/javascript.rb
429
+ - spec/support/vcr.rb
430
+ - spec/vcr_cassettes/rakismet-ham.yml
431
+ - spec/vcr_cassettes/rakismet-spam.yml
432
+ - spec/vcr_cassettes/rakismet-train-as-ham.yml
433
+ - spec/vcr_cassettes/rakismet-train-as-spam.yml
434
+ homepage: http://github.com/kiddsoftware/rails_blog_engine
361
435
  licenses: []
362
436
  post_install_message:
363
437
  rdoc_options: []