newjs 1.7.1 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ == 1.7.2 2009-04-18
2
+
3
+ * newjs command: oops, jquery/prototype installed into src/ext instead of lib/ext
4
+
1
5
  == 1.7.1 2009-04-18
2
6
 
3
7
  * newjs command: -j/--jshoulda flag to use jshoulda instead of vanilla jsunittest
@@ -45,7 +45,7 @@ class NewjsGenerator < RubiGen::Base
45
45
  m.file "test/assets/jsunittest.js", "test/assets/jsunittest.js"
46
46
  m.file "test/assets/jshoulda.js", "test/assets/jshoulda.js" if test_framework
47
47
  m.file "test/assets/unittest.css", "test/assets/unittest.css"
48
- m.file "ext/#{framework}.js", "lib/ext/#{framework}.js" if framework
48
+ m.file "ext/#{framework}.js", "src/ext/#{framework}.js" if framework
49
49
 
50
50
  %w[rstakeout js_autotest].each do |file|
51
51
  m.template "script/#{file}", "script/#{file}", script_options
@@ -119,8 +119,8 @@ EOS
119
119
  # created so don't sweat their absence here.
120
120
  BASEDIRS = %w(
121
121
  config
122
- lib/ext
123
- src
122
+ lib
123
+ src/ext
124
124
  script
125
125
  tasks
126
126
  test/assets
@@ -5,7 +5,7 @@
5
5
  <title>JavaScript unit test file</title>
6
6
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7
7
  <script src="../assets/jsunittest.js" type="text/javascript"></script>
8
- <% if testing_lib == 'jshoulda' %>
8
+ <% if test_framework == 'jshoulda' %>
9
9
  <script src="../assets/jshoulda.js" type="text/javascript"></script>
10
10
  <% end %>
11
11
 
@@ -33,7 +33,7 @@
33
33
 
34
34
  <script type="text/javascript">
35
35
  // <![CDATA[
36
- <% if testing_lib.nil? %>
36
+ <% if test_framework.nil? %>
37
37
  new Test.Unit.Runner({
38
38
  // replace this with your real tests
39
39
  setup: function() {
@@ -54,7 +54,7 @@
54
54
  // That is, you can have multiple "new Test.Unit.Runner() { ... }" on this page, just
55
55
  // create more <div id="testlog2"></div> etc, and pass the element id to the hash above:
56
56
  // e.g. {testLog: "testlog2"}
57
- <% elsif testing_lib == 'jshoulda' %>
57
+ <% elsif test_framework == 'jshoulda' %>
58
58
  context("A context", {
59
59
  setup: function() {
60
60
 
@@ -2,7 +2,7 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Newjs
5
- VERSION = '1.7.1'
5
+ VERSION = '1.7.2'
6
6
  end
7
7
 
8
8
  require 'newjs/jstest'
@@ -62,7 +62,6 @@ class TestNewjsGenerator < Test::Unit::TestCase
62
62
  assert_generated_file "test/assets/unittest.css"
63
63
  assert_generated_file "test/assets/jsunittest.js"
64
64
  assert_generated_file "test/assets/jshoulda.js"
65
- assert_generated_file "lib/ext/jquery.js"
66
65
  assert_generated_file "Rakefile"
67
66
  assert_generated_file "README.txt"
68
67
  assert_generated_file "License.txt"
@@ -75,6 +74,7 @@ class TestNewjsGenerator < Test::Unit::TestCase
75
74
  assert_generated_file "config/javascript_test_autotest.yml.sample"
76
75
  assert_generated_file "src/myproject.js.erb"
77
76
  assert_generated_file "src/HEADER"
77
+ assert_generated_file "src/ext/jquery.js"
78
78
  assert_generated_file "lib/protodoc.rb"
79
79
  assert_generated_file "lib/jstest.rb"
80
80
  end
@@ -31,7 +31,7 @@
31
31
  <h1>JavaScript Project Generator</h1>
32
32
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/newjs"; return false'>
33
33
  <p>Get Version</p>
34
- <a href="http://rubyforge.org/projects/newjs" class="numbers">1.7.0</a>
34
+ <a href="http://rubyforge.org/projects/newjs" class="numbers">1.7.2</a>
35
35
  </div>
36
36
  <h1>&amp;#x2192; &#8216;newjs&#8217;</h1>
37
37
  <h2>What</h2>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-18 00:00:00 +10:00
12
+ date: 2009-04-19 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency