ninjs 0.13.5 → 0.13.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.13.5
1
+ 0.13.6
data/lib/ninjs/command.rb CHANGED
@@ -28,6 +28,7 @@ module Ninjs
28
28
  glob g
29
29
 
30
30
  update do |base, relative|
31
+ project.config.read if relative.match /conf$/
31
32
  puts Ninjs::Notification.event "change detected in #{relative}"
32
33
  project.update
33
34
  end
data/lib/ninjs/project.rb CHANGED
@@ -13,6 +13,7 @@ module Ninjs
13
13
  @modules = Array.new
14
14
  @config = Ninjs::Configuration.new @project_path, name
15
15
  @app_filename = @config.name.downcase
16
+
16
17
  end
17
18
 
18
19
  def add_slashes(dir)
@@ -213,7 +214,7 @@ module Ninjs
213
214
  end
214
215
 
215
216
  def compress_application
216
- application = @project_path + '#{@config.dest_dir}'
217
+ application = @project_path + "#{@config.dest_dir}"
217
218
  modules = Dir.entries(application)
218
219
  modules.reject! { |file| file =~ /^\./ }
219
220
 
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.5"
8
+ s.version = "0.13.6"
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-17}
12
+ s.date = %q{2011-05-19}
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}
@@ -299,7 +299,7 @@ Gem::Specification.new do |s|
299
299
  s.licenses = ["MIT"]
300
300
  s.require_paths = ["lib"]
301
301
  s.rubyforge_project = %q{nowarning}
302
- s.rubygems_version = %q{1.3.7}
302
+ s.rubygems_version = %q{1.5.2}
303
303
  s.summary = %q{ninjs is a command line application to help you write clean, modular javascript applications.}
304
304
  s.test_files = [
305
305
  "spec/helpers_spec.rb",
@@ -311,7 +311,6 @@ Gem::Specification.new do |s|
311
311
  ]
312
312
 
313
313
  if s.respond_to? :specification_version then
314
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
315
314
  s.specification_version = 3
316
315
 
317
316
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
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: 33
5
- prerelease: false
4
+ hash: 39
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 13
9
- - 5
10
- version: 0.13.5
9
+ - 6
10
+ version: 0.13.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dayton Nolan
@@ -15,14 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-17 00:00:00 -05:00
18
+ date: 2011-05-19 00:00:00 -05:00
19
19
  default_executable: ninjs
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  type: :runtime
23
- prerelease: false
24
- name: fssm
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
26
24
  none: false
27
25
  requirements:
28
26
  - - ">="
@@ -31,12 +29,12 @@ dependencies:
31
29
  segments:
32
30
  - 0
33
31
  version: "0"
34
- requirement: *id001
32
+ name: fssm
33
+ version_requirements: *id001
34
+ prerelease: false
35
35
  - !ruby/object:Gem::Dependency
36
36
  type: :runtime
37
- prerelease: false
38
- name: jsmin
39
- version_requirements: &id002 !ruby/object:Gem::Requirement
37
+ requirement: &id002 !ruby/object:Gem::Requirement
40
38
  none: false
41
39
  requirements:
42
40
  - - ">="
@@ -45,12 +43,12 @@ dependencies:
45
43
  segments:
46
44
  - 0
47
45
  version: "0"
48
- requirement: *id002
46
+ name: jsmin
47
+ version_requirements: *id002
48
+ prerelease: false
49
49
  - !ruby/object:Gem::Dependency
50
50
  type: :runtime
51
- prerelease: false
52
- name: sprockets
53
- version_requirements: &id003 !ruby/object:Gem::Requirement
51
+ requirement: &id003 !ruby/object:Gem::Requirement
54
52
  none: false
55
53
  requirements:
56
54
  - - "="
@@ -61,12 +59,12 @@ dependencies:
61
59
  - 0
62
60
  - 2
63
61
  version: 1.0.2
64
- requirement: *id003
62
+ name: sprockets
63
+ version_requirements: *id003
64
+ prerelease: false
65
65
  - !ruby/object:Gem::Dependency
66
66
  type: :development
67
- prerelease: false
68
- name: shoulda
69
- version_requirements: &id004 !ruby/object:Gem::Requirement
67
+ requirement: &id004 !ruby/object:Gem::Requirement
70
68
  none: false
71
69
  requirements:
72
70
  - - ">="
@@ -75,12 +73,12 @@ dependencies:
75
73
  segments:
76
74
  - 0
77
75
  version: "0"
78
- requirement: *id004
76
+ name: shoulda
77
+ version_requirements: *id004
78
+ prerelease: false
79
79
  - !ruby/object:Gem::Dependency
80
80
  type: :development
81
- prerelease: false
82
- name: bundler
83
- version_requirements: &id005 !ruby/object:Gem::Requirement
81
+ requirement: &id005 !ruby/object:Gem::Requirement
84
82
  none: false
85
83
  requirements:
86
84
  - - ~>
@@ -91,12 +89,12 @@ dependencies:
91
89
  - 0
92
90
  - 0
93
91
  version: 1.0.0
94
- requirement: *id005
92
+ name: bundler
93
+ version_requirements: *id005
94
+ prerelease: false
95
95
  - !ruby/object:Gem::Dependency
