muck-contents 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/README.rdoc +1 -1
- data/Rakefile +8 -4
- data/VERSION +1 -1
- data/app/controllers/muck/tiny_mce_controller.rb +1 -1
- data/lib/muck-contents.rb +18 -0
- data/lib/{muck_contents → muck-contents}/config.rb +0 -0
- data/lib/{muck_contents → muck-contents}/controllers/content_handler.rb +3 -3
- data/lib/{muck_contents → muck-contents}/engine.rb +3 -3
- data/lib/{muck_contents → muck-contents}/models/content.rb +0 -0
- data/lib/{muck_contents → muck-contents}/models/content_permission.rb +0 -0
- data/lib/{muck_contents → muck-contents}/models/content_translation.rb +0 -0
- data/lib/{muck_contents → muck-contents}/rack/rack.rb +1 -1
- data/lib/{muck_contents → muck-contents}/routes.rb +0 -0
- data/muck-contents.gemspec +14 -13
- data/public/javascripts/tiny_mce/templates/country.htm +1 -1
- data/test/rails_test/Gemfile +7 -12
- data/test/rails_test/Gemfile.lock +4 -14
- data/test/rails_test/app/controllers/application_controller.rb +0 -8
- data/test/rails_test/config/application.rb +1 -1
- data/test/rails_test/config/initializers/session_store.rb +1 -1
- data/test/rails_test/public/javascripts/tiny_mce/templates/country.htm +1 -1
- data/test/rails_test/spec/controllers/contents_controller_spec.rb +1 -1
- data/test/rails_test/spec/controllers/contents_missing_controller_spec.rb +2 -2
- data/test/rails_test/spec/models/content_spec.rb +0 -1
- data/test/rails_test/spec/models/content_translation_spec.rb +0 -1
- data/test/rails_test/spec/spec_helper.rb +1 -25
- data/test/rails_test/test/fixtures/rails.png +0 -0
- metadata +15 -14
- data/lib/muck_contents.rb +0 -17
data/MIT-LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -5,7 +5,7 @@ it easy to add this content to your website.
|
|
5
5
|
|
6
6
|
=== Gems
|
7
7
|
Add the following to your Gemfile:
|
8
|
-
gem 'muck-contents'
|
8
|
+
gem 'muck-contents'
|
9
9
|
|
10
10
|
==== Note about TinyMCE
|
11
11
|
Watch out for updates to the TinyMCE gem. The author has chosen to overwrite all files in the tiny mce asset directories when the server
|
data/Rakefile
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
require 'rake'
|
2
|
-
require 'rake/testtask'
|
3
2
|
require 'rake/rdoctask'
|
3
|
+
require 'rspec/core/rake_task'
|
4
4
|
|
5
|
-
desc 'Default: run
|
5
|
+
desc 'Default: run specs.'
|
6
6
|
task :default => :spec
|
7
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
8
|
+
t.rspec_opts = ["--color", "-c", "-f progress", "-r test/rails_test/spec/spec_helper.rb"]
|
9
|
+
t.pattern = 'test/rails_test/spec/**/*_spec.rb'
|
10
|
+
end
|
7
11
|
|
8
12
|
|
9
13
|
begin
|
@@ -33,7 +37,7 @@ Rake::RDocTask.new do |rdoc|
|
|
33
37
|
end
|
34
38
|
|
35
39
|
rdoc.rdoc_dir = 'rdoc'
|
36
|
-
rdoc.title = "
|
40
|
+
rdoc.title = "muck-contents #{version}"
|
37
41
|
rdoc.rdoc_files.include('README*')
|
38
42
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
39
43
|
end
|
@@ -50,7 +54,7 @@ begin
|
|
50
54
|
gemspec.name = "muck-contents"
|
51
55
|
gemspec.summary = "Add content to your muck based project"
|
52
56
|
gemspec.email = "justin@tatemae.com"
|
53
|
-
gemspec.homepage = "http://github.com/tatemae/
|
57
|
+
gemspec.homepage = "http://github.com/tatemae/muck-contents"
|
54
58
|
gemspec.authors = ["Justin Ball", "Joel Duffin"]
|
55
59
|
gemspec.rubyforge_project = 'muck-contents'
|
56
60
|
gemspec.add_dependency "muck-engine"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1
|
@@ -30,7 +30,7 @@ class Muck::TinyMceController < ApplicationController
|
|
30
30
|
|
31
31
|
def tiny_mce_flickr
|
32
32
|
@body_tag = 'flickr'
|
33
|
-
Fleakr.api_key =
|
33
|
+
Fleakr.api_key = Secrets.flickr_api_key
|
34
34
|
@photos = Fleakr.search(params[:search]) unless params[:search].blank?
|
35
35
|
respond_to do |format|
|
36
36
|
format.html { render :template => 'tiny_mce/flickr'}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'friendly_id'
|
2
|
+
require 'acts-as-taggable-on'
|
3
|
+
require 'tiny_mce'
|
4
|
+
require 'sanitize'
|
5
|
+
require 'babelphish'
|
6
|
+
require 'uploader'
|
7
|
+
|
8
|
+
require 'muck-contents/config.rb'
|
9
|
+
require 'muck-contents/rack/rack.rb'
|
10
|
+
require 'muck-contents/models/content.rb'
|
11
|
+
require 'muck-contents/models/content_permission.rb'
|
12
|
+
require 'muck-contents/models/content_translation.rb'
|
13
|
+
require 'muck-contents/controllers/content_handler.rb'
|
14
|
+
require 'muck-contents/engine.rb'
|
15
|
+
|
16
|
+
module MuckContents
|
17
|
+
GLOBAL_SCOPE = '/'
|
18
|
+
end
|
File without changes
|
@@ -8,7 +8,7 @@ module MuckContents
|
|
8
8
|
def handle_content_request
|
9
9
|
get_content
|
10
10
|
if @content.blank?
|
11
|
-
redirect_to new_content_path(:path => env["
|
11
|
+
redirect_to new_content_path(:path => env["muck-contents.request_uri"])
|
12
12
|
else
|
13
13
|
return if ensure_current_url
|
14
14
|
render_show_content
|
@@ -49,8 +49,8 @@ module MuckContents
|
|
49
49
|
# Tries to find content using parameters from the url
|
50
50
|
def get_content
|
51
51
|
return if @content # in case @content is setup by an overriding method
|
52
|
-
id = params[:id] || Content.id_from_uri(env["
|
53
|
-
scope = params[:scope] || Content.scope_from_uri(env["
|
52
|
+
id = params[:id] || Content.id_from_uri(env["muck-contents.request_uri"])
|
53
|
+
scope = params[:scope] || Content.scope_from_uri(env["muck-contents.request_uri"])
|
54
54
|
@content = Content.find(id, :scope => scope) rescue nil
|
55
55
|
if @content.blank?
|
56
56
|
@contentable = get_parent
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'muck-contents'
|
2
2
|
require 'rails'
|
3
3
|
|
4
4
|
module MuckContents
|
@@ -10,14 +10,14 @@ module MuckContents
|
|
10
10
|
|
11
11
|
config.app_middleware.insert_before("ActionDispatch::ShowExceptions", "MuckContents::Routing::Rack")
|
12
12
|
|
13
|
-
initializer '
|
13
|
+
initializer 'muck-contents.helpers' do |app|
|
14
14
|
ActiveSupport.on_load(:action_view) do
|
15
15
|
include MuckContentsHelper
|
16
16
|
include TinymceHelper
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
initializer '
|
20
|
+
initializer 'muck-contents.i18n' do |app|
|
21
21
|
ActiveSupport.on_load(:i18n) do
|
22
22
|
I18n.load_path += Dir[ File.join(File.dirname(__FILE__), '..', '..', 'config', 'locales', '*.{rb,yml}') ]
|
23
23
|
end
|
File without changes
|
File without changes
|
File without changes
|
@@ -15,7 +15,7 @@ module MuckContents
|
|
15
15
|
# request.format.html? can actually give a false result on ie so try the file extension
|
16
16
|
# Requests to the content system won't have a file extension so request_type should be empty
|
17
17
|
if request_type.empty?
|
18
|
-
env["
|
18
|
+
env["muck-contents.request_uri"] = env["REQUEST_URI"].gsub("http://#{env["HTTP_HOST"]}", '')
|
19
19
|
env["PATH_INFO"] = env["REQUEST_URI"] = "/contents_missing"
|
20
20
|
end
|
21
21
|
end
|
File without changes
|
data/muck-contents.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-contents}
|
8
|
-
s.version = "3.0.
|
8
|
+
s.version = "3.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball", "Joel Duffin"]
|
12
|
-
s.date = %q{2010-10-
|
12
|
+
s.date = %q{2010-10-18}
|
13
13
|
s.email = %q{justin@tatemae.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.rdoc"
|
@@ -92,15 +92,15 @@ Gem::Specification.new do |s|
|
|
92
92
|
"db/migrate/20090703055724_add_contents.rb",
|
93
93
|
"db/migrate/20090806230610_add_layout_to_contents.rb",
|
94
94
|
"db/migrate/20090808175401_add_contents_comment_counter_cache.rb",
|
95
|
-
"lib/
|
96
|
-
"lib/
|
97
|
-
"lib/
|
98
|
-
"lib/
|
99
|
-
"lib/
|
100
|
-
"lib/
|
101
|
-
"lib/
|
102
|
-
"lib/
|
103
|
-
"lib/
|
95
|
+
"lib/muck-contents.rb",
|
96
|
+
"lib/muck-contents/config.rb",
|
97
|
+
"lib/muck-contents/controllers/content_handler.rb",
|
98
|
+
"lib/muck-contents/engine.rb",
|
99
|
+
"lib/muck-contents/models/content.rb",
|
100
|
+
"lib/muck-contents/models/content_permission.rb",
|
101
|
+
"lib/muck-contents/models/content_translation.rb",
|
102
|
+
"lib/muck-contents/rack/rack.rb",
|
103
|
+
"lib/muck-contents/routes.rb",
|
104
104
|
"lib/tasks/muck_contents.rake",
|
105
105
|
"muck-contents.gemspec",
|
106
106
|
"public/images/tinymce/doc.jpg",
|
@@ -3597,9 +3597,10 @@ Gem::Specification.new do |s|
|
|
3597
3597
|
"test/rails_test/spec/models/content_permission_spec.rb",
|
3598
3598
|
"test/rails_test/spec/models/content_spec.rb",
|
3599
3599
|
"test/rails_test/spec/models/content_translation_spec.rb",
|
3600
|
-
"test/rails_test/spec/spec_helper.rb"
|
3600
|
+
"test/rails_test/spec/spec_helper.rb",
|
3601
|
+
"test/rails_test/test/fixtures/rails.png"
|
3601
3602
|
]
|
3602
|
-
s.homepage = %q{http://github.com/tatemae/
|
3603
|
+
s.homepage = %q{http://github.com/tatemae/muck-contents}
|
3603
3604
|
s.rdoc_options = ["--charset=UTF-8"]
|
3604
3605
|
s.require_paths = ["lib"]
|
3605
3606
|
s.rubyforge_project = %q{muck-contents}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<div class="country">
|
14
14
|
|
15
15
|
<h1>{Country Name}</h1>
|
16
|
-
<img class="alignnone" src="<%=
|
16
|
+
<img class="alignnone" src="<%=MuckEngine.configuration.application_url%>/wp-content/uploads/2008/08/boy-on-tire1.jpg" border="0" title="boy-on-tire1" width="210" height="300" />
|
17
17
|
|
18
18
|
<h2>Background</h2>
|
19
19
|
<p>{Provide background about the country.}</p>
|
data/test/rails_test/Gemfile
CHANGED
@@ -6,21 +6,16 @@ gem 'mysql'
|
|
6
6
|
# gem 'authlogic'
|
7
7
|
# TODO this is temporary until the official authlogic gem is updated for rails 3
|
8
8
|
gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3'
|
9
|
-
gem 'will_paginate', "~> 3.0.pre2"
|
10
9
|
|
11
|
-
# TODO Remove this once the validation_reflection gem is released for Rails 3 and the version has been updated in muck-engine
|
12
|
-
gem "validation_reflection", :git => "http://github.com/redinger/validation_reflection.git", :branch => "rails-3"
|
13
10
|
|
14
11
|
gem "bcrypt-ruby", :require => "bcrypt"
|
15
|
-
|
16
12
|
gem 'uploader'
|
17
|
-
gem 'overlord'
|
18
13
|
|
19
|
-
gem 'muck-engine', :
|
20
|
-
gem 'muck-users', :
|
21
|
-
gem 'muck-activities', :
|
22
|
-
gem 'muck-comments', :
|
23
|
-
gem 'muck-contents', :
|
14
|
+
gem 'muck-engine', :path => "~/projects/muck-engine"
|
15
|
+
gem 'muck-users', :path => "~/projects/muck-users"
|
16
|
+
gem 'muck-activities', :path => "~/projects/muck-activities"
|
17
|
+
gem 'muck-comments', :path => "~/projects/muck-comments"
|
18
|
+
gem 'muck-contents', :path => '../../'
|
24
19
|
gem 'muck-solr', :require => 'acts_as_solr'
|
25
20
|
|
26
21
|
if RUBY_VERSION < '1.9'
|
@@ -28,7 +23,7 @@ if RUBY_VERSION < '1.9'
|
|
28
23
|
end
|
29
24
|
|
30
25
|
group :test, :development do
|
31
|
-
gem "rspec-rails", ">=2.0.0
|
26
|
+
gem "rspec-rails", ">=2.0.0"
|
32
27
|
gem "cucumber-rails"
|
33
28
|
end
|
34
29
|
|
@@ -40,7 +35,7 @@ group :test do
|
|
40
35
|
gem "factory_girl"
|
41
36
|
gem "cucumber"
|
42
37
|
gem "rcov"
|
43
|
-
gem "rspec", ">=2.0.0
|
38
|
+
gem "rspec", ">=2.0.0"
|
44
39
|
gem "database_cleaner"
|
45
40
|
gem "spork"
|
46
41
|
gem "launchy"
|
@@ -6,13 +6,6 @@ GIT
|
|
6
6
|
authlogic (2.1.3)
|
7
7
|
activesupport
|
8
8
|
|
9
|
-
GIT
|
10
|
-
remote: http://github.com/redinger/validation_reflection.git
|
11
|
-
revision: f0d81d3732304e2baa66e6caad1bb2ba09e9f293
|
12
|
-
branch: rails-3
|
13
|
-
specs:
|
14
|
-
validation_reflection (1.0.0.rc.1)
|
15
|
-
|
16
9
|
PATH
|
17
10
|
remote: /Users/jbasdf/projects/muck-activities
|
18
11
|
specs:
|
@@ -50,8 +43,8 @@ PATH
|
|
50
43
|
specs:
|
51
44
|
muck-engine (3.0.1)
|
52
45
|
overlord
|
53
|
-
validation_reflection
|
54
|
-
will_paginate
|
46
|
+
validation_reflection
|
47
|
+
will_paginate (~> 3.0.beta)
|
55
48
|
|
56
49
|
PATH
|
57
50
|
remote: /Users/jbasdf/projects/muck-users
|
@@ -108,7 +101,6 @@ GEM
|
|
108
101
|
mime-types
|
109
102
|
xml-simple
|
110
103
|
babelphish (0.2.8)
|
111
|
-
json
|
112
104
|
ya2yaml
|
113
105
|
babosa (0.2.0)
|
114
106
|
bcrypt-ruby (2.1.2)
|
@@ -224,11 +216,12 @@ GEM
|
|
224
216
|
treetop (1.4.8)
|
225
217
|
polyglot (>= 0.3.1)
|
226
218
|
tzinfo (0.3.23)
|
227
|
-
uploader (3.0.
|
219
|
+
uploader (3.0.2)
|
228
220
|
aws-s3
|
229
221
|
mime-types
|
230
222
|
paperclip
|
231
223
|
rack
|
224
|
+
validation_reflection (1.0.0)
|
232
225
|
will_paginate (3.0.pre2)
|
233
226
|
xml-simple (1.0.12)
|
234
227
|
ya2yaml (0.30)
|
@@ -253,7 +246,6 @@ DEPENDENCIES
|
|
253
246
|
muck-solr
|
254
247
|
muck-users!
|
255
248
|
mysql
|
256
|
-
overlord
|
257
249
|
rails (= 3.0.0)
|
258
250
|
rcov
|
259
251
|
rspec (>= 2.0.0.beta.22)
|
@@ -262,5 +254,3 @@ DEPENDENCIES
|
|
262
254
|
shoulda!
|
263
255
|
spork
|
264
256
|
uploader
|
265
|
-
validation_reflection!
|
266
|
-
will_paginate (~> 3.0.pre2)
|
@@ -12,12 +12,4 @@ class ApplicationController < ActionController::Base
|
|
12
12
|
admin?
|
13
13
|
end
|
14
14
|
|
15
|
-
# only require ssl if we are in production
|
16
|
-
def ssl_required?
|
17
|
-
return ENV['SSL'] == 'on' ? true : false if defined? ENV['SSL']
|
18
|
-
return false if local_request?
|
19
|
-
return false if RAILS_ENV == 'test'
|
20
|
-
((self.class.read_inheritable_attribute(:ssl_required_actions) || []).include?(action_name.to_sym)) && (RAILS_ENV == 'production' || RAILS_ENV == 'staging')
|
21
|
-
end
|
22
|
-
|
23
15
|
end
|
@@ -6,7 +6,7 @@ require 'rails/all'
|
|
6
6
|
# you've limited to :test, :development, or :production.
|
7
7
|
Bundler.require(:default, Rails.env) if defined?(Bundler)
|
8
8
|
|
9
|
-
::Secrets = OpenStruct.new(YAML.load_file(File.expand_path('../secrets.yml', __FILE__))[Rails.env
|
9
|
+
::Secrets = OpenStruct.new(YAML.load_file(File.expand_path('../secrets.yml', __FILE__))[Rails.env])
|
10
10
|
|
11
11
|
module RailsTest
|
12
12
|
class Application < Rails::Application
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
|
-
RailsTest::Application.config.session_store :cookie_store, :key => '
|
3
|
+
RailsTest::Application.config.session_store :cookie_store, :key => '_muck_contents_session'
|
4
4
|
|
5
5
|
# Use the database for sessions instead of the cookie-based default,
|
6
6
|
# which shouldn't be used to store highly confidential information
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<div class="country">
|
14
14
|
|
15
15
|
<h1>{Country Name}</h1>
|
16
|
-
<img class="alignnone" src="<%=
|
16
|
+
<img class="alignnone" src="<%=MuckEngine.configuration.application_url%>/wp-content/uploads/2008/08/boy-on-tire1.jpg" border="0" title="boy-on-tire1" width="210" height="300" />
|
17
17
|
|
18
18
|
<h2>Background</h2>
|
19
19
|
<p>{Provide background about the country.}</p>
|
@@ -42,7 +42,7 @@ describe Muck::ContentsController do
|
|
42
42
|
describe "GET show using parent" do
|
43
43
|
before do
|
44
44
|
@env = {}
|
45
|
-
@env["
|
45
|
+
@env["muck-contents.request_uri"] = @content.uri
|
46
46
|
controller.stub!(:env).and_return(@env)
|
47
47
|
get :show
|
48
48
|
end
|
@@ -13,7 +13,7 @@ describe Muck::ContentsMissingController do
|
|
13
13
|
describe "page exists" do
|
14
14
|
before do
|
15
15
|
@env = {}
|
16
|
-
@env["
|
16
|
+
@env["muck-contents.request_uri"] = @content.uri
|
17
17
|
controller.stub!(:env).and_return(@env)
|
18
18
|
get :index
|
19
19
|
end
|
@@ -23,7 +23,7 @@ describe Muck::ContentsMissingController do
|
|
23
23
|
describe "page doesn't exist" do
|
24
24
|
before do
|
25
25
|
@env = {}
|
26
|
-
@env["
|
26
|
+
@env["muck-contents.request_uri"] = '/test_page'
|
27
27
|
controller.stub!(:env).and_return(@env)
|
28
28
|
get :index
|
29
29
|
end
|
@@ -77,7 +77,6 @@ describe Content do
|
|
77
77
|
@content_with_custom_scope = Factory(:content, :custom_scope => @custom_scope)
|
78
78
|
end
|
79
79
|
describe "no_contentable" do
|
80
|
-
# named_scope :no_contentable, :conditions => 'contentable_id IS NULL'
|
81
80
|
before(:each) do
|
82
81
|
@user = Factory(:user)
|
83
82
|
@content_not = Factory(:content, :contentable => nil)
|
@@ -51,7 +51,6 @@ describe ContentTranslation do
|
|
51
51
|
end
|
52
52
|
|
53
53
|
describe "find by locale" do
|
54
|
-
#named_scope :by_locale, lambda { |locale| { :conditions => ['content_translations.locale = ?', locale] } }
|
55
54
|
before do
|
56
55
|
ContentTranslation.destroy_all
|
57
56
|
@content_one = Factory(:content)
|
@@ -1,29 +1,5 @@
|
|
1
1
|
$:.reject! { |e| e.include? 'TextMate' }
|
2
2
|
ENV["RAILS_ENV"] ||= 'test'
|
3
3
|
require File.expand_path("../../config/environment", __FILE__)
|
4
|
-
require 'rspec/rails'
|
5
|
-
require 'muck_test_helper'
|
6
|
-
|
7
|
-
# Requires supporting ruby files with custom matchers and macros, etc,
|
8
|
-
# in spec/support/ and its subdirectories.
|
9
|
-
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
10
|
-
|
11
|
-
RSpec.configure do |config|
|
12
|
-
# == Mock Framework
|
13
|
-
#
|
14
|
-
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
15
|
-
#
|
16
|
-
# config.mock_with :mocha
|
17
|
-
# config.mock_with :flexmock
|
18
|
-
# config.mock_with :rr
|
19
|
-
config.mock_with :rspec
|
20
4
|
|
21
|
-
|
22
|
-
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
23
|
-
|
24
|
-
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
25
|
-
# examples within a transaction, remove the following line or assign false
|
26
|
-
# instead of true.
|
27
|
-
config.use_transactional_fixtures = true
|
28
|
-
|
29
|
-
end
|
5
|
+
require 'muck_test_helper'
|
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-contents
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 1
|
10
|
+
version: 3.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Ball
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-10-
|
19
|
+
date: 2010-10-18 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -245,15 +245,15 @@ files:
|
|
245
245
|
- db/migrate/20090703055724_add_contents.rb
|
246
246
|
- db/migrate/20090806230610_add_layout_to_contents.rb
|
247
247
|
- db/migrate/20090808175401_add_contents_comment_counter_cache.rb
|
248
|
-
- lib/
|
249
|
-
- lib/
|
250
|
-
- lib/
|
251
|
-
- lib/
|
252
|
-
- lib/
|
253
|
-
- lib/
|
254
|
-
- lib/
|
255
|
-
- lib/
|
256
|
-
- lib/
|
248
|
+
- lib/muck-contents.rb
|
249
|
+
- lib/muck-contents/config.rb
|
250
|
+
- lib/muck-contents/controllers/content_handler.rb
|
251
|
+
- lib/muck-contents/engine.rb
|
252
|
+
- lib/muck-contents/models/content.rb
|
253
|
+
- lib/muck-contents/models/content_permission.rb
|
254
|
+
- lib/muck-contents/models/content_translation.rb
|
255
|
+
- lib/muck-contents/rack/rack.rb
|
256
|
+
- lib/muck-contents/routes.rb
|
257
257
|
- lib/tasks/muck_contents.rake
|
258
258
|
- muck-contents.gemspec
|
259
259
|
- public/images/tinymce/doc.jpg
|
@@ -3751,8 +3751,9 @@ files:
|
|
3751
3751
|
- test/rails_test/spec/models/content_spec.rb
|
3752
3752
|
- test/rails_test/spec/models/content_translation_spec.rb
|
3753
3753
|
- test/rails_test/spec/spec_helper.rb
|
3754
|
+
- test/rails_test/test/fixtures/rails.png
|
3754
3755
|
has_rdoc: true
|
3755
|
-
homepage: http://github.com/tatemae/
|
3756
|
+
homepage: http://github.com/tatemae/muck-contents
|
3756
3757
|
licenses: []
|
3757
3758
|
|
3758
3759
|
post_install_message:
|
data/lib/muck_contents.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'friendly_id'
|
2
|
-
require 'acts-as-taggable-on'
|
3
|
-
require 'tiny_mce'
|
4
|
-
require 'sanitize'
|
5
|
-
require 'babelphish'
|
6
|
-
|
7
|
-
require 'muck_contents/config.rb'
|
8
|
-
require 'muck_contents/rack/rack.rb'
|
9
|
-
require 'muck_contents/models/content.rb'
|
10
|
-
require 'muck_contents/models/content_permission.rb'
|
11
|
-
require 'muck_contents/models/content_translation.rb'
|
12
|
-
require 'muck_contents/controllers/content_handler.rb'
|
13
|
-
require 'muck_contents/engine.rb'
|
14
|
-
|
15
|
-
module MuckContents
|
16
|
-
GLOBAL_SCOPE = '/'
|
17
|
-
end
|