prx_client 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/Rakefile +3 -0
- data/lib/prx/client.rb +0 -4
- data/lib/prx/client/version.rb +1 -1
- data/prx_client.gemspec +8 -7
- data/test/helper.rb +11 -6
- data/test/test_client.rb +72 -51
- data/test/test_piece.rb +8 -0
- metadata +38 -98
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 132351a149412a73c95725da8f6bf242fb792a91
|
4
|
+
data.tar.gz: 1f5e1c92cc109f0837bc8f63e0142b27d42a06e1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1c42a9531611a380a33112dc38f9a77fa5b0b1faba6d26760a2b8fe38ecd834819f05a3eb83b1c236f0fd18fd837f2b7d20cf7e3f92aabaee6be575463ab834f
|
7
|
+
data.tar.gz: 5201923083bec40d37013788680c53195830c85ebb79255b6218db42d1e13059c002fe461fe2c6fac7aa3109b7e5663e3e945d32940922ddc455c1db84968ba0
|
data/.gitignore
CHANGED
data/Rakefile
CHANGED
data/lib/prx/client.rb
CHANGED
@@ -12,10 +12,6 @@ module PRX
|
|
12
12
|
|
13
13
|
attr_accessor :key, :secret, :scheme, :host, :port, :version, :token
|
14
14
|
|
15
|
-
def piece_create(piece)
|
16
|
-
access_token.post(create_url('pieces'), :body=>{:piece=>piece.as_json})
|
17
|
-
end
|
18
|
-
|
19
15
|
def request(opts={})
|
20
16
|
# puts "PRX::Client::request - opts: #{opts.inspect}"
|
21
17
|
path = opts.delete(:path) || ''
|
data/lib/prx/client/version.rb
CHANGED
data/prx_client.gemspec
CHANGED
@@ -17,19 +17,20 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
19
|
# s.add_runtime_dependency "iconv"
|
20
|
-
s.add_runtime_dependency 'yajl-ruby'
|
21
|
-
s.add_runtime_dependency "i18n"
|
22
|
-
s.add_runtime_dependency "json"
|
20
|
+
# s.add_runtime_dependency 'yajl-ruby'
|
21
|
+
# s.add_runtime_dependency "i18n"
|
22
|
+
# s.add_runtime_dependency "json"
|
23
23
|
s.add_runtime_dependency "activesupport"
|
24
24
|
s.add_runtime_dependency "excon"
|
25
25
|
s.add_runtime_dependency "oauth2"
|
26
|
-
s.add_runtime_dependency 'faraday'
|
26
|
+
s.add_runtime_dependency 'faraday'
|
27
27
|
s.add_runtime_dependency 'faraday_middleware'
|
28
|
-
s.add_runtime_dependency "roar"
|
28
|
+
s.add_runtime_dependency "roar"
|
29
29
|
|
30
30
|
# specify any dependencies here; for example:
|
31
31
|
s.add_development_dependency "rake"
|
32
32
|
s.add_development_dependency "test-unit"
|
33
|
-
s.add_development_dependency '
|
34
|
-
|
33
|
+
s.add_development_dependency 'webmock'
|
34
|
+
s.add_development_dependency "dotenv"
|
35
|
+
|
35
36
|
end
|
data/test/helper.rb
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
require 'rubygems'
|
2
|
+
|
3
|
+
require 'dotenv'
|
4
|
+
Dotenv.load
|
5
|
+
|
2
6
|
require 'test/unit'
|
3
7
|
require 'net/http'
|
8
|
+
require 'webmock/test_unit'
|
4
9
|
|
5
10
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
6
11
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
@@ -10,9 +15,9 @@ require 'prx/client'
|
|
10
15
|
class Test::Unit::TestCase
|
11
16
|
end
|
12
17
|
|
13
|
-
PRX::Client.key = '
|
14
|
-
PRX::Client.secret = '
|
15
|
-
PRX::Client.host =
|
16
|
-
PRX::Client.port =
|
17
|
-
PRX::Client.version = 'v2'
|
18
|
-
PRX::Client.token = '
|
18
|
+
PRX::Client.key = ENV['PRX_KEY']
|
19
|
+
PRX::Client.secret = ENV['PRX_SECRET']
|
20
|
+
PRX::Client.host = ENV['PRX_HOST'] || 'www.prx.org'
|
21
|
+
PRX::Client.port = ENV['PRX_PORT'] || 80
|
22
|
+
PRX::Client.version = ENV['PRX_VERSION'] || 'v2'
|
23
|
+
PRX::Client.token = ENV['PRX_TOKEN']
|
data/test/test_client.rb
CHANGED
@@ -2,60 +2,81 @@ require File.dirname(__FILE__) + '/helper'
|
|
2
2
|
|
3
3
|
require 'prx/client'
|
4
4
|
require 'prx/model'
|
5
|
-
require 'fakeweb'
|
6
5
|
|
7
6
|
class PRX::TestClient < Test::Unit::TestCase
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
# :producers=>[PRX::Model::Producer.new(:name=>'Producer')])
|
8
|
+
def setup
|
9
|
+
PRX::Client.key = 'WlziaXf34NighkX24LjnE9JgpEmEQkP8nWkBmh9J'
|
10
|
+
PRX::Client.secret = 'iuUWEb3AfS5DQiOVpqH1juAacQ0vr3aIhNGWfIW9'
|
11
|
+
PRX::Client.host = "development.prx.org"
|
12
|
+
PRX::Client.port = 3001
|
13
|
+
PRX::Client.version = 'v2'
|
14
|
+
PRX::Client.token = 'iW7qgZSQq4ryQRks1G57X7B1appJLOWeF4yZz6jn'
|
15
|
+
|
16
|
+
@user_info = {
|
17
|
+
:uid => '1001',
|
18
|
+
:provider => 'PRX',
|
19
|
+
:info => {
|
20
|
+
:id => '1001',
|
21
|
+
:login => 'test_login',
|
22
|
+
:email => 'test@prx.org',
|
23
|
+
:first_name => 'first',
|
24
|
+
:last_name => 'last'
|
25
|
+
}
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_me
|
30
|
+
stub_request(:get, "http://development.prx.org:3001/me").
|
31
|
+
with(:headers => {'Authorization'=>'Bearer iW7qgZSQq4ryQRks1G57X7B1appJLOWeF4yZz6jn', 'Host'=>'development.prx.org:3001', 'User-Agent'=>'Faraday v0.8.9'}).
|
32
|
+
to_return(:status => 200, :body => @user_info.to_json, :headers => {})
|
33
|
+
|
34
|
+
response = PRX::Model::User.me
|
35
|
+
# puts response.parsed.inspect
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_piece_create_with_local_file
|
39
|
+
p = PRX::Model::Piece.new(:title=>'test title',
|
40
|
+
:short_description=>'test short description',
|
41
|
+
:description=>'test description',
|
42
|
+
:account=>PRX::Model::Account.new(:id=>8),
|
43
|
+
:producers=>[PRX::Model::Producer.new(:name=>'Producer')])
|
46
44
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
45
|
+
p.add_audio(:label=>'test', :attach_file=>"#{File.dirname(__FILE__)}/files/test.mp2", :content_type=>'audio/mpeg')
|
46
|
+
# puts p.inspect
|
47
|
+
|
48
|
+
stub_request(:post, "http://development.prx.org:3001/api/v2/pieces").
|
49
|
+
to_return(
|
50
|
+
:status => 200,
|
51
|
+
:body => "{\"short_description\":\"Episode 12345 of the new Public Radio Remix Select series. Based on Remix 24 episode 54321.\",\"length\":0,\"series\":{\"title\":\"Public Radio Remix Select\",\"id\":32346},\"creator\":{\"first_name\":\"PRX\",\"last_name\":\"Administrator\",\"login\":\"admin\",\"email\":\"admin@prx.org\",\"id\":8},\"publish_on_valid\":true,\"description\":\"this is the description, and it is very long\",\"license\":{\"allow_edit\":\"only with permission\",\"id\":169778,\"website_usage\":\"as a free MP3 download and stream\"},\"promos\":{\"label\":\"Promos\",\"id\":200467,\"audio_files\":[]},\"point_level\":0,\"account_id\":98822,\"title\":\"Remix Select: Episode 12345\",\"id\":88474,\"is_shareable\":true,\"allow_comments\":true,\"episode_number\":12345,\"networks\":[{\"id\":23,\"path\":\"remix-select\",\"name\":\"Public Radio Remix Select\"}],\"account\":{\"id\":98822,\"type\":\"Group\",\"path\":\"remix\",\"name\":\"Public Radio Remix\"},\"network_only\":true,\"producers\":[{\"user\":{\"first_name\":\"PRX\",\"last_name\":\"Administrator\",\"login\":\"admin\",\"email\":\"admin@prx.org\",\"id\":8},\"id\":100458}],\"audio_versions\":[{\"label\":\"Piece Audio\",\"id\":200467,\"audio_files\":[]}],\"created_at\":\"2014-03-18T10:20:11-04:00\"}",
|
52
|
+
:headers => {"Content-Length"=>"1118", "Set-Cookie"=>"_prx_session_development=BAh7BzoPc2Vzc2lvbl9pZCIlZDk1NGFmZWQzNDhkZDI4ZDBmMmEzN2YwMzhmZjRiODc6DHVzZXJfaWRpDQ%3D%3D--c307c1d85dacd9d35aead604008e10064684065f; path=/; HttpOnly", "ETag"=>"\"7444da1c82c7cac604f9bc2b94cd6e7b\"", "Cache-Control"=>"private, max-age=0, must-revalidate", "Content-Type"=>"application/json; charset=utf-8", "X-Runtime"=>"985", "Connection"=>"keep-alive"}
|
53
|
+
)
|
54
|
+
|
55
|
+
response = PRX::Client.request({:action => :post, :path => 'pieces', :body => p.as_json})
|
56
|
+
|
57
|
+
assert response
|
58
|
+
|
59
|
+
# puts response.parsed.inspect
|
60
|
+
end
|
61
|
+
|
62
|
+
def test_piece_create_with_remote_url
|
63
|
+
p = PRX::Model::Piece.new(:title=>'test title', :short_description=>'test short description', :description=>'test description', :account_id=>8)
|
64
|
+
p.add_audio(:label=>'test', :attach_file=>'s3://andrew-s3.prx.org/public/audio_files/118091/Baronowski.mp2')
|
65
|
+
# puts p.inspect
|
66
|
+
|
67
|
+
|
68
|
+
stub_request(:post, "http://development.prx.org:3001/api/v2/pieces").
|
69
|
+
to_return(
|
70
|
+
:status => 200,
|
71
|
+
:body => "{\"short_description\":\"Episode 12345 of the new Public Radio Remix Select series. Based on Remix 24 episode 54321.\",\"length\":0,\"series\":{\"title\":\"Public Radio Remix Select\",\"id\":32346},\"creator\":{\"first_name\":\"PRX\",\"last_name\":\"Administrator\",\"login\":\"admin\",\"email\":\"admin@prx.org\",\"id\":8},\"publish_on_valid\":true,\"description\":\"this is the description, and it is very long\",\"license\":{\"allow_edit\":\"only with permission\",\"id\":169778,\"website_usage\":\"as a free MP3 download and stream\"},\"promos\":{\"label\":\"Promos\",\"id\":200467,\"audio_files\":[]},\"point_level\":0,\"account_id\":98822,\"title\":\"Remix Select: Episode 12345\",\"id\":88474,\"is_shareable\":true,\"allow_comments\":true,\"episode_number\":12345,\"networks\":[{\"id\":23,\"path\":\"remix-select\",\"name\":\"Public Radio Remix Select\"}],\"account\":{\"id\":98822,\"type\":\"Group\",\"path\":\"remix\",\"name\":\"Public Radio Remix\"},\"network_only\":true,\"producers\":[{\"user\":{\"first_name\":\"PRX\",\"last_name\":\"Administrator\",\"login\":\"admin\",\"email\":\"admin@prx.org\",\"id\":8},\"id\":100458}],\"audio_versions\":[{\"label\":\"Piece Audio\",\"id\":200467,\"audio_files\":[]}],\"created_at\":\"2014-03-18T10:20:11-04:00\"}",
|
72
|
+
:headers => {"Content-Length"=>"1118", "Set-Cookie"=>"_prx_session_development=BAh7BzoPc2Vzc2lvbl9pZCIlZDk1NGFmZWQzNDhkZDI4ZDBmMmEzN2YwMzhmZjRiODc6DHVzZXJfaWRpDQ%3D%3D--c307c1d85dacd9d35aead604008e10064684065f; path=/; HttpOnly", "ETag"=>"\"7444da1c82c7cac604f9bc2b94cd6e7b\"", "Cache-Control"=>"private, max-age=0, must-revalidate", "Content-Type"=>"application/json; charset=utf-8", "X-Runtime"=>"985", "Connection"=>"keep-alive"}
|
73
|
+
)
|
74
|
+
|
75
|
+
response = PRX::Client.request({:action => :post, :path => 'pieces', :body => p.as_json})
|
76
|
+
|
77
|
+
assert response
|
78
|
+
|
79
|
+
# puts response.parsed.inspect
|
80
|
+
end
|
60
81
|
|
61
82
|
end
|
data/test/test_piece.rb
CHANGED
@@ -66,6 +66,14 @@ class PRX::TestPiece < Test::Unit::TestCase
|
|
66
66
|
)
|
67
67
|
# piece.add_audio(:label=>'audio', :attach_file=>"s3://#{remix_bucket}/#{audio_s3_key}", :size=>1)
|
68
68
|
# puts "\n\npiece before saved: #{piece.to_json}"
|
69
|
+
|
70
|
+
stub_request(:post, "http://development.prx.org:3001/api/v2/pieces").
|
71
|
+
to_return(
|
72
|
+
:status => 200,
|
73
|
+
:body => "{\"short_description\":\"Episode 12345 of the new Public Radio Remix Select series. Based on Remix 24 episode 54321.\",\"length\":0,\"series\":{\"title\":\"Public Radio Remix Select\",\"id\":32346},\"creator\":{\"first_name\":\"PRX\",\"last_name\":\"Administrator\",\"login\":\"admin\",\"email\":\"admin@prx.org\",\"id\":8},\"publish_on_valid\":true,\"description\":\"this is the description, and it is very long\",\"license\":{\"allow_edit\":\"only with permission\",\"id\":169778,\"website_usage\":\"as a free MP3 download and stream\"},\"promos\":{\"label\":\"Promos\",\"id\":200467,\"audio_files\":[]},\"point_level\":0,\"account_id\":98822,\"title\":\"Remix Select: Episode 12345\",\"id\":88474,\"is_shareable\":true,\"allow_comments\":true,\"episode_number\":12345,\"networks\":[{\"id\":23,\"path\":\"remix-select\",\"name\":\"Public Radio Remix Select\"}],\"account\":{\"id\":98822,\"type\":\"Group\",\"path\":\"remix\",\"name\":\"Public Radio Remix\"},\"network_only\":true,\"producers\":[{\"user\":{\"first_name\":\"PRX\",\"last_name\":\"Administrator\",\"login\":\"admin\",\"email\":\"admin@prx.org\",\"id\":8},\"id\":100458}],\"audio_versions\":[{\"label\":\"Piece Audio\",\"id\":200467,\"audio_files\":[]}],\"created_at\":\"2014-03-18T10:20:11-04:00\"}",
|
74
|
+
:headers => {"Content-Length"=>"1118", "Set-Cookie"=>"_prx_session_development=BAh7BzoPc2Vzc2lvbl9pZCIlZDk1NGFmZWQzNDhkZDI4ZDBmMmEzN2YwMzhmZjRiODc6DHVzZXJfaWRpDQ%3D%3D--c307c1d85dacd9d35aead604008e10064684065f; path=/; HttpOnly", "ETag"=>"\"7444da1c82c7cac604f9bc2b94cd6e7b\"", "Cache-Control"=>"private, max-age=0, must-revalidate", "Content-Type"=>"application/json; charset=utf-8", "X-Runtime"=>"985", "Connection"=>"keep-alive"}
|
75
|
+
)
|
76
|
+
|
69
77
|
piece.save
|
70
78
|
assert piece.id && (piece.id > 0)
|
71
79
|
# puts "\n\npiece after saved: #{piece.to_json}"
|
metadata
CHANGED
@@ -1,206 +1,153 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prx_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Andrew Kuklewicz
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-03-18 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
14
|
+
name: activesupport
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
28
|
+
name: excon
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
42
|
+
name: oauth2
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
56
|
+
name: faraday
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '>='
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
70
|
+
name: faraday_middleware
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - '>='
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - '>='
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
84
|
+
name: roar
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - '>='
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - '>='
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ~>
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 0.8.0
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ~>
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: 0.8.0
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: faraday_middleware
|
98
|
+
name: rake
|
128
99
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
100
|
requirements:
|
131
|
-
- -
|
101
|
+
- - '>='
|
132
102
|
- !ruby/object:Gem::Version
|
133
103
|
version: '0'
|
134
|
-
type: :
|
104
|
+
type: :development
|
135
105
|
prerelease: false
|
136
106
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
107
|
requirements:
|
139
|
-
- -
|
108
|
+
- - '>='
|
140
109
|
- !ruby/object:Gem::Version
|
141
110
|
version: '0'
|
142
111
|
- !ruby/object:Gem::Dependency
|
143
|
-
name:
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
|
-
requirements:
|
147
|
-
- - ~>
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: 0.11.12
|
150
|
-
type: :runtime
|
151
|
-
prerelease: false
|
152
|
-
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
|
-
requirements:
|
155
|
-
- - ~>
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: 0.11.12
|
158
|
-
- !ruby/object:Gem::Dependency
|
159
|
-
name: rake
|
112
|
+
name: test-unit
|
160
113
|
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
114
|
requirements:
|
163
|
-
- -
|
115
|
+
- - '>='
|
164
116
|
- !ruby/object:Gem::Version
|
165
117
|
version: '0'
|
166
118
|
type: :development
|
167
119
|
prerelease: false
|
168
120
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
121
|
requirements:
|
171
|
-
- -
|
122
|
+
- - '>='
|
172
123
|
- !ruby/object:Gem::Version
|
173
124
|
version: '0'
|
174
125
|
- !ruby/object:Gem::Dependency
|
175
|
-
name:
|
126
|
+
name: webmock
|
176
127
|
requirement: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
128
|
requirements:
|
179
|
-
- -
|
129
|
+
- - '>='
|
180
130
|
- !ruby/object:Gem::Version
|
181
131
|
version: '0'
|
182
132
|
type: :development
|
183
133
|
prerelease: false
|
184
134
|
version_requirements: !ruby/object:Gem::Requirement
|
185
|
-
none: false
|
186
135
|
requirements:
|
187
|
-
- -
|
136
|
+
- - '>='
|
188
137
|
- !ruby/object:Gem::Version
|
189
138
|
version: '0'
|
190
139
|
- !ruby/object:Gem::Dependency
|
191
|
-
name:
|
140
|
+
name: dotenv
|
192
141
|
requirement: !ruby/object:Gem::Requirement
|
193
|
-
none: false
|
194
142
|
requirements:
|
195
|
-
- -
|
143
|
+
- - '>='
|
196
144
|
- !ruby/object:Gem::Version
|
197
145
|
version: '0'
|
198
146
|
type: :development
|
199
147
|
prerelease: false
|
200
148
|
version_requirements: !ruby/object:Gem::Requirement
|
201
|
-
none: false
|
202
149
|
requirements:
|
203
|
-
- -
|
150
|
+
- - '>='
|
204
151
|
- !ruby/object:Gem::Version
|
205
152
|
version: '0'
|
206
153
|
description: Client for PRX OAuth2 API (v2)
|
@@ -255,33 +202,26 @@ files:
|
|
255
202
|
- test/test_user.rb
|
256
203
|
homepage: http://www.prx.org
|
257
204
|
licenses: []
|
205
|
+
metadata: {}
|
258
206
|
post_install_message:
|
259
207
|
rdoc_options: []
|
260
208
|
require_paths:
|
261
209
|
- lib
|
262
210
|
required_ruby_version: !ruby/object:Gem::Requirement
|
263
|
-
none: false
|
264
211
|
requirements:
|
265
|
-
- -
|
212
|
+
- - '>='
|
266
213
|
- !ruby/object:Gem::Version
|
267
214
|
version: '0'
|
268
|
-
segments:
|
269
|
-
- 0
|
270
|
-
hash: 708665775415690492
|
271
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
272
|
-
none: false
|
273
216
|
requirements:
|
274
|
-
- -
|
217
|
+
- - '>='
|
275
218
|
- !ruby/object:Gem::Version
|
276
219
|
version: '0'
|
277
|
-
segments:
|
278
|
-
- 0
|
279
|
-
hash: 708665775415690492
|
280
220
|
requirements: []
|
281
221
|
rubyforge_project:
|
282
|
-
rubygems_version: 1.
|
222
|
+
rubygems_version: 2.1.11
|
283
223
|
signing_key:
|
284
|
-
specification_version:
|
224
|
+
specification_version: 4
|
285
225
|
summary: Client for PRX OAuth2 API (v2)
|
286
226
|
test_files:
|
287
227
|
- test/files/test.mp2
|