site_logic 1.9.6 → 1.9.7

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/Rakefile CHANGED
@@ -1,10 +1,8 @@
1
- require 'metric_fu' if Object.const_defined?('MetricFu')
1
+ require 'metric_fu' if Object.const_defined? 'MetricFu'
2
2
  require 'rubygems'
3
3
  require 'rake'
4
4
  require File.expand_path('../config/application', __FILE__)
5
-
6
5
  SiteLogic::Application.load_tasks
7
-
8
6
  begin
9
7
  require 'jeweler'
10
8
  Jeweler::Tasks.new do |gem|
@@ -15,19 +13,16 @@ begin
15
13
  gem.homepage = "http://github.com/ivanoblomov/site_logic"
16
14
  gem.authors = ["Bantik"]
17
15
  gem.add_development_dependency "rspec", ">= 1.2.9"
18
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
19
16
  end
20
17
  Jeweler::GemcutterTasks.new
21
18
  rescue LoadError
22
19
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
23
20
  end
24
-
25
- require 'rake/rdoctask'
21
+ require 'rdoc/task'
26
22
  Rake::RDocTask.new do |rdoc|
27
23
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
28
-
29
24
  rdoc.rdoc_dir = 'rdoc'
30
25
  rdoc.title = "site_logic #{version}"
31
26
  rdoc.rdoc_files.include('README*')
32
27
  rdoc.rdoc_files.include('lib/**/*.rb')
33
- end
28
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.9.6
1
+ 1.9.7
@@ -1,44 +1,11 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
-
3
- require "action_controller/railtie"
4
- require "action_mailer/railtie"
5
- 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.
2
+ require 'action_controller/railtie'
3
+ require 'action_mailer/railtie'
4
+ require 'active_resource/railtie'
9
5
  Bundler.require(:default, Rails.env) if defined?(Bundler)
10
-
11
6
  module SiteLogic
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
- config.encoding = "utf-8"
40
-
41
- # Configure sensitive parameters which will be filtered from the log file.
8
+ config.encoding = 'utf-8'
42
9
  config.filter_parameters += [:password]
43
10
  end
44
- end
11
+ end
data/config/boot.rb CHANGED
@@ -1,6 +1,4 @@
1
1
  require 'rubygems'
2
-
3
- # Set up gems listed in the Gemfile.
4
2
  gemfile = File.expand_path('../../Gemfile', __FILE__)
5
3
  begin
6
4
  ENV['BUNDLE_GEMFILE'] = gemfile
@@ -10,4 +8,4 @@ rescue Bundler::GemNotFound => e
10
8
  STDERR.puts e.message
11
9
  STDERR.puts "Try running `bundle install`."
12
10
  exit!
13
- end if File.exist?(gemfile)
11
+ end if File.exist?(gemfile)
@@ -1,6 +1,3 @@
1
- # Load the rails application
2
1
  require File.expand_path('../application', __FILE__)
3
2
  require File.expand_path('../../lib/site_logic', __FILE__)
4
-
5
- # Initialize the rails application
6
- SiteLogic::Application.initialize!
3
+ SiteLogic::Application.initialize!
@@ -7,6 +7,6 @@ SiteLogic::Application.configure do
7
7
  config.action_controller.allow_forgery_protection = false
8
8
  config.action_mailer.delivery_method = :test
9
9
  config.active_support.deprecation = :stderr
10
- # tanker gem
10
+ # custom
11
11
  config.tanker_disabled = true
12
12
  end
@@ -1,10 +1,9 @@
1
1
  if Rails.env.test? && Object.const_defined?('MetricFu')
2
2
  require 'metric_fu'
3
-
4
3
  MetricFu::Configuration.run do |config|
5
4
  config.metrics = [:churn, :saikuro, :stats, :flog, :flay]
6
5
  config.graphs = [:flog, :flay, :stats]
7
6
  config.rcov[:test_files] = ['spec/**/*_spec.rb']
8
- config.rcov[:rcov_opts] << '-Ispec' # Needed to find spec_helper
7
+ config.rcov[:rcov_opts] << '-Ispec'
9
8
  end
10
9
  end
data/config/mongoid.yml CHANGED
@@ -1,19 +1,6 @@
1
1
  defaults: &defaults
2
2
  host: localhost
3
- autocreate_indexes: false
4
- allow_dynamic_fields: false
5
- include_root_in_json: false
6
- parameterize_keys: true
7
- persist_in_safe_mode: false
8
- raise_not_found_error: true
9
- reconnect_time: 3
10
- skip_version_check: true
11
-
12
- development:
13
- <<: *defaults
14
- database: site_logic_development
15
3
 
16
4
  test:
17
5
  <<: *defaults
18
- database: site_logic_test
19
-
6
+ database: site_logic_test
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 SiteLogic::Application
2
+ run SiteLogic::Application
data/site_logic.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "site_logic"
8
- s.version = "1.9.6"
8
+ s.version = "1.9.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bantik"]
@@ -83,7 +83,6 @@ Gem::Specification.new do |s|
83
83
  "features/support/env.rb",
84
84
  "features/support/hooks.rb",
85
85
  "features/support/paths.rb",
86
- "init.rb",
87
86
  "lib/site_logic.rb",
88
87
  "lib/site_logic/navigation.rb",
89
88
  "lib/site_logic/railtie.rb",
@@ -45,7 +45,7 @@ describe Admin::PagesController do
45
45
  end
46
46
 
47
47
  it "destroy action should destroy model and redirect to index action" do
48
- delete :destroy, :id => @page.id.to_s, :site_id => @site.id.to_s
48
+ delete :destroy, :id => @page.id, :site_id => @site.id.to_s
49
49
  response.should redirect_to(admin_site_pages_url(@site))
50
50
  @site.pages.include?(@page.id).should be_false
51
51
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_logic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 9
9
- - 6
10
- version: 1.9.6
9
+ - 7
10
+ version: 1.9.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bantik
@@ -272,7 +272,6 @@ files:
272
272
  - features/support/env.rb
273
273
  - features/support/hooks.rb
274
274
  - features/support/paths.rb
275
- - init.rb
276
275
  - lib/site_logic.rb
277
276
  - lib/site_logic/navigation.rb
278
277
  - lib/site_logic/railtie.rb
data/init.rb DELETED
@@ -1 +0,0 @@
1
- require 'site_logic'