fql 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -38
- data/lib/fql.rb +1 -0
- data/lib/fql/exception.rb +2 -1
- data/lib/fql/query.rb +4 -5
- data/lib/fql/version.rb +1 -1
- data/spec/fql/query_spec.rb +29 -0
- data/spec/fql_spec.rb +52 -0
- data/spec/spec_helper.rb +13 -0
- data/spec/support/vcr_cassettes/invalid_token.yml +48 -0
- data/spec/support/vcr_cassettes/multi_query.yml +49 -0
- data/spec/support/vcr_cassettes/single_query.yml +48 -0
- data/spec/support/vcr_cassettes/single_quoted_query.yml +48 -0
- metadata +31 -96
- data/lib/tasks/fql_tasks.rake +0 -4
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -63
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -37
- data/test/dummy/config/environments/production.rb +0 -67
- data/test/dummy/config/environments/test.rb +0 -37
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -15
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -58
- data/test/dummy/log/test.log +0 -0
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +0 -6
- data/test/fql/query_test.rb +0 -62
- data/test/fql_test.rb +0 -81
- data/test/test_helper.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10d04c4ff02dcb5a4b0d2dc6af40ec9d7808a73d
|
4
|
+
data.tar.gz: 47a732ce1c67ed9d03453af916113fffd2bf00db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4883ec0b394db9f0e41bf8f2f1cb768515a9969cb179e347a9dfbbd6ea84e12ad25ed9e1bc2c56ecdeab11be192bd4c6aab27599c8bb080ed4b187b2a981b65b
|
7
|
+
data.tar.gz: e0f8d62f5b00ccf76b94c8e5c180da8181cb71fd7e172623cfdda47879550fe0f97489f063de3310ce1308e1e93ef809c0ff7b0d4e167281e3170a5cebb3b31c
|
data/Rakefile
CHANGED
@@ -1,38 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'rdoc/task'
|
9
|
-
rescue LoadError
|
10
|
-
require 'rdoc/rdoc'
|
11
|
-
require 'rake/rdoctask'
|
12
|
-
RDoc::Task = Rake::RDocTask
|
13
|
-
end
|
14
|
-
|
15
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
16
|
-
rdoc.rdoc_dir = 'rdoc'
|
17
|
-
rdoc.title = 'Fql'
|
18
|
-
rdoc.options << '--line-numbers'
|
19
|
-
rdoc.rdoc_files.include('README.rdoc')
|
20
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
-
end
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
Bundler::GemHelper.install_tasks
|
27
|
-
|
28
|
-
require 'rake/testtask'
|
29
|
-
|
30
|
-
Rake::TestTask.new(:test) do |t|
|
31
|
-
t.libs << 'lib'
|
32
|
-
t.libs << 'test'
|
33
|
-
t.pattern = 'test/**/*_test.rb'
|
34
|
-
t.verbose = false
|
35
|
-
end
|
36
|
-
|
37
|
-
|
38
|
-
task :default => :test
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
RSpec::Core::RakeTask.new(:spec)
|
4
|
+
task :default => :spec
|
data/lib/fql.rb
CHANGED
data/lib/fql/exception.rb
CHANGED
data/lib/fql/query.rb
CHANGED
@@ -23,14 +23,10 @@ module Fql
|
|
23
23
|
|
24
24
|
protected
|
25
25
|
|
26
|
-
def escape_query(query)
|
27
|
-
query.gsub(/(\r\n|\r|\n)/m, '')
|
28
|
-
end
|
29
|
-
|
30
26
|
def compose_multi_query
|
31
27
|
q = ''
|
32
28
|
@queries.each do |key, query|
|
33
|
-
q += "
|
29
|
+
q += "\"#{key}\":\"#{escape_query query}\","
|
34
30
|
end
|
35
31
|
# Remove last ',' and add enclosing braces
|
36
32
|
'{' + q[0...-1] + '}'
|
@@ -40,5 +36,8 @@ module Fql
|
|
40
36
|
escape_query @queries[@queries.keys[0]]
|
41
37
|
end
|
42
38
|
|
39
|
+
def escape_query(query)
|
40
|
+
query.gsub(/(\r\n|\r|\n)/m, '')
|
41
|
+
end
|
43
42
|
end
|
44
43
|
end
|
data/lib/fql/version.rb
CHANGED
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Fql::Query do
|
4
|
+
describe :compose do
|
5
|
+
it "composes single queries" do
|
6
|
+
result = described_class.new("SELECT name FROM user WHERE uid=me()").compose
|
7
|
+
result.should eq "SELECT name FROM user WHERE uid=me()"
|
8
|
+
end
|
9
|
+
|
10
|
+
it "composes single queries with newlines" do
|
11
|
+
result = described_class.new("SELECT name FROM \r\nuser WHERE\r\n uid=me()").compose
|
12
|
+
result.should eq "SELECT name FROM user WHERE uid=me()"
|
13
|
+
end
|
14
|
+
|
15
|
+
it "composes multi queries" do
|
16
|
+
query = { all_friends: "SELECT uid2 FROM friend WHERE uid1=me()",
|
17
|
+
my_name: "SELECT name FROM user WHERE uid=me()" }
|
18
|
+
result = described_class.new(query).compose
|
19
|
+
result.should eq "{\"all_friends\":\"SELECT uid2 FROM friend WHERE uid1=me()\",\"my_name\":\"SELECT name FROM user WHERE uid=me()\"}"
|
20
|
+
end
|
21
|
+
|
22
|
+
it "composes multi queries with newlines" do
|
23
|
+
query = { all_friends: "SELECT\n uid2 FROM friend \rWHERE uid1=me()",
|
24
|
+
my_name: "SELECT\r\n name FROM user WHERE uid=me()" }
|
25
|
+
result = described_class.new(query).compose
|
26
|
+
result.should eq "{\"all_friends\":\"SELECT uid2 FROM friend WHERE uid1=me()\",\"my_name\":\"SELECT name FROM user WHERE uid=me()\"}"
|
27
|
+
end
|
28
|
+
end # :compose
|
29
|
+
end
|
data/spec/fql_spec.rb
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Fql do
|
4
|
+
let(:subject) { described_class }
|
5
|
+
describe :execute do
|
6
|
+
let(:single_query) { "SELECT name FROM user WHERE uid=4" }
|
7
|
+
let(:multi_query) do
|
8
|
+
{ query1: "SELECT uid FROM user WHERE uid=4",
|
9
|
+
query2: "SELECT name FROM user WHERE uid IN ( SELECT uid FROM #query1 )" }
|
10
|
+
end
|
11
|
+
|
12
|
+
context 'without access_token' do
|
13
|
+
it "works for single queries" do
|
14
|
+
VCR.use_cassette('single_query') do
|
15
|
+
results = subject.execute single_query
|
16
|
+
results.should be_a Array
|
17
|
+
results.length.should eq 1
|
18
|
+
results.first["name"].should eq "Mark Zuckerberg"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
it "works for multi-queries" do
|
23
|
+
VCR.use_cassette('multi_query') do
|
24
|
+
results = subject.execute multi_query
|
25
|
+
results.should be_a Array
|
26
|
+
results.each do |query_result|
|
27
|
+
query_result["name"].should be_a String
|
28
|
+
query_result["fql_result_set"].should be_a Array
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
it "works for queries containing single quotes" do
|
34
|
+
query = { "likes1" => "SELECT user_id FROM like WHERE post_id = '204418407569_10151239646912570'",
|
35
|
+
"likes2" => "SELECT user_id FROM like WHERE post_id = '204418407569_10151239646912570'" }
|
36
|
+
VCR.use_cassette('single_quoted_query') do
|
37
|
+
expect{ subject.execute query }.to_not raise_error(Fql::Exception)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
context 'with invalid access_token' do
|
43
|
+
it "returns an oauth exception" do
|
44
|
+
VCR.use_cassette('invalid_token') do
|
45
|
+
expect {
|
46
|
+
subject.execute(single_query, access_token: 'invalid')
|
47
|
+
}.to raise_error(Fql::Exception)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end # :execute
|
52
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
3
|
+
require 'fql'
|
4
|
+
require 'vcr'
|
5
|
+
|
6
|
+
|
7
|
+
# Configure VCR
|
8
|
+
# Read more: https://github.com/vcr/vcr
|
9
|
+
#
|
10
|
+
VCR.configure do |c|
|
11
|
+
c.cassette_library_dir = 'spec/support/vcr_cassettes'
|
12
|
+
c.hook_into :webmock
|
13
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://graph.facebook.com/fql?access_token=invalid&q=SELECT%20name%20FROM%20user%20WHERE%20uid=4
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 400
|
19
|
+
message: Bad Request
|
20
|
+
headers:
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- '*'
|
23
|
+
Cache-Control:
|
24
|
+
- no-store
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=UTF-8
|
27
|
+
Expires:
|
28
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Www-Authenticate:
|
32
|
+
- OAuth "Facebook Platform" "invalid_token" "Invalid OAuth access token."
|
33
|
+
X-Fb-Rev:
|
34
|
+
- '834072'
|
35
|
+
X-Fb-Debug:
|
36
|
+
- KonGvFQEh4QIx0m4ABMSpm/9EFDQjluJlBu50ofk9VY=
|
37
|
+
Date:
|
38
|
+
- Mon, 03 Jun 2013 20:27:40 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Length:
|
42
|
+
- '86'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"error":{"message":"Invalid OAuth access token.","type":"OAuthException","code":190}}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Mon, 03 Jun 2013 20:27:40 GMT
|
48
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://graph.facebook.com/fql?q=%7B%22query1%22:%22SELECT%20uid%20FROM%20user%20WHERE%20uid=4%22,%22query2%22:%22SELECT%20name%20FROM%20user%20WHERE%20uid%20IN%20(%20SELECT%20uid%20FROM%20%23query1%20)%22%7D
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- '*'
|
23
|
+
Cache-Control:
|
24
|
+
- private, no-cache, no-store, must-revalidate
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=UTF-8
|
27
|
+
Etag:
|
28
|
+
- '"81f24d646ed8a4f4ffbc4cf0ef67dba4a7ddb2bf"'
|
29
|
+
Expires:
|
30
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
31
|
+
Pragma:
|
32
|
+
- no-cache
|
33
|
+
X-Fb-Rev:
|
34
|
+
- '834072'
|
35
|
+
X-Fb-Debug:
|
36
|
+
- gx3H2nm7o4hV6bX09SdnGiIUurZAoZQ2J4x2pjiJDhE=
|
37
|
+
Date:
|
38
|
+
- Mon, 03 Jun 2013 20:27:40 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Length:
|
42
|
+
- '121'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"data":[{"name":"query1","fql_result_set":[{"uid":4}]},{"name":"query2","fql_result_set":[{"name":"Mark
|
46
|
+
Zuckerberg"}]}]}'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Mon, 03 Jun 2013 20:27:40 GMT
|
49
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://graph.facebook.com/fql?q=SELECT%20name%20FROM%20user%20WHERE%20uid=4
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- '*'
|
23
|
+
Cache-Control:
|
24
|
+
- private, no-cache, no-store, must-revalidate
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=UTF-8
|
27
|
+
Etag:
|
28
|
+
- '"6fc5f7d94412185c83e8091b2f6c812a80a5d449"'
|
29
|
+
Expires:
|
30
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
31
|
+
Pragma:
|
32
|
+
- no-cache
|
33
|
+
X-Fb-Rev:
|
34
|
+
- '834072'
|
35
|
+
X-Fb-Debug:
|
36
|
+
- A7GYQlMbUaK8DP91KYCyPntSZVLEQP2sMs8oAsOR3Xk=
|
37
|
+
Date:
|
38
|
+
- Mon, 03 Jun 2013 20:27:40 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Length:
|
42
|
+
- '37'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"data":[{"name":"Mark Zuckerberg"}]}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Mon, 03 Jun 2013 20:27:40 GMT
|
48
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://graph.facebook.com/fql?q=%7B%22likes1%22:%22SELECT%20user_id%20FROM%20like%20WHERE%20post_id%20=%20'204418407569_10151239646912570'%22,%22likes2%22:%22SELECT%20user_id%20FROM%20like%20WHERE%20post_id%20=%20'204418407569_10151239646912570'%22%7D
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- '*'
|
23
|
+
Cache-Control:
|
24
|
+
- private, no-cache, no-store, must-revalidate
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=UTF-8
|
27
|
+
Etag:
|
28
|
+
- '"af615beebc3b459f2954da0ad64bcfe62a76e240"'
|
29
|
+
Expires:
|
30
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
31
|
+
Pragma:
|
32
|
+
- no-cache
|
33
|
+
X-Fb-Rev:
|
34
|
+
- '834072'
|
35
|
+
X-Fb-Debug:
|
36
|
+
- 2AoZqxyMBO6GwsKAyPVaWg52lwRrxAN3Io9/Hy/Z9Uw=
|
37
|
+
Date:
|
38
|
+
- Mon, 03 Jun 2013 20:27:40 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Length:
|
42
|
+
- '140'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"data":[{"name":"likes1","fql_result_set":[{"user_id":100001275762888}]},{"name":"likes2","fql_result_set":[{"user_id":100001275762888}]}]}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Mon, 03 Jun 2013 20:27:40 GMT
|
48
|
+
recorded_with: VCR 2.5.0
|
metadata
CHANGED
@@ -1,73 +1,59 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maarten Claes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 1.3.6
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rails
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 3.2.6
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ~>
|
24
|
+
- - '>='
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
26
|
+
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
28
|
+
name: webmock
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - '>='
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
33
|
+
version: '0'
|
48
34
|
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - '>='
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
40
|
+
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
42
|
+
name: vcr
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
|
-
- -
|
45
|
+
- - '>='
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
47
|
+
version: '0'
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- -
|
52
|
+
- - '>='
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
54
|
+
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
56
|
+
name: rspec
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
59
|
- - '>='
|
@@ -81,7 +67,7 @@ dependencies:
|
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
70
|
+
name: rake
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - '>='
|
@@ -108,42 +94,16 @@ files:
|
|
108
94
|
- lib/fql/query.rb
|
109
95
|
- lib/fql/version.rb
|
110
96
|
- lib/fql.rb
|
111
|
-
- lib/tasks/fql_tasks.rake
|
112
97
|
- MIT-LICENSE
|
113
98
|
- Rakefile
|
114
99
|
- README.markdown
|
115
|
-
-
|
116
|
-
-
|
117
|
-
-
|
118
|
-
-
|
119
|
-
-
|
120
|
-
-
|
121
|
-
-
|
122
|
-
- test/dummy/config/database.yml
|
123
|
-
- test/dummy/config/environment.rb
|
124
|
-
- test/dummy/config/environments/development.rb
|
125
|
-
- test/dummy/config/environments/production.rb
|
126
|
-
- test/dummy/config/environments/test.rb
|
127
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
128
|
-
- test/dummy/config/initializers/inflections.rb
|
129
|
-
- test/dummy/config/initializers/mime_types.rb
|
130
|
-
- test/dummy/config/initializers/secret_token.rb
|
131
|
-
- test/dummy/config/initializers/session_store.rb
|
132
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
133
|
-
- test/dummy/config/locales/en.yml
|
134
|
-
- test/dummy/config/routes.rb
|
135
|
-
- test/dummy/config.ru
|
136
|
-
- test/dummy/log/test.log
|
137
|
-
- test/dummy/public/404.html
|
138
|
-
- test/dummy/public/422.html
|
139
|
-
- test/dummy/public/500.html
|
140
|
-
- test/dummy/public/favicon.ico
|
141
|
-
- test/dummy/Rakefile
|
142
|
-
- test/dummy/README.rdoc
|
143
|
-
- test/dummy/script/rails
|
144
|
-
- test/fql/query_test.rb
|
145
|
-
- test/fql_test.rb
|
146
|
-
- test/test_helper.rb
|
100
|
+
- spec/fql/query_spec.rb
|
101
|
+
- spec/fql_spec.rb
|
102
|
+
- spec/spec_helper.rb
|
103
|
+
- spec/support/vcr_cassettes/invalid_token.yml
|
104
|
+
- spec/support/vcr_cassettes/multi_query.yml
|
105
|
+
- spec/support/vcr_cassettes/single_query.yml
|
106
|
+
- spec/support/vcr_cassettes/single_quoted_query.yml
|
147
107
|
homepage: https://github.com/mcls/fql
|
148
108
|
licenses: []
|
149
109
|
metadata: {}
|
@@ -163,40 +123,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
123
|
version: '0'
|
164
124
|
requirements: []
|
165
125
|
rubyforge_project:
|
166
|
-
rubygems_version: 2.0.
|
126
|
+
rubygems_version: 2.0.3
|
167
127
|
signing_key:
|
168
128
|
specification_version: 4
|
169
129
|
summary: Facebook Query Language library
|
170
130
|
test_files:
|
171
|
-
-
|
172
|
-
-
|
173
|
-
-
|
174
|
-
-
|
175
|
-
-
|
176
|
-
-
|
177
|
-
-
|
178
|
-
- test/dummy/config/database.yml
|
179
|
-
- test/dummy/config/environment.rb
|
180
|
-
- test/dummy/config/environments/development.rb
|
181
|
-
- test/dummy/config/environments/production.rb
|
182
|
-
- test/dummy/config/environments/test.rb
|
183
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
184
|
-
- test/dummy/config/initializers/inflections.rb
|
185
|
-
- test/dummy/config/initializers/mime_types.rb
|
186
|
-
- test/dummy/config/initializers/secret_token.rb
|
187
|
-
- test/dummy/config/initializers/session_store.rb
|
188
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
189
|
-
- test/dummy/config/locales/en.yml
|
190
|
-
- test/dummy/config/routes.rb
|
191
|
-
- test/dummy/config.ru
|
192
|
-
- test/dummy/log/test.log
|
193
|
-
- test/dummy/public/404.html
|
194
|
-
- test/dummy/public/422.html
|
195
|
-
- test/dummy/public/500.html
|
196
|
-
- test/dummy/public/favicon.ico
|
197
|
-
- test/dummy/Rakefile
|
198
|
-
- test/dummy/README.rdoc
|
199
|
-
- test/dummy/script/rails
|
200
|
-
- test/fql/query_test.rb
|
201
|
-
- test/fql_test.rb
|
202
|
-
- test/test_helper.rb
|
131
|
+
- spec/fql/query_spec.rb
|
132
|
+
- spec/fql_spec.rb
|
133
|
+
- spec/spec_helper.rb
|
134
|
+
- spec/support/vcr_cassettes/invalid_token.yml
|
135
|
+
- spec/support/vcr_cassettes/multi_query.yml
|
136
|
+
- spec/support/vcr_cassettes/single_query.yml
|
137
|
+
- spec/support/vcr_cassettes/single_quoted_query.yml
|