deckify 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in deckify.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 North Carolina State University
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # Deckify
2
+
3
+ Quickly scaffold a new [deck.rb](https://github.com/alexch/deck.rb) presentation.
4
+
5
+ ## Installation
6
+
7
+ $ gem install deckify
8
+
9
+ ## Usage
10
+
11
+ Go into a directory where you want to scaffold a deck.rb project and run:
12
+
13
+ ```console
14
+ deckify
15
+ deck showoff.json
16
+ ```
17
+
18
+ Then go to [http://localhost:4333](http://localhost:4333). You'll want to change the following files:
19
+
20
+ - first_slide.md: To remove my information.
21
+ - showoff.json: To add new sections to your presentation.
22
+
23
+ ## Customization
24
+
25
+ If you want custom CSS or JavaScript, you'll want to edit the custom_*.md files to link to javascript and stylesheets in the appropriate directories.
26
+
27
+ ## Note
28
+
29
+ Including script and link tags results in a blank slide at the end. In order to insert the JavaScript and stylesheets into the slide deck, the showoff.json file includes sections for the custom files. These are loaded last in the sections list. I do not know how to avoid this at this point.
30
+
31
+ ## Author
32
+
33
+ Jason Ronallo
34
+
35
+ ## License
36
+
37
+ See LICENSE
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
data/bin/deckify ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
3
+
4
+ require 'deckify'
5
+
6
+ Deckify::DeckOut.start
data/deckify.gemspec ADDED
@@ -0,0 +1,17 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/deckify/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Jason Ronallo"]
6
+ gem.email = ["jronallo@gmail.com"]
7
+ gem.description = %q{scaffold generator for deck.rb}
8
+ gem.summary = %q{Quickly scaffold a new deck.rb presentation, including custom JavaScript and CSS.}
9
+ gem.homepage = "https://github.com/jronallo/deckify"
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "deckify"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Deckify::VERSION
17
+ end
@@ -0,0 +1,3 @@
1
+ module Deckify
2
+ VERSION = "0.0.1"
3
+ end
data/lib/deckify.rb ADDED
@@ -0,0 +1,50 @@
1
+ require "deckify/version"
2
+ require 'thor/group'
3
+
4
+ module Deckify
5
+ class DeckOut < Thor::Group
6
+ include Thor::Actions
7
+
8
+ desc "scaffold a new deck.rb project"
9
+
10
+ source_root File.expand_path File.join(File.dirname(__FILE__), "templates")
11
+
12
+ def create_showoff_json
13
+ template "showoff.json"
14
+ end
15
+
16
+ def create_first_slide
17
+ template "first_slide.md"
18
+ end
19
+
20
+ def create_custom_javascripts_md
21
+ template "custom_javascripts.md"
22
+ end
23
+ def create_custom_javascript
24
+ template "javascripts/custom_javascript.js"
25
+ end
26
+
27
+ def create_custom_stylesheets_md
28
+ template "custom_stylesheets.md"
29
+ end
30
+ def create_custom_stylesheets
31
+ template "stylesheets/custom_stylesheet.css"
32
+ template "stylesheets/pre.css"
33
+ end
34
+
35
+ # create directory for javascripts and css
36
+
37
+ def create_guardfile
38
+ template "Guardfile"
39
+ end
40
+
41
+ def create_gemfile
42
+ template "Gemfile"
43
+ end
44
+
45
+ def create_config_ru
46
+ template "config.ru"
47
+ end
48
+
49
+ end
50
+ end
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'deckrb'
@@ -0,0 +1,5 @@
1
+ guard 'livereload', :apply_js_live => false, :apply_css_live => false do
2
+ watch(%r{.+\.(md)$})
3
+ watch(%r{stylesheets/.+\.(css)$})
4
+ watch(%r{javascripts/.+\.(js)$})
5
+ end
@@ -0,0 +1,8 @@
1
+ # This allows deployment to Heroku: https://github.com/alexch/deck.rb#deploying-to-heroku
2
+ require "rubygems"
3
+ require "bundler"
4
+ Bundler.setup
5
+ Bundler.require
6
+
7
+ require 'deck/rack_app'
8
+ run Deck::RackApp.build('showoff.json', style: 'swiss')
@@ -0,0 +1 @@
1
+ <script type="text/javascript" src="javascripts/custom_javascript.js"></script>
@@ -0,0 +1 @@
1
+ custom_stylesheets.md
@@ -0,0 +1,6 @@
1
+ # Title
2
+
3
+ ## Jason Ronallo
4
+ ### Associate Head, Digitial Library Initiatives
5
+ ### North Carolina State University Libraries
6
+ ### @ronallo
@@ -0,0 +1 @@
1
+ custom_javascript.js
@@ -0,0 +1,9 @@
1
+ {
2
+ "style": "swiss",
3
+ "transition": "fade",
4
+ "sections": [
5
+ "first_slide.md",
6
+ "custom_javascripts.md",
7
+ "custom_stylesheets.md"
8
+ ]
9
+ }
@@ -0,0 +1 @@
1
+ .deck-container .slide h2 {color: #EF2B2D;}
@@ -0,0 +1,35 @@
1
+ .deck-container .slide pre {
2
+
3
+ position: relative;
4
+ }
5
+
6
+ .deck-container .slide pre:before, .deck-container .slide pre:after
7
+ {
8
+ z-index: -1;
9
+ position: absolute;
10
+ content: "";
11
+ bottom: 15px;
12
+ left: 10px;
13
+ width: 50%;
14
+ top: 80%;
15
+ max-width:300px;
16
+ background: #777;
17
+ -webkit-box-shadow: 0 15px 10px #777;
18
+ -moz-box-shadow: 0 15px 10px #777;
19
+ box-shadow: 0 15px 10px #777;
20
+ -webkit-transform: rotate(-3deg);
21
+ -moz-transform: rotate(-3deg);
22
+ -o-transform: rotate(-3deg);
23
+ -ms-transform: rotate(-3deg);
24
+ transform: rotate(-3deg);
25
+ }
26
+ .deck-container .slide pre:after
27
+ {
28
+ -webkit-transform: rotate(3deg);
29
+ -moz-transform: rotate(3deg);
30
+ -o-transform: rotate(3deg);
31
+ -ms-transform: rotate(3deg);
32
+ transform: rotate(3deg);
33
+ right: 10px;
34
+ left: auto;
35
+ }
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: deckify
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jason Ronallo
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-12-29 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: scaffold generator for deck.rb
15
+ email:
16
+ - jronallo@gmail.com
17
+ executables:
18
+ - deckify
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - .gitignore
23
+ - Gemfile
24
+ - LICENSE
25
+ - README.md
26
+ - Rakefile
27
+ - bin/deckify
28
+ - deckify.gemspec
29
+ - lib/deckify.rb
30
+ - lib/deckify/version.rb
31
+ - lib/templates/Gemfile
32
+ - lib/templates/Guardfile
33
+ - lib/templates/config.ru
34
+ - lib/templates/custom_javascripts.md
35
+ - lib/templates/custom_stylesheets.md
36
+ - lib/templates/first_slide.md
37
+ - lib/templates/javascripts/custom_javascript.js
38
+ - lib/templates/showoff.json
39
+ - lib/templates/stylesheets/custom_stylesheet.css
40
+ - lib/templates/stylesheets/pre.css
41
+ homepage: https://github.com/jronallo/deckify
42
+ licenses: []
43
+ post_install_message:
44
+ rdoc_options: []
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ none: false
49
+ requirements:
50
+ - - ! '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ! '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ requirements: []
60
+ rubyforge_project:
61
+ rubygems_version: 1.8.24
62
+ signing_key:
63
+ specification_version: 3
64
+ summary: Quickly scaffold a new deck.rb presentation, including custom JavaScript
65
+ and CSS.
66
+ test_files: []