Skip to content

Commit

Permalink
NOT Working, pushing to git hub to ask for help
Browse files Browse the repository at this point in the history
  • Loading branch information
ddubyah committed Jun 1, 2011
1 parent e4e35e7 commit 05826cd
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 11 deletions.
1 change: 1 addition & 0 deletions .rvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rvm --create 1.9.2@guard-krammer
Empty file added LICENSE
Empty file.
Empty file added README.md
Empty file.
17 changes: 11 additions & 6 deletions guard-krammer.gemspec
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "guard/guard-krammer/version"
require "guard/krammer/version"

Gem::Specification.new do |s|
s.name = "guard-krammer"
s.version = Guard::Krammer::VERSION
s.version = Guard::KrammerVersion::VERSION
s.authors = ["Darren Wallace"]
s.email = ["[email protected]"]
s.homepage = ""
s.homepage = "http://www.cdsm.co.uk"
s.summary = %q{Markdown folder > html folder conversion}
s.description = %q{Watches a source folder and converts markdown docs to html docs in a target folder}

s.rubyforge_project = "guard-krammer"

s.files = `git ls-files`.split("\n")
# s.files = `git ls-files`.split("\n") # Bundler created line
s.files = Dir.glob('{lib}/**/*') + %w[LICENSE README.md] # copied from guard examples
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.require_paths = ["lib"]

s.add_dependency 'guard', '>= 0.2.2'
s.add_dependency 'kramdown', '~> 0.13.3'

end
s.add_development_dependency 'bundler', '~> 1.0'
s.add_development_dependency 'rspec', '~> 2.5'
end
52 changes: 49 additions & 3 deletions lib/guard/krammer.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,53 @@
require "guard-krammer/version"
require "krammer/version"

require 'guard'
require 'guard/guard'

module Guard
module Krammer
# Your code goes here...
class Krammer < Guard

def initialize(watchers=[], options={})
super
# init stuff here, thx!
end

# =================
# = Guard methods =
# =================

# If one of those methods raise an exception, the Guard::GuardName instance
# will be removed from the active guards.

# Called once when Guard starts
# Please override initialize method to init stuff
def start
true
end

# Called on Ctrl-C signal (when Guard quits)
def stop
true
end

# Called on Ctrl-Z signal
# This method should be mainly used for "reload" (really!) actions like reloading passenger/spork/bundler/...
def reload
true
end

# Called on Ctrl-\ signal
# This method should be principally used for long action like running all specs/tests/...
def run_all
true
end

# Called on file(s) modifications
def run_on_change(pathss)
paths.each do |path|
puts path
end
true
end

end
end
2 changes: 1 addition & 1 deletion lib/guard/krammer/templates/Guardfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
guard 'krammer'
guard 'Krammer'
watch(%r{^source_docs/.+\.md})
watch(%r{^source_docs/.+\.markdown})
end
2 changes: 1 addition & 1 deletion lib/guard/krammer/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Guard
module Krammer
module KrammerVersion
VERSION = "0.0.1"
end
end
10 changes: 10 additions & 0 deletions spec/source_docs/tester.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# i40 Background
The all-new Hyundai i40 is an outstanding product. It is another new car from Hyundai that will change perceptions of the brand.
![](./assets/Hyundai-i40-wagon-renderings-price.jpg)
The i40 will act as the new brand ambassador, while at the same time attracting new customers to the brand - both private and fleet. Production began in April with the i40 Wagon first appearing in showrooms from summer 2011, with the i40 Sedan, which debuted at the Barcelona Motorshow on the 12th May, following later in the year.
![](./assets/i40 sedan.jpg)
Hyundai Motor Europe Vice President Allan Rushforth explains that.."The i40 sedan shares the same qualities found in the wagon, including outstanding levels of fuel-efficiency, comfort, and quality, and broadens the appeal of the i40 to buyers in the D-segment."
![](./assets/NEW_Allan%252520Rushforth_20070905124945.jpg)
The i-flow Concept, which the i40 is derived from, brought new ideas and a pioneering form to the traditional European D-segment. The dramatically-sculpted forms of the interior and exterior made for a striking sports sedan, with an athletic stance.
![](./assets/hyundai-1 iflow.jpg)
The name i-flow reflected the exceptionally aerodynamic shape and the flowing lines of the concept car's eye-catching styling. The i40 draws on the Hyundai i-flow Concept's sleek styling and innovative technology. Continue on to learn more about Hyundai's new brand direction.

0 comments on commit 05826cd

Please sign in to comment.