newjs 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'rubigen'
5
+
6
+ if %w(-v --version).include? ARGV.first
7
+ require 'newjs/version'
8
+ puts "#{File.basename($0)} #{Newjs::VERSION::STRING}"
9
+ exit(0)
10
+ end
11
+
12
+ require 'rubigen/scripts/generate'
13
+ source = RubiGen::PathSource.new(:application,
14
+ File.join(File.dirname(__FILE__), "../app_generators"))
15
+ RubiGen::Base.reset_sources
16
+ RubiGen::Base.append_sources source
17
+ RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'newjs_iphone')
@@ -2,7 +2,7 @@ module Newjs #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 5
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -0,0 +1,18 @@
1
+ namespace 'jsunittest' do
2
+ desc "Updates the jsunittest.js assets in generators"
3
+ task :update do
4
+ require "fileutils"
5
+ FileUtils.mkdir_p(cache = "/tmp/jsunittest")
6
+ target_folders =
7
+ `find * -name jsunittest.js | sed -e "s/jsunittest.js$//"`.split("\n")
8
+ path = "http://jsunittest.com/dist/jsunittest-getting-started/assets/"
9
+ %w[jsunittest.js unittest.css].
10
+ each do |f|
11
+ sh "curl -o #{cache}/#{f} #{path}#{f}"
12
+
13
+ target_folders.each do |folder|
14
+ FileUtils.cp "#{cache}/#{f}", folder
15
+ end
16
+ end
17
+ end
18
+ 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.5.0</a>
34
+ <a href="http://rubyforge.org/projects/newjs" class="numbers">1.5.1</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.5.0
4
+ version: 1.5.1
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: 2008-10-08 00:00:00 +10:00
12
+ date: 2008-10-09 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -27,6 +27,7 @@ email:
27
27
  - drnicwilliams@gmail.com
28
28
  executables:
29
29
  - newjs
30
+ - newjs_iphone
30
31
  extensions: []
31
32
 
32
33
  extra_rdoc_files:
@@ -63,7 +64,23 @@ files:
63
64
  - app_generators/newjs/templates/test/assets/prototype.js
64
65
  - app_generators/newjs/templates/test/assets/unittest.css
65
66
  - app_generators/newjs/templates/test/assets/unittest.js
67
+ - app_generators/newjs_iphone/USAGE
68
+ - app_generators/newjs_iphone/newjs_iphone_generator.rb
69
+ - app_generators/newjs_iphone/templates/Html/Rakefile.erb
70
+ - app_generators/newjs_iphone/templates/Html/config/javascript_test_autotest.yml.sample
71
+ - app_generators/newjs_iphone/templates/Html/lib/jstest.rb
72
+ - app_generators/newjs_iphone/templates/Html/lib/protodoc.rb
73
+ - app_generators/newjs_iphone/templates/Html/script/js_autotest
74
+ - app_generators/newjs_iphone/templates/Html/script/rstakeout
75
+ - app_generators/newjs_iphone/templates/Html/script/win_script.cmd
76
+ - app_generators/newjs_iphone/templates/Html/src/library.js.erb
77
+ - app_generators/newjs_iphone/templates/Html/tasks/javascript_test_autotest_tasks.rake
78
+ - app_generators/newjs_iphone/templates/Html/test/assets/jsunittest.js
79
+ - app_generators/newjs_iphone/templates/Html/test/assets/prototype.js
80
+ - app_generators/newjs_iphone/templates/Html/test/assets/unittest.css
81
+ - app_generators/newjs_iphone/templates/Html/test/assets/unittest.js
66
82
  - bin/newjs
83
+ - bin/newjs_iphone
67
84
  - config/hoe.rb
68
85
  - config/requirements.rb
69
86
  - javascript_test_generators/functional_test/USAGE
@@ -118,6 +135,7 @@ files:
118
135
  - setup.rb
119
136
  - tasks/deployment.rake
120
137
  - tasks/environment.rake
138
+ - tasks/jsunittest/update.rake
121
139
  - tasks/website.rake
122
140
  - test/test_functional_test_generator.rb
123
141
  - test/test_generator_helper.rb
@@ -125,6 +143,7 @@ files:
125
143
  - test/test_install_website_generator.rb
126
144
  - test/test_javascript_test_generator.rb
127
145
  - test/test_newjs_generator.rb
146
+ - test/test_newjs_iphone_generator.rb
128
147
  - test/test_plain_theme_generator.rb
129
148
  - test/test_unit_test_generator.rb
130
149
  - website/images/example-unittest-log.jpg