ninjs 0.13.4 → 0.13.5
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/README.md +1 -1
- data/VERSION +1 -1
- data/bin/ninjs +22 -21
- data/lib/ninjs/command.rb +15 -32
- data/lib/ninjs/configuration.rb +9 -3
- data/lib/ninjs/generator.rb +33 -24
- data/lib/ninjs/helpers.rb +1 -0
- data/lib/ninjs/notification.rb +1 -1
- data/lib/ninjs/project.rb +34 -18
- data/ninjs.gemspec +14 -5
- data/repository/ninjs/core/application.js +11 -20
- data/repository/ninjs/core/existence.js +37 -11
- data/repository/ninjs/core/extend.js +25 -34
- data/repository/ninjs/core/module.js +38 -49
- data/repository/ninjs/extensions/jquery.elements.js +60 -0
- data/repository/ninjs/utilities/array.js +8 -13
- data/repository/ninjs/utilities/string.js +6 -11
- data/repository/syntaxhighlighter/{default.js → all.js} +0 -0
- data/spec/helpers_spec.rb +11 -0
- data/spec/integration_spec.rb +257 -0
- data/spec/manifest_spec.rb +8 -0
- data/spec/ninjs_spec.rb +29 -250
- data/spec/notification_spec.rb +27 -0
- data/spec/spec_helper.rb +2 -1
- metadata +68 -60
- data/repository/ninjs/extensions/ninjs.jquery.js +0 -67
data/spec/ninjs_spec.rb
CHANGED
@@ -1,257 +1,36 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
3
|
describe Ninjs do
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
@project_path = @spec_dir + 'js/'
|
8
|
-
@new_project = Ninjs::Project.new 'spec/js', 'MyApplication'
|
9
|
-
end
|
10
|
-
|
11
|
-
it 'should have the correct app_filename' do
|
12
|
-
@new_project.config.app_filename.should === 'myapplication'
|
13
|
-
end
|
14
|
-
|
15
|
-
it 'should have the correct project_path' do
|
16
|
-
@new_project.project_path.should === @project_path
|
17
|
-
end
|
18
|
-
|
19
|
-
it 'should have a @config property' do
|
20
|
-
@new_project.config.should_not be_nil
|
21
|
-
end
|
22
|
-
|
23
|
-
it 'should have the correct @config.name' do
|
24
|
-
@new_project.config.name.should === 'MyApplication'
|
25
|
-
end
|
26
|
-
|
27
|
-
it 'should have the correct @config.output' do
|
28
|
-
@new_project.config.output.should === 'expanded'
|
29
|
-
end
|
30
|
-
|
31
|
-
it 'should have the correct @config.dependencies' do
|
32
|
-
@new_project.config.dependencies.should == ["<jquery/latest>"]
|
33
|
-
end
|
34
|
-
|
35
|
-
it 'should have the correct @config.autoload' do
|
36
|
-
@new_project.config.autoload.should == ["<ninjs/utilities/all>"]
|
37
|
-
end
|
38
|
-
|
39
|
-
it 'should have the corect @config.base_url' do
|
40
|
-
@new_project.config.base_url.should == 'http://www.example.com/'
|
41
|
-
end
|
42
|
-
|
43
|
-
it 'should have the correct @config.test_path' do
|
44
|
-
@new_project.config.test_path.should == 'tests/'
|
45
|
-
end
|
46
|
-
|
47
|
-
it 'should respond to create' do
|
48
|
-
@new_project.should respond_to :create
|
49
|
-
end
|
50
|
-
|
51
|
-
it 'should create the project directory' do
|
52
|
-
@new_project.create
|
53
|
-
File.exists?('/Volumes/Storage/Development/ninjs/spec/js').should be_true
|
54
|
-
end
|
4
|
+
it 'should have a BASE_DIR constant' do
|
5
|
+
Ninjs::BASE_DIR.should_not be_nil
|
6
|
+
end
|
55
7
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
it 'should have created a config file' do
|
63
|
-
File.exists?("#{@project_path}ninjs.conf").should be_true
|
64
|
-
end
|
65
|
-
|
66
|
-
it 'should have created the application file' do
|
67
|
-
File.exists?("#{@project_path}application/myapplication.js").should be_true
|
68
|
-
end
|
69
|
-
|
70
|
-
it 'should have created the /lib/nin.js file' do
|
71
|
-
File.exists?("#{@project_path}lib/nin.js")
|
72
|
-
end
|
73
|
-
|
74
|
-
it 'should have created the /lib/utilities.js file' do
|
75
|
-
File.exists?("#{@project_path}lib/utilities.js").should be_true
|
76
|
-
end
|
77
|
-
|
78
|
-
it 'should have created the /tests/index.html file' do
|
79
|
-
File.exists?("#{@project_path}tests/index.html").should be_true
|
80
|
-
end
|
81
|
-
|
82
|
-
it 'should have created the /tests/ninjs.test.js file' do
|
83
|
-
File.exists?("#{@project_path}tests/ninjs.test.js").should be_true
|
84
|
-
end
|
85
|
-
|
86
|
-
it 'should have created the /tests/ninjs.utilties.test.js file' do
|
87
|
-
File.exists?("#{@project_path}tests/ninjs.utilities.test.js").should be_true
|
88
|
-
end
|
89
|
-
|
90
|
-
it 'should have the correct config file content' do
|
91
|
-
expected_conf_file = File.open('/Volumes/Storage/Development/ninjs/spec/fixtures/ninjs.conf', 'r')
|
92
|
-
expected_conf_content = expected_conf_file.readlines
|
93
|
-
expected_conf_file.close
|
94
|
-
|
95
|
-
ninjs_conf_file = File.open("#{@project_path}ninjs.conf", 'r')
|
96
|
-
ninjs_conf_content = ninjs_conf_file.readlines
|
97
|
-
ninjs_conf_file.close
|
98
|
-
|
99
|
-
ninjs_conf_content.should === expected_conf_content
|
100
|
-
end
|
101
|
-
|
102
|
-
it 'should have the correct application file content' do
|
103
|
-
expected_file = File.open('/Volumes/Storage/Development/ninjs/spec/fixtures/myapplication.js', 'r')
|
104
|
-
expected_content = expected_file.readlines
|
105
|
-
|
106
|
-
# .shift is to remove the generated comment which should never match
|
107
|
-
expected_content.shift
|
108
|
-
expected_file.close
|
109
|
-
|
110
|
-
actual_file = File.open("#{@project_path}application/myapplication.js", 'r')
|
111
|
-
actual_content = actual_file.readlines
|
112
|
-
actual_content.shift
|
113
|
-
actual_file.close
|
114
|
-
|
115
|
-
actual_content.should === expected_content
|
116
|
-
end
|
117
|
-
|
118
|
-
it 'should have the correct /lib/nin.js content' do
|
119
|
-
expected_ninjs_lib_file = File.open('/Volumes/Storage/Development/ninjs/spec/fixtures/nin.js', "r")
|
120
|
-
expected_ninjs_lib_content= expected_ninjs_lib_file.readlines
|
121
|
-
expected_ninjs_lib_file.close
|
122
|
-
|
123
|
-
ninjs_lib_file = File.open("#{@project_path}lib/nin.js", "r")
|
124
|
-
ninjs_lib_content = ninjs_lib_file.readlines
|
125
|
-
ninjs_lib_file.close
|
126
|
-
|
127
|
-
ninjs_lib_content.should === expected_ninjs_lib_content
|
128
|
-
end
|
129
|
-
|
130
|
-
it 'should have the correct /lib/utilities.js' do
|
131
|
-
expected_utility_lib_file = File.open("/Volumes/Storage/Development/ninjs/spec/fixtures/utilities.js", "r")
|
132
|
-
expected_utility_lib_content = expected_utility_lib_file.readlines
|
133
|
-
expected_utility_lib_file.close
|
134
|
-
|
135
|
-
utility_lib_file = File.open("#{@project_path}lib/utilities.js", "r")
|
136
|
-
utility_lib_content = utility_lib_file.readlines
|
137
|
-
utility_lib_file.close
|
138
|
-
|
139
|
-
utility_lib_content.should === expected_utility_lib_content
|
140
|
-
end
|
141
|
-
|
142
|
-
context 'and a project is updated' do
|
143
|
-
|
144
|
-
before :each do
|
145
|
-
@path = Dir.getwd
|
146
|
-
@project = Ninjs::Project.new 'spec/js/'
|
147
|
-
|
148
|
-
FileUtils.cp("#{@path}/spec/fixtures/global.module.js", "#{@path}/spec/js/modules") unless File.exists?("#{@path}/spec/js/modules/global.module.js")
|
149
|
-
FileUtils.cp("#{@path}/spec/fixtures/test.module.js", "#{@path}/spec/js/modules") unless File.exists?("#{@path}/spec/js/modules/test.module.js")
|
150
|
-
FileUtils.cp("#{@path}/spec/fixtures/test.elements.js", "#{@path}/spec/js/elements") unless File.exists?("#{@path}/spec/js/elements/test.elements.js")
|
151
|
-
FileUtils.cp("#{@path}/spec/fixtures/test.model.js", "#{@path}/spec/js/models") unless File.exists?("#{@path}/spec/js/models/test.model.js")
|
152
|
-
@project.update
|
153
|
-
end
|
154
|
-
|
155
|
-
it 'should have created the /application/global.js module' do
|
156
|
-
File.exists?("#{@path}/spec/js/application/global.js").should be_true
|
157
|
-
end
|
158
|
-
|
159
|
-
it 'should have created the /application/test.js module' do
|
160
|
-
File.exists?("#{@path}/spec/js/application/test.js").should be_true
|
161
|
-
end
|
162
|
-
|
163
|
-
it 'should have the correct /application/global.js content' do
|
164
|
-
expected_global_file = File.open("#{@path}/spec/fixtures/global.js", "r")
|
165
|
-
expected_global_content = expected_global_file.readlines
|
166
|
-
expected_global_file.close
|
167
|
-
|
168
|
-
actual_global_file = File.open("#{@path}/spec/js/application/global.js", "r")
|
169
|
-
actual_global_content = actual_global_file.readlines
|
170
|
-
actual_global_file.close
|
171
|
-
|
172
|
-
actual_global_content.should == expected_global_content
|
173
|
-
end
|
174
|
-
|
175
|
-
it 'should have the correct /application/test.js content' do
|
176
|
-
expected_test_file = File.open("#{@path}/spec/fixtures/test.js", "r")
|
177
|
-
expected_test_content = expected_test_file.readlines
|
178
|
-
expected_test_file.close
|
179
|
-
|
180
|
-
actual_test_file = File.open("#{@path}/spec/js/application/test.js", "r")
|
181
|
-
actual_test_content = actual_test_file.readlines
|
182
|
-
actual_test_file.close
|
183
|
-
|
184
|
-
actual_test_content.should == expected_test_content
|
185
|
-
end
|
186
|
-
end
|
187
|
-
|
188
|
-
end# context When instantiating a new project
|
8
|
+
it 'should have the correct BASE_DIR' do
|
9
|
+
Ninjs::BASE_DIR.should === '/Users/dnolan/Development/ninjs'
|
10
|
+
end
|
189
11
|
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
it 'should have the correct @config.dependencies' do
|
214
|
-
@existing_project.config.dependencies.should == ["<jquery/latest>"]
|
215
|
-
end
|
216
|
-
|
217
|
-
it 'should have the correct @config.autoload' do
|
218
|
-
@existing_project.config.autoload.should == ["<ninjs/utilities/all>"]
|
219
|
-
end
|
220
|
-
|
221
|
-
it 'should have the corect @config.base_url' do
|
222
|
-
@existing_project.config.base_url == 'http://www.example.com/'
|
223
|
-
end
|
224
|
-
|
225
|
-
it 'should have the correct @config.test_path' do
|
226
|
-
@existing_project.config.test_path == 'tests/'
|
227
|
-
end
|
228
|
-
|
229
|
-
it 'should not need a hack to delete all the files' do
|
230
|
-
File.delete("#{@project_path}ninjs.conf") if File.exists?("#{@project_path}ninjs.conf")
|
231
|
-
File.delete("#{@project_path}application/myapplication.js") if File.exists?("#{@project_path}application/myapplication.js")
|
232
|
-
File.delete("#{@project_path}application/global.js") if File.exists?("#{@project_path}application/global.js")
|
233
|
-
File.delete("#{@project_path}application/test.js") if File.exists?("#{@project_path}application/test.js")
|
234
|
-
File.delete("#{@project_path}elements/test.elements.js") if File.exists?("#{@project_path}elements/test.elements.js")
|
235
|
-
File.delete("#{@project_path}models/test.model.js") if File.exists?("#{@project_path}models/test.model.js")
|
236
|
-
File.delete("#{@project_path}lib/nin.js") if File.exists?("#{@project_path}lib/nin.js")
|
237
|
-
File.delete("#{@project_path}lib/utilities.js") if File.exists?("#{@project_path}lib/utilities.js")
|
238
|
-
File.delete("#{@project_path}tests/index.html") if File.exists?("#{@project_path}tests/index.html")
|
239
|
-
File.delete("#{@project_path}tests/ninjs.test.js") if File.exists?("#{@project_path}tests/ninjs.test.js")
|
240
|
-
File.delete("#{@project_path}tests/ninjs.utilities.test.js") if File.exists?("#{@project_path}tests/ninjs.utilities.test.js")
|
241
|
-
File.delete("#{@project_path}tests/qunit/qunit.css") if File.exists?("#{@project_path}tests/qunit/qunit.css")
|
242
|
-
File.delete("#{@project_path}tests/qunit/qunit.js") if File.exists?("#{@project_path}tests/qunit/qunit.js")
|
243
|
-
Dir.delete("#{@project_path}tests/qunit") if File.exists?("#{@project_path}tests/qunit")
|
244
|
-
File.delete("#{@project_path}modules/global.module.js") if File.exists?("#{@project_path}modules/global.module.js")
|
245
|
-
File.delete("#{@project_path}modules/test.module.js") if File.exists?("#{@project_path}modules/test.module.js")
|
246
|
-
|
247
|
-
Ninjs::Manifest.directories.each do |folder|
|
248
|
-
Dir.delete("#{@project_path}#{folder}") if File.exists? "#{@project_path}#{folder}"
|
249
|
-
end
|
250
|
-
|
251
|
-
Dir.delete('/Volumes/Storage/Development/ninjs/spec/js') if File.exists?('/Volumes/Storage/Development/ninjs/spec/js')
|
252
|
-
true.should be_true
|
253
|
-
end
|
254
|
-
|
12
|
+
it 'should have a LIB_DIR constant' do
|
13
|
+
Ninjs::LIB_DIR.should_not be_nil
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'should have the correct LIB_DIR' do
|
17
|
+
Ninjs::LIB_DIR.should === '/Users/dnolan/Development/ninjs/lib'
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'should have a ROOT_DIR constant' do
|
21
|
+
Ninjs::ROOT_DIR.should_not be_nil
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'should have the correct ROOT_DIR' do
|
25
|
+
Ninjs::ROOT_DIR.should === '/Users/dnolan/Development/ninjs/spec'
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'should have a VERSION constant' do
|
29
|
+
Ninjs::VERSION.should_not be_nil
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'should have the correct VERSION' do
|
33
|
+
version = File.open("#{Ninjs::BASE_DIR}/VERSION").readlines.join('')
|
34
|
+
Ninjs::VERSION.should === version
|
255
35
|
end
|
256
|
-
|
257
36
|
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Ninjs::Notification do
|
4
|
+
it 'should have a notify method' do
|
5
|
+
Ninjs::Notification.notify('hello', :none).should == 'hello'
|
6
|
+
end
|
7
|
+
|
8
|
+
it 'should have a notice method' do
|
9
|
+
Ninjs::Notification.notice('hello').should === 'hello'
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'should have a log method' do
|
13
|
+
Ninjs::Notification.log('hello').should === "\e[32m>>>\e[0m hello"
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'should have an event method' do
|
17
|
+
Ninjs::Notification.event('hello').should === "\e[33m<<<\e[0m hello"
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'should have an added method' do
|
21
|
+
Ninjs::Notification.added('hello').should === "\e[32m+++\e[0m hello"
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'should have an error method' do
|
25
|
+
Ninjs::Notification.error('hello').should === "\e[0;31m!!!\e[0m hello"
|
26
|
+
end
|
27
|
+
end
|
data/spec/spec_helper.rb
CHANGED
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 33
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 13
|
9
|
-
-
|
10
|
-
version: 0.13.
|
9
|
+
- 5
|
10
|
+
version: 0.13.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dayton Nolan
|
@@ -15,12 +15,14 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-17 00:00:00 -05:00
|
19
19
|
default_executable: ninjs
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
type: :runtime
|
23
|
-
|
23
|
+
prerelease: false
|
24
|
+
name: fssm
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
26
|
none: false
|
25
27
|
requirements:
|
26
28
|
- - ">="
|
@@ -29,12 +31,12 @@ dependencies:
|
|
29
31
|
segments:
|
30
32
|
- 0
|
31
33
|
version: "0"
|
32
|
-
|
33
|
-
version_requirements: *id001
|
34
|
-
prerelease: false
|
34
|
+
requirement: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
type: :runtime
|
37
|
-
|
37
|
+
prerelease: false
|
38
|
+
name: jsmin
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
40
|
none: false
|
39
41
|
requirements:
|
40
42
|
- - ">="
|
@@ -43,12 +45,12 @@ dependencies:
|
|
43
45
|
segments:
|
44
46
|
- 0
|
45
47
|
version: "0"
|
46
|
-
|
47
|
-
version_requirements: *id002
|
48
|
-
prerelease: false
|
48
|
+
requirement: *id002
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
type: :runtime
|
51
|
-
|
51
|
+
prerelease: false
|
52
|
+
name: sprockets
|
53
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
52
54
|
none: false
|
53
55
|
requirements:
|
54
56
|
- - "="
|
@@ -59,12 +61,12 @@ dependencies:
|
|
59
61
|
- 0
|
60
62
|
- 2
|
61
63
|
version: 1.0.2
|
62
|
-
|
63
|
-
version_requirements: *id003
|
64
|
-
prerelease: false
|
64
|
+
requirement: *id003
|
65
65
|
- !ruby/object:Gem::Dependency
|
66
66
|
type: :development
|
67
|
-
|
67
|
+
prerelease: false
|
68
|
+
name: shoulda
|
69
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
68
70
|
none: false
|
69
71
|
requirements:
|
70
72
|
- - ">="
|
@@ -73,12 +75,12 @@ dependencies:
|
|
73
75
|
segments:
|
74
76
|
- 0
|
75
77
|
version: "0"
|
76
|
-
|
77
|
-
version_requirements: *id004
|
78
|
-
prerelease: false
|
78
|
+
requirement: *id004
|
79
79
|
- !ruby/object:Gem::Dependency
|
80
80
|
type: :development
|
81
|
-
|
81
|
+
prerelease: false
|
82
|
+
name: bundler
|
83
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
82
84
|
none: false
|
83
85
|
requirements:
|
84
86
|
- - ~>
|
@@ -89,12 +91,12 @@ dependencies:
|
|
89
91
|
- 0
|
90
92
|
- 0
|
91
93
|
version: 1.0.0
|
92
|
-
|
93
|
-
version_requirements: *id005
|
94
|
-
prerelease: false
|
94
|
+
requirement: *id005
|
95
95
|
- !ruby/object:Gem::Dependency
|
96
96
|
type: :development
|
97
|
-
|
97
|
+
prerelease: false
|
98
|
+
name: jeweler
|
99
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
98
100
|
none: false
|
99
101
|
requirements:
|
100
102
|
- - ~>
|
@@ -105,12 +107,12 @@ dependencies:
|
|
105
107
|
- 5
|
106
108
|
- 2
|
107
109
|
version: 1.5.2
|
108
|
-
|
109
|
-
version_requirements: *id006
|
110
|
-
prerelease: false
|
110
|
+
requirement: *id006
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
type: :development
|
113
|
-
|
113
|
+
prerelease: false
|
114
|
+
name: rcov
|
115
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
114
116
|
none: false
|
115
117
|
requirements:
|
116
118
|
- - ">="
|
@@ -119,12 +121,12 @@ dependencies:
|
|
119
121
|
segments:
|
120
122
|
- 0
|
121
123
|
version: "0"
|
122
|
-
|
123
|
-
version_requirements: *id007
|
124
|
-
prerelease: false
|
124
|
+
requirement: *id007
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
type: :development
|
127
|
-
|
127
|
+
prerelease: false
|
128
|
+
name: rspec
|
129
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
128
130
|
none: false
|
129
131
|
requirements:
|
130
132
|
- - ">="
|
@@ -133,12 +135,12 @@ dependencies:
|
|
133
135
|
segments:
|
134
136
|
- 0
|
135
137
|
version: "0"
|
136
|
-
|
137
|
-
version_requirements: *id008
|
138
|
-
prerelease: false
|
138
|
+
requirement: *id008
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
type: :runtime
|
141
|
-
|
141
|
+
prerelease: false
|
142
|
+
name: rubikon
|
143
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
142
144
|
none: false
|
143
145
|
requirements:
|
144
146
|
- - ">="
|
@@ -147,12 +149,12 @@ dependencies:
|
|
147
149
|
segments:
|
148
150
|
- 0
|
149
151
|
version: "0"
|
150
|
-
|
151
|
-
version_requirements: *id009
|
152
|
-
prerelease: false
|
152
|
+
requirement: *id009
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
type: :runtime
|
155
|
-
|
155
|
+
prerelease: false
|
156
|
+
name: fssm
|
157
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
156
158
|
none: false
|
157
159
|
requirements:
|
158
160
|
- - ">="
|
@@ -161,12 +163,12 @@ dependencies:
|
|
161
163
|
segments:
|
162
164
|
- 0
|
163
165
|
version: "0"
|
164
|
-
|
165
|
-
version_requirements: *id010
|
166
|
-
prerelease: false
|
166
|
+
requirement: *id010
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
type: :runtime
|
169
|
-
|
169
|
+
prerelease: false
|
170
|
+
name: jsmin
|
171
|
+
version_requirements: &id011 !ruby/object:Gem::Requirement
|
170
172
|
none: false
|
171
173
|
requirements:
|
172
174
|
- - ">="
|
@@ -175,12 +177,12 @@ dependencies:
|
|
175
177
|
segments:
|
176
178
|
- 0
|
177
179
|
version: "0"
|
178
|
-
|
179
|
-
version_requirements: *id011
|
180
|
-
prerelease: false
|
180
|
+
requirement: *id011
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
type: :runtime
|
183
|
-
|
183
|
+
prerelease: false
|
184
|
+
name: sprockets
|
185
|
+
version_requirements: &id012 !ruby/object:Gem::Requirement
|
184
186
|
none: false
|
185
187
|
requirements:
|
186
188
|
- - ">="
|
@@ -189,12 +191,12 @@ dependencies:
|
|
189
191
|
segments:
|
190
192
|
- 0
|
191
193
|
version: "0"
|
192
|
-
|
193
|
-
version_requirements: *id012
|
194
|
-
prerelease: false
|
194
|
+
requirement: *id012
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
type: :development
|
197
|
-
|
197
|
+
prerelease: false
|
198
|
+
name: rspec
|
199
|
+
version_requirements: &id013 !ruby/object:Gem::Requirement
|
198
200
|
none: false
|
199
201
|
requirements:
|
200
202
|
- - ">="
|
@@ -203,9 +205,7 @@ dependencies:
|
|
203
205
|
segments:
|
204
206
|
- 0
|
205
207
|
version: "0"
|
206
|
-
|
207
|
-
version_requirements: *id013
|
208
|
-
prerelease: false
|
208
|
+
requirement: *id013
|
209
209
|
description: 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/).
|
210
210
|
email: daytonn@gmail.com
|
211
211
|
executables:
|
@@ -383,7 +383,7 @@ files:
|
|
383
383
|
- repository/ninjs/docs/search/VariablesR.html
|
384
384
|
- repository/ninjs/docs/search/VariablesT.html
|
385
385
|
- repository/ninjs/docs/styles/main.css
|
386
|
-
- repository/ninjs/extensions/
|
386
|
+
- repository/ninjs/extensions/jquery.elements.js
|
387
387
|
- repository/ninjs/tests/index.html
|
388
388
|
- repository/ninjs/tests/ninjs.test.js
|
389
389
|
- repository/ninjs/tests/ninjs.utilities.test.js
|
@@ -400,6 +400,7 @@ files:
|
|
400
400
|
- repository/qunit/qunit.js
|
401
401
|
- repository/selectivizr/1.0.js
|
402
402
|
- repository/selectivizr/latest.js
|
403
|
+
- repository/syntaxhighlighter/all.js
|
403
404
|
- repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCore.css
|
404
405
|
- repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDefault.css
|
405
406
|
- repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDjango.css
|
@@ -435,7 +436,6 @@ files:
|
|
435
436
|
- repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeMidnight.scss
|
436
437
|
- repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeRDark.scss
|
437
438
|
- repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_theme_template.scss
|
438
|
-
- repository/syntaxhighlighter/default.js
|
439
439
|
- repository/syntaxhighlighter/shAutoloader.js
|
440
440
|
- repository/syntaxhighlighter/shBrushAS3.js
|
441
441
|
- repository/syntaxhighlighter/shBrushAppleScript.js
|
@@ -475,7 +475,11 @@ files:
|
|
475
475
|
- spec/fixtures/test.module.js
|
476
476
|
- spec/fixtures/updated.myapplication.js
|
477
477
|
- spec/fixtures/utilities.js
|
478
|
+
- spec/helpers_spec.rb
|
479
|
+
- spec/integration_spec.rb
|
480
|
+
- spec/manifest_spec.rb
|
478
481
|
- spec/ninjs_spec.rb
|
482
|
+
- spec/notification_spec.rb
|
479
483
|
- spec/spec_helper.rb
|
480
484
|
- tmp/ff9e83aa019b712b90200b8d1b8fa0c7e14576af.json
|
481
485
|
- tmp/metric_fu/_data/20110305.yml
|
@@ -517,10 +521,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
517
521
|
requirements: []
|
518
522
|
|
519
523
|
rubyforge_project: nowarning
|
520
|
-
rubygems_version: 1.
|
524
|
+
rubygems_version: 1.3.7
|
521
525
|
signing_key:
|
522
526
|
specification_version: 3
|
523
527
|
summary: ninjs is a command line application to help you write clean, modular javascript applications.
|
524
528
|
test_files:
|
529
|
+
- spec/helpers_spec.rb
|
530
|
+
- spec/integration_spec.rb
|
531
|
+
- spec/manifest_spec.rb
|
525
532
|
- spec/ninjs_spec.rb
|
533
|
+
- spec/notification_spec.rb
|
526
534
|
- spec/spec_helper.rb
|