judojs 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,24 +33,24 @@ class TC_TestProject < Test::Unit::TestCase
33
33
  end
34
34
  assert(File.exists?('/Volumes/Storage/Development/judojs/tests/js/judojs.conf'), 'judojs.conf was created successfully')
35
35
  assert(File.exists?('/Volumes/Storage/Development/judojs/tests/js/application/myapplication.js'), 'application/myapplication.js was created successfully')
36
- assert(File.exists?('/Volumes/Storage/Development/judojs/tests/js/lib/judojs.js'), 'lib/judosj.js was created successfully')
36
+ assert(File.exists?('/Volumes/Storage/Development/judojs/tests/js/lib/judo.js'), 'lib/judo.js was created successfully')
37
37
  assert(File.exists?('/Volumes/Storage/Development/judojs/tests/js/lib/utilities.js'), 'lib/utilities.js was created successfully')
38
- assert(File.exists?("/Volumes/Storage/Development/judojs/tests/js/tests/index.html"), "tests/index.html was created successfully")
39
- assert(File.exists?("/Volumes/Storage/Development/judojs/tests/js/tests/judojs.test.js"), "tests/judojs.test.js was created successfully")
40
- assert(File.exists?("/Volumes/Storage/Development/judojs/tests/js/tests/judojs.utilities.test.js"), "tests/judo.utilities.test.js was created successfully")
38
+ assert(File.exists?('/Volumes/Storage/Development/judojs/tests/js/tests/index.html'), 'tests/index.html was created successfully')
39
+ assert(File.exists?('/Volumes/Storage/Development/judojs/tests/js/tests/judojs.test.js'), 'tests/judojs.test.js was created successfully')
40
+ assert(File.exists?('/Volumes/Storage/Development/judojs/tests/js/tests/judojs.utilities.test.js'), 'tests/judo.utilities.test.js was created successfully')
41
41
  end
42
42
 
43
43
  def test_judo_conf_content
44
- expected_conf_lib_file = File.open("/Volumes/Storage/Development/judo/tests/fixtures/judo.conf", "r")
45
- judo_conf_file = File.open("/Volumes/Storage/Development/judo/tests/js/judo.conf", "r")
46
- assert_equal(expected_conf_lib_file.readlines, judo_conf_file.readlines, "judo.conf file has correct contents")
44
+ expected_conf_lib_file = File.open('/Volumes/Storage/Development/judojs/tests/fixtures/judojs.conf', 'r')
45
+ judo_conf_file = File.open('/Volumes/Storage/Development/judojs/tests/js/judojs.conf', 'r')
46
+ assert_equal(expected_conf_lib_file.readlines, judo_conf_file.readlines, 'judojs.conf file has correct contents')
47
47
  judo_conf_file.close
48
48
  expected_conf_lib_file.close
49
49
  end
50
50
 
51
51
  def test_judo_application_content
52
- expected_file = File.open("/Volumes/Storage/Development/judojs/tests/fixtures/myapplication.js", "r")
53
- actual_file = File.open("/Volumes/Storage/Development/judojs/tests/js/application/myapplication.js", "r")
52
+ expected_file = File.open('/Volumes/Storage/Development/judojs/tests/fixtures/myapplication.js', 'r')
53
+ actual_file = File.open('/Volumes/Storage/Development/judojs/tests/js/application/myapplication.js', 'r')
54
54
  expected_content = expected_file.readlines
55
55
  expected_content.shift
56
56
  actual_content = actual_file.readlines
@@ -61,9 +61,9 @@ class TC_TestProject < Test::Unit::TestCase
61
61
  end
62
62
 
63
63
  def test_library_files_content
