harmony 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -111,7 +111,7 @@ Install
111
111
  # There's a gem dependency bug in rubygems currently, so we'll have to
112
112
  # install dependencies manually. This will be fixed soon.
113
113
  gem install stackdeck
114
- gem install johnson -v "2.0.0.pre1"
114
+ gem install johnson -v "2.0.0.pre2"
115
115
 
116
116
  gem install harmony
117
117
 
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.version = Harmony::VERSION
13
13
  s.files = File.read("Manifest").strip.split("\n")
14
14
 
15
- s.add_dependency 'johnson', '2.0.0.pre1'
16
- s.add_dependency 'envjs', '0.1.2'
15
+ s.add_dependency 'johnson', '2.0.0.pre2'
16
+ s.add_dependency 'envjs', '0.1.4'
17
17
  s.add_development_dependency 'minitest'
18
18
  end
@@ -1,5 +1,5 @@
1
1
  module Harmony
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
 
4
4
  autoload :Page, 'harmony/page'
5
5
  end
@@ -111,12 +111,11 @@ module Harmony
111
111
  window.document
112
112
  end
113
113
 
114
- # Page's document at current state
114
+ # Page as html document
115
115
  #
116
- # @return [String]
117
- # document as string
116
+ # @return [String] html
118
117
  #
119
- def to_s
118
+ def to_html
120
119
  document.innerHTML
121
120
  end
122
121
  end
@@ -53,8 +53,8 @@ class PageTest < MiniTest::Unit::TestCase
53
53
  assert_empty Page.new.document.title
54
54
  end
55
55
 
56
- test "casting to string" do
57
- assert_equal "<html><head><title></title></head><body></body></html>", Page.new.to_s
56
+ test "cast to html" do
57
+ assert_equal "<html><head><title></title></head><body></body></html>", Page.new.to_html
58
58
  end
59
59
 
60
60
  test "loads javascript file" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harmony
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mynyml
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-13 00:00:00 -05:00
12
+ date: 2010-02-27 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - "="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.0.0.pre1
23
+ version: 2.0.0.pre2
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: envjs
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - "="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.2
33
+ version: 0.1.4
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: minitest