Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opal/opal-jquery
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fdef3f7e401e
Choose a base ref
...
head repository: opal/opal-jquery
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8f0dab2c593f
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Sep 8, 2014

  1. Add doc task

    elia committed Sep 8, 2014
    Copy the full SHA
    250ba30 View commit details
  2. SVG travis badge 👀

    elia committed Sep 8, 2014
    Copy the full SHA
    8f0dab2 View commit details
Showing with 28 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 README.md
  3. +25 −0 Rakefile
  4. +1 −0 opal-jquery.gemspec
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -4,3 +4,4 @@ Gemfile.lock
build
gh-pages
/.bundle
.yardoc
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# opal-jquery

[![Build Status](https://secure.travis-ci.org/opal/opal-jquery.png?branch=master)](http://travis-ci.org/opal/opal-jquery)
[![Build Status](http://img.shields.io/travis/opal/opal-jquery/master.svg)](http://travis-ci.org/opal/opal-jquery)

opal-jquery provides DOM access to opal by wrapping jQuery (or zepto)
and providing a nice ruby syntax for dealing with jQuery instances.
25 changes: 25 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -50,3 +50,28 @@ rescue Errno::ENOENT
$stderr.puts '"gzip" command not found, it is required to produce the .gz version'
nil
end


namespace :doc do
doc_repo = Pathname(ENV['DOC_REPO'] || 'gh-pages')
doc_base = doc_repo.join('doc')
current_git_release = -> { `git rev-parse --abbrev-ref HEAD`.chomp }
# template_option = "--template opal --template-path #{doc_repo.join('yard-templates')}"
template_option = ""

directory doc_repo.to_s do
remote = ENV['DOC_REPO_REMOTE'] || '.'
sh 'git', 'clone', '-b', 'gh-pages', '--', remote, doc_repo.to_s
end

task :default => doc_repo.to_s do
git = current_git_release.call
name = 'api'
glob = 'opal/**/*.rb'
command = "yard doc #{glob} #{template_option} "\
"--readme opal/README.md -o gh-pages/doc/#{git}/#{name}"
puts command; system command
end
end

task :doc => 'doc:default'
1 change: 1 addition & 0 deletions opal-jquery.gemspec
Original file line number Diff line number Diff line change
@@ -17,4 +17,5 @@ Gem::Specification.new do |s|

s.add_runtime_dependency 'opal', ['>= 0.5.0', '< 1.0.0']
s.add_development_dependency 'opal-rspec', '~> 0.3.0'
s.add_development_dependency 'yard'
end