ninjs 0.9.2 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.bundle/config +2 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +38 -0
- data/README.textile +1 -1
- data/Rakefile +60 -0
- data/VERSION +1 -0
- data/lib/ninjs.rb +0 -1
- data/lib/ninjs/command.rb +16 -1
- data/lib/ninjs/manifest.rb +1 -1
- data/lib/ninjs/project.rb +74 -91
- data/ninjs.gemspec +305 -104
- data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/jquery.easing-1.3.pack.js +72 -0
- data/repository/jquery/fancybox/assets/1.3.1/scss/fancybox.scss +69 -0
- data/repository/jquery/ui/1.8.7.js +783 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.accordion.css +19 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.all.css +11 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.autocomplete.css +53 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.base.css +11 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.button.css +38 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.core.css +41 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.datepicker.css +68 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.dialog.css +21 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.progressbar.css +11 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.resizable.css +20 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.selectable.css +10 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.slider.css +24 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.tabs.css +18 -0
- data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.theme.css +252 -0
- data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_222222_256x240.png +0 -0
- data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_2e83ff_256x240.png +0 -0
- data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_454545_256x240.png +0 -0
- data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_888888_256x240.png +0 -0
- data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_cd0a0a_256x240.png +0 -0
- data/repository/jquery/ui/latest.js +1 -0
- data/repository/ninjs/core/.core.pdoc.yaml +0 -0
- data/repository/ninjs/core/.existence.pdoc.yaml +12 -0
- data/repository/ninjs/core/.extend.pdoc.yaml +0 -0
- data/repository/ninjs/core/.nin.pdoc.yaml +0 -0
- data/repository/ninjs/core/application.js +43 -0
- data/repository/ninjs/core/existence.js +221 -11
- data/repository/ninjs/core/extend.js +18 -0
- data/repository/ninjs/core/module.js +230 -0
- data/repository/ninjs/core/nin.js +3 -137
- data/repository/ninjs/docs/Data/ClassHierarchy.nd +0 -0
- data/repository/ninjs/docs/Data/ConfigFileInfo.nd +0 -0
- data/repository/ninjs/docs/Data/FileInfo.nd +16 -0
- data/repository/ninjs/docs/Data/ImageFileInfo.nd +0 -0
- data/repository/ninjs/docs/Data/ImageReferenceTable.nd +0 -0
- data/repository/ninjs/docs/Data/IndexInfo.nd +0 -0
- data/repository/ninjs/docs/Data/PreviousMenuState.nd +0 -0
- data/repository/ninjs/docs/Data/PreviousSettings.nd +0 -0
- data/repository/ninjs/docs/Data/SymbolTable.nd +0 -0
- data/repository/ninjs/docs/Languages.txt +113 -0
- data/repository/ninjs/docs/Menu.txt +63 -0
- data/repository/ninjs/docs/Topics.txt +81 -0
- data/repository/ninjs/docs/files/core/application-js.html +44 -0
- data/repository/ninjs/docs/files/core/existence-js.html +60 -0
- data/repository/ninjs/docs/files/core/extend-js.html +46 -0
- data/repository/ninjs/docs/files/core/module-js.html +80 -0
- data/repository/ninjs/docs/files/core/nin-js.html +38 -0
- data/repository/ninjs/docs/files/existence-js.html +54 -0
- data/repository/ninjs/docs/index.html +1 -0
- data/repository/ninjs/docs/index/Classes.html +33 -0
- data/repository/ninjs/docs/index/Files.html +45 -0
- data/repository/ninjs/docs/index/Functions.html +57 -0
- data/repository/ninjs/docs/index/General.html +77 -0
- data/repository/ninjs/docs/index/Variables.html +45 -0
- data/repository/ninjs/docs/javascript/main.js +841 -0
- data/repository/ninjs/docs/javascript/prettify.js +1526 -0
- data/repository/ninjs/docs/javascript/searchdata.js +152 -0
- data/repository/ninjs/docs/search/ClassesN.html +20 -0
- data/repository/ninjs/docs/search/FilesA.html +20 -0
- data/repository/ninjs/docs/search/FilesE.html +20 -0
- data/repository/ninjs/docs/search/FilesM.html +20 -0
- data/repository/ninjs/docs/search/FilesN.html +20 -0
- data/repository/ninjs/docs/search/FunctionsA.html +20 -0
- data/repository/ninjs/docs/search/FunctionsC.html +20 -0
- data/repository/ninjs/docs/search/FunctionsE.html +20 -0
- data/repository/ninjs/docs/search/FunctionsI.html +20 -0
- data/repository/ninjs/docs/search/FunctionsM.html +20 -0
- data/repository/ninjs/docs/search/FunctionsR.html +20 -0
- data/repository/ninjs/docs/search/FunctionsS.html +20 -0
- data/repository/ninjs/docs/search/GeneralA.html +20 -0
- data/repository/ninjs/docs/search/GeneralC.html +20 -0
- data/repository/ninjs/docs/search/GeneralD.html +20 -0
- data/repository/ninjs/docs/search/GeneralE.html +20 -0
- data/repository/ninjs/docs/search/GeneralF.html +20 -0
- data/repository/ninjs/docs/search/GeneralI.html +20 -0
- data/repository/ninjs/docs/search/GeneralM.html +20 -0
- data/repository/ninjs/docs/search/GeneralN.html +20 -0
- data/repository/ninjs/docs/search/GeneralR.html +20 -0
- data/repository/ninjs/docs/search/GeneralS.html +20 -0
- data/repository/ninjs/docs/search/GeneralT.html +20 -0
- data/repository/ninjs/docs/search/GeneralV.html +20 -0
- data/repository/ninjs/docs/search/NoResults.html +15 -0
- data/repository/ninjs/docs/search/VariablesD.html +20 -0
- data/repository/ninjs/docs/search/VariablesN.html +20 -0
- data/repository/ninjs/docs/search/VariablesR.html +20 -0
- data/repository/ninjs/docs/search/VariablesT.html +20 -0
- data/repository/ninjs/docs/styles/main.css +828 -0
- data/repository/ninjs/docs/styles/mystyles.css +828 -0
- data/repository/ninjs/tests/index.html +6 -6
- data/repository/ninjs/tests/ninjs.test.js +94 -43
- data/repository/ninjs/tests/ninjs.utilities.test.js +6 -18
- data/repository/ninjs/tests/qunit/qunit.css +197 -0
- data/repository/ninjs/tests/qunit/qunit.js +1415 -0
- data/repository/ninjs/utilities/all.js +2 -1
- data/repository/ninjs/utilities/array.js +3 -3
- data/repository/ninjs/utilities/cookie.js +0 -0
- data/repository/ninjs/utilities/number.js +2 -2
- data/repository/ninjs/utilities/string.js +3 -3
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCore.css +226 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDefault.css +328 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDjango.css +331 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreEclipse.css +339 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreEmacs.css +324 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreFadeToGrey.css +328 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreMDUltra.css +324 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreMidnight.css +324 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreRDark.css +324 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeDefault.css +117 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeDjango.css +120 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeEclipse.css +128 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeEmacs.css +113 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeFadeToGrey.css +117 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeMDUltra.css +113 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeMidnight.css +113 -0
- data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeRDark.css +113 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCore.scss +216 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreDefault.scss +2 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreDjango.scss +2 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreEclipse.scss +2 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreEmacs.scss +2 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreFadeToGrey.scss +2 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreMDUltra.scss +2 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreMidnight.scss +2 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreRDark.scss +2 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeDefault.scss +7 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeDjango.scss +36 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeEclipse.scss +48 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeEmacs.scss +32 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeFadeToGrey.scss +36 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeMDUltra.scss +32 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeMidnight.scss +32 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeRDark.scss +32 -0
- data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_theme_template.scss +120 -0
- data/repository/syntaxhighlighter/default.js +2 -1
- data/repository/syntaxhighlighter/shBrushAppleScript.js +1 -1
- data/repository/syntaxhighlighter/shBrushPerl.js +1 -1
- data/repository/syntaxhighlighter/shBrushPhp.js +4 -4
- metadata +317 -33
data/.bundle/config
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
gem "rubikon", ">= 0"
|
6
|
+
gem "fssm", ">= 0"
|
7
|
+
gem "jsmin", ">= 0"
|
8
|
+
gem "sprockets", ">= 0"
|
9
|
+
# Add dependencies to develop your gem here.
|
10
|
+
# Include everything needed to run rake, tests, features, etc.
|
11
|
+
group :development do
|
12
|
+
gem "shoulda", ">= 0"
|
13
|
+
gem "bundler", "~> 1.0.0"
|
14
|
+
gem "jeweler", "~> 1.5.2"
|
15
|
+
gem "rcov", ">= 0"
|
16
|
+
gem "rspec", ">= 0"
|
17
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.1.2)
|
5
|
+
fssm (0.2.2)
|
6
|
+
git (1.2.5)
|
7
|
+
jeweler (1.5.2)
|
8
|
+
bundler (~> 1.0.0)
|
9
|
+
git (>= 1.2.5)
|
10
|
+
rake
|
11
|
+
jsmin (1.0.1)
|
12
|
+
rake (0.8.7)
|
13
|
+
rcov (0.9.9)
|
14
|
+
rspec (2.4.0)
|
15
|
+
rspec-core (~> 2.4.0)
|
16
|
+
rspec-expectations (~> 2.4.0)
|
17
|
+
rspec-mocks (~> 2.4.0)
|
18
|
+
rspec-core (2.4.0)
|
19
|
+
rspec-expectations (2.4.0)
|
20
|
+
diff-lcs (~> 1.1.2)
|
21
|
+
rspec-mocks (2.4.0)
|
22
|
+
rubikon (0.5.3)
|
23
|
+
shoulda (2.11.3)
|
24
|
+
sprockets (1.0.2)
|
25
|
+
|
26
|
+
PLATFORMS
|
27
|
+
ruby
|
28
|
+
|
29
|
+
DEPENDENCIES
|
30
|
+
bundler (~> 1.0.0)
|
31
|
+
fssm
|
32
|
+
jeweler (~> 1.5.2)
|
33
|
+
jsmin
|
34
|
+
rcov
|
35
|
+
rspec
|
36
|
+
rubikon
|
37
|
+
shoulda
|
38
|
+
sprockets
|
data/README.textile
CHANGED
@@ -215,7 +215,7 @@ The model provides a default base that we can build from, helping use to keep ou
|
|
215
215
|
|
216
216
|
Using "this" in Javascript can be a bit tricky so if your not sure what "this" refers to in any given context, your safe using the "_" (application alias) and "__" (module alias) aliases in Ninjs.
|
217
217
|
|
218
|
-
h1. Compiling
|
218
|
+
h1. Compiling the application
|
219
219
|
|
220
220
|
Now that we have a complete module including elements and a model, we need to compile these files into one coherent file to use in our html. To do so we have 2 options. Open a terminal window (command prompt) and navigate to the root of your Ninjs application. We can compile our application with one of 2 commands. The first choice is the compile command. From the root of your Ninjs application type:
|
221
221
|
|
data/Rakefile
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'rake'
|
11
|
+
|
12
|
+
require 'jeweler'
|
13
|
+
Jeweler::Tasks.new do |gem|
|
14
|
+
gem.name = "ninjs"
|
15
|
+
gem.homepage = "http://github.com/textnotspeech/ninjs"
|
16
|
+
gem.license = "MIT"
|
17
|
+
gem.summary = %Q{ninjs is a command line application to help you write clean, modular javascript applications.}
|
18
|
+
gem.description = %Q{Ninjs is a ruby application and small javascript framework that helps you build clean, modular javascript applications. Ninjs encourages "Good Parts" best practices and the Crockford school Module pattern (http://www.crockford.com/). The ninjs command line application is an automatic compiler, written in ruby, and based on the Sprockets library (http://getsprockets.org/).}
|
19
|
+
gem.email = "daytonn@gmail.com"
|
20
|
+
gem.authors = ["Dayton Nolan"]
|
21
|
+
gem.add_runtime_dependency 'rubikon'
|
22
|
+
gem.add_runtime_dependency 'fssm'
|
23
|
+
gem.add_runtime_dependency 'jsmin'
|
24
|
+
gem.add_runtime_dependency 'sprockets'
|
25
|
+
gem.add_development_dependency 'rspec', '>= 0'
|
26
|
+
end
|
27
|
+
Jeweler::RubygemsDotOrgTasks.new
|
28
|
+
|
29
|
+
require 'rspec/core'
|
30
|
+
require 'rspec/core/rake_task'
|
31
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
32
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
33
|
+
end
|
34
|
+
|
35
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
36
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
37
|
+
spec.rcov = true
|
38
|
+
end
|
39
|
+
|
40
|
+
task :default => :spec
|
41
|
+
|
42
|
+
require 'rake/rdoctask'
|
43
|
+
Rake::RDocTask.new do |rdoc|
|
44
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
45
|
+
|
46
|
+
rdoc.rdoc_dir = 'rdoc'
|
47
|
+
rdoc.title = "ninjs #{version}"
|
48
|
+
rdoc.rdoc_files.include('README*')
|
49
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
50
|
+
end
|
51
|
+
|
52
|
+
namespace :ndoc do
|
53
|
+
desc "Generate documentation with NaturalDocs"
|
54
|
+
|
55
|
+
task :generate do
|
56
|
+
output = `ndocs -i /Volumes/Storage/Development/ninjs/repository/ninjs/ -o HTML /Volumes/Storage/Development/ninjs/repository/ninjs/docs -p /Volumes/Storage/Development/ninjs/repository/ninjs/docs` # -s Slick
|
57
|
+
puts output
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.10.0
|
data/lib/ninjs.rb
CHANGED
data/lib/ninjs/command.rb
CHANGED
@@ -9,8 +9,23 @@ module Ninjs
|
|
9
9
|
puts "\e[32m>>>#{color_end} Ninjs are watching for changes. Press Ctrl-C to stop."
|
10
10
|
project = Ninjs::Project.init_with_config(project_path)
|
11
11
|
project.update
|
12
|
-
|
12
|
+
|
13
|
+
# TODO make this smaller using globs
|
13
14
|
FSSM.monitor do
|
15
|
+
path "#{Ninjs.base_directory}/repository" do
|
16
|
+
glob "**/*.js"
|
17
|
+
|
18
|
+
update do |base, relative|
|
19
|
+
puts "#{color_start}<<<#{color_end} ninjs repository updated #{relative}"
|
20
|
+
project.update
|
21
|
+
end
|
22
|
+
|
23
|
+
create do |base, relative|
|
24
|
+
puts "#{relative} created in repository"
|
25
|
+
project.update
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
14
29
|
path "#{project_path}elements" do
|
15
30
|
glob "**/*.js"
|
16
31
|
|
data/lib/ninjs/manifest.rb
CHANGED
data/lib/ninjs/project.rb
CHANGED
@@ -1,10 +1,17 @@
|
|
1
1
|
module Ninjs
|
2
2
|
class Project
|
3
3
|
|
4
|
+
attr_reader :app_filename,
|
5
|
+
:project_path,
|
6
|
+
:config
|
7
|
+
attr_writer :config,
|
8
|
+
:project_path,
|
9
|
+
:app_filename
|
10
|
+
|
4
11
|
def self.init_with_config(project_path)
|
5
12
|
config = Ninjs::Configuration.new project_path
|
6
13
|
config.read
|
7
|
-
|
14
|
+
|
8
15
|
project = Project.new
|
9
16
|
project.config = config
|
10
17
|
project.project_path = config.project_path
|
@@ -12,24 +19,17 @@ module Ninjs
|
|
12
19
|
project
|
13
20
|
end
|
14
21
|
|
15
|
-
attr_reader :app_filename,
|
16
|
-
:project_path,
|
17
|
-
:config
|
18
|
-
attr_writer :config,
|
19
|
-
:project_path,
|
20
|
-
:app_filename
|
21
|
-
|
22
22
|
def initialize(name = 'NinjsApplication', project_dir = '/')
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
23
|
+
name.gsub!(/\s|\-|\./)
|
24
|
+
proj_dir = clean_project_path project_dir
|
25
|
+
@modules = Array.new
|
26
|
+
|
27
|
+
@color_start = "\e[32m"
|
28
|
+
@color_end = "\e[0m"
|
29
|
+
|
30
|
+
@app_filename = name.downcase
|
31
|
+
@project_path = "#{Ninjs.root_directory}#{proj_dir}"
|
32
|
+
@config = Ninjs::Configuration.new @project_path, name
|
33
33
|
end
|
34
34
|
|
35
35
|
def clean_project_path(dir)
|
@@ -97,48 +97,17 @@ module Ninjs
|
|
97
97
|
File.copy "#{Ninjs.base_directory}/repository/ninjs/tests/index.html", "#{@project_path}tests"
|
98
98
|
File.copy "#{Ninjs.base_directory}/repository/ninjs/tests/ninjs.test.js", "#{@project_path}tests"
|
99
99
|
File.copy "#{Ninjs.base_directory}/repository/ninjs/tests/ninjs.utilities.test.js", "#{@project_path}tests"
|
100
|
+
File.copy "#{Ninjs.base_directory}/repository/ninjs/tests/qunit/qunit.js", "#{@project_path}tests/qunit"
|
101
|
+
File.copy "#{Ninjs.base_directory}/repository/ninjs/tests/qunit/qunit.css", "#{@project_path}tests/qunit"
|
100
102
|
end
|
101
103
|
|
102
104
|
def update
|
103
|
-
#read_cache
|
104
105
|
get_updated_modules
|
105
106
|
compile_modules
|
106
107
|
update_application_file
|
107
108
|
compress_application if @config.output == 'compressed'
|
108
109
|
puts "#{@color_start}>>>#{@color_end} application updated" unless @errors
|
109
110
|
@errors = false
|
110
|
-
#write_cache
|
111
|
-
end
|
112
|
-
|
113
|
-
def read_cache
|
114
|
-
if File.exists? "#{@project_path}.cache"
|
115
|
-
parse_cache File.open("#{@project_path}.cache").readlines
|
116
|
-
else
|
117
|
-
create_cache
|
118
|
-
read_cache
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
def parse_cache(cache_lines)
|
123
|
-
@cache_files = Hash.new
|
124
|
-
cache_lines.each do |line|
|
125
|
-
cache_file = line.split('|')
|
126
|
-
@cache_files[cache_file.first] = cache_file.last
|
127
|
-
end
|
128
|
-
end
|
129
|
-
|
130
|
-
def create_cache
|
131
|
-
File.open("#{@project_path}.cache", 'w+')
|
132
|
-
end
|
133
|
-
|
134
|
-
def write_cache
|
135
|
-
directory_files = get_directory_script_files
|
136
|
-
timestamped_files = get_files_timestamps directory_files
|
137
|
-
File.open("#{@project_path}.cache", 'w+') do |cache_file|
|
138
|
-
timestamped_files.each do |file, mtime|
|
139
|
-
cache_file << file + '|' + mtime + "\n"
|
140
|
-
end
|
141
|
-
end
|
142
111
|
end
|
143
112
|
|
144
113
|
def get_directory_script_files
|
@@ -173,62 +142,74 @@ module Ninjs
|
|
173
142
|
end
|
174
143
|
|
175
144
|
def create_module_file(module_file, module_name)
|
176
|
-
|
177
|
-
|
145
|
+
begin
|
146
|
+
module_src = "#{@project_path}modules/#{module_file}"
|
178
147
|
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
148
|
+
ninjs_lib_secretary = Sprockets::Secretary.new(
|
149
|
+
:root => "#{Ninjs.base_directory}",
|
150
|
+
:asset_root => "#{@config.asset_root}",
|
151
|
+
:load_path => ["repository"],
|
152
|
+
:source_files => ["#{module_src}"]
|
153
|
+
)
|
185
154
|
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
155
|
+
module_file = ninjs_lib_secretary.concatenation
|
156
|
+
message = File.exists?("#{@project_path}application/#{module_name}.js") ? "\e[32m>>>\e[0m application/#{module_name}.js updated" : "\e[32m>>>\e[0m application/#{module_name}.js created"
|
157
|
+
module_file.save_to "#{@project_path}application/#{module_name}.js"
|
158
|
+
ninjs_lib_secretary.install_assets
|
190
159
|
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
160
|
+
#puts message
|
161
|
+
rescue Exception => error
|
162
|
+
@errors = true
|
163
|
+
puts "Sprockets error: #{error.message}"
|
164
|
+
end
|
197
165
|
end
|
198
166
|
|
199
167
|
def update_application_file
|
200
|
-
|
201
|
-
filename = "#{@project_path}application/#{@app_filename}.js"
|
168
|
+
application_file = "#{@project_path}application/#{@app_filename}.js"
|
202
169
|
|
203
|
-
File.open(
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
file << "\n//= require \"#{dependency}\"\n\n" if dependency.match(/^[^\<].+|[^\>]$/)
|
208
|
-
end
|
209
|
-
|
210
|
-
file << "/* Ninjs #{Time.now.to_s} */\n"
|
211
|
-
file << "//= require \"../lib/nin.js\"\n\n"
|
212
|
-
file << "\nvar #{@config.name} = new NinjsApplication();\n\n"
|
213
|
-
|
214
|
-
@config.autoload.each do |auto_file|
|
215
|
-
file << "/*---------- Ninjs autoload #{auto_file} ----------*/"
|
216
|
-
file << "\n//= require #{auto_file}\n\n" if auto_file.match(/^\<.+\>$/)
|
217
|
-
file << "\n//= require \"#{auto_file}\"\n\n" if auto_file.match(/^[^\<].+|[^\>]$/)
|
218
|
-
end
|
170
|
+
File.open(application_file, "w+") do |file|
|
171
|
+
write_dependencies(file)
|
172
|
+
write_core(file)
|
173
|
+
write_autoload(file)
|
219
174
|
end
|
220
175
|
|
176
|
+
compile_application_file application_file
|
177
|
+
end
|
178
|
+
|
179
|
+
def write_dependencies(file)
|
180
|
+
@config.dependencies.each do |dependency|
|
181
|
+
file << "/*---------- #{dependency} ----------*/"
|
182
|
+
file << "\n//= require #{dependency}\n\n" if dependency.match(/^\<.+\>$/)
|
183
|
+
file << "\n//= require \"#{dependency}\"\n\n" if dependency.match(/^[^\<].+|[^\>]$/)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
def write_core(file)
|
188
|
+
file << "/*---------- Ninjs core ../lib/nin.js ----------*/\n"
|
189
|
+
file << "//= require \"../lib/nin.js\"\n\n"
|
190
|
+
file << "\nvar #{@config.name} = new NinjsApplication();\n\n"
|
191
|
+
end
|
192
|
+
|
193
|
+
def write_autoload(file)
|
194
|
+
@config.autoload.each do |auto_file|
|
195
|
+
file << "/*---------- Ninjs autoload #{auto_file} ----------*/"
|
196
|
+
file << "\n//= require #{auto_file}\n\n" if auto_file.match(/^\<.+\>$/)
|
197
|
+
file << "\n//= require \"#{auto_file}\"\n\n" if auto_file.match(/^[^\<].+|[^\>]$/)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
def compile_application_file(file)
|
221
202
|
begin
|
222
203
|
ninjs_lib_secretary = Sprockets::Secretary.new(
|
223
204
|
:root => "#{Ninjs.base_directory}",
|
224
205
|
:asset_root => "#{@config.asset_root}",
|
225
206
|
:load_path => ["repository"],
|
226
|
-
:source_files => ["#{
|
207
|
+
:source_files => ["#{file}"]
|
227
208
|
)
|
228
209
|
|
229
210
|
application_file = ninjs_lib_secretary.concatenation
|
230
211
|
ninjs_lib_secretary.install_assets
|
231
|
-
application_file.save_to "#{
|
212
|
+
application_file.save_to "#{file}"
|
232
213
|
rescue Exception => error
|
233
214
|
@errors = true
|
234
215
|
puts "\e[0;31m!!!\e[0m Sprockets error: #{error.message}"
|
@@ -248,6 +229,8 @@ module Ninjs
|
|
248
229
|
end
|
249
230
|
end
|
250
231
|
end
|
251
|
-
|
232
|
+
|
252
233
|
end
|
253
|
-
|
234
|
+
# class Project
|
235
|
+
end
|
236
|
+
#module Ninjs
|
data/ninjs.gemspec
CHANGED
@@ -1,115 +1,316 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{ninjs}
|
5
|
-
s.version = "0.
|
8
|
+
s.version = "0.10.0"
|
6
9
|
|
7
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
11
|
s.authors = ["Dayton Nolan"]
|
9
|
-
s.date =
|
10
|
-
s.default_executable = %q{
|
11
|
-
s.description = %q{Ninjs is a javascript
|
12
|
+
s.date = %q{2011-01-24}
|
13
|
+
s.default_executable = %q{ninjs}
|
14
|
+
s.description = %q{Ninjs is a ruby application and small javascript framework that helps you build clean, modular javascript applications. Ninjs encourages "Good Parts" best practices and the Crockford school Module pattern (http://www.crockford.com/). The ninjs command line application is an automatic compiler, written in ruby, and based on the Sprockets library (http://getsprockets.org/).}
|
12
15
|
s.email = %q{daytonn@gmail.com}
|
13
16
|
s.executables = ["ninjs"]
|
14
|
-
s.
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE",
|
19
|
+
"README.textile"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".bundle/config",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
25
|
+
"LICENSE",
|
26
|
+
"README.textile",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"bin/ninjs",
|
30
|
+
"lib/ninjs.rb",
|
31
|
+
"lib/ninjs/command.rb",
|
32
|
+
"lib/ninjs/configuration.rb",
|
33
|
+
"lib/ninjs/dependencies.rb",
|
34
|
+
"lib/ninjs/helpers.rb",
|
35
|
+
"lib/ninjs/manifest.rb",
|
36
|
+
"lib/ninjs/project.rb",
|
37
|
+
"ninjs.gemspec",
|
38
|
+
"repository/jquery/1.1.4.js",
|
39
|
+
"repository/jquery/1.2.6.js",
|
40
|
+
"repository/jquery/1.3.2.js",
|
41
|
+
"repository/jquery/1.4.2.js",
|
42
|
+
"repository/jquery/1.4.3.js",
|
43
|
+
"repository/jquery/1.4.4.js",
|
44
|
+
"repository/jquery/fancybox/1.3.1.js",
|
45
|
+
"repository/jquery/fancybox/assets/1.3.1/css/fancybox.css",
|
46
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/blank.gif",
|
47
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_close.png",
|
48
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_loading.png",
|
49
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_nav_left.png",
|
50
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_nav_right.png",
|
51
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_e.png",
|
52
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_n.png",
|
53
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_ne.png",
|
54
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_nw.png",
|
55
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_s.png",
|
56
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_se.png",
|
57
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_sw.png",
|
58
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_w.png",
|
59
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_title_left.png",
|
60
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_title_main.png",
|
61
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_title_over.png",
|
62
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_title_right.png",
|
63
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancybox-x.png",
|
64
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancybox-y.png",
|
65
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancybox.png",
|
66
|
+
"repository/jquery/fancybox/assets/1.3.1/images/fancybox/jquery.easing-1.3.pack.js",
|
67
|
+
"repository/jquery/fancybox/assets/1.3.1/scss/fancybox.scss",
|
68
|
+
"repository/jquery/fancybox/latest.js",
|
69
|
+
"repository/jquery/latest.js",
|
70
|
+
"repository/jquery/mousewheel/3.0.2.js",
|
71
|
+
"repository/jquery/mousewheel/latest.js",
|
72
|
+
"repository/jquery/ui/1.8.7.js",
|
73
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.accordion.css",
|
74
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.all.css",
|
75
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.autocomplete.css",
|
76
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.base.css",
|
77
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.button.css",
|
78
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.core.css",
|
79
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.datepicker.css",
|
80
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.dialog.css",
|
81
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.progressbar.css",
|
82
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.resizable.css",
|
83
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.selectable.css",
|
84
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.slider.css",
|
85
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.tabs.css",
|
86
|
+
"repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.theme.css",
|
87
|
+
"repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png",
|
88
|
+
"repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_flat_75_ffffff_40x100.png",
|
89
|
+
"repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png",
|
90
|
+
"repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_65_ffffff_1x400.png",
|
91
|
+
"repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_75_dadada_1x400.png",
|
92
|
+
"repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png",
|
93
|
+
"repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_95_fef1ec_1x400.png",
|
94
|
+
"repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png",
|
95
|
+
"repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_222222_256x240.png",
|
96
|
+
"repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_2e83ff_256x240.png",
|
97
|
+
"repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_454545_256x240.png",
|
98
|
+
"repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_888888_256x240.png",
|
99
|
+
"repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_cd0a0a_256x240.png",
|
100
|
+
"repository/jquery/ui/latest.js",
|
101
|
+
"repository/json2.js",
|
102
|
+
"repository/modernizr/1.5.js",
|
103
|
+
"repository/modernizr/latest.js",
|
104
|
+
"repository/ninjs/core/.core.pdoc.yaml",
|
105
|
+
"repository/ninjs/core/.existence.pdoc.yaml",
|
106
|
+
"repository/ninjs/core/.extend.pdoc.yaml",
|
107
|
+
"repository/ninjs/core/.nin.pdoc.yaml",
|
108
|
+
"repository/ninjs/core/application.js",
|
109
|
+
"repository/ninjs/core/existence.js",
|
110
|
+
"repository/ninjs/core/extend.js",
|
111
|
+
"repository/ninjs/core/module.js",
|
112
|
+
"repository/ninjs/core/nin.js",
|
113
|
+
"repository/ninjs/docs/Data/ClassHierarchy.nd",
|
114
|
+
"repository/ninjs/docs/Data/ConfigFileInfo.nd",
|
115
|
+
"repository/ninjs/docs/Data/FileInfo.nd",
|
116
|
+
"repository/ninjs/docs/Data/ImageFileInfo.nd",
|
117
|
+
"repository/ninjs/docs/Data/ImageReferenceTable.nd",
|
118
|
+
"repository/ninjs/docs/Data/IndexInfo.nd",
|
119
|
+
"repository/ninjs/docs/Data/PreviousMenuState.nd",
|
120
|
+
"repository/ninjs/docs/Data/PreviousSettings.nd",
|
121
|
+
"repository/ninjs/docs/Data/SymbolTable.nd",
|
122
|
+
"repository/ninjs/docs/Languages.txt",
|
123
|
+
"repository/ninjs/docs/Menu.txt",
|
124
|
+
"repository/ninjs/docs/Topics.txt",
|
125
|
+
"repository/ninjs/docs/files/core/application-js.html",
|
126
|
+
"repository/ninjs/docs/files/core/existence-js.html",
|
127
|
+
"repository/ninjs/docs/files/core/extend-js.html",
|
128
|
+
"repository/ninjs/docs/files/core/module-js.html",
|
129
|
+
"repository/ninjs/docs/files/core/nin-js.html",
|
130
|
+
"repository/ninjs/docs/files/existence-js.html",
|
131
|
+
"repository/ninjs/docs/index.html",
|
132
|
+
"repository/ninjs/docs/index/Classes.html",
|
133
|
+
"repository/ninjs/docs/index/Files.html",
|
134
|
+
"repository/ninjs/docs/index/Functions.html",
|
135
|
+
"repository/ninjs/docs/index/General.html",
|
136
|
+
"repository/ninjs/docs/index/Variables.html",
|
137
|
+
"repository/ninjs/docs/javascript/main.js",
|
138
|
+
"repository/ninjs/docs/javascript/prettify.js",
|
139
|
+
"repository/ninjs/docs/javascript/searchdata.js",
|
140
|
+
"repository/ninjs/docs/search/ClassesN.html",
|
141
|
+
"repository/ninjs/docs/search/FilesA.html",
|
142
|
+
"repository/ninjs/docs/search/FilesE.html",
|
143
|
+
"repository/ninjs/docs/search/FilesM.html",
|
144
|
+
"repository/ninjs/docs/search/FilesN.html",
|
145
|
+
"repository/ninjs/docs/search/FunctionsA.html",
|
146
|
+
"repository/ninjs/docs/search/FunctionsC.html",
|
147
|
+
"repository/ninjs/docs/search/FunctionsE.html",
|
148
|
+
"repository/ninjs/docs/search/FunctionsI.html",
|
149
|
+
"repository/ninjs/docs/search/FunctionsM.html",
|
150
|
+
"repository/ninjs/docs/search/FunctionsR.html",
|
151
|
+
"repository/ninjs/docs/search/FunctionsS.html",
|
152
|
+
"repository/ninjs/docs/search/GeneralA.html",
|
153
|
+
"repository/ninjs/docs/search/GeneralC.html",
|
154
|
+
"repository/ninjs/docs/search/GeneralD.html",
|
155
|
+
"repository/ninjs/docs/search/GeneralE.html",
|
156
|
+
"repository/ninjs/docs/search/GeneralF.html",
|
157
|
+
"repository/ninjs/docs/search/GeneralI.html",
|
158
|
+
"repository/ninjs/docs/search/GeneralM.html",
|
159
|
+
"repository/ninjs/docs/search/GeneralN.html",
|
160
|
+
"repository/ninjs/docs/search/GeneralR.html",
|
161
|
+
"repository/ninjs/docs/search/GeneralS.html",
|
162
|
+
"repository/ninjs/docs/search/GeneralT.html",
|
163
|
+
"repository/ninjs/docs/search/GeneralV.html",
|
164
|
+
"repository/ninjs/docs/search/NoResults.html",
|
165
|
+
"repository/ninjs/docs/search/VariablesD.html",
|
166
|
+
"repository/ninjs/docs/search/VariablesN.html",
|
167
|
+
"repository/ninjs/docs/search/VariablesR.html",
|
168
|
+
"repository/ninjs/docs/search/VariablesT.html",
|
169
|
+
"repository/ninjs/docs/styles/main.css",
|
170
|
+
"repository/ninjs/docs/styles/mystyles.css",
|
171
|
+
"repository/ninjs/tests/index.html",
|
172
|
+
"repository/ninjs/tests/ninjs.test.js",
|
173
|
+
"repository/ninjs/tests/ninjs.utilities.test.js",
|
174
|
+
"repository/ninjs/tests/qunit/qunit.css",
|
175
|
+
"repository/ninjs/tests/qunit/qunit.js",
|
176
|
+
"repository/ninjs/utilities/all.js",
|
177
|
+
"repository/ninjs/utilities/array.js",
|
178
|
+
"repository/ninjs/utilities/cookie.js",
|
179
|
+
"repository/ninjs/utilities/css.js",
|
180
|
+
"repository/ninjs/utilities/number.js",
|
181
|
+
"repository/ninjs/utilities/string.js",
|
182
|
+
"repository/nullconsole.js",
|
183
|
+
"repository/qunit/assets/css/qunit.css",
|
184
|
+
"repository/qunit/qunit.js",
|
185
|
+
"repository/selectivizr/1.0.js",
|
186
|
+
"repository/selectivizr/latest.js",
|
187
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCore.css",
|
188
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDefault.css",
|
189
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDjango.css",
|
190
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreEclipse.css",
|
191
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreEmacs.css",
|
192
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreFadeToGrey.css",
|
193
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreMDUltra.css",
|
194
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreMidnight.css",
|
195
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreRDark.css",
|
196
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeDefault.css",
|
197
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeDjango.css",
|
198
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeEclipse.css",
|
199
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeEmacs.css",
|
200
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeFadeToGrey.css",
|
201
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeMDUltra.css",
|
202
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeMidnight.css",
|
203
|
+
"repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeRDark.css",
|
204
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCore.scss",
|
205
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreDefault.scss",
|
206
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreDjango.scss",
|
207
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreEclipse.scss",
|
208
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreEmacs.scss",
|
209
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreFadeToGrey.scss",
|
210
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreMDUltra.scss",
|
211
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreMidnight.scss",
|
212
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreRDark.scss",
|
213
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeDefault.scss",
|
214
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeDjango.scss",
|
215
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeEclipse.scss",
|
216
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeEmacs.scss",
|
217
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeFadeToGrey.scss",
|
218
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeMDUltra.scss",
|
219
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeMidnight.scss",
|
220
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeRDark.scss",
|
221
|
+
"repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_theme_template.scss",
|
222
|
+
"repository/syntaxhighlighter/default.js",
|
223
|
+
"repository/syntaxhighlighter/shAutoloader.js",
|
224
|
+
"repository/syntaxhighlighter/shBrushAS3.js",
|
225
|
+
"repository/syntaxhighlighter/shBrushAppleScript.js",
|
226
|
+
"repository/syntaxhighlighter/shBrushBash.js",
|
227
|
+
"repository/syntaxhighlighter/shBrushCSharp.js",
|
228
|
+
"repository/syntaxhighlighter/shBrushColdFusion.js",
|
229
|
+
"repository/syntaxhighlighter/shBrushCpp.js",
|
230
|
+
"repository/syntaxhighlighter/shBrushCss.js",
|
231
|
+
"repository/syntaxhighlighter/shBrushDelphi.js",
|
232
|
+
"repository/syntaxhighlighter/shBrushDiff.js",
|
233
|
+
"repository/syntaxhighlighter/shBrushErlang.js",
|
234
|
+
"repository/syntaxhighlighter/shBrushGroovy.js",
|
235
|
+
"repository/syntaxhighlighter/shBrushJScript.js",
|
236
|
+
"repository/syntaxhighlighter/shBrushJava.js",
|
237
|
+
"repository/syntaxhighlighter/shBrushJavaFX.js",
|
238
|
+
"repository/syntaxhighlighter/shBrushPerl.js",
|
239
|
+
"repository/syntaxhighlighter/shBrushPhp.js",
|
240
|
+
"repository/syntaxhighlighter/shBrushPlain.js",
|
241
|
+
"repository/syntaxhighlighter/shBrushPowerShell.js",
|
242
|
+
"repository/syntaxhighlighter/shBrushPython.js",
|
243
|
+
"repository/syntaxhighlighter/shBrushRuby.js",
|
244
|
+
"repository/syntaxhighlighter/shBrushSass.js",
|
245
|
+
"repository/syntaxhighlighter/shBrushScala.js",
|
246
|
+
"repository/syntaxhighlighter/shBrushSql.js",
|
247
|
+
"repository/syntaxhighlighter/shBrushVb.js",
|
248
|
+
"repository/syntaxhighlighter/shBrushXml.js",
|
249
|
+
"repository/syntaxhighlighter/shCore.js",
|
250
|
+
"repository/syntaxhighlighter/shLegacy.js",
|
251
|
+
"spec/spec_helper.rb",
|
252
|
+
"spec/test_spec.rb"
|
253
|
+
]
|
254
|
+
s.homepage = %q{http://github.com/textnotspeech/ninjs}
|
255
|
+
s.licenses = ["MIT"]
|
112
256
|
s.require_paths = ["lib"]
|
113
|
-
s.rubygems_version = %q{1.3.
|
257
|
+
s.rubygems_version = %q{1.3.7}
|
114
258
|
s.summary = %q{ninjs is a command line application to help you write clean, modular javascript applications.}
|
115
|
-
|
259
|
+
s.test_files = [
|
260
|
+
"spec/spec_helper.rb",
|
261
|
+
"spec/test_spec.rb"
|
262
|
+
]
|
263
|
+
|
264
|
+
if s.respond_to? :specification_version then
|
265
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
266
|
+
s.specification_version = 3
|
267
|
+
|
268
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
269
|
+
s.add_runtime_dependency(%q<rubikon>, [">= 0"])
|
270
|
+
s.add_runtime_dependency(%q<fssm>, [">= 0"])
|
271
|
+
s.add_runtime_dependency(%q<jsmin>, [">= 0"])
|
272
|
+
s.add_runtime_dependency(%q<sprockets>, [">= 0"])
|
273
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
274
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
275
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
276
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
277
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
278
|
+
s.add_runtime_dependency(%q<rubikon>, [">= 0"])
|
279
|
+
s.add_runtime_dependency(%q<fssm>, [">= 0"])
|
280
|
+
s.add_runtime_dependency(%q<jsmin>, [">= 0"])
|
281
|
+
s.add_runtime_dependency(%q<sprockets>, [">= 0"])
|
282
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
283
|
+
else
|
284
|
+
s.add_dependency(%q<rubikon>, [">= 0"])
|
285
|
+
s.add_dependency(%q<fssm>, [">= 0"])
|
286
|
+
s.add_dependency(%q<jsmin>, [">= 0"])
|
287
|
+
s.add_dependency(%q<sprockets>, [">= 0"])
|
288
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
289
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
290
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
291
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
292
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
293
|
+
s.add_dependency(%q<rubikon>, [">= 0"])
|
294
|
+
s.add_dependency(%q<fssm>, [">= 0"])
|
295
|
+
s.add_dependency(%q<jsmin>, [">= 0"])
|
296
|
+
s.add_dependency(%q<sprockets>, [">= 0"])
|
297
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
298
|
+
end
|
299
|
+
else
|
300
|
+
s.add_dependency(%q<rubikon>, [">= 0"])
|
301
|
+
s.add_dependency(%q<fssm>, [">= 0"])
|
302
|
+
s.add_dependency(%q<jsmin>, [">= 0"])
|
303
|
+
s.add_dependency(%q<sprockets>, [">= 0"])
|
304
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
305
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
306
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
307
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
308
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
309
|
+
s.add_dependency(%q<rubikon>, [">= 0"])
|
310
|
+
s.add_dependency(%q<fssm>, [">= 0"])
|
311
|
+
s.add_dependency(%q<jsmin>, [">= 0"])
|
312
|
+
s.add_dependency(%q<sprockets>, [">= 0"])
|
313
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|