fusion_tables 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -1,4 +1,4 @@
1
- #!/usr/local/bin/ruby
1
+ # encoding: UTF-8
2
2
  #
3
3
  # Twitter Fusion Tables Mashup
4
4
  # S.Tokumine 2010
@@ -22,6 +22,7 @@ include GeoRuby
22
22
  include SimpleFeatures
23
23
  require 'fusion_tables'
24
24
  require 'time'
25
+ require 'yaml'
25
26
 
26
27
  class Object
27
28
  def try(method, *args, &block)
@@ -48,7 +49,7 @@ places = {
48
49
  # Configure fusion tables
49
50
  ft = GData::Client::FusionTables.new
50
51
  ft.clientlogin(config["google_username"], config["google_password"])
51
- table_name = "twitter_fusion"
52
+ table_name = "twitter_fusion_test"
52
53
  cols = [
53
54
  {:name => 'screen_name', :type => 'string'},
54
55
  {:name => 'avatar', :type => 'string'},
@@ -1,4 +1,4 @@
1
- twitter_username: your_username
2
- twitter_password: your_password
3
- google_username: your_username
4
- google_password: your_password
1
+ twitter_username: your_twitter_username
2
+ twitter_password: your_twitter_password
3
+ google_username: your_google_username
4
+ google_password: your_google_password
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fusion_tables}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Simon Tokumine", "Tom Verbeure"]
@@ -38,6 +38,7 @@ Gem::Specification.new do |s|
38
38
  "pkg/fusion_tables-0.1.2.gem",
39
39
  "pkg/fusion_tables-0.2.0.gem",
40
40
  "pkg/fusion_tables-0.2.1.gem",
41
+ "pkg/fusion_tables-0.2.2.gem",
41
42
  "test/README",
42
43
  "test/helper.rb",
43
44
  "test/test_client.rb",
@@ -116,7 +116,7 @@ module GData
116
116
  h.each do |key, value|
117
117
  ret["'#{key.to_s}'"] = case get_datatype(key)
118
118
  when "number" then "#{value}"
119
- when "datetime" then "'#{value.strftime("%m-%d-%Y")}'"
119
+ when "datetime" then "'#{value.strftime("%m-%d-%Y %H:%M:%S")}'"
120
120
  else "'#{value.gsub(/\\/, '\&\&').gsub(/'/, "''")}'"
121
121
  end
122
122
  end
Binary file
@@ -1,6 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'test/unit'
3
3
  require 'shoulda'
4
+ require 'yaml'
4
5
 
5
6
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
7
  $LOAD_PATH.unshift(File.dirname(__FILE__))
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fusion_tables
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 2
9
- - 1
10
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
11
10
  platform: ruby
12
11
  authors:
13
12
  - Simon Tokumine
@@ -27,7 +26,6 @@ dependencies:
27
26
  requirements:
28
27
  - - ">="
29
28
  - !ruby/object:Gem::Version
30
- hash: 3
31
29
  segments:
32
30
  - 0
33
31
  version: "0"
@@ -41,7 +39,6 @@ dependencies:
41
39
  requirements:
42
40
  - - ">="
43
41
  - !ruby/object:Gem::Version
44
- hash: 23
45
42
  segments:
46
43
  - 1
47
44
  - 1
@@ -80,6 +77,7 @@ files:
80
77
  - pkg/fusion_tables-0.1.2.gem
81
78
  - pkg/fusion_tables-0.2.0.gem
82
79
  - pkg/fusion_tables-0.2.1.gem
80
+ - pkg/fusion_tables-0.2.2.gem
83
81
  - test/README
84
82
  - test/helper.rb
85
83
  - test/test_client.rb
@@ -100,7 +98,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
98
  requirements:
101
99
  - - ">="
102
100
  - !ruby/object:Gem::Version
103
- hash: 3
104
101
  segments:
105
102
  - 0
106
103
  version: "0"
@@ -109,7 +106,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
106
  requirements:
110
107
  - - ">="
111
108
  - !ruby/object:Gem::Version
112
- hash: 3
113
109
  segments:
114
110
  - 0
115
111
  version: "0"