ninjs 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -54,7 +54,7 @@ namespace :ndoc do
54
54
  desc "Generate documentation with NaturalDocs"
55
55
 
56
56
  task :generate do
57
- 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
+ output = `ndocs -i /Volumes/Storage/Development/ninjs/repository/ninjs/ -o HTML /Volumes/Storage/Development/ninjs-ghpages/repository/ninjs/docs -p /Volumes/Storage/Development/ninjs-ghpages/repository/ninjs/docs` # -s Slick
58
58
  puts output
59
59
  end
60
60
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.13.0
1
+ 0.13.1
data/bin/ninjs CHANGED
@@ -45,14 +45,16 @@ class NinjsConsole < Rubikon::Application::Base
45
45
  dir.nil? ? Ninjs::Command.create(app_name) : Ninjs::Command.create(app_name, dir)
46
46
  end
47
47
 
48
- option :e
49
- option :m
48
+ option :elements
49
+ option :model
50
+ flag :e => :elements
51
+ flag :m => :model
50
52
  command :generate, :object, :obj_name do
51
53
  with = {
52
- :model => m.given?,
53
- :elements => e.given?
54
+ :model => model.given?,
55
+ :elements => elements.given?
54
56
  }
55
-
57
+
56
58
  Ninjs::Command.generate(object, obj_name, with)
57
59
  end
58
60
 
@@ -6,27 +6,27 @@ module Ninjs
6
6
  @name = name
7
7
  end
8
8
 
9
- def generate_module_file(with = { :elements => false, :model => false })
9
+ def generate_module_file(with = { :elements => false, :model => false })
10
10
  File.open "#{@project.project_path}modules/#{@name.downcase}.module.js", "w" do |file|
11
11
  file << "(function(){\n"
12
12
  file << "\tvar self = " + @project.config.name + ".add_module('" + @name + "');\n\n"
13
13
  file << "\t" + '//= require "../elements/' + @name.downcase + '.elements.js"' + "\n\n" if with[:elements]
14
14
  file << "\t" + '//= require "../models/' + @name.downcase + '.model.js"' + "\n\n" if with[:model]
15
- file << "\t#{@project.config.name}." + @name + ".actions = function() {\n\n\t}\n\n"
15
+ file << "\t#{@project.config.name}." + @name + ".actions = function() {\n\n\t};\n\n"
16
16
  file << "\t#{@project.config.name}." + @name + ".run();\n"
17
17
  file << "})();"
18
18
  Ninjs::Notification.added "created #{@name.downcase}.module.js"
19
19
  end unless File.exists? "#{@project.project_path}modules/#{@name.downcase}.module.js"
20
20
  end
21
21
 
22
- def generate_elements_file()
22
+ def generate_elements_file
23
23
  File.open("#{@project.project_path}elements/#{@name.downcase}" + ".elements.js", "w") do |file|
24
24
  file << @project.config.name + "." + @name + ".elements(function({\n\n}));"
25
25
  Ninjs::Notification.added "created #{@name.downcase}.elements.js"
26
26
  end unless File.exists? "#{@project.project_path}elements/#{@name.downcase}.elements.js"
27
27
  end
28
28
 
29
- def generate_model_file()
29
+ def generate_model_file
30
30
  File.open "#{@project.project_path}models/#{@name.downcase}.model.js", "w" do |file|
31
31
  file << @project.config.name + "." + @name + ".set_data({\n\t\n});"
32
32
  Ninjs::Notification.added "created #{@name.downcase}.model.js"
data/ninjs.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ninjs}
8
- s.version = "0.13.0"
8
+ s.version = "0.13.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dayton Nolan"]
12
- s.date = %q{2011-04-09}
12
+ s.date = %q{2011-04-10}
13
13
  s.default_executable = %q{ninjs}
14
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/).}
15
15
  s.email = %q{daytonn@gmail.com}
@@ -37,7 +37,6 @@ Gem::Specification.new do |s|
37
37
  "lib/ninjs/manifest.rb",
38
38
  "lib/ninjs/notification.rb",
39
39
  "lib/ninjs/project.rb",
40
- "ninjs.conf",
41
40
  "ninjs.gemspec",
42
41
  "repository/jquery/1.1.4.js",
43
42
  "repository/jquery/1.2.6.js",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 13
8
- - 0
9
- version: 0.13.0
8
+ - 1
9
+ version: 0.13.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dayton Nolan
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-04-09 00:00:00 -05:00
17
+ date: 2011-04-10 00:00:00 -05:00
18
18
  default_executable: ninjs
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -244,7 +244,6 @@ files:
244
244
  - lib/ninjs/manifest.rb
245
245
  - lib/ninjs/notification.rb
246
246
  - lib/ninjs/project.rb
247
- - ninjs.conf
248
247
  - ninjs.gemspec
249
248
  - repository/jquery/1.1.4.js
250
249
  - repository/jquery/1.2.6.js
@@ -529,7 +528,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
529
528
  requirements:
530
529
  - - ">="
531
530
  - !ruby/object:Gem::Version
532
- hash: 1429544377891496069
531
+ hash: -1421905186216645860
533
532
  segments:
534
533
  - 0
535
534
  version: "0"
data/ninjs.conf DELETED
@@ -1,6 +0,0 @@
1
- name: test
2
- output: expanded
3
- dependencies: ["<jquery/latest>"]
4
- autoload: ["<ninjs/utilities/all>"]
5
- base_url: http://www.example.com/
6
- test_path: tests/