mashery_rails 0.6.9.pre1 → 0.6.9.pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0a9569ab1e21895121d855ce2105c4f77bac8ec4
4
+ data.tar.gz: 83616678bdefed2a8b99711182edff228fccce8c
5
+ SHA512:
6
+ metadata.gz: 1cc8073bca5c5ef5e160a5da428df3eee7d11d0cf35cfd7c0bd2c4a7f748caf217297541b29973820807ab1449496dc84050efb51d93faee5763f90ff286f6f9
7
+ data.tar.gz: c792bd7abe0d08e548e2e75cda4e21f4699d00b00face64d454202b13217becfbee48e0f65a03dfdbfbf4bc7c14a1eec64cd208f746f676a1b14c5c2898ba256
data/Gemfile CHANGED
@@ -12,6 +12,7 @@ end
12
12
 
13
13
  group :development do
14
14
  gem 'redcarpet'
15
+ gem 'gem-release'
15
16
  end
16
17
 
17
18
  group :development, :test do
data/Gemfile.lock CHANGED
@@ -70,6 +70,7 @@ GEM
70
70
  ruby_parser (~> 3.1, > 3.1.0)
71
71
  sexp_processor (~> 4.0)
72
72
  formatador (0.2.4)
73
+ gem-release (0.6.0)
73
74
  guard (1.8.2)
74
75
  formatador (>= 0.2.4)
75
76
  listen (>= 1.0.0)
@@ -187,6 +188,7 @@ DEPENDENCIES
187
188
  devtools!
188
189
  flay (~> 2.4.0)
189
190
  flog (~> 4.1.1)
191
+ gem-release
190
192
  guard (~> 1.8.1)
191
193
  guard-bundler (~> 1.0.0)
192
194
  guard-mutant (~> 0.0.1)
data/lib/mashery/key.rb CHANGED
@@ -15,5 +15,9 @@ module Mashery
15
15
  attribute :secret, Fixnum
16
16
  attribute :object_type, String
17
17
  attribute :limits, Array
18
+
19
+ def inspect
20
+ "<Mashery::Key service_key=#{apikey.inspect}>"
21
+ end
18
22
  end
19
23
  end
@@ -24,5 +24,9 @@ module Mashery
24
24
  attribute :external_id, String
25
25
  attribute :passwd_new, String
26
26
  attribute :object_type, String
27
+
28
+ def inspect
29
+ "<Mashery::Member username=#{username.inspect}>"
30
+ end
27
31
  end
28
32
  end
@@ -55,7 +55,7 @@ module Mashery
55
55
  end
56
56
 
57
57
  def all
58
- Mashery::RpcClient::Response.new(self)
58
+ Mashery::RpcClient::Response.new(self).to_objects
59
59
  end
60
60
 
61
61
  def find_each(&block)
@@ -11,6 +11,7 @@ module Mashery
11
11
  end
12
12
 
13
13
  def perform_query(query)
14
+ puts "[mashery_rails] Calling Mashery REST API with URL: #{query.url.inspect}"
14
15
  response = ::RestClient.get(query.url)
15
16
 
16
17
  if query.format == "json" or query.format == "csv"
@@ -7,6 +7,10 @@ module Mashery
7
7
  attribute :updated, DateTime
8
8
  attribute :object_type, String
9
9
 
10
+ def inspect
11
+ "<Mashery::Service service_key=#{service_key.inspect}>"
12
+ end
13
+
10
14
  def activity(options = {})
11
15
  Mashery.rest.call("developer_activity", service_key, {
12
16
  # TODO: For API purposes, these values probably shouldn't be hard-coded
@@ -1,3 +1,3 @@
1
1
  module Mashery
2
- VERSION = "0.6.9.pre1"
2
+ VERSION = "0.6.9.pre3"
3
3
  end
data/lib/mashery.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  $LOAD_PATH.unshift File.expand_path("./lib")
2
2
 
3
+ require 'virtus'
3
4
  require 'active_support/core_ext'
4
5
  require 'logger'
5
6
  require 'digest/md5'
@@ -1,3 +1,3 @@
1
1
  module Mashery
2
- VERSION = "0.6.9.pre1"
2
+ VERSION = "0.6.9.pre3"
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mashery_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9.pre1
5
- prerelease: 6
4
+ version: 0.6.9.pre3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Farley Knight
@@ -14,49 +13,43 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
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: 3.1.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: 3.1.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rest-client
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
42
  name: json
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
  description:
@@ -122,30 +115,26 @@ files:
122
115
  homepage: http://github.com/farleyknight/mashery_rails
123
116
  licenses:
124
117
  - MIT
118
+ metadata: {}
125
119
  post_install_message:
126
120
  rdoc_options: []
127
121
  require_paths:
128
122
  - lib
129
123
  required_ruby_version: !ruby/object:Gem::Requirement
130
- none: false
131
124
  requirements:
132
- - - ! '>='
125
+ - - '>='
133
126
  - !ruby/object:Gem::Version
134
127
  version: '0'
135
- segments:
136
- - 0
137
- hash: 3329451024319323921
138
128
  required_rubygems_version: !ruby/object:Gem::Requirement
139
- none: false
140
129
  requirements:
141
- - - ! '>='
130
+ - - '>='
142
131
  - !ruby/object:Gem::Version
143
132
  version: '0'
144
133
  requirements: []
145
134
  rubyforge_project:
146
- rubygems_version: 1.8.25
135
+ rubygems_version: 2.0.3
147
136
  signing_key:
148
- specification_version: 3
137
+ specification_version: 4
149
138
  summary: Rails gem for Mashery. Clean config and includes tests with decent test coverage
150
139
  test_files: []
151
140
  has_rdoc: