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.
@@ -4,18 +4,10 @@ module Mashery
4
4
  Query.new(query_params).url
5
5
  end
6
6
 
7
- def call(activity_type, service_id, options)
8
- if activity_type == "developer_activity"
9
- query_options = {service_id: service_id, resource: "developer_activity"}.merge(options)
10
- query = Query.new(query_options)
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)
@@ -1,3 +1,3 @@
1
1
  module Mashery
2
- VERSION = "0.6.8"
2
+ VERSION = "0.6.9.pre1"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Mashery
2
- VERSION = "0.6.8"
2
+ VERSION = "0.6.9.pre1"
3
3
  end
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.8
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: -3439431454915658580
137
+ hash: 3329451024319323921
138
138
  required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements: