trackchange 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,11 +9,12 @@ address = sys.args[1]
9
9
  selector = sys.args[2] || 'body'
10
10
 
11
11
  query = (selector) ->
12
- document.querySelector(selector).innerText
12
+ nodeList = document.querySelectorAll(selector)
13
+ nodeList.item(i).innerText for i in [0..nodeList.length-1]
13
14
 
14
15
  storePageAndExit = ->
15
16
  result = page.evaluate query, selector
16
- console.log result
17
+ console.log result.join("\n")
17
18
  phantom.exit()
18
19
 
19
20
  page.open address, (status) ->
@@ -1,3 +1,3 @@
1
1
  module Trackchange
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trackchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-19 00:00:00.000000000 Z
12
+ date: 2015-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cronedit
@@ -95,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  segments:
97
97
  - 0
98
- hash: 1290840265357501692
98
+ hash: -576997153301819687
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  none: false
101
101
  requirements:
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  segments:
106
106
  - 0
107
- hash: 1290840265357501692
107
+ hash: -576997153301819687
108
108
  requirements: []
109
109
  rubyforge_project:
110
110
  rubygems_version: 1.8.23