envjs 0.3.0 → 0.3.1

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/.jslintrbrc CHANGED
@@ -25,5 +25,6 @@
25
25
  "plusplus": false,
26
26
  "strict": false,
27
27
  "eqeqeq": false,
28
- "evil": true
28
+ "evil": true,
29
+ "gettersetter": true
29
30
  }
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.3.1 / 2010-03-30
2
+
3
+ * fix problem with set history fn name
4
+ * add jslintrb infra
5
+
1
6
  === 0.3.0 / 2010-03-29
2
7
 
3
8
  * minor changes for dependences and cleanup
data/Manifest.txt CHANGED
@@ -198,6 +198,7 @@ test/base64.js
198
198
  test/call-load-test.js
199
199
  test/data.js
200
200
  test/debug.js
201
+ test/dmathieu/index.html
201
202
  test/firebug/errorIcon.png
202
203
  test/firebug/firebug.css
203
204
  test/firebug/firebug.html
data/Wakefile CHANGED
@@ -1,5 +1,9 @@
1
1
  # -*- mode: ruby -*-
2
2
 
3
+ ignore "src/parser/html5*"
4
+
5
+ # jslintrb "src/**/*"
6
+
3
7
  watch %r{(^src/.*)\.js$} do
4
8
  cmd = "rake johnson:compile"
5
9
  puts cmd
data/lib/envjs/env.js CHANGED
@@ -1898,7 +1898,7 @@ $w.__defineGetter__("location", function(url){
1898
1898
  _hash = _hash.indexOf('#')===0?_hash:"#"+_hash;
1899
1899
  $location = this.protocol + this.host + this.pathname +
1900
1900
  this.search + _hash;
1901
- setHistory(_hash, "hash");
1901
+ __setHistory__(_hash, "hash");
1902
1902
  },
1903
1903
  get host(){
1904
1904
  return this.hostname + ((this.port !== "")?":"+this.port:"");
data/lib/envjs.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Envjs
2
2
 
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
 
5
5
  def self.js_exception_stack e
6
6
  result = %(Exception: )+e.to_s
@@ -64,7 +64,7 @@ $w.__defineGetter__("location", function(url){
64
64
  _hash = _hash.indexOf('#')===0?_hash:"#"+_hash;
65
65
  $location = this.protocol + this.host + this.pathname +
66
66
  this.search + _hash;
67
- setHistory(_hash, "hash");
67
+ __setHistory__(_hash, "hash");
68
68
  },
69
69
  get host(){
70
70
  return this.hostname + ((this.port !== "")?":"+this.port:"");
@@ -0,0 +1,8 @@
1
+ <html>
2
+ <head>
3
+ </head>
4
+ <body>
5
+
6
+ <a href="#" id="click" onclick="window.location.hash = 'test'; return false;">Click me !</a>
7
+ </body>
8
+ </html>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - John Resig
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-03-29 00:00:00 -07:00
19
+ date: 2010-03-30 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -292,6 +292,7 @@ files:
292
292
  - test/call-load-test.js
293
293
  - test/data.js
294
294
  - test/debug.js
295
+ - test/dmathieu/index.html
295
296
  - test/firebug/errorIcon.png
296
297
  - test/firebug/firebug.css
297
298
  - test/firebug/firebug.html