postie 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +1 -0
- data/bin/postie +1 -2
- data/lib/postie.rb +2 -0
- data/lib/postie/locality.rb +1 -1
- data/lib/postie/version.rb +1 -1
- data/website/index.html +1 -1
- data/website/javascripts/application.js +17 -0
- metadata +5 -4
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
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(
|
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
|
data/lib/postie.rb
CHANGED
data/lib/postie/locality.rb
CHANGED
@@ -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,
|
data/lib/postie/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
77
|
+
rubygems_version: 1.0.1
|
77
78
|
signing_key:
|
78
79
|
specification_version: 2
|
79
80
|
summary: CLI tool for auspostie.com
|