mashery_rails 0.6.8 → 0.6.9.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mashery/rest_client.rb +4 -12
- data/lib/mashery/version.rb +1 -1
- data/lib/mashery_rails/version.rb +1 -1
- metadata +3 -3
data/lib/mashery/rest_client.rb
CHANGED
@@ -4,18 +4,10 @@ module Mashery
|
|
4
4
|
Query.new(query_params).url
|
5
5
|
end
|
6
6
|
|
7
|
-
def call(
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
perform_query(query)
|
12
|
-
elsif activity_type == "errorcodes"
|
13
|
-
query_options = {service_id: service_id, resource: "errorcodes"}.merge(options)
|
14
|
-
query = Query.new(query_options)
|
15
|
-
perform_query(query)
|
16
|
-
else
|
17
|
-
raise "No such activity type!"
|
18
|
-
end
|
7
|
+
def call(resource, service_id, options)
|
8
|
+
query_options = {service_id: service_id, resource: resource}.merge(options)
|
9
|
+
query = Query.new(query_options)
|
10
|
+
perform_query(query)
|
19
11
|
end
|
20
12
|
|
21
13
|
def perform_query(query)
|
data/lib/mashery/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mashery_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
5
|
-
prerelease:
|
4
|
+
version: 0.6.9.pre1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Farley Knight
|
@@ -134,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
segments:
|
136
136
|
- 0
|
137
|
-
hash:
|
137
|
+
hash: 3329451024319323921
|
138
138
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
139
|
none: false
|
140
140
|
requirements:
|