bootcamp 0.1.0 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +3 -1
- data/NOTES +16 -3
- data/README.rdoc +50 -19
- data/VERSION +1 -1
- data/bootcamp.gemspec +11 -6
- data/lib/bootcamp.rb +2 -8
- data/lib/bootcamp/armory.rb +9 -3
- data/lib/bootcamp/depot.rb +16 -0
- data/lib/bootcamp/drill_instructor.rb +34 -83
- data/lib/bootcamp/manifest/bootstrap.rb +52 -0
- data/lib/bootcamp/{formations → manifest}/core.rb +2 -2
- data/lib/bootcamp/manifest/dojo.rb +11 -0
- data/lib/bootcamp/{formations → manifest}/html.rb +3 -3
- data/lib/bootcamp/{formations → manifest}/jquery.rb +2 -2
- data/lib/bootcamp/manifest/midori.rb +11 -0
- data/lib/bootcamp/manifest/mootools.rb +22 -0
- data/lib/bootcamp/manifest/prototype.rb +18 -0
- data/lib/bootcamp/recruit.rb +21 -12
- data/vendor/core.js +44 -1
- metadata +12 -7
- data/Gemfile.lock +0 -36
data/LICENSE.txt
CHANGED
data/NOTES
CHANGED
data/README.rdoc
CHANGED
@@ -1,36 +1,67 @@
|
|
1
1
|
= bootcamp
|
2
2
|
|
3
|
-
Bootcamp is a gem to help you create one hell of a JavaScript Plugin.
|
3
|
+
Bootcamp is a gem to help you create one hell of a JavaScript Plugin, and manage it.
|
4
4
|
|
5
|
-
|
5
|
+
**This project is in early stages, and may change quite a bit still
|
6
|
+
|
7
|
+
= Installation
|
8
|
+
|
9
|
+
gem install bootcamp
|
10
|
+
|
11
|
+
== Usage
|
12
|
+
Brings up the help menu
|
13
|
+
|
14
|
+
$ bootcamp
|
15
|
+
$ bootcamp help
|
16
|
+
$ bootcamp -h
|
17
|
+
|
18
|
+
|
19
|
+
Generate a new core javascript plugin
|
20
|
+
|
21
|
+
$ bootcamp generate some_plugin_name
|
22
|
+
$ bootcamp g some_cool_plugin
|
23
|
+
|
24
|
+
|
25
|
+
Specifying a framework (only these available for now)
|
26
|
+
|
27
|
+
$ bootcamp g my_plugin -f jquery
|
28
|
+
$ bootcamp g my_plugin -f prototype
|
29
|
+
$ bootcamp g my_plugin -f dojo
|
30
|
+
$ bootcamp g my_plugin -f mootools
|
31
|
+
$ bootcamp g my_plugin -f midori
|
32
|
+
|
33
|
+
|
34
|
+
Specifying a testing suite (only these available for now)
|
35
|
+
|
36
|
+
$ bootcamp g my_plugin -t jasmine # This is the default test suite
|
37
|
+
$ bootcamp g my_plugin -t jspec
|
38
|
+
$ bootcamp g my_plugin -t qunit
|
39
|
+
|
6
40
|
|
7
41
|
== The future
|
42
|
+
**These features are only future ideas. None of these are implemented yet
|
8
43
|
|
9
|
-
|
10
|
-
The gem will
|
11
|
-
1. pull in the latest version of that library you specified
|
12
|
-
2. Setup all the cool git stuff
|
13
|
-
3. Allow you to push to the JavaScript Headquarters (JSHQ.org)
|
44
|
+
Promoting will allow you to update the version of your plugin.
|
14
45
|
|
15
|
-
|
16
|
-
|
46
|
+
$ bootcamp promote my_plugin -l patch
|
47
|
+
$ bootcamp promote my_plugin -l minor
|
48
|
+
$ bootcamp promote my_plugin -l major
|
17
49
|
|
18
|
-
Fire Team:
|
19
|
-
These are all the dependencies your script will need (not including the main library i.e. jQuery-UI)
|
20
50
|
|
21
|
-
|
22
|
-
This sends your script into battle with its team ready for the world to use.
|
51
|
+
Compression will allow you to minify your scripts for production use.
|
23
52
|
|
24
|
-
|
25
|
-
These will allow you to bump up the version number because of an upgrade
|
53
|
+
$ bootcamp compress my_plugin
|
26
54
|
|
27
|
-
Demoting:
|
28
|
-
Take the plugin down a notch because of a downgrade
|
29
55
|
|
30
|
-
|
31
|
-
|
56
|
+
Deployment will allow you to ship your plugin off to the JavaScript Headquarters (JSHQ)
|
57
|
+
|
58
|
+
$ bootcamp deploy my_plugin
|
32
59
|
|
33
60
|
|
61
|
+
Converting will allow you to create a CoffeeScript version of your plugin
|
62
|
+
|
63
|
+
$ bootcamp convert my_plugin
|
64
|
+
|
34
65
|
|
35
66
|
== Contributing to bootcamp
|
36
67
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/bootcamp.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{bootcamp}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jeremy Woertink"]
|
12
|
-
s.date = %q{2011-06-
|
12
|
+
s.date = %q{2011-06-15}
|
13
13
|
s.default_executable = %q{bootcamp}
|
14
14
|
s.description = %q{Check out the README file for more info}
|
15
15
|
s.email = %q{jeremywoertink@gmail.com}
|
@@ -23,7 +23,6 @@ Gem::Specification.new do |s|
|
|
23
23
|
".rspec",
|
24
24
|
".rvmrc",
|
25
25
|
"Gemfile",
|
26
|
-
"Gemfile.lock",
|
27
26
|
"LICENSE.txt",
|
28
27
|
"NOTES",
|
29
28
|
"README.rdoc",
|
@@ -33,10 +32,16 @@ Gem::Specification.new do |s|
|
|
33
32
|
"bootcamp.gemspec",
|
34
33
|
"lib/bootcamp.rb",
|
35
34
|
"lib/bootcamp/armory.rb",
|
35
|
+
"lib/bootcamp/depot.rb",
|
36
36
|
"lib/bootcamp/drill_instructor.rb",
|
37
|
-
"lib/bootcamp/
|
38
|
-
"lib/bootcamp/
|
39
|
-
"lib/bootcamp/
|
37
|
+
"lib/bootcamp/manifest/bootstrap.rb",
|
38
|
+
"lib/bootcamp/manifest/core.rb",
|
39
|
+
"lib/bootcamp/manifest/dojo.rb",
|
40
|
+
"lib/bootcamp/manifest/html.rb",
|
41
|
+
"lib/bootcamp/manifest/jquery.rb",
|
42
|
+
"lib/bootcamp/manifest/midori.rb",
|
43
|
+
"lib/bootcamp/manifest/mootools.rb",
|
44
|
+
"lib/bootcamp/manifest/prototype.rb",
|
40
45
|
"lib/bootcamp/recruit.rb",
|
41
46
|
"spec/bootcamp_spec.rb",
|
42
47
|
"spec/spec_helper.rb",
|
data/lib/bootcamp.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
|
+
require 'thor'
|
3
|
+
require 'bootcamp/depot'
|
2
4
|
require 'bootcamp/drill_instructor'
|
3
5
|
require 'bootcamp/recruit'
|
4
6
|
require 'bootcamp/armory'
|
@@ -7,14 +9,6 @@ module Bootcamp
|
|
7
9
|
VERSION = File.read(File.join(File.dirname(__FILE__), "..", "VERSION"))
|
8
10
|
|
9
11
|
class << self
|
10
|
-
def to_s
|
11
|
-
<<-HELP
|
12
|
-
Usage:
|
13
|
-
bootcamp PROJECT_NAME [-f framework] [-t test_suite]
|
14
|
-
|
15
|
-
HELP
|
16
|
-
end
|
17
|
-
|
18
12
|
def root
|
19
13
|
File.expand_path(File.join(File.dirname(__FILE__), '..')).to_s
|
20
14
|
end
|
data/lib/bootcamp/armory.rb
CHANGED
@@ -9,12 +9,18 @@ module Bootcamp
|
|
9
9
|
|
10
10
|
def initialize
|
11
11
|
@git = Git.init
|
12
|
+
checkin("First Commit")
|
13
|
+
# need to add the repo origin, and branch.
|
12
14
|
end
|
13
15
|
|
14
|
-
def checkin
|
16
|
+
def checkin(message = "Simple Commit")
|
15
17
|
@git.add('.')
|
16
|
-
@git.commit(
|
17
|
-
|
18
|
+
@git.commit(message)
|
18
19
|
end
|
20
|
+
|
21
|
+
def deposit
|
22
|
+
# pushes the files up
|
23
|
+
end
|
24
|
+
|
19
25
|
end
|
20
26
|
end
|
@@ -1,95 +1,46 @@
|
|
1
|
-
require 'thor/group'
|
2
|
-
|
3
1
|
module Bootcamp
|
4
2
|
|
5
|
-
#
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
File.dirname(__FILE__)
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
create_file File.join(name, '.gitignore') do
|
22
|
-
<<-GIT
|
23
|
-
.DS_Store
|
24
|
-
*.tmproj
|
25
|
-
tmtags
|
26
|
-
*.swp
|
27
|
-
**/Thumbs.db
|
28
|
-
GIT
|
29
|
-
end
|
30
|
-
create_file File.join(name, "README") do
|
31
|
-
<<-DOC
|
32
|
-
#{name.capitalize} JavaScript Plugin
|
33
|
-
Created: #{Time.now.strftime("%m/%d/%Y")}
|
34
|
-
DOC
|
35
|
-
end
|
36
|
-
create_file File.join(name, 'LICENSE') do
|
37
|
-
<<-DOC
|
38
|
-
----------------------------------------------------------------------------
|
39
|
-
#{name} #{options[:framework]} plugin
|
40
|
-
v 0.0.1
|
41
|
-
Dual licensed under the MIT and GPL licenses.
|
42
|
-
----------------------------------------------------------------------------
|
43
|
-
Copyright (C) #{Time.now.year}
|
44
|
-
WEBSITE_CAN_GO_HERE
|
45
|
-
----------------------------------------------------------------------------
|
46
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
47
|
-
of this software and associated documentation files (the "Software"), to deal
|
48
|
-
in the Software without restriction, including without limitation the rights
|
49
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
50
|
-
copies of the Software, and to permit persons to whom the Software is
|
51
|
-
furnished to do so, subject to the following conditions:
|
52
|
-
|
53
|
-
The above copyright notice and this permission notice shall be included in
|
54
|
-
all copies or substantial portions of the Software.
|
55
|
-
|
56
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
57
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
58
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
59
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
60
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
61
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
62
|
-
THE SOFTWARE.
|
63
|
-
----------------------------------------------------------------------------
|
64
|
-
DOC
|
65
|
-
end
|
66
|
-
empty_directory File.join(name, 'vendor')
|
67
|
-
empty_directory File.join(name, 'tests')
|
3
|
+
# DrillInstructor controls the bootcamp with all the different commands
|
4
|
+
class DrillInstructor < Bootcamp::Depot
|
5
|
+
source_root File.dirname(__FILE__)
|
6
|
+
|
7
|
+
desc "generate [PROJECT]", "creates a new project with the name PROJECT"
|
8
|
+
map "g" => :generate
|
9
|
+
method_options %w(framework -f) => "core"
|
10
|
+
method_options %w(test_suite -t) => "jasmine"
|
11
|
+
def generate(project = "hello_world")
|
12
|
+
@project = project
|
13
|
+
say "Generating #{@project} plugin", :blue
|
14
|
+
apply File.expand_path(File.join("manifest", "bootstrap.rb"), File.dirname(__FILE__))
|
15
|
+
apply File.expand_path("manifest/html.rb", File.dirname(__FILE__))
|
16
|
+
apply File.expand_path("manifest/#{options[:framework]}.rb", File.dirname(__FILE__))
|
17
|
+
armory = Armory.new
|
18
|
+
|
68
19
|
end
|
69
20
|
|
70
|
-
|
71
|
-
|
72
|
-
|
21
|
+
desc "promote PROJECT [LEVEL]", "give your PROJECT a promotion updating the verion by patch, minor, or major"
|
22
|
+
method_options %w(level -l) => "patch"
|
23
|
+
def promote(project)
|
24
|
+
# :patch, :minor, :major
|
25
|
+
level = options[:level]
|
26
|
+
|
27
|
+
say "Promotions not ready yet", :red
|
73
28
|
end
|
74
29
|
|
75
|
-
|
76
|
-
|
30
|
+
desc "compress PROJECT", "minify the scripts for PROJECT"
|
31
|
+
def compress(project)
|
32
|
+
say "Compression not ready yet", :red
|
77
33
|
end
|
78
34
|
|
79
|
-
|
80
|
-
|
35
|
+
desc "deploy PROJECT", "deploys the PROJECT to JSHQ.org"
|
36
|
+
def deploy(project)
|
37
|
+
say "Deployment not ready yet", :red
|
81
38
|
end
|
82
39
|
|
83
|
-
|
84
|
-
|
85
|
-
|
40
|
+
desc "convert PROJECT", "converts PROJECT into CoffeeScript"
|
41
|
+
def convert(project)
|
42
|
+
say "Conversions not ready yet", :red
|
86
43
|
end
|
87
|
-
|
88
|
-
def armory
|
89
|
-
@armory = Armory.new
|
90
|
-
@armory.checkin
|
91
|
-
end
|
92
|
-
|
93
|
-
end
|
94
44
|
|
95
|
-
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
create_file File.join(@project, 'lib', "#{@project}.js")
|
2
|
+
create_file File.join(@project, '.gitignore') do
|
3
|
+
<<-GIT
|
4
|
+
.DS_Store
|
5
|
+
*.tmproj
|
6
|
+
tmtags
|
7
|
+
*.swp
|
8
|
+
**/Thumbs.db
|
9
|
+
GIT
|
10
|
+
end
|
11
|
+
create_file File.join(@project, "README") do
|
12
|
+
<<-DOC
|
13
|
+
#{@project.capitalize} JavaScript Plugin
|
14
|
+
Created: #{Time.now.strftime("%m/%d/%Y")}
|
15
|
+
DOC
|
16
|
+
end
|
17
|
+
create_file File.join(@project, 'LICENSE') do
|
18
|
+
<<-DOC
|
19
|
+
----------------------------------------------------------------------------
|
20
|
+
#{@project} #{options[:framework]} plugin
|
21
|
+
v 0.0.1
|
22
|
+
Dual licensed under the MIT and GPL licenses.
|
23
|
+
----------------------------------------------------------------------------
|
24
|
+
Copyright (C) #{Time.now.year}
|
25
|
+
WEBSITE_CAN_GO_HERE
|
26
|
+
----------------------------------------------------------------------------
|
27
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
28
|
+
of this software and associated documentation files (the "Software"), to deal
|
29
|
+
in the Software without restriction, including without limitation the rights
|
30
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
31
|
+
copies of the Software, and to permit persons to whom the Software is
|
32
|
+
furnished to do so, subject to the following conditions:
|
33
|
+
|
34
|
+
The above copyright notice and this permission notice shall be included in
|
35
|
+
all copies or substantial portions of the Software.
|
36
|
+
|
37
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
38
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
39
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
40
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
41
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
42
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
43
|
+
THE SOFTWARE.
|
44
|
+
----------------------------------------------------------------------------
|
45
|
+
DOC
|
46
|
+
end
|
47
|
+
empty_directory File.join(@project, 'vendor')
|
48
|
+
empty_directory File.join(@project, 'tests')
|
49
|
+
library = "#{options[:framework]}.js"
|
50
|
+
copy_file File.join(Bootcamp.root, 'vendor', library), File.join(@project, 'vendor', library)
|
51
|
+
test_suite = options[:test_suite]
|
52
|
+
directory File.join(Bootcamp.root, 'vendor', 'test_suites', test_suite), File.join(@project, 'tests', test_suite)
|
@@ -1,16 +1,16 @@
|
|
1
|
-
create_file "#{
|
1
|
+
create_file "#{@project}/index.html" do
|
2
2
|
<<-HTML
|
3
3
|
<!DOCTYPE html>
|
4
4
|
<html>
|
5
5
|
<head>
|
6
|
-
<title>#{
|
6
|
+
<title>#{@project.upcase} Javascript Plugin</title>
|
7
7
|
<meta charset="utf-8">
|
8
8
|
</head>
|
9
9
|
<body>
|
10
10
|
<h1>Hello World</h1>
|
11
11
|
<button onclick="">TEST</button>
|
12
12
|
<script charset="utf-8" src="vendor/#{options[:framework]}.js"></script>
|
13
|
-
<script charset="utf-8" src="lib/#{
|
13
|
+
<script charset="utf-8" src="lib/#{@project}.js"></script>
|
14
14
|
</body>
|
15
15
|
</html>
|
16
16
|
HTML
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# This is the mootols template
|
2
|
+
append_file "#{@project}/lib/#{@project}.js" do
|
3
|
+
<<-JS
|
4
|
+
|
5
|
+
var #{@project.capitalize} = new Class({
|
6
|
+
Implements: [Options, Events],
|
7
|
+
options: {
|
8
|
+
message: 'hello world'
|
9
|
+
},
|
10
|
+
initialize: function(options) {
|
11
|
+
this.setOptions(options);
|
12
|
+
},
|
13
|
+
run: function() {
|
14
|
+
alert(this.options.message);
|
15
|
+
}
|
16
|
+
|
17
|
+
});
|
18
|
+
|
19
|
+
var h = new #{@project.capitalize}();
|
20
|
+
h.run();
|
21
|
+
JS
|
22
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This is the prototype template
|
2
|
+
append_file "#{@project}/lib/#{@project}.js" do
|
3
|
+
<<-JS
|
4
|
+
|
5
|
+
#{@project.capitalize}Options = Object.extend({
|
6
|
+
message: 'Hello World'
|
7
|
+
}, window.#{@project.capitalize}Options || {});
|
8
|
+
|
9
|
+
var #{@project.capitalize} = Class.create();
|
10
|
+
|
11
|
+
#{@project.capitalize}.prototype = {
|
12
|
+
initialize: function() {
|
13
|
+
alert(#{@project.capitalize}Options.message);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
JS
|
18
|
+
end
|
data/lib/bootcamp/recruit.rb
CHANGED
@@ -1,28 +1,37 @@
|
|
1
|
-
|
2
1
|
module Bootcamp
|
3
2
|
|
4
3
|
# A recruit is only given orders by a drill instructor
|
5
4
|
class Recruit
|
5
|
+
include Depot::Tasks
|
6
|
+
|
7
|
+
attr_accessor :project, :framework, :test_suite
|
6
8
|
|
7
9
|
#orders are the options given to a recruit
|
8
10
|
def initialize(orders = {})
|
9
|
-
|
11
|
+
self.class.instance_methods.each do |meth|
|
12
|
+
instance_variable_set("@#{meth}", orders[meth]) if orders.key?(meth)
|
13
|
+
end
|
10
14
|
end
|
11
15
|
|
12
|
-
#
|
13
|
-
|
14
|
-
# e.g. jquery, mootools, etc...
|
15
|
-
def unit
|
16
|
-
@unit
|
16
|
+
#Create project files and folders
|
17
|
+
def setup_project
|
17
18
|
end
|
18
19
|
|
19
|
-
#Get the library based off the
|
20
|
+
#Get the library based off the project
|
20
21
|
def recon_library
|
21
|
-
|
22
|
-
|
23
|
-
|
22
|
+
end
|
23
|
+
|
24
|
+
#Read proper manifest documents
|
25
|
+
def run_manifest
|
26
|
+
end
|
27
|
+
|
28
|
+
#Set actual plugin
|
29
|
+
def initialize_plugin
|
30
|
+
end
|
31
|
+
|
32
|
+
#Create plugin tests
|
33
|
+
def prepare_tests
|
24
34
|
end
|
25
35
|
|
26
36
|
end
|
27
|
-
|
28
37
|
end
|
data/vendor/core.js
CHANGED
@@ -1 +1,44 @@
|
|
1
|
-
//
|
1
|
+
// Initialize functions
|
2
|
+
(function() {
|
3
|
+
|
4
|
+
// Use the new getElementsByClassName or create one if it's an older browser
|
5
|
+
if(!(typeof document.getElementsByClassName !== "undefined" && document.getElementsByClassName !== null)) {
|
6
|
+
Document.prototype.getElementsByClassName = function(className) {
|
7
|
+
var elements = [],
|
8
|
+
nodes = this.getElementsByTagName('*'),
|
9
|
+
i,
|
10
|
+
pattern = new RegExp("(^|\\s)"+className+"(\\s|$)");
|
11
|
+
for(i = 0; i < nodes.length; i++) {
|
12
|
+
if(pattern.test(nodes[i].className)) elements.push(nodes[i]);
|
13
|
+
}
|
14
|
+
|
15
|
+
return elements;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
// Strip helpers
|
20
|
+
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); }
|
21
|
+
|
22
|
+
// Date helpers
|
23
|
+
var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
24
|
+
var days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
|
25
|
+
Date.prototype.getMonthName = function() { return months[this.getMonth()]; }
|
26
|
+
Date.prototype.getDayName = function() { return days[this.getDay()]; }
|
27
|
+
Date.prototype.getAbbrMonthName = function() { return months[this.getMonth()].substr(0, 3); }
|
28
|
+
Date.prototype.getAbbrDayName = function() { return days[this.getDay()].substr(0, 3); }
|
29
|
+
|
30
|
+
// Array helpers
|
31
|
+
// [1,2,3].each(function(i) { alert(i); });
|
32
|
+
Array.prototype.each = function(iterator, context) {
|
33
|
+
var index = 0;
|
34
|
+
try {
|
35
|
+
this.forEach(function(value) {
|
36
|
+
iterator.call(context, value, index++);
|
37
|
+
});
|
38
|
+
} catch (e) {
|
39
|
+
throw e;
|
40
|
+
}
|
41
|
+
return this;
|
42
|
+
}
|
43
|
+
|
44
|
+
})();
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: bootcamp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jeremy Woertink
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-06-
|
13
|
+
date: 2011-06-15 00:00:00 -07:00
|
14
14
|
default_executable: bootcamp
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -126,7 +126,6 @@ files:
|
|
126
126
|
- .rspec
|
127
127
|
- .rvmrc
|
128
128
|
- Gemfile
|
129
|
-
- Gemfile.lock
|
130
129
|
- LICENSE.txt
|
131
130
|
- NOTES
|
132
131
|
- README.rdoc
|
@@ -136,10 +135,16 @@ files:
|
|
136
135
|
- bootcamp.gemspec
|
137
136
|
- lib/bootcamp.rb
|
138
137
|
- lib/bootcamp/armory.rb
|
138
|
+
- lib/bootcamp/depot.rb
|
139
139
|
- lib/bootcamp/drill_instructor.rb
|
140
|
-
- lib/bootcamp/
|
141
|
-
- lib/bootcamp/
|
142
|
-
- lib/bootcamp/
|
140
|
+
- lib/bootcamp/manifest/bootstrap.rb
|
141
|
+
- lib/bootcamp/manifest/core.rb
|
142
|
+
- lib/bootcamp/manifest/dojo.rb
|
143
|
+
- lib/bootcamp/manifest/html.rb
|
144
|
+
- lib/bootcamp/manifest/jquery.rb
|
145
|
+
- lib/bootcamp/manifest/midori.rb
|
146
|
+
- lib/bootcamp/manifest/mootools.rb
|
147
|
+
- lib/bootcamp/manifest/prototype.rb
|
143
148
|
- lib/bootcamp/recruit.rb
|
144
149
|
- spec/bootcamp_spec.rb
|
145
150
|
- spec/spec_helper.rb
|
@@ -261,7 +266,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
261
266
|
requirements:
|
262
267
|
- - ">="
|
263
268
|
- !ruby/object:Gem::Version
|
264
|
-
hash:
|
269
|
+
hash: -1042508850314738871
|
265
270
|
segments:
|
266
271
|
- 0
|
267
272
|
version: "0"
|
data/Gemfile.lock
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
diff-lcs (1.1.2)
|
5
|
-
git (1.2.5)
|
6
|
-
highline (1.6.1)
|
7
|
-
jeweler (1.6.0)
|
8
|
-
bundler (~> 1.0.0)
|
9
|
-
git (>= 1.2.5)
|
10
|
-
rake
|
11
|
-
rake (0.8.7)
|
12
|
-
rspec (2.3.0)
|
13
|
-
rspec-core (~> 2.3.0)
|
14
|
-
rspec-expectations (~> 2.3.0)
|
15
|
-
rspec-mocks (~> 2.3.0)
|
16
|
-
rspec-core (2.3.1)
|
17
|
-
rspec-expectations (2.3.0)
|
18
|
-
diff-lcs (~> 1.1.2)
|
19
|
-
rspec-mocks (2.3.0)
|
20
|
-
shoulda (2.11.3)
|
21
|
-
thor (0.14.6)
|
22
|
-
yard (0.6.8)
|
23
|
-
|
24
|
-
PLATFORMS
|
25
|
-
ruby
|
26
|
-
|
27
|
-
DEPENDENCIES
|
28
|
-
bundler (~> 1.0.0)
|
29
|
-
git
|
30
|
-
highline
|
31
|
-
jeweler (~> 1.6.0)
|
32
|
-
rake
|
33
|
-
rspec (~> 2.3.0)
|
34
|
-
shoulda
|
35
|
-
thor
|
36
|
-
yard (~> 0.6.0)
|