extjs-mvc 0.4.0.a → 0.4.0.b
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/extjs-mvc.rb +6 -4
- data/lib/extjs-mvc/generator.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.0.
|
1
|
+
0.4.0.b
|
data/lib/extjs-mvc.rb
CHANGED
@@ -34,10 +34,12 @@ module ExtJS
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
38
|
-
class
|
39
|
-
class
|
40
|
-
class
|
37
|
+
class ArgumentError < Error; status_code(1) ; end
|
38
|
+
class AppNotFound < Error; status_code(2) ; end
|
39
|
+
class AppAlreadyExists < Error; status_code(3) ; end
|
40
|
+
class FileExists < Error; status_code(4) ; end
|
41
|
+
class BuilderError < Error; status_code(5) ; end
|
42
|
+
|
41
43
|
|
42
44
|
|
43
45
|
|
data/lib/extjs-mvc/generator.rb
CHANGED
@@ -16,7 +16,7 @@ module ExtJS
|
|
16
16
|
def self.dispatch(generator, *params)
|
17
17
|
|
18
18
|
unless @@generators.include?(generator)
|
19
|
-
raise ArgumentError.new("Must use one of the following: " + @@generators.join(", ").downcase)
|
19
|
+
raise MVC::ArgumentError.new("Must use one of the following: " + @@generators.join(", ").downcase)
|
20
20
|
end
|
21
21
|
|
22
22
|
name = params.shift
|