64
- expected_judo_lib_file = File.open("/Volumes/Storage/Development/judojs/tests/fixtures/judojs.js", "r")
65
- judo_lib_file = File.open("/Volumes/Storage/Development/judojs/tests/js/lib/judojs.js", "r")
66
- assert_equal(expected_judo_lib_file.readlines, judo_lib_file.readlines, "lib/judojs.js file has correct contents")
64
+ expected_judo_lib_file = File.open('/Volumes/Storage/Development/judojs/tests/fixtures/judo.js', "r")
65
+ judo_lib_file = File.open("/Volumes/Storage/Development/judojs/tests/js/lib/judo.js", "r")
66
+ assert_equal(expected_judo_lib_file.readlines, judo_lib_file.readlines, "lib/judo.js file has correct contents")
67
67
  judo_lib_file.close
68
68
  expected_judo_lib_file.close
69
69
 
data/tests/update_test.rb CHANGED
@@ -13,7 +13,6 @@ class TC_TestProject < Test::Unit::TestCase
13
13
  File.copy("#{@path}/fixtures/test.module.js", "#{@path}/js/modules")
14
14
  File.copy("#{@path}/fixtures/test.elements.js", "#{@path}/js/elements")
15
15
  File.copy("#{@path}/fixtures/test.model.js", "#{@path}/js/models")
16
- File.copy("#{@path}/fixtures/update.judojs.conf", "#{@path}/js/judojs.conf")
17
16
 
18
17
  @test_project = Judojs::Project.init_with_config('/Volumes/Storage/Development/judojs/tests/js/')
19
18
  @test_project.update
@@ -35,14 +34,6 @@ class TC_TestProject < Test::Unit::TestCase
35
34
  assert_equal(expected_content, actual_content, "test.js file has correct contents")
36
35
  actual_file.close
37
36
  expected_file.close
38
-
39
- expected_file = File.open("/Volumes/Storage/Development/judojs/tests/fixtures/update.judojs.conf", "r")
40
- actual_file = File.open("/Volumes/Storage/Development/judojs/tests/js/judojs.conf", "r")
41
- expected_content = expected_file.readlines
42
- actual_content = actual_file.readlines
43
- assert_equal(expected_content, actual_content, "test.js file has correct contents")
44
- actual_file.close
45
- expected_file.close
46
37
  end
47
38
 
48
39
  def teardown
@@ -52,7 +43,7 @@ class TC_TestProject < Test::Unit::TestCase
52
43
  File.delete('/Volumes/Storage/Development/judojs/tests/js/application/test.js') if File.exists?('/Volumes/Storage/Development/judojs/tests/js/application/test.js')
53
44
  File.delete('/Volumes/Storage/Development/judojs/tests/js/elements/test.elements.js') if File.exists?('/Volumes/Storage/Development/judojs/tests/js/elements/test.elements.js')
54
45
  File.delete('/Volumes/Storage/Development/judojs/tests/js/models/test.model.js') if File.exists?('/Volumes/Storage/Development/judojs/tests/js/models/test.model.js')
55
- File.delete('/Volumes/Storage/Development/judojs/tests/js/lib/judojs.js') if File.exists?('/Volumes/Storage/Development/judojs/tests/js/lib/judojs.js')
46
+ File.delete('/Volumes/Storage/Development/judojs/tests/js/lib/judo.js') if File.exists?('/Volumes/Storage/Development/judojs/tests/js/lib/judo.js')
56
47
  File.delete('/Volumes/Storage/Development/judojs/tests/js/lib/utilities.js') if File.exists?('/Volumes/Storage/Development/judojs/tests/js/lib/utilities.js')
57
48
  File.delete("/Volumes/Storage/Development/judojs/tests/js/tests/index.html") if File.exists?("/Volumes/Storage/Development/judojs/tests/js/tests/index.html")
58
49
  File.delete("/Volumes/Storage/Development/judojs/tests/js/tests/judojs.test.js") if File.exists?("/Volumes/Storage/Development/judojs/tests/js/tests/judojs.test.js")
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: judojs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 9
9
- - 2
10
- version: 0.9.2
8
+ - 3
9
+ version: 0.9.3
11
10
  platform: ruby
12
11
  authors:
13
12
  - Dayton Nolan
