Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pitosalas committed Nov 9, 2016
1 parent 794b9b7 commit ecedfa8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
31 changes: 17 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ PATH
coursegen (0.3.2)
activesupport
adsf
byebug
cri
guard
guard-shell
Expand All @@ -19,14 +18,13 @@ PATH
GEM
remote: https://rubygems.org/
specs:
activesupport (5.0.0)
activesupport (5.0.0.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
adsf (1.2.1)
rack (>= 1.0.0)
byebug (9.0.5)
coderay (1.1.1)
colored (1.2)
concurrent-ruby (1.0.2)
Expand All @@ -47,38 +45,43 @@ GEM
guard-shell (0.7.1)
guard (>= 2.0.0)
guard-compat (~> 1.0)
hamster (3.0.0)
concurrent-ruby (~> 1.0)
i18n (0.7.0)
icalendar (2.4.0)
icalendar (2.4.1)
json (1.8.3)
kramdown (1.11.1)
kramdown (1.12.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
lumberjack (1.0.10)
method_source (0.8.2)
mini_portile2 (2.1.0)
minitest (5.8.3)
nanoc (4.0.2)
minitest (5.9.1)
nanoc (4.3.7)
cri (~> 2.3)
hamster (~> 3.0)
parallel (~> 1.9)
ref (~> 2.0)
nenv (0.3.0)
nokogiri (1.6.8)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
notiffany (0.1.1)
nenv (~> 0.1)
shellany (~> 0.0)
pkg-config (1.1.7)
parallel (1.9.0)
pry (0.10.4)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
rack (2.0.1)
rake (10.4.2)
rb-fsevent (0.9.7)
rake (11.3.0)
rb-fsevent (0.9.8)
rb-inotify (0.9.7)
ffi (>= 0.5.0)
ruby_dep (1.3.1)
ref (2.0.0)
ruby_dep (1.5.0)
rubytree (0.9.7)
json (~> 1.8)
structured_warnings (~> 0.2)
Expand All @@ -99,4 +102,4 @@ DEPENDENCIES
rake

BUNDLED WITH
1.12.5
1.13.2
2 changes: 0 additions & 2 deletions coursegen.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"


spec.add_dependency "nanoc"
spec.add_dependency "thor"
spec.add_dependency "rubytree"
spec.add_dependency "cri"
spec.add_dependency "byebug"
spec.add_dependency "nokogiri"
spec.add_dependency "activesupport"
spec.add_dependency "kramdown"
Expand Down
8 changes: 5 additions & 3 deletions lib/coursegen/cli.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'thor'
require 'coursegen/templates'
require 'nanoc'
require './cg_config.rb' if File.exists? 'cg_config.rb'
require './cg_config.rb' if File.exist? 'cg_config.rb'

module CourseGen
class CLI < Thor
Expand Down Expand Up @@ -47,9 +47,11 @@ def deploy

no_commands do
def check_valid_directory
CourseGen::Templates.new.valid_cg_directory? ?
say("Valid cg directory") :
if CourseGen::Templates.new.valid_cg_directory?
say("Valid cg directory")
else
error("Invalid cg directory")
end
end
end
end
Expand Down
1 change: 0 additions & 1 deletion lib/coursegen/course/helpers/content_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Helpers to be used to annotate content
module ContentHelpers

def include_topic item_symbol
incorporated_topic = lookup_nitem("topics", item_symbol.to_s)
items[incorporated_topic.identifier.to_s].compiled_content
Expand Down

0 comments on commit ecedfa8

Please sign in to comment.