Skip to content

Commit

Permalink
some :nodoc:’s
Browse files Browse the repository at this point in the history
  • Loading branch information
leikind committed Aug 27, 2015
1 parent e63353b commit 19b53a3
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@
require 'rubygems'
require 'bundler'
require 'bundler/gem_tasks'

begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts 'Run `bundle install` to install missing gems'
exit e.status_code
end

require 'rake'
require 'rspec/core'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

require 'rubocop/rake_task'

desc 'Run RuboCop on the lib directory'
RuboCop::RakeTask.new(:rubocop) do |task|
task.patterns = ['lib/**/*.rb']
Expand Down
2 changes: 1 addition & 1 deletion lib/wice/grid_renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def column(opts = {}, &block)
add_column(vc)
end

def get_model_from_associations(model, assocs)
def get_model_from_associations(model, assocs) # :nodoc:
if assocs.empty?
model
else
Expand Down
5 changes: 3 additions & 2 deletions lib/wice/helpers/bs_calendar_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# encoding: utf-8
module Wice #:nodoc:
module BsCalendarHelpers #:nodoc:
class CalendarData
class CalendarData #:nodoc:

attr_accessor :name,
:date_string,
:dom_id,
Expand All @@ -10,7 +11,7 @@ class CalendarData
:fire_event,
:close_calendar_event_name,
:the_other_datepicker_id_to,
:the_other_datepicker_id_from
:the_other_datepicker_id_from #:nodoc:
end

def date_calendar_bs(calendar_data) #:nodoc:
Expand Down
2 changes: 1 addition & 1 deletion lib/wice/helpers/wice_grid_view_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def call_block(block, ar, extra_argument = nil) #:nodoc:
extra_argument ? block.call(ar, extra_argument) : block.call(ar)
end

def get_row_content(rendering, ar, sorting_dependant_row_cycling)
def get_row_content(rendering, ar, sorting_dependant_row_cycling) #:nodoc:
cell_value_of_the_ordered_column = nil
row_content = ''
rendering.each_column(:in_html) do |column|
Expand Down
2 changes: 1 addition & 1 deletion lib/wice/wice_grid_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# encoding: utf-8
module Wice
module Controller
module Controller #:nodoc:
def self.included(base) #:nodoc:
base.extend(ClassMethods)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/wice/wice_grid_misc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Wice
class << self
@@model_validated = false

def assoc_list_to_hash(assocs)
def assoc_list_to_hash(assocs) #:nodoc:
head = assocs[0]
tail = assocs[1..-1]

Expand Down
6 changes: 3 additions & 3 deletions lib/wice_grid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

module Wice

def self.on_action_view_load
def self.on_action_view_load #:nodoc:
::ActionView::Base.class_eval { include Wice::GridViewHelper }
[ActionView::Helpers::AssetTagHelper,
ActionView::Helpers::TagHelper,
Expand Down Expand Up @@ -313,7 +313,7 @@ def form_ar_options(opts = {}) #:nodoc:
end
end

def add_references(relation)
def add_references(relation) #:nodoc:
if @ar_options[:include] && relation.respond_to?(:references)
# refs = [@ar_options[:include]] unless @ar_options[:include].is_a?(Array)
relation = relation.references(* @ar_options[:include])
Expand Down Expand Up @@ -441,7 +441,7 @@ def count #:nodoc:
do_count
end

def do_count
def do_count #:nodoc:
@relation
.all
.merge(@ar_options[:conditions]).count(
Expand Down

0 comments on commit 19b53a3

Please sign in to comment.