@@ -15,66 +14,75 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-06-25 00:00:00 -05:00
17
+ date: 2010-12-02 00:00:00 -06:00
19
18
  default_executable: bin/judojs
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- name: fssm
21
+ name: simpleconsole
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 3
30
28
  segments:
31
29
  - 0
32
30
  version: "0"
33
31
  type: :runtime
34
32
  version_requirements: *id001
35
33
  - !ruby/object:Gem::Dependency
36
- name: yaml
34
+ name: fssm
37
35
  prerelease: false
38
36
  requirement: &id002 !ruby/object:Gem::Requirement
39
37
  none: false
40
38
  requirements:
41
39
  - - ">="
42
40
  - !ruby/object:Gem::Version
43
- hash: 3
44
41
  segments:
45
42
  - 0
46
43
  version: "0"
47
44
  type: :runtime
48
45
  version_requirements: *id002
49
46
  - !ruby/object:Gem::Dependency
50
- name: jsmin
47
+ name: yaml
51
48
  prerelease: false
52
49
  requirement: &id003 !ruby/object:Gem::Requirement
53
50
  none: false
54
51
  requirements:
55
52
  - - ">="
56
53
  - !ruby/object:Gem::Version
57
- hash: 3
58
54
  segments:
59
55
  - 0
60
56
  version: "0"
61
57
  type: :runtime
62
58
  version_requirements: *id003
63
59
  - !ruby/object:Gem::Dependency
64
- name: sprockets
60
+ name: jsmin
65
61
  prerelease: false
66
62
  requirement: &id004 !ruby/object:Gem::Requirement
67
63
  none: false
68
64
  requirements:
69
65
  - - ">="
70
66
  - !ruby/object:Gem::Version
71
- hash: 3
72
67
  segments:
73
68
  - 0
74
69
  version: "0"
75
70
  type: :runtime
76
71
  version_requirements: *id004
77
- description: judojs is a javascript meta framework. judojs uses the Sprockets engine (http://getsprockets.org/) to allow you to create modular javascript applications.
72
+ - !ruby/object:Gem::Dependency
73
+ name: sprockets
74
+ prerelease: false
75
+ requirement: &id005 !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ segments:
81
+ - 0
82
+ version: "0"
83
+ type: :runtime
84
+ version_requirements: *id005
85
+ description: JudoJs is a javascript meta framework. JudoJs uses the Sprockets engine (http://getsprockets.org/) to allow you to create modular javascript applications.
78
86
  email: daytonn@gmail.com
79
87
  executables:
80
88
  - judojs
@@ -98,6 +106,8 @@ files:
98
106
  - repository/jquery/1.2.6.js
99
107
  - repository/jquery/1.3.2.js
100
108
  - repository/jquery/1.4.2.js
109
+ - repository/jquery/1.4.3.js
110
+ - repository/jquery/1.4.4.js
101
111
  - repository/jquery/latest.js
102
112
  - repository/judojs/core/existence.js
103
113
  - repository/judojs/core/extend.js
@@ -124,7 +134,6 @@ files:
124
134
  - tests/fixtures/test.js
125
135
  - tests/fixtures/test.model.js
126
136
  - tests/fixtures/test.module.js
127
- - tests/fixtures/update.judojs.conf
128
137
  - tests/fixtures/updated.myapplication.js
129
138
  - tests/fixtures/utilities.js
130
139
  has_rdoc: true
@@ -141,7 +150,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
150
  requirements:
142
151
  - - ">="
143
152
  - !ruby/object:Gem::Version
144
- hash: 3
145
153
  segments:
146
154
  - 0
147
155
  version: "0"
@@ -150,7 +158,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
158
  requirements:
151
159
  - - ">="
152
160
  - !ruby/object:Gem::Version
153
- hash: 3
154
161
  segments:
155
162
  - 0
156
163
  version: "0"
@@ -1,4 +0,0 @@
1
- project_path: /Volumes/Storage/Development/judo/tests/js/
2
- name: MyApplication
3
- output: compressed
4
- autoload: ["<judo/utilities/all>"]