3scale_client 2.2.8 → 2.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/3scale_client.gemspec +3 -5
- data/Gemfile +2 -0
- data/README.rdoc +8 -9
- metadata +59 -84
data/3scale_client.gemspec
CHANGED
@@ -1,11 +1,8 @@
|
|
1
|
-
#
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
# encoding: UTF-8
|
5
2
|
|
6
3
|
Gem::Specification.new do |s|
|
7
4
|
s.name = %q{3scale_client}
|
8
|
-
s.version = "2.2.
|
5
|
+
s.version = "2.2.9"
|
9
6
|
|
10
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
8
|
s.authors = ["Adam Cigánek", "Tiago Macedo"]
|
@@ -19,6 +16,7 @@ Gem::Specification.new do |s|
|
|
19
16
|
s.files = [
|
20
17
|
".gitignore",
|
21
18
|
"3scale_client.gemspec",
|
19
|
+
"Gemfile",
|
22
20
|
"LICENCE",
|
23
21
|
"README.rdoc",
|
24
22
|
"Rakefile",
|
data/Gemfile
ADDED
data/README.rdoc
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
=
|
1
|
+
= Rubygem for 3scale Web Service Management API
|
2
|
+
|
3
|
+
{<img src="https://secure.travis-ci.org/3scale/3scale_ws_api_for_ruby.png?branch=master" alt="Build Status" />}[http://travis-ci.org/3scale/3scale_ws_api_for_ruby]
|
4
|
+
|
5
|
+
3scale is an API Infrastructure service which handles API Keys, Rate Limiting, Analytics, Billing Payments and Developer Management. Includes a configurable API dashboard and developer portal CMS. More product stuff at http://www.3scale.net/, support information at http://support.3scale.net/.
|
2
6
|
|
3
7
|
== Installation
|
4
8
|
|
@@ -11,13 +15,13 @@ http://github.com/3scale/3scale_ws_api_for_ruby
|
|
11
15
|
|
12
16
|
If you are using Bundler, please add this to your Gemfile:
|
13
17
|
|
14
|
-
gem '3scale_client'
|
18
|
+
gem '3scale_client'
|
15
19
|
|
16
20
|
and do a bundle install.
|
17
21
|
|
18
22
|
If you are using Rails' config.gems, put this into your config/environment.rb
|
19
23
|
|
20
|
-
config.gem
|
24
|
+
config.gem '3scale_client
|
21
25
|
|
22
26
|
Otherwise, require the gem in whatever way is natural to your framework of choice.
|
23
27
|
|
@@ -84,7 +88,7 @@ human readable error description:
|
|
84
88
|
|
85
89
|
To authorize an application with OAuth, call the +oauth_authorize+ method passing it the application's id.
|
86
90
|
|
87
|
-
response = client.
|
91
|
+
response = client.oauth_authorize(:app_id => "the app id")
|
88
92
|
|
89
93
|
If the authorization is successful, the response will contain the +app_key+ and +redirect_url+ defined for this application:
|
90
94
|
|
@@ -127,8 +131,3 @@ human readable error description:
|
|
127
131
|
|
128
132
|
response.error_code # "provider_key_invalid"
|
129
133
|
response.error_message # "provider key \"foo\" is invalid"
|
130
|
-
|
131
|
-
== Legal
|
132
|
-
|
133
|
-
Copyright (c) 2010 3scale networks S.L., released under the MIT license.
|
134
|
-
|
metadata
CHANGED
@@ -1,92 +1,75 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: 3scale_client
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.9
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 2
|
9
|
-
- 8
|
10
|
-
version: 2.2.8
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
7
|
+
authors:
|
8
|
+
- Adam Cigánek
|
14
9
|
- Tiago Macedo
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2011-01-27 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: nokogiri
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &12429580 !ruby/object:Gem::Requirement
|
25
18
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
33
23
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: fakeweb
|
37
24
|
prerelease: false
|
38
|
-
|
25
|
+
version_requirements: *12429580
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: fakeweb
|
28
|
+
requirement: &12429200 !ruby/object:Gem::Requirement
|
39
29
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
version: "0"
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
47
34
|
type: :development
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: jeweler
|
51
35
|
prerelease: false
|
52
|
-
|
36
|
+
version_requirements: *12429200
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: jeweler
|
39
|
+
requirement: &12428740 !ruby/object:Gem::Requirement
|
53
40
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
|
58
|
-
segments:
|
59
|
-
- 0
|
60
|
-
version: "0"
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
61
45
|
type: :development
|
62
|
-
version_requirements: *id003
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: mocha
|
65
46
|
prerelease: false
|
66
|
-
|
47
|
+
version_requirements: *12428740
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: mocha
|
50
|
+
requirement: &12428320 !ruby/object:Gem::Requirement
|
67
51
|
none: false
|
68
|
-
requirements:
|
69
|
-
- -
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
|
72
|
-
segments:
|
73
|
-
- 0
|
74
|
-
version: "0"
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
75
56
|
type: :development
|
76
|
-
|
77
|
-
|
78
|
-
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *12428320
|
59
|
+
description: ! 'This gem allows to easily connect an application that provides a Web
|
60
|
+
Service with the 3scale API Management System to authorize it''s users and report
|
61
|
+
the usage.
|
79
62
|
|
63
|
+
'
|
80
64
|
email: adam@3scale.net tiago@3scale.net
|
81
65
|
executables: []
|
82
|
-
|
83
66
|
extensions: []
|
84
|
-
|
85
|
-
extra_rdoc_files:
|
67
|
+
extra_rdoc_files:
|
86
68
|
- README.rdoc
|
87
|
-
files:
|
69
|
+
files:
|
88
70
|
- .gitignore
|
89
71
|
- 3scale_client.gemspec
|
72
|
+
- Gemfile
|
90
73
|
- LICENCE
|
91
74
|
- README.rdoc
|
92
75
|
- Rakefile
|
@@ -98,37 +81,29 @@ files:
|
|
98
81
|
- test/remote_test.rb
|
99
82
|
homepage: http://www.3scale.net
|
100
83
|
licenses: []
|
101
|
-
|
102
84
|
post_install_message:
|
103
|
-
rdoc_options:
|
85
|
+
rdoc_options:
|
104
86
|
- --charset=UTF-8
|
105
|
-
require_paths:
|
87
|
+
require_paths:
|
106
88
|
- lib
|
107
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
90
|
none: false
|
109
|
-
requirements:
|
110
|
-
- -
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
|
113
|
-
|
114
|
-
- 0
|
115
|
-
version: "0"
|
116
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ! '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
96
|
none: false
|
118
|
-
requirements:
|
119
|
-
- -
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
|
122
|
-
segments:
|
123
|
-
- 0
|
124
|
-
version: "0"
|
97
|
+
requirements:
|
98
|
+
- - ! '>='
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
125
101
|
requirements: []
|
126
|
-
|
127
102
|
rubyforge_project:
|
128
103
|
rubygems_version: 1.8.10
|
129
104
|
signing_key:
|
130
105
|
specification_version: 3
|
131
106
|
summary: Client for 3scale Web Service Management System API
|
132
|
-
test_files:
|
107
|
+
test_files:
|
133
108
|
- test/remote_test.rb
|
134
109
|
- test/client_test.rb
|