editorial_logic 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,5 +1,4 @@
1
1
  source 'http://rubygems.org'
2
- source 'http://jose.seologic.com:8808/'
3
2
 
4
3
  gem 'bson_ext'
5
4
  gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid'
data/Rakefile CHANGED
@@ -30,4 +30,4 @@ Rake::RDocTask.new do |rdoc|
30
30
  rdoc.title = "editorial_logic #{version}"
31
31
  rdoc.rdoc_files.include('README*')
32
32
  rdoc.rdoc_files.include('lib/**/*.rb')
33
- end
33
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.4.1
@@ -10,7 +10,7 @@ xml.rss :version => '2.0', :'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
10
10
  xml.item do
11
11
  xml.title article.headline
12
12
  xml.description article.summary
13
- xml.pubDate article.publication_date.strftime("%a, %d %b %Y %H:%M:%S %z")
13
+ xml.pubDate article.publication_date.strftime("%a, %d %b %Y %H:%M:%S %z") if article.publication_date
14
14
  xml.link "#{request.url.gsub(@publication.feed, '')}#{article.path}"
15
15
  xml.guid "#{request.url.gsub(@publication.feed, '')}#{article.path}"
16
16
  end
@@ -1,6 +1,5 @@
1
1
  <%- set_title @publication.name -%>
2
2
  <%- meta_description @publication.description -%>
3
- <%= auto_discovery_link_tag(:rss, @publication.feed, {:title => @publication.name}) if @publication.rss_feed_enabled? -%>
4
3
 
5
4
  <p>
6
5
  <%= @publication.description.to_s.html_safe -%>
@@ -9,5 +8,4 @@
9
8
  <%= render 'articles' if @publication.has_articles? -%>
10
9
  <%= render 'documents' if @publication.has_documents? -%>
11
10
  <%= render 'faqs' if @publication.has_faqs? -%>
12
- <%= render 'terms' if @publication.has_terms? -%>
13
-
11
+ <%= render 'terms' if @publication.has_terms? -%>
@@ -1,44 +1,11 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
-
3
2
  require "action_controller/railtie"
4
3
  require "action_mailer/railtie"
5
4
  require "active_resource/railtie"
6
-
7
- # If you have a Gemfile, require the gems listed there, including any gems
8
- # you've limited to :test, :development, or :production.
9
5
  Bundler.require(:default, Rails.env) if defined?(Bundler)
10
-
11
6
  module EditorialLogic
12
7
  class Application < Rails::Application
13
- # Settings in config/environments/* take precedence over those specified here.
14
- # Application configuration should go into files in config/initializers
15
- # -- all .rb files in that directory are automatically loaded.
16
-
17
- # Custom directories with classes and modules you want to be autoloadable.
18
- # config.autoload_paths += %W(#{config.root}/extras)
19
-
20
- # Only load the plugins named here, in the order given (default is alphabetical).
21
- # :all can be used as a placeholder for all plugins not explicitly named.
22
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
23
-
24
- # Activate observers that should always be running.
25
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
26
-
27
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
28
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
29
- # config.time_zone = 'Central Time (US & Canada)'
30
-
31
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
32
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
33
- # config.i18n.default_locale = :de
34
-
35
- # JavaScript files you want as :defaults (application.js is always included).
36
- # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
37
-
38
- # Configure the default encoding used in templates for Ruby 1.9.
39
8
  config.encoding = "utf-8"
40
-
41
- # Configure sensitive parameters which will be filtered from the log file.
42
9
  config.filter_parameters += [:password]
43
10
  end
44
- end
11
+ end
data/config/boot.rb CHANGED
@@ -1,13 +1,3 @@
1
1
  require 'rubygems'
2
-
3
- # Set up gems listed in the Gemfile.
4
- gemfile = File.expand_path('../../Gemfile', __FILE__)
5
- begin
6
- ENV['BUNDLE_GEMFILE'] = gemfile
7
- require 'bundler'
8
- Bundler.setup
9
- rescue Bundler::GemNotFound => e
10
- STDERR.puts e.message
11
- STDERR.puts "Try running `bundle install`."
12
- exit!
13
- end if File.exist?(gemfile)
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
data/config/cucumber.yml CHANGED
@@ -7,4 +7,4 @@ int_opts = "#{std_opts} -o tmp/feature_results.txt"
7
7
  default: <%= std_opts %> features
8
8
  wip: --tags @wip:3 --wip features
9
9
  rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
