has_moderated 1.0.rc7 → 1.0.rc8
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +6 -4
- data/lib/generators/has_moderated/install/install_generator.rb +13 -3
- data/lib/generators/has_moderated/install/templates/{migration.rb → migrations/1_create_moderations.rb} +0 -0
- data/lib/has_moderated/common.rb +0 -4
- data/lib/has_moderated/railtie.rb +14 -0
- data/lib/has_moderated/version.rb +1 -1
- data/lib/has_moderated.rb +1 -15
- data/test/dummy/log/development.log +5 -0
- data/test/dummy/log/test.log +72254 -0
- data/test/dummy/spec/spec_helper.rb +1 -66
- metadata +20 -5
- data/test/dummy/Guardfile +0 -29
@@ -1,66 +1 @@
|
|
1
|
-
require
|
2
|
-
require 'spork'
|
3
|
-
require 'pry'
|
4
|
-
#uncomment the following line to use spork with the debugger
|
5
|
-
#require 'spork/ext/ruby-debug'
|
6
|
-
|
7
|
-
Spork.prefork do
|
8
|
-
# Loading more in this block will cause your tests to run faster. However,
|
9
|
-
# if you change any configuration or code from libraries loaded here, you'll
|
10
|
-
# need to restart spork for it take effect.
|
11
|
-
|
12
|
-
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
13
|
-
ENV["RAILS_ENV"] ||= 'test'
|
14
|
-
require File.expand_path("../../config/environment", __FILE__)
|
15
|
-
require 'rspec/rails'
|
16
|
-
|
17
|
-
# Requires supporting ruby files with custom matchers and macros, etc,
|
18
|
-
# in spec/support/ and its subdirectories.
|
19
|
-
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
20
|
-
|
21
|
-
RSpec.configure do |config|
|
22
|
-
config.mock_with :rspec
|
23
|
-
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
24
|
-
config.use_transactional_fixtures = true
|
25
|
-
|
26
|
-
# Exclude broken tests
|
27
|
-
config.filter_run_excluding :broken => true
|
28
|
-
config.filter_run :focus => true
|
29
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
30
|
-
config.run_all_when_everything_filtered = true
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
Spork.each_run do
|
35
|
-
# This code will be run each time you run your specs.
|
36
|
-
|
37
|
-
end
|
38
|
-
|
39
|
-
# --- Instructions ---
|
40
|
-
# Sort the contents of this file into a Spork.prefork and a Spork.each_run
|
41
|
-
# block.
|
42
|
-
#
|
43
|
-
# The Spork.prefork block is run only once when the spork server is started.
|
44
|
-
# You typically want to place most of your (slow) initializer code in here, in
|
45
|
-
# particular, require'ing any 3rd-party gems that you don't normally modify
|
46
|
-
# during development.
|
47
|
-
#
|
48
|
-
# The Spork.each_run block is run each time you run your specs. In case you
|
49
|
-
# need to load files that tend to change during development, require them here.
|
50
|
-
# With Rails, your application modules are loaded automatically, so sometimes
|
51
|
-
# this block can remain empty.
|
52
|
-
#
|
53
|
-
# Note: You can modify files loaded *from* the Spork.each_run block without
|
54
|
-
# restarting the spork server. However, this file itself will not be reloaded,
|
55
|
-
# so if you change any of the code inside the each_run block, you still need to
|
56
|
-
# restart the server. In general, if you have non-trivial code in this file,
|
57
|
-
# it's advisable to move it into a separate file so you can easily edit it
|
58
|
-
# without restarting spork. (For example, with RSpec, you could move
|
59
|
-
# non-trivial code into a file spec/support/my_helper.rb, making sure that the
|
60
|
-
# spec/support/* files are require'd from inside the each_run block.)
|
61
|
-
#
|
62
|
-
# Any code that is left outside the two blocks will be run during preforking
|
63
|
-
# *and* during each_run -- that's probably not what you want.
|
64
|
-
#
|
65
|
-
# These instructions should self-destruct in 10 seconds. If they don't, feel
|
66
|
-
# free to delete them.
|
1
|
+
require File.expand_path("../../../../spec/spec_helper", __FILE__)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_moderated
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.rc8
|
5
5
|
prerelease: 4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -107,6 +107,22 @@ dependencies:
|
|
107
107
|
- - ! '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: growl
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
110
126
|
- !ruby/object:Gem::Dependency
|
111
127
|
name: spork
|
112
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,7 +184,7 @@ extensions: []
|
|
168
184
|
extra_rdoc_files: []
|
169
185
|
files:
|
170
186
|
- lib/generators/has_moderated/install/install_generator.rb
|
171
|
-
- lib/generators/has_moderated/install/templates/
|
187
|
+
- lib/generators/has_moderated/install/templates/migrations/1_create_moderations.rb
|
172
188
|
- lib/generators/has_moderated/install/templates/moderation.rb
|
173
189
|
- lib/generators/USAGE
|
174
190
|
- lib/has_moderated/active_record/active_record_helpers.rb
|
@@ -182,6 +198,7 @@ files:
|
|
182
198
|
- lib/has_moderated/moderated_destroy.rb
|
183
199
|
- lib/has_moderated/moderation_model.rb
|
184
200
|
- lib/has_moderated/moderation_preview.rb
|
201
|
+
- lib/has_moderated/railtie.rb
|
185
202
|
- lib/has_moderated/user_hooks.rb
|
186
203
|
- lib/has_moderated/version.rb
|
187
204
|
- lib/has_moderated.rb
|
@@ -217,7 +234,6 @@ files:
|
|
217
234
|
- test/dummy/db/migrate/20120520215224_create_photos.rb
|
218
235
|
- test/dummy/db/schema.rb
|
219
236
|
- test/dummy/db/test.sqlite3
|
220
|
-
- test/dummy/Guardfile
|
221
237
|
- test/dummy/log/development.log
|
222
238
|
- test/dummy/log/test.log
|
223
239
|
- test/dummy/public/404.html
|
@@ -246,7 +262,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
246
262
|
version: '0'
|
247
263
|
segments:
|
248
264
|
- 0
|
249
|
-
hash:
|
265
|
+
hash: 971673414067796210
|
250
266
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
267
|
none: false
|
252
268
|
requirements:
|
@@ -288,7 +304,6 @@ test_files:
|
|
288
304
|
- test/dummy/db/migrate/20120520215224_create_photos.rb
|
289
305
|
- test/dummy/db/schema.rb
|
290
306
|
- test/dummy/db/test.sqlite3
|
291
|
-
- test/dummy/Guardfile
|
292
307
|
- test/dummy/log/development.log
|
293
308
|
- test/dummy/log/test.log
|
294
309
|
- test/dummy/public/404.html
|
data/test/dummy/Guardfile
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
|
2
|
-
watch('config/application.rb')
|
3
|
-
watch('config/environment.rb')
|
4
|
-
watch(%r{^config/environments/.+\.rb$})
|
5
|
-
watch(%r{^config/initializers/.+\.rb$})
|
6
|
-
watch('Gemfile')
|
7
|
-
watch('Gemfile.lock')
|
8
|
-
watch('spec/spec_helper.rb') { :rspec }
|
9
|
-
watch('test/test_helper.rb') { :test_unit }
|
10
|
-
watch(%r{features/support/}) { :cucumber }
|
11
|
-
watch(%r{^spec/support/.+\.rb$}) { :rspec }
|
12
|
-
end
|
13
|
-
|
14
|
-
guard 'rspec', :version => 2, :cli => '--drb', :all_after_pass => false do
|
15
|
-
watch(%r{^spec/.+_spec\.rb$})
|
16
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
17
|
-
watch('spec/spec_helper.rb') { "spec" }
|
18
|
-
|
19
|
-
# Rails example
|
20
|
-
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
21
|
-
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
22
|
-
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
23
|
-
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
24
|
-
watch('config/routes.rb') { "spec/routing" }
|
25
|
-
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
26
|
-
# Capybara request specs
|
27
|
-
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
|
28
|
-
end
|
29
|
-
|