ninjs 0.13.2 → 0.13.3
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/VERSION +1 -1
- data/bin/ninjs +7 -4
- data/lib/ninjs/command.rb +2 -2
- data/ninjs.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.13.
|
|
1
|
+
0.13.3
|
data/bin/ninjs
CHANGED
|
@@ -101,7 +101,7 @@ options = {
|
|
|
101
101
|
:elements => false,
|
|
102
102
|
:model => false,
|
|
103
103
|
:help => false,
|
|
104
|
-
:compress =>
|
|
104
|
+
:compress => nil
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
optparse = OptionParser.new do|opts|
|
|
@@ -196,9 +196,12 @@ case command
|
|
|
196
196
|
puts help[:compile]
|
|
197
197
|
exit
|
|
198
198
|
end
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
|
|
200
|
+
unless options[:compress].nil?
|
|
201
|
+
Ninjs::Command.compile(options[:compress])
|
|
202
|
+
else
|
|
203
|
+
Ninjs::Command.compile()
|
|
204
|
+
end
|
|
202
205
|
# watch
|
|
203
206
|
when "watch"
|
|
204
207
|
if options[:help]
|
data/lib/ninjs/command.rb
CHANGED
|
@@ -48,11 +48,11 @@ module Ninjs
|
|
|
48
48
|
project.create
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
-
def compile(compress_output)
|
|
51
|
+
def compile(compress_output = 'use_config')
|
|
52
52
|
project_path = Dir.getwd << '/'
|
|
53
53
|
raise "ninjs.conf was not located in #{project_path}" unless File.exists? "#{project_path}/ninjs.conf"
|
|
54
54
|
project = Ninjs::Project.new
|
|
55
|
-
project.config.output = compress_output ? 'compressed' : 'expanded'
|
|
55
|
+
project.config.output = compress_output ? 'compressed' : 'expanded' unless compress_output === 'use_config'
|
|
56
56
|
project.update
|
|
57
57
|
end
|
|
58
58
|
|
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.
|
|
8
|
+
s.version = "0.13.3"
|
|
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-05-
|
|
12
|
+
s.date = %q{2011-05-06}
|
|
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}
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ninjs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 45
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 13
|
|
9
|
-
-
|
|
10
|
-
version: 0.13.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.13.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Dayton Nolan
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-05-
|
|
18
|
+
date: 2011-05-06 00:00:00 -05:00
|
|
19
19
|
default_executable: ninjs
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|