96
96
  type: :development
97
- prerelease: false
98
- name: jeweler
99
- version_requirements: &id006 !ruby/object:Gem::Requirement
97
+ requirement: &id006 !ruby/object:Gem::Requirement
100
98
  none: false
101
99
  requirements:
102
100
  - - ~>
@@ -107,12 +105,12 @@ dependencies:
107
105
  - 5
108
106
  - 2
109
107
  version: 1.5.2
110
- requirement: *id006
108
+ name: jeweler
109
+ version_requirements: *id006
110
+ prerelease: false
111
111
  - !ruby/object:Gem::Dependency
112
112
  type: :development
113
- prerelease: false
114
- name: rcov
115
- version_requirements: &id007 !ruby/object:Gem::Requirement
113
+ requirement: &id007 !ruby/object:Gem::Requirement
116
114
  none: false
117
115
  requirements:
118
116
  - - ">="
@@ -121,12 +119,12 @@ dependencies:
121
119
  segments:
122
120
  - 0
123
121
  version: "0"
124
- requirement: *id007
122
+ name: rcov
123
+ version_requirements: *id007
124
+ prerelease: false
125
125
  - !ruby/object:Gem::Dependency
126
126
  type: :development
127
- prerelease: false
128
- name: rspec
129
- version_requirements: &id008 !ruby/object:Gem::Requirement
127
+ requirement: &id008 !ruby/object:Gem::Requirement
130
128
  none: false
131
129
  requirements:
132
130
  - - ">="
@@ -135,12 +133,12 @@ dependencies:
135
133
  segments:
136
134
  - 0
137
135
  version: "0"
138
- requirement: *id008
136
+ name: rspec
137
+ version_requirements: *id008
138
+ prerelease: false
139
139
  - !ruby/object:Gem::Dependency
140
140
  type: :runtime
141
- prerelease: false
142
- name: rubikon
143
- version_requirements: &id009 !ruby/object:Gem::Requirement
141
+ requirement: &id009 !ruby/object:Gem::Requirement
144
142
  none: false
145
143
  requirements:
146
144
  - - ">="
@@ -149,12 +147,12 @@ dependencies:
149
147
  segments:
150
148
  - 0
151
149
  version: "0"
152
- requirement: *id009
150
+ name: rubikon
151
+ version_requirements: *id009
152
+ prerelease: false
153
153
  - !ruby/object:Gem::Dependency
154
154
  type: :runtime
155
- prerelease: false
156
- name: fssm
157
- version_requirements: &id010 !ruby/object:Gem::Requirement
155
+ requirement: &id010 !ruby/object:Gem::Requirement
158
156
  none: false
159
157
  requirements:
160
158
  - - ">="
@@ -163,12 +161,12 @@ dependencies:
163
161
  segments:
164
162
  - 0
165
163
  version: "0"
166
- requirement: *id010
164
+ name: fssm
165
+ version_requirements: *id010
166
+ prerelease: false
167
167
  - !ruby/object:Gem::Dependency
168
168
  type: :runtime
169
- prerelease: false
170
- name: jsmin
171
- version_requirements: &id011 !ruby/object:Gem::Requirement
169
+ requirement: &id011 !ruby/object:Gem::Requirement
172
170
  none: false
173
171
  requirements:
174
172
  - - ">="
@@ -177,12 +175,12 @@ dependencies:
177
175
  segments:
178
176
  - 0
179
177
  version: "0"
180
- requirement: *id011
178
+ name: jsmin
179
+ version_requirements: *id011
180
+ prerelease: false
181
181
  - !ruby/object:Gem::Dependency
182
182
  type: :runtime
183
- prerelease: false
184
- name: sprockets
185
- version_requirements: &id012 !ruby/object:Gem::Requirement
183
+ requirement: &id012 !ruby/object:Gem::Requirement
186
184
  none: false
187
185
  requirements:
188
186
  - - ">="
@@ -191,12 +189,12 @@ dependencies:
191
189
  segments:
192
190
  - 0
193
191
  version: "0"
194
- requirement: *id012
192
+ name: sprockets
193
+ version_requirements: *id012
194
+ prerelease: false
195
195
  - !ruby/object:Gem::Dependency
196
196
  type: :development
197
- prerelease: false
198
- name: rspec
199
- version_requirements: &id013 !ruby/object:Gem::Requirement
197
+ requirement: &id013 !ruby/object:Gem::Requirement
200
198
  none: false
201
199
  requirements:
202
200
  - - ">="
@@ -205,7 +203,9 @@ dependencies:
205
203
  segments:
206
204
  - 0
207
205
  version: "0"
208
- requirement: *id013
206
+ name: rspec
207
+ version_requirements: *id013
208
+ prerelease: false
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:
@@ -521,7 +521,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
521
521
  requirements: []
522
522
 
523
523
  rubyforge_project: nowarning
524
- rubygems_version: 1.3.7
524
+ rubygems_version: 1.5.2
525
525
  signing_key:
526
526
  specification_version: 3
527
527
  summary: ninjs is a command line application to help you write clean, modular javascript applications.