phocoder-rb 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,30 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ require 'rspec'
4
+ require 'mocha'
5
+ require 'webmock/rspec'
6
+ require 'phocoder'
7
+
8
+ # Requires supporting files with custom matchers and macros, etc,
9
+ # in ./support/ and its subdirectories.
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
11
+
12
+
13
+ begin
14
+ require 'typhoeus'
15
+ rescue LoadError # doesn't work for all ruby versions
16
+ puts
17
+ puts 'Typhoeus not loaded. If your ruby version supports native extensions'
18
+ puts 'then consider installing it.'
19
+ puts
20
+ puts ' gem install typhoeus'
21
+ puts
22
+ end
23
+
24
+
25
+ RSpec.configure do |config|
26
+ config.mock_with :mocha
27
+
28
+
29
+
30
+ end
metadata ADDED
@@ -0,0 +1,232 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: phocoder-rb
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Jeremy Green
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-12-20 00:00:00 -06:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ prerelease: false
23
+ name: activesupport
24
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ requirement: *id001
34
+ type: :runtime
35
+ - !ruby/object:Gem::Dependency
36
+ prerelease: false
37
+ name: i18n
38
+ version_requirements: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ requirement: *id002
48
+ type: :runtime
49
+ - !ruby/object:Gem::Dependency
50
+ prerelease: false
51
+ name: builder
52
+ version_requirements: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ version: "0"
61
+ requirement: *id003
62
+ type: :runtime
63
+ - !ruby/object:Gem::Dependency
64
+ prerelease: false
65
+ name: rspec
66
+ version_requirements: &id004 !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ~>
70
+ - !ruby/object:Gem::Version
71
+ hash: 11
72
+ segments:
73
+ - 2
74
+ - 1
75
+ - 0
76
+ version: 2.1.0
77
+ requirement: *id004
78
+ type: :development
79
+ - !ruby/object:Gem::Dependency
80
+ prerelease: false
81
+ name: bundler
82
+ version_requirements: &id005 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ~>
86
+ - !ruby/object:Gem::Version
87
+ hash: 23
88
+ segments:
89
+ - 1
90
+ - 0
91
+ - 0
92
+ version: 1.0.0
93
+ requirement: *id005
94
+ type: :development
95
+ - !ruby/object:Gem::Dependency
96
+ prerelease: false
97
+ name: jeweler
98
+ version_requirements: &id006 !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ hash: 1
104
+ segments:
105
+ - 1
106
+ - 5
107
+ - 1
108
+ version: 1.5.1
109
+ requirement: *id006
110
+ type: :development
111
+ - !ruby/object:Gem::Dependency
112
+ prerelease: false
113
+ name: rcov
114
+ version_requirements: &id007 !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ hash: 3
120
+ segments:
121
+ - 0
122
+ version: "0"
123
+ requirement: *id007
124
+ type: :development
125
+ - !ruby/object:Gem::Dependency
126
+ prerelease: false
127
+ name: mocha
128
+ version_requirements: &id008 !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ hash: 3
134
+ segments:
135
+ - 0
136
+ version: "0"
137
+ requirement: *id008
138
+ type: :development
139
+ - !ruby/object:Gem::Dependency
140
+ prerelease: false
141
+ name: webmock
142
+ version_requirements: &id009 !ruby/object:Gem::Requirement
143
+ none: false
144
+ requirements:
145
+ - - ~>
146
+ - !ruby/object:Gem::Version
147
+ hash: 15
148
+ segments:
149
+ - 1
150
+ - 6
151
+ - 0
152
+ version: 1.6.0
153
+ requirement: *id009
154
+ type: :development
155
+ description: The ruby client for the phocoder.com API.
156
+ email: jagthedrummer@gmail.com
157
+ executables: []
158
+
159
+ extensions: []
160
+
161
+ extra_rdoc_files:
162
+ - LICENSE.txt
163
+ - README.rdoc
164
+ files:
165
+ - .document
166
+ - .rspec
167
+ - Gemfile
168
+ - Gemfile.lock
169
+ - LICENSE.txt
170
+ - README.rdoc
171
+ - Rakefile
172
+ - VERSION
173
+ - lib/phocoder.rb
174
+ - lib/phocoder/base.rb
175
+ - lib/phocoder/errors.rb
176
+ - lib/phocoder/extensions.rb
177
+ - lib/phocoder/http.rb
178
+ - lib/phocoder/http/net_http.rb
179
+ - lib/phocoder/http/typhoeus.rb
180
+ - lib/phocoder/job.rb
181
+ - lib/phocoder/phocoder.rb
182
+ - lib/phocoder/response.rb
183
+ - phocoder-rb.gemspec
184
+ - spec/phocoder/http/net_http_spec.rb
185
+ - spec/phocoder/http/typhoeus_spec.rb
186
+ - spec/phocoder/http_spec.rb
187
+ - spec/phocoder/job_spec.rb
188
+ - spec/phocoder/phocoder_spec.rb
189
+ - spec/phocoder/response_spec.rb
190
+ - spec/spec_helper.rb
191
+ has_rdoc: true
192
+ homepage: http://github.com/jagthedrummer/phocoder-rb
193
+ licenses:
194
+ - MIT
195
+ post_install_message:
196
+ rdoc_options: []
197
+
198
+ require_paths:
199
+ - lib
200
+ required_ruby_version: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ">="
204
+ - !ruby/object:Gem::Version
205
+ hash: 3
206
+ segments:
207
+ - 0
208
+ version: "0"
209
+ required_rubygems_version: !ruby/object:Gem::Requirement
210
+ none: false
211
+ requirements:
212
+ - - ">="
213
+ - !ruby/object:Gem::Version
214
+ hash: 3
215
+ segments:
216
+ - 0
217
+ version: "0"
218
+ requirements: []
219
+
220
+ rubyforge_project:
221
+ rubygems_version: 1.3.7
222
+ signing_key:
223
+ specification_version: 3
224
+ summary: The ruby client for the phocoder.com API.
225
+ test_files:
226
+ - spec/phocoder/http/net_http_spec.rb
227
+ - spec/phocoder/http/typhoeus_spec.rb
228
+ - spec/phocoder/http_spec.rb
229
+ - spec/phocoder/job_spec.rb
230
+ - spec/phocoder/phocoder_spec.rb
231
+ - spec/phocoder/response_spec.rb
232
+ - spec/spec_helper.rb