tschmidt-jplug 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ *.sw?
2
+ .DS_Store
3
+ coverage
4
+ rdoc
5
+ pkg
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Terry Schmidt
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,7 @@
1
+ = jplug
2
+
3
+ Description goes here.
4
+
5
+ == Copyright
6
+
7
+ Copyright (c) 2009 Terry Schmidt. See LICENSE for details.
data/Rakefile ADDED
@@ -0,0 +1,56 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "jplug"
8
+ gem.summary = %Q{Creates the base file structure for jquery plugins.}
9
+ gem.email = "tschmidt@ext-inc.com"
10
+ gem.homepage = "http://github.com/tschmidt/jplug"
11
+ gem.authors = ["Terry Schmidt"]
12
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
13
+ end
14
+
15
+ rescue LoadError
16
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
17
+ end
18
+
19
+ require 'rake/testtask'
20
+ Rake::TestTask.new(:test) do |test|
21
+ test.libs << 'lib' << 'test'
22
+ test.pattern = 'test/**/*_test.rb'
23
+ test.verbose = true
24
+ end
25
+
26
+ begin
27
+ require 'rcov/rcovtask'
28
+ Rcov::RcovTask.new do |test|
29
+ test.libs << 'test'
30
+ test.pattern = 'test/**/*_test.rb'
31
+ test.verbose = true
32
+ end
33
+ rescue LoadError
34
+ task :rcov do
35
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
36
+ end
37
+ end
38
+
39
+
40
+ task :default => :test
41
+
42
+ require 'rake/rdoctask'
43
+ Rake::RDocTask.new do |rdoc|
44
+ if File.exist?('VERSION.yml')
45
+ config = YAML.load(File.read('VERSION.yml'))
46
+ version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
47
+ else
48
+ version = ""
49
+ end
50
+
51
+ rdoc.rdoc_dir = 'rdoc'
52
+ rdoc.title = "jplug #{version}"
53
+ rdoc.rdoc_files.include('README*')
54
+ rdoc.rdoc_files.include('lib/**/*.rb')
55
+ end
56
+
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.2.0
data/bin/jplug ADDED
@@ -0,0 +1,80 @@
1
+ #!/usr/bin/ruby
2
+ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ require 'rubygems'
4
+ require 'oyster'
5
+ require 'jquery'
6
+
7
+ if File.exists?(File.join(ENV['HOME'], '.jplugrc'))
8
+ JPLUG_DEFAULTS = YAML.load_file(File.join(ENV['HOME'], '.jplugrc'))
9
+ else
10
+ JPLUG_DEFAULTS = {}
11
+ end
12
+
13
+ spec = Oyster.spec do
14
+ name "jplug -- jQuery Plugin generator"
15
+
16
+ synopsis <<-SYNOPSIS
17
+ jplug [options] <plugin_name>
18
+ jplug [options] <PluginName>
19
+
20
+ * Plugin Name is required
21
+ SYNOPSIS
22
+
23
+ description <<-DESCRIPTION
24
+ jPlug is a command-line tool that allows you to quickly mock out jQuery
25
+ Plugins. This will include the latest version of jQuery along with a few
26
+ other popular plugins right out of the box.
27
+ DESCRIPTION
28
+
29
+ string :author_name, :default => (JPLUG_DEFAULTS['author-name'] rescue nil),
30
+ :desc => 'The author name for this new plugin.'
31
+
32
+ flag :extras, :default => (JPLUG_DEFAULTS['extras'] rescue true),
33
+ :desc => 'Include additional jQuery Plugins'
34
+
35
+ string :dest, :default => (JPLUG_DEFAULTS['dest'] rescue Dir.pwd),
36
+ :desc => 'Specify the install directory. Default is the current directory.'
37
+
38
+ notes <<-NOTES
39
+ If you find that you are constantly specifying the same options each time
40
+ you can create a .jplugrc file in your home directory with the defaults that
41
+ you would like to have set every time. This file should be in the following format.
42
+
43
+ author-name : Terry Schmidt
44
+ extras : false
45
+ NOTES
46
+
47
+ author 'Terry Schmidt'
48
+
49
+ copyright <<-COPYRIGHT
50
+ Copyright (c) 2009 Terry Schmidt
51
+
52
+ Permission is hereby granted, free of charge, to any person obtaining
53
+ a copy of this software and associated documentation files (the
54
+ "Software"), to deal in the Software without restriction, including
55
+ without limitation the rights to use, copy, modify, merge, publish,
56
+ distribute, sublicense, and/or sell copies of the Software, and to
57
+ permit persons to whom the Software is furnished to do so, subject to
58
+ the following conditions:
59
+
60
+ The above copyright notice and this permission notice shall be
61
+ included in all copies or substantial portions of the Software.
62
+
63
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
64
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
65
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
66
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
67
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
68
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
69
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
70
+ COPYRIGHT
71
+ end
72
+
73
+ begin
74
+ opts = spec.parse
75
+ spec.parse %w(--help) if opts[:unclaimed].empty?
76
+ rescue Oyster::HelpRendered
77
+ exit
78
+ end
79
+
80
+ JQuery.new(opts)
data/jplug.gemspec ADDED
@@ -0,0 +1,55 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{jplug}
5
+ s.version = "0.2.0"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Terry Schmidt"]
9
+ s.date = %q{2009-08-03}
10
+ s.default_executable = %q{jplug}
11
+ s.email = %q{tschmidt@ext-inc.com}
12
+ s.executables = ["jplug"]
13
+ s.extra_rdoc_files = [
14
+ "LICENSE",
15
+ "README.rdoc"
16
+ ]
17
+ s.files = [
18
+ ".document",
19
+ ".gitignore",
20
+ "LICENSE",
21
+ "README.rdoc",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "bin/jplug",
25
+ "jplug.gemspec",
26
+ "lib/jquery.rb",
27
+ "lib/jquery/fillers.rb",
28
+ "lib/templates/application.css",
29
+ "lib/templates/base.css",
30
+ "lib/templates/gridz.css",
31
+ "lib/templates/reset.css",
32
+ "test/jplug_test.rb",
33
+ "test/test_helper.rb"
34
+ ]
35
+ s.has_rdoc = true
36
+ s.homepage = %q{http://github.com/tschmidt/jplug}
37
+ s.rdoc_options = ["--charset=UTF-8"]
38
+ s.require_paths = ["lib"]
39
+ s.rubygems_version = %q{1.3.1}
40
+ s.summary = %q{Creates the base file structure for jquery plugins.}
41
+ s.test_files = [
42
+ "test/jplug_test.rb",
43
+ "test/test_helper.rb"
44
+ ]
45
+
46
+ if s.respond_to? :specification_version then
47
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
+ s.specification_version = 2
49
+
50
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
51
+ else
52
+ end
53
+ else
54
+ end
55
+ end
@@ -0,0 +1,151 @@
1
+ module Fillers
2
+
3
+ def skin_filler
4
+ gray1 = "#555"
5
+ gray2 = "#e5e5e5"
6
+ gray3 = "#d5d5d5"
7
+ gray4 = "#c5c5c5"
8
+ blue = "#6b99bf"
9
+ border1 = "1px solid #{gray2}"
10
+ border2 = "2px solid #{gray3}"
11
+ border3 = "2px solid #{gray4}"
12
+
13
+ <<-SKIN
14
+ /*
15
+
16
+ Skin
17
+
18
+ Author: #{author_name}
19
+ Date: #{Date.today.strftime("%d %b, %Y")}
20
+
21
+ Description:
22
+ ===============================================================
23
+ Place styles that will affect the look and feel for your site.
24
+ You should not have to modify reset.css, typography.css, grids.css
25
+ or application.css if you are using the grids css system.
26
+
27
+ */
28
+
29
+ body {
30
+ color: #555;
31
+ }
32
+
33
+ #container {
34
+ border-top: #{border1};
35
+ border-left: #{border1};
36
+ border-right: #{border2};
37
+ border-bottom: #{border3};
38
+ margin: 2.30em auto;
39
+ padding: 0.77em;
40
+ width: 73.85em;
41
+ }
42
+
43
+ #pagetitle {
44
+ border-bottom: 2px solid #{gray2};
45
+ padding-bottom: 0.385em;
46
+ }
47
+
48
+ #pagetitle span {
49
+ color: #{blue};
50
+ }
51
+
52
+ .clearfix {
53
+ overflow: hidden;
54
+ _overflow: visible;
55
+ zoom: 1;
56
+ }
57
+
58
+ pre {
59
+ background-color: #{gray2};
60
+ margin-bottom: 0.77em;
61
+ overflow: auto;
62
+ padding: 0.77em;
63
+ }
64
+
65
+ table {
66
+ background-color: #efefef;
67
+ border-collapse: collapse;
68
+ border-color: #999;
69
+ width: 100%;
70
+ }
71
+
72
+ tr, td, th {
73
+ border-color: #ccc;
74
+ }
75
+
76
+ tr:nth-child(even) {
77
+ background-color: #f5f5f5;
78
+ }
79
+
80
+ th {
81
+ background-color: #444;
82
+ color: #fff;
83
+ }
84
+ SKIN
85
+ end
86
+
87
+ def index_filler
88
+ <<-INDEX
89
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
90
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
91
+
92
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
93
+ <head>
94
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
95
+ <title>#{project_name}</title>
96
+
97
+ <link rel="stylesheet" href="stylesheets/application.css" type="text/css" media="screen" title="no title" charset="utf-8">
98
+ <script src="javascripts/jquery-1.3.2.js" type="text/javascript" charset="utf-8"></script>
99
+ <script src="javascripts/jquery.easing.1.3.js" type="text/javascript" charset="utf-8"></script>
100
+ <script src="../lib/jquery.#{project_name}.js" type="text/javascript" charset="utf-8"></script>
101
+ </head>
102
+
103
+ <body>
104
+ <div id="container">
105
+ <h1 id="pagetitle">jQuery Plugin: <span>#{project_name}</span></h1>
106
+
107
+ <h2>Description</h2>
108
+ <p>Place your plugin description here.</p>
109
+
110
+ <h2>Options</h2>
111
+ <p>Place any options for your plugin here.</p>
112
+
113
+ <h2>Examples</h2>
114
+ <p>Place any examples for your plugin here.</p>
115
+ </div>
116
+ </body>
117
+ </html>
118
+ INDEX
119
+ end
120
+
121
+ def js_filler
122
+ <<-JS
123
+ /**
124
+ * #{project_name} - jQuery Plugin
125
+ *
126
+ * Version - 0.1
127
+ *
128
+ * Copyright (c) #{Date.today.year} #{author_name}
129
+ *
130
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
131
+ * this software and associated documentation files (the "Software"), to deal in
132
+ * the Software without restriction, including without limitation the rights to
133
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
134
+ * the Software, and to permit persons to whom the Software is furnished to do so,
135
+ * subject to the following conditions:
136
+ *
137
+ * The above copyright notice and this permission notice shall be included in all
138
+ * copies or substantial portions of the Software.
139
+ *
140
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
141
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
142
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
143
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
144
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
145
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
146
+ *
147
+ */
148
+ JS
149
+ end
150
+
151
+ end
data/lib/jquery.rb ADDED
@@ -0,0 +1,80 @@
1
+ require 'jquery/fillers'
2
+
3
+ class JQuery
4
+ include Fillers
5
+ attr_accessor :author_name, :extras, :install_dir, :project_name
6
+
7
+ def initialize(opts)
8
+ @author_name = opts[:author_name]
9
+ @extras = opts[:extras]
10
+ @project_name = opts[:unclaimed].first.
11
+ gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
12
+ gsub(/([a-z\d])([A-Z])/,'\1_\2').
13
+ tr('-', '_').
14
+ downcase
15
+ @install_dir = File.join(opts[:dest], @project_name)
16
+ manifest
17
+ end
18
+
19
+ def manifest
20
+ directory "lib"
21
+ directory "html"
22
+ directory "html/stylesheets"
23
+ directory "html/javascripts"
24
+
25
+ template 'application.css', "/html/stylesheets/application.css"
26
+ template 'reset.css', "/html/stylesheets/reset.css"
27
+ template 'base.css', "/html/stylesheets/base.css"
28
+ template 'gridz.css', "/html/stylesheets/gridz.css"
29
+
30
+ file '/html/stylesheets/skin.css', :skin_filler
31
+ file '/html/index.html', :index_filler
32
+ file "/lib/jquery.#{project_name}.js", :js_filler
33
+ end
34
+
35
+ private
36
+
37
+ def directory(relative_path)
38
+ path = destination_path(relative_path)
39
+ if File.exist?(path)
40
+ $stdout.puts "#{path} already exists"
41
+ else
42
+ $stdout.puts "Creating #{path}"
43
+ FileUtils.mkdir_p path
44
+ end
45
+ end
46
+
47
+ def template(relative_source, relative_destination)
48
+ source = template_file(relative_source)
49
+ destination = destination_path(relative_destination)
50
+ if File.exist?(destination)
51
+ $stdout.puts "#{destination} already exists"
52
+ else
53
+ $stdout.puts "Creating #{destination}"
54
+ File.open(destination, 'wb') do |f|
55
+ f.write File.read(source)
56
+ end
57
+ end
58
+ end
59
+
60
+ def file(relative_destination, filler)
61
+ destination = destination_path(relative_destination)
62
+ if File.exist?(destination)
63
+ $stdout.puts "#{destination} already exists"
64
+ else
65
+ $stdout.puts "Creating #{destination}"
66
+ File.open(destination, 'wb') do |f|
67
+ f.write self.send filler
68
+ end
69
+ end
70
+ end
71
+
72
+ def destination_path(relative_path)
73
+ File.join(install_dir, relative_path)
74
+ end
75
+
76
+ def template_file(relative_source)
77
+ File.join(File.dirname(__FILE__), 'templates', relative_source)
78
+ end
79
+
80
+ end
@@ -0,0 +1,20 @@
1
+ /*
2
+
3
+ Place links to other stylesheets here. The reason we do this that
4
+ older browser or browsers that do not support CSS will ignore these
5
+ @import definitions.
6
+
7
+ */
8
+
9
+ /* Reset browser defaults */
10
+ @import 'reset.css';
11
+
12
+ /* Set base styles */
13
+ @import 'base.css';
14
+
15
+ /* Allows for grid based layouts
16
+ See the grids.css for more information */
17
+ @import 'gridz.css';
18
+
19
+ /* The skin for this site */
20
+ @import 'skin.css';
@@ -0,0 +1,133 @@
1
+ /*
2
+
3
+ Base
4
+
5
+ Author: Terry Schmidt
6
+ Date: 27 Feb, 2007
7
+
8
+ Description:
9
+ ===============================================================
10
+ The Base stylesheet will set some standard defaults for
11
+ the website. This will help eliminate the need to create this
12
+ everytime you want to start a new site.
13
+
14
+ **Information in this file should not be altered in any way. If
15
+ you need to change the way one of these settings performs you
16
+ should create a separate CSS file to store your modifications
17
+ (e.g. skin.css, site.css, application.css, etc).
18
+
19
+ */
20
+ body {
21
+ font-size: 13px;
22
+ font-family: Arial, "MS Trebuchet", sans-serif;
23
+ line-height: 16px;
24
+ }
25
+
26
+ /*
27
+
28
+ The following table designates the percentages that will specify a
29
+ particular font size. This table is based on the CSS foundation
30
+ defined above. If you change the default font size from 13px to
31
+ something else these percentages will not longer be valid.
32
+
33
+ To convert pixel to percentage use the following example:
34
+
35
+ [desired_pixel] / [base_pixel] * 100 = [declared_percent]
36
+
37
+ Example:
38
+
39
+ 10 / 13 * 100 = 76.92
40
+
41
+ If you want this size in pixels (px) Declare this percent (%)
42
+ =================================================================
43
+ 10 76.9
44
+ 11 84.6
45
+ 12 92.3
46
+ 13 100
47
+ 14 107.6
48
+ 15 115.4
49
+ 16 123.1
50
+ 17 130.8
51
+ 18 138.5
52
+ 19 146.5
53
+ 20 153.9
54
+ 21 161.6
55
+ 22 167
56
+ 23 174
57
+ 24 182
58
+ 25 189
59
+ 26 197
60
+
61
+ */
62
+
63
+ h1 {
64
+ /*26px via CSS foundation*/
65
+ font-size: 197%;
66
+ }
67
+
68
+ h2 {
69
+ /*22px via CSS foundation*/
70
+ font-size: 167%;
71
+ }
72
+
73
+ h3 {
74
+ /*19px via CSS foundation*/
75
+ font-size: 146.5%;
76
+ }
77
+
78
+ h1,h2,h3 {
79
+ margin: 0;
80
+ }
81
+
82
+ h1,h2,h3,h4,h5,h6,strong {
83
+ font-weight: bold;
84
+ line-height: 1;
85
+ }
86
+
87
+ abbr,acronym {
88
+ border-bottom: 1px dotted #000;
89
+ cursor: help;
90
+ }
91
+
92
+ em {
93
+ font-style: italic;
94
+ }
95
+
96
+ blockquote,ul,ol,dl {
97
+ margin: 1em;
98
+ }
99
+
100
+ ol,ul,dl {
101
+ margin-left: 2em;
102
+ }
103
+
104
+ ol li {
105
+ list-style: decimal outside;
106
+ }
107
+
108
+ ul li {
109
+ list-style: disc outside;
110
+ }
111
+
112
+ dl dd {
113
+ margin-left: 1em;
114
+ }
115
+
116
+ th,td {
117
+ border: 1px solid #000;
118
+ padding: 0.5em;
119
+ }
120
+
121
+ th {
122
+ font-weight: bold;
123
+ text-align: center;
124
+ }
125
+
126
+ caption {
127
+ margin-bottom: 0.5em;
128
+ text-align:center;
129
+ }
130
+
131
+ p,fieldset,table {
132
+ margin-bottom: 1em;
133
+ }
@@ -0,0 +1,81 @@
1
+ /*
2
+
3
+ Gridz
4
+
5
+ Author: Terry Schmidt
6
+ Date: 21 Oct, 2008
7
+
8
+ */
9
+
10
+ .row,
11
+ .lastGrid {
12
+ overflow: hidden;
13
+ _overflow: visible;
14
+ zoom: 1;
15
+ width: auto !important;
16
+ }
17
+
18
+ .column {
19
+ float: left;
20
+ zoom: 1;
21
+ }
22
+
23
+ /*
24
+ ===============================================================================
25
+ Column Classes
26
+ ===============================================================================
27
+ */
28
+
29
+ .grid1of1 {
30
+ float: none;
31
+ }
32
+
33
+ .grid1of2 {
34
+ width: 50%;
35
+ _width: 49.9% !important;
36
+ }
37
+
38
+ .grid1of3 {
39
+ width: 33.332%;
40
+ _width: 33.25% !important;
41
+ }
42
+
43
+ .grid2of3 {
44
+ width: 66.665%;
45
+ _width: 66.65% !important;
46
+ }
47
+
48
+ .grid1of4 {
49
+ width:25%;
50
+ _width:24.95% !important;
51
+ }
52
+
53
+ .grid2of4 {
54
+ width: 50%;
55
+ _width: 49.9% !important;
56
+ }
57
+
58
+ .grid3of4 {
59
+ width:75%;
60
+ _width:74.95% !important;
61
+ }
62
+
63
+ .grid1of5 {
64
+ width:20%;
65
+ _width:19.95% !important;
66
+ }
67
+
68
+ .grid2of5 {
69
+ width:40%;
70
+ _width:39.95% !important;
71
+ }
72
+
73
+ .grid3of5 {
74
+ width:60%;
75
+ _width:59.95% !important;
76
+ }
77
+
78
+ .grid4of5 {
79
+ width:80%;
80
+ _width:79.95% !important;
81
+ }
@@ -0,0 +1,60 @@
1
+ /*
2
+
3
+ Reset
4
+
5
+ Author: Terry Schmidt
6
+ Date: 27 Sep, 2007
7
+
8
+ Description:
9
+ ===============================================================
10
+ Reset will (and this should be obvious) "reset" the default
11
+ browser styles. This will allow you to (for the most part) write
12
+ css styles that will work consistantly across browsers. This MUST
13
+ be the first file you include for your css files.
14
+
15
+ **Information in this file SHOULD NOT be altered in any way. If
16
+ you need to change the way one of these settings performs you
17
+ should create a separate CSS file to store your modifications
18
+ (e.g. skin.css, site.css, application.css, etc).
19
+
20
+ */
21
+
22
+ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
23
+ margin:0;
24
+ padding:0;
25
+ }
26
+
27
+ table {
28
+ border-collapse:collapse;
29
+ border-spacing:0;
30
+ }
31
+
32
+ fieldset,img {
33
+ border:0;
34
+ }
35
+
36
+ address,caption,cite,code,dfn,em,strong,th,var {
37
+ font-style:normal;
38
+ font-weight:normal;
39
+ }
40
+
41
+ ol,ul {
42
+ list-style:none;
43
+ }
44
+
45
+ caption,th {
46
+ text-align:left;
47
+ }
48
+
49
+ h1,h2,h3,h4,h5,h6 {
50
+ font-size:100%;
51
+ font-weight:normal;
52
+ }
53
+
54
+ q:before,q:after {
55
+ content:'';
56
+ }
57
+
58
+ abbr,acronym {
59
+ border:0;
60
+ }
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class JplugTest < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'jplug'
8
+
9
+ class Test::Unit::TestCase
10
+ end
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tschmidt-jplug
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Terry Schmidt
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-08-03 00:00:00 -07:00
13
+ default_executable: jplug
14
+ dependencies: []
15
+
16
+ description:
17
+ email: tschmidt@ext-inc.com
18
+ executables:
19
+ - jplug
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - LICENSE
24
+ - README.rdoc
25
+ files:
26
+ - .document
27
+ - .gitignore
28
+ - LICENSE
29
+ - README.rdoc
30
+ - Rakefile
31
+ - VERSION
32
+ - bin/jplug
33
+ - jplug.gemspec
34
+ - lib/jquery.rb
35
+ - lib/jquery/fillers.rb
36
+ - lib/templates/application.css
37
+ - lib/templates/base.css
38
+ - lib/templates/gridz.css
39
+ - lib/templates/reset.css
40
+ - test/jplug_test.rb
41
+ - test/test_helper.rb
42
+ has_rdoc: true
43
+ homepage: http://github.com/tschmidt/jplug
44
+ licenses:
45
+ post_install_message:
46
+ rdoc_options:
47
+ - --charset=UTF-8
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: "0"
55
+ version:
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: "0"
61
+ version:
62
+ requirements: []
63
+
64
+ rubyforge_project:
65
+ rubygems_version: 1.3.5
66
+ signing_key:
67
+ specification_version: 2
68
+ summary: Creates the base file structure for jquery plugins.
69
+ test_files:
70
+ - test/jplug_test.rb
71
+ - test/test_helper.rb