google_contacts_api 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -2
- data/Rakefile +9 -12
- data/VERSION +1 -1
- data/google_contacts_api.gemspec +11 -5
- data/spec/google_contacts_api_spec.rb +7 -0
- data/spec/spec_helper.rb +12 -0
- metadata +44 -22
- data/test/helper.rb +0 -18
- data/test/test_google_contacts_api.rb +0 -7
data/Gemfile
CHANGED
@@ -2,14 +2,16 @@ source "http://rubygems.org"
|
|
2
2
|
# Add dependencies required to use your gem here.
|
3
3
|
# Example:
|
4
4
|
gem "activesupport"
|
5
|
+
gem "i18n"
|
5
6
|
gem "json"
|
6
7
|
gem "hashie"
|
7
8
|
|
8
9
|
# Add dependencies to develop your gem here.
|
9
10
|
# Include everything needed to run rake, tests, features, etc.
|
10
11
|
group :development do
|
11
|
-
gem "shoulda"
|
12
|
+
gem "shoulda"
|
12
13
|
gem "bundler", "~> 1.0.0"
|
13
14
|
gem "jeweler", "~> 1.5.2"
|
14
|
-
gem "rcov"
|
15
|
+
gem "rcov"
|
16
|
+
gem "rspec"
|
15
17
|
end
|
data/Rakefile
CHANGED
@@ -28,24 +28,21 @@ Jeweler::Tasks.new do |gem|
|
|
28
28
|
end
|
29
29
|
Jeweler::RubygemsDotOrgTasks.new
|
30
30
|
|
31
|
-
require '
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
test.verbose = true
|
31
|
+
require 'rspec/core'
|
32
|
+
require 'rspec/core/rake_task'
|
33
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
34
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
36
35
|
end
|
37
36
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
test.pattern = 'test/**/test_*.rb'
|
42
|
-
test.verbose = true
|
37
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
38
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
39
|
+
spec.rcov = true
|
43
40
|
end
|
44
41
|
|
45
|
-
task :default => :
|
42
|
+
task :default => :spec
|
46
43
|
|
47
44
|
require 'rdoc/task'
|
48
|
-
|
45
|
+
RDoc::Task.new do |rdoc|
|
49
46
|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
50
47
|
|
51
48
|
rdoc.rdoc_dir = 'rdoc'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/google_contacts_api.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{google_contacts_api}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Alvin Liang"]
|
@@ -34,8 +34,8 @@ Gem::Specification.new do |s|
|
|
34
34
|
"lib/google_contacts_api/result.rb",
|
35
35
|
"lib/google_contacts_api/result_set.rb",
|
36
36
|
"lib/google_contacts_api/user.rb",
|
37
|
-
"
|
38
|
-
"
|
37
|
+
"spec/google_contacts_api_spec.rb",
|
38
|
+
"spec/spec_helper.rb"
|
39
39
|
]
|
40
40
|
s.homepage = %q{http://github.com/aliang/google_contacts_api}
|
41
41
|
s.licenses = ["MIT"]
|
@@ -43,8 +43,8 @@ Gem::Specification.new do |s|
|
|
43
43
|
s.rubygems_version = %q{1.6.2}
|
44
44
|
s.summary = %q{Lets you read from the Google Contacts API}
|
45
45
|
s.test_files = [
|
46
|
-
"
|
47
|
-
"
|
46
|
+
"spec/google_contacts_api_spec.rb",
|
47
|
+
"spec/spec_helper.rb"
|
48
48
|
]
|
49
49
|
|
50
50
|
if s.respond_to? :specification_version then
|
@@ -52,35 +52,41 @@ Gem::Specification.new do |s|
|
|
52
52
|
|
53
53
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
54
54
|
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
55
|
+
s.add_runtime_dependency(%q<i18n>, [">= 0"])
|
55
56
|
s.add_runtime_dependency(%q<json>, [">= 0"])
|
56
57
|
s.add_runtime_dependency(%q<hashie>, [">= 0"])
|
57
58
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
58
59
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
59
60
|
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
60
61
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
62
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
61
63
|
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
62
64
|
s.add_runtime_dependency(%q<hashie>, [">= 0"])
|
63
65
|
s.add_runtime_dependency(%q<json>, [">= 0"])
|
64
66
|
else
|
65
67
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
68
|
+
s.add_dependency(%q<i18n>, [">= 0"])
|
66
69
|
s.add_dependency(%q<json>, [">= 0"])
|
67
70
|
s.add_dependency(%q<hashie>, [">= 0"])
|
68
71
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
69
72
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
70
73
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
71
74
|
s.add_dependency(%q<rcov>, [">= 0"])
|
75
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
72
76
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
73
77
|
s.add_dependency(%q<hashie>, [">= 0"])
|
74
78
|
s.add_dependency(%q<json>, [">= 0"])
|
75
79
|
end
|
76
80
|
else
|
77
81
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
82
|
+
s.add_dependency(%q<i18n>, [">= 0"])
|
78
83
|
s.add_dependency(%q<json>, [">= 0"])
|
79
84
|
s.add_dependency(%q<hashie>, [">= 0"])
|
80
85
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
81
86
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
82
87
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
83
88
|
s.add_dependency(%q<rcov>, [">= 0"])
|
89
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
84
90
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
85
91
|
s.add_dependency(%q<hashie>, [">= 0"])
|
86
92
|
s.add_dependency(%q<json>, [">= 0"])
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'google_contacts_api'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: google_contacts_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Alvin Liang
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: *id001
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: i18n
|
29
29
|
requirement: &id002 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: *id002
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
|
-
name:
|
39
|
+
name: json
|
40
40
|
requirement: &id003 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
@@ -47,19 +47,30 @@ dependencies:
|
|
47
47
|
prerelease: false
|
48
48
|
version_requirements: *id003
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
50
|
+
name: hashie
|
51
51
|
requirement: &id004 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: "0"
|
57
|
-
type: :
|
57
|
+
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: *id004
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
|
-
name:
|
61
|
+
name: shoulda
|
62
62
|
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "0"
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *id005
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: bundler
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
63
74
|
none: false
|
64
75
|
requirements:
|
65
76
|
- - ~>
|
@@ -67,10 +78,10 @@ dependencies:
|
|
67
78
|
version: 1.0.0
|
68
79
|
type: :development
|
69
80
|
prerelease: false
|
70
|
-
version_requirements: *
|
81
|
+
version_requirements: *id006
|
71
82
|
- !ruby/object:Gem::Dependency
|
72
83
|
name: jeweler
|
73
|
-
requirement: &
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
74
85
|
none: false
|
75
86
|
requirements:
|
76
87
|
- - ~>
|
@@ -78,10 +89,10 @@ dependencies:
|
|
78
89
|
version: 1.5.2
|
79
90
|
type: :development
|
80
91
|
prerelease: false
|
81
|
-
version_requirements: *
|
92
|
+
version_requirements: *id007
|
82
93
|
- !ruby/object:Gem::Dependency
|
83
94
|
name: rcov
|
84
|
-
requirement: &
|
95
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
85
96
|
none: false
|
86
97
|
requirements:
|
87
98
|
- - ">="
|
@@ -89,10 +100,21 @@ dependencies:
|
|
89
100
|
version: "0"
|
90
101
|
type: :development
|
91
102
|
prerelease: false
|
92
|
-
version_requirements: *
|
103
|
+
version_requirements: *id008
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: rspec
|
106
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: "0"
|
112
|
+
type: :development
|
113
|
+
prerelease: false
|
114
|
+
version_requirements: *id009
|
93
115
|
- !ruby/object:Gem::Dependency
|
94
116
|
name: activesupport
|
95
|
-
requirement: &
|
117
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
96
118
|
none: false
|
97
119
|
requirements:
|
98
120
|
- - ">="
|
@@ -100,10 +122,10 @@ dependencies:
|
|
100
122
|
version: "0"
|
101
123
|
type: :runtime
|
102
124
|
prerelease: false
|
103
|
-
version_requirements: *
|
125
|
+
version_requirements: *id010
|
104
126
|
- !ruby/object:Gem::Dependency
|
105
127
|
name: hashie
|
106
|
-
requirement: &
|
128
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
107
129
|
none: false
|
108
130
|
requirements:
|
109
131
|
- - ">="
|
@@ -111,10 +133,10 @@ dependencies:
|
|
111
133
|
version: "0"
|
112
134
|
type: :runtime
|
113
135
|
prerelease: false
|
114
|
-
version_requirements: *
|
136
|
+
version_requirements: *id011
|
115
137
|
- !ruby/object:Gem::Dependency
|
116
138
|
name: json
|
117
|
-
requirement: &
|
139
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
118
140
|
none: false
|
119
141
|
requirements:
|
120
142
|
- - ">="
|
@@ -122,7 +144,7 @@ dependencies:
|
|
122
144
|
version: "0"
|
123
145
|
type: :runtime
|
124
146
|
prerelease: false
|
125
|
-
version_requirements: *
|
147
|
+
version_requirements: *id012
|
126
148
|
description: Lets you read from the Google Contacts API. Posting to come later. Tests to come later.
|
127
149
|
email: ayliang@gmail.com
|
128
150
|
executables: []
|
@@ -150,8 +172,8 @@ files:
|
|
150
172
|
- lib/google_contacts_api/result.rb
|
151
173
|
- lib/google_contacts_api/result_set.rb
|
152
174
|
- lib/google_contacts_api/user.rb
|
153
|
-
-
|
154
|
-
-
|
175
|
+
- spec/google_contacts_api_spec.rb
|
176
|
+
- spec/spec_helper.rb
|
155
177
|
has_rdoc: true
|
156
178
|
homepage: http://github.com/aliang/google_contacts_api
|
157
179
|
licenses:
|
@@ -166,7 +188,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
166
188
|
requirements:
|
167
189
|
- - ">="
|
168
190
|
- !ruby/object:Gem::Version
|
169
|
-
hash:
|
191
|
+
hash: 4014825432833245349
|
170
192
|
segments:
|
171
193
|
- 0
|
172
194
|
version: "0"
|
@@ -184,5 +206,5 @@ signing_key:
|
|
184
206
|
specification_version: 3
|
185
207
|
summary: Lets you read from the Google Contacts API
|
186
208
|
test_files:
|
187
|
-
-
|
188
|
-
-
|
209
|
+
- spec/google_contacts_api_spec.rb
|
210
|
+
- spec/spec_helper.rb
|
data/test/helper.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'bundler'
|
3
|
-
begin
|
4
|
-
Bundler.setup(:default, :development)
|
5
|
-
rescue Bundler::BundlerError => e
|
6
|
-
$stderr.puts e.message
|
7
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
-
exit e.status_code
|
9
|
-
end
|
10
|
-
require 'test/unit'
|
11
|
-
require 'shoulda'
|
12
|
-
|
13
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
-
require 'google_contacts_api'
|
16
|
-
|
17
|
-
class Test::Unit::TestCase
|
18
|
-
end
|