postie 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ == 1.0.2 2008-02-24
2
+
3
+ * Strings with spaces are now fixed in Locality, not in just the command-line tool.
4
+
1
5
  == 1.0.1 2008-01-03
2
6
 
3
7
  * Bug fix: Will now handle strings with spaces in suburb searching.
@@ -19,6 +19,7 @@ tasks/environment.rake
19
19
  tasks/website.rake
20
20
  website/index.html
21
21
  website/index.txt
22
+ website/javascripts/application.js
22
23
  website/javascripts/rounded_corners_lite.inc.js
23
24
  website/stylesheets/screen.css
24
25
  website/template.rhtml
data/bin/postie CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'postie'
2
- require 'cgi'
3
2
 
4
3
  case ARGV.first
5
4
  when nil
@@ -11,7 +10,7 @@ Usage:
11
10
  when "-v"
12
11
  puts "postie version #{Postie::VERSION::STRING}"
13
12
  else
14
- Postie::Locality.find(CGI.escape(ARGV.join(" "))).each do |loc|
13
+ Postie::Locality.find(ARGV.join(" ")).each do |loc|
15
14
  if loc.comments.length > 0
16
15
  puts "#{loc.postcode} - #{loc.suburb}, #{loc.state} (#{loc.comments})"
17
16
  else
@@ -1,5 +1,7 @@
1
1
  $:.unshift File.dirname(__FILE__)
2
2
 
3
+ require 'cgi'
4
+
3
5
  require 'postie/locality'
4
6
  require 'postie/version'
5
7
 
@@ -13,7 +13,7 @@ module Postie
13
13
  end
14
14
 
15
15
  def self.find(search)
16
- doc = Hpricot(open("http://auspostie.com/#{search}.xml"))
16
+ doc = Hpricot(open("http://auspostie.com/#{CGI.escape(search)}.xml"))
17
17
  (doc/"locality").collect do |locality|
18
18
  Locality.new(
19
19
  :postcode => locality.at("postcode").inner_html,
@@ -2,7 +2,7 @@ module Postie #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -11,7 +11,7 @@
11
11
  <h1>postie</h1>
12
12
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/postie"; return false'>
13
13
  <p>Get Version</p>
14
- <a href="http://rubyforge.org/projects/postie" class="numbers">1.0.1</a>
14
+ <a href="http://rubyforge.org/projects/postie" class="numbers">1.0.2</a>
15
15
  </div>
16
16
 
17
17
  <h2>What</h2>
@@ -0,0 +1,17 @@
1
+ window.onload = function() {
2
+ settings = {
3
+ tl: { radius: 10 },
4
+ tr: { radius: 10 },
5
+ bl: { radius: 10 },
6
+ br: { radius: 10 },
7
+ antiAlias: true,
8
+ autoPad: true,
9
+ validTags: ["div"]
10
+ }
11
+ var versionBox = new curvyCorners(settings, document.getElementById("version"));
12
+ versionBox.applyCornersToAll();
13
+ }
14
+
15
+ var pageTracker = _gat._getTracker("UA-2475317-8");
16
+ pageTracker._initData();
17
+ pageTracker._trackPageview();
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
5
- platform: ""
4
+ version: 1.0.2
5
+ platform: ruby
6
6
  authors:
7
7
  - Pat Allan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-01-03 00:00:00 +11:00
12
+ date: 2008-02-24 00:00:00 +11:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -47,6 +47,7 @@ files:
47
47
  - tasks/website.rake
48
48
  - website/index.html
49
49
  - website/index.txt
50
+ - website/javascripts/application.js
50
51
  - website/javascripts/rounded_corners_lite.inc.js
51
52
  - website/stylesheets/screen.css
52
53
  - website/template.rhtml
@@ -73,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
74
  requirements: []
74
75
 
75
76
  rubyforge_project: postie
76
- rubygems_version: 0.9.5
77
+ rubygems_version: 1.0.1
77
78
  signing_key:
78
79
  specification_version: 2
79
80
  summary: CLI tool for auspostie.com