10
- integration: <%= int_opts %> features
10
+ integration: <%= int_opts %> features
@@ -1,9 +1,3 @@
1
- # Load the rails application
2
1
  require File.expand_path('../application', __FILE__)
3
2
  require File.expand_path('../../lib/editorial_logic', __FILE__)
4
-
5
- # Initialize the rails application
6
- EditorialLogic::Application.initialize!
7
-
8
- EditorialLogic::Application.configure do
9
- end
3
+ EditorialLogic::Application.initialize!
@@ -1,28 +1,11 @@
1
1
  EditorialLogic::Application.configure do
2
- # Settings specified here will take precedence over those in config/environment.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the webserver when you make code changes.
7
2
  config.cache_classes = false
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
3
  config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
4
  config.consider_all_requests_local = true
14
- # config.action_view.debug_rjs = true
15
5
  config.action_controller.perform_caching = false
16
-
17
- # Don't care if the mailer can't send
18
6
  config.action_mailer.raise_delivery_errors = false
19
-
20
- # Print deprecation notices to the Rails logger
21
7
  config.active_support.deprecation = :log
22
-
23
- # Only use best-standards-support built into browsers
24
8
  config.action_dispatch.best_standards_support = :builtin
25
-
26
9
  # Custom settings
27
10
  config.feature_results_path = "#{Rails.root}/tmp/feature_results.txt"
28
- end
11
+ end
@@ -1,49 +1,9 @@
1
1
  EditorialLogic::Application.configure do
2
- # Settings specified here will take precedence over those in config/environment.rb
3
-
4
- # The production environment is meant for finished, "live" apps.
5
- # Code is not reloaded between requests
6
2
  config.cache_classes = true
7
-
8
- # Full error reports are disabled and caching is turned on
9
3
  config.consider_all_requests_local = false
10
4
  config.action_controller.perform_caching = true
11
-
12
- # Specifies the header that your server uses for sending files
13
5
  config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
-
15
- # For nginx:
16
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
-
18
- # If you have no front-end server that supports something like X-Sendfile,
19
- # just comment this out and Rails will serve the files
20
-
21
- # See everything in the log (default is :info)
22
- # config.log_level = :debug
23
-
24
- # Use a different logger for distributed setups
25
- # config.logger = SyslogLogger.new
26
-
27
- # Use a different cache store in production
28
- # config.cache_store = :mem_cache_store
29
-
30
- # Disable Rails's static asset server
31
- # In production, Apache or nginx will already do this
32
6
  config.serve_static_assets = false
33
-
34
- # Enable serving of images, stylesheets, and javascripts from an asset server
35
- # config.action_controller.asset_host = "http://assets.example.com"
36
-
37
- # Disable delivery errors, bad email addresses will be ignored
38
- # config.action_mailer.raise_delivery_errors = false
39
-
40
- # Enable threaded mode
41
- # config.threadsafe!
42
-
43
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44
- # the I18n.default_locale when a translation can not be found)
45
7
  config.i18n.fallbacks = true
46
-
47
- # Send deprecation notices to registered listeners
48
8
  config.active_support.deprecation = :notify
49
- end
9
+ end
@@ -1,39 +1,13 @@
1
1
  EditorialLogic::Application.configure do
2
- # Settings specified here will take precedence over those in config/environment.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
2
  config.cache_classes = true
9
-
10
- # Log error messages when you accidentally call methods on nil.
11
3
  config.whiny_nils = true
12
-
13
- # Show full error reports and disable caching
14
4
  config.consider_all_requests_local = true
15
5
  config.action_controller.perform_caching = false
16
-
17
- # Raise exceptions instead of rendering exception templates
18
6
  config.action_dispatch.show_exceptions = false
19
-
20
- # Disable request forgery protection in test environment
21
7
  config.action_controller.allow_forgery_protection = false
22
-
23
- # Tell Action Mailer not to deliver emails to the real world.
24
- # The :test delivery method accumulates sent emails in the
25
- # ActionMailer::Base.deliveries array.
26
8
  config.action_mailer.delivery_method = :test
27
-
28
- # Use SQL instead of Active Record's schema dumper when creating the test database.
29
- # This is necessary if your schema can't be completely dumped by the schema dumper,
30
- # like if you have constraints or database-specific column types
31
- # config.active_record.schema_format = :sql
32
-
33
- # Print deprecation notices to the stderr
34
9
  config.active_support.deprecation = :stderr
35
-
36
10
  # tanker gem
37
11
  config.index_tank_url = 'http://:PctyyJitroN8iv@82wog.api.indextank.com'
