modjs-architecture 0.6.6 → 0.6.7
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/lib/modjs-architecture.rb +1 -1
- data/modjs-architecture.gemspec +1 -1
- data/spec/fixtures/templates_compiled.js +3 -3
- data/spec/modjs-architecture_spec.rb +3 -3
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.7
|
data/lib/modjs-architecture.rb
CHANGED
data/modjs-architecture.gemspec
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
myapp.Templates = {
|
|
2
|
-
"test": function(obj){var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('<h1> ',
|
|
3
|
-
"test_two": function(obj){var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('I can put anything I want in here ',
|
|
4
|
-
}
|
|
2
|
+
"test": function(obj){var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('<h1> ', title ,' </h1>');}return __p.join('');},
|
|
3
|
+
"test_two": function(obj){var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('I can put anything I want in here ', foo ,'');}return __p.join('');}
|
|
4
|
+
};
|
|
@@ -89,13 +89,13 @@ describe ModJS::Blueprint do
|
|
|
89
89
|
end
|
|
90
90
|
|
|
91
91
|
after :each do
|
|
92
|
-
|
|
92
|
+
FileUtils.rm_rf(TMP_DIR)
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
it 'should compile the application file' do
|
|
96
96
|
File.exists?("#{TMP_DIR}/application/myapp.js").should be_true
|
|
97
97
|
end
|
|
98
|
-
|
|
98
|
+
|
|
99
99
|
it 'should compile the test module' do
|
|
100
100
|
File.exists?("#{TMP_DIR}/application/test.js").should be_true
|
|
101
101
|
end
|
|
@@ -104,7 +104,7 @@ describe ModJS::Blueprint do
|
|
|
104
104
|
File.exists?("#{TMP_DIR}/application/templates.js").should be_true
|
|
105
105
|
"#{TMP_DIR}/application/templates.js".should be_same_file_as "#{FIXTURES}/templates_compiled.js"
|
|
106
106
|
end
|
|
107
|
-
|
|
107
|
+
|
|
108
108
|
end
|
|
109
109
|
|
|
110
110
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: modjs-architecture
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.7
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -209,7 +209,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
209
209
|
version: '0'
|
|
210
210
|
segments:
|
|
211
211
|
- 0
|
|
212
|
-
hash: -
|
|
212
|
+
hash: -2351702679010492882
|
|
213
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
none: false
|
|
215
215
|
requirements:
|