38
12
  config.tanker_pagination_backend = :kaminari
39
- end
13
+ end
data/config/mongoid.yml CHANGED
@@ -1,10 +1,5 @@
1
1
  defaults: &defaults
2
2
  host: localhost
3
- # slaves:
4
- # - host: slave1.local
5
- # port: 27018
6
- # - host: slave2.local
7
- # port: 27019
8
3
  autocreate_indexes: false
9
4
  allow_dynamic_fields: false
10
5
  include_root_in_json: false
@@ -20,5 +15,4 @@ development:
20
15
 
21
16
  test:
22
17
  <<: *defaults
23
- database: editorial_logic_test
24
-
18
+ database: editorial_logic_test
data/config/routes.rb CHANGED
@@ -33,4 +33,4 @@ Rails.application.routes.draw do
33
33
  resources :publications, :only => :show do
34
34
  resources :managed_contents, :only => :show
35
35
  end
36
- end
36
+ end
data/config.ru CHANGED
@@ -1,4 +1,2 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
1
  require ::File.expand_path('../config/environment', __FILE__)
4
- run EditorialLogic::Application
2
+ run EditorialLogic::Application
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "editorial_logic"
8
- s.version = "1.4.0"
8
+ s.version = "1.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bantik"]
12
- s.date = "2011-10-04"
12
+ s.date = "2011-10-20"
13
13
  s.description = "An engine for enabling managed content, including articles, blogs, FAQs and glossaries."
14
14
  s.email = "corey@seologic.com"
15
15
  s.files = [
@@ -68,7 +68,6 @@ Gem::Specification.new do |s|
68
68
  "config/application.rb",
69
69
  "config/boot.rb",
70
70
  "config/cucumber.yml",
71
- "config/deploy.rb",
72
71
  "config/environment.rb",
73
72
  "config/environments/development.rb",
74
73
  "config/environments/production.rb",
data/init.rb CHANGED
@@ -1 +1 @@
1
- require 'editorial_logic'
1
+ require 'editorial_logic'
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Admin::ManagedContentsController do
4
4
  before :all do
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Admin::PublicationsController do
4
4
  before :all do
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe ManagedContentsController do
4
4
  before :all do
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe PublicationsController do
4
4
  before :all do
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe ManagedContent do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Publication do
4
4
  describe 'content types' do
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe Section do
4
4
  it 'should be valid with minimum values' do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: editorial_logic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 0
10
- version: 1.4.0
9
+ - 1
10
+ version: 1.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bantik
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-04 00:00:00 Z
18
+ date: 2011-10-20 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bson_ext
@@ -251,7 +251,6 @@ files:
251
251
  - config/application.rb
252
252
  - config/boot.rb
253
253
  - config/cucumber.yml
254
- - config/deploy.rb
255
254
  - config/environment.rb
256
255
  - config/environments/development.rb
257
256
  - config/environments/production.rb
@@ -1019,3 +1018,4 @@ specification_version: 3
1019
1018
  summary: An engine for enabling managed content in a Rails app, including articles, blogs, FAQs and glossaries.
1020
1019
  test_files: []
1021
1020
 
1021
+ has_rdoc:
data/config/deploy.rb DELETED
@@ -1,40 +0,0 @@
1
- # Deploy this gem to the gem server.
2
- #
3
- # Usage for a gem already on the gem server:
4
- #
5
- # cap deploy
6
- #
7
- # For a new gem:
8
- #
9
- # cap deploy:new
10
-
11
- # Global Variables =================================================================================
12
- default_run_options[:pty] = true
13
- role :app, 'jose.seologic.com'
14
- set :deploy_to, '/home/containers/rails/system/editorial_logic'
15
- set :repository, 'git@github.com:ivanoblomov/editorial_logic.git'
16
- set :scm, :git
17
- set :use_sudo, false
18
- set :user, 'cnewton'
19
-
20
- namespace :deploy do
21
- desc "Clone a new gem's repository on the gem server."
22
- task :new do
23
- run "git clone -q #{repository} #{deploy_to}"
24
- end
25
-
26
- task :install do
27
- run "cd #{deploy_to}; rm -f Gemfile.lock; sudo bundle; sudo rake install"
28
- end
29
-
30
- # disable default behavior
31
- task :restart do
32
- end
33
-
34
- task :update do
35
- run "cd #{deploy_to}; git pull"
36
- end
37
- end
38
-
39
- after 'deploy', 'deploy:install'
40
- after 'deploy:new', 'deploy:install'