driftrock-service 0.4.9 → 0.4.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,6 @@
1
1
  module Driftrock
2
2
  module Service
3
3
  module Api
4
-
5
4
 
6
5
  def get(url, opts={})
7
6
  api_request(opts) do |user_id, company_id|
@@ -0,0 +1,10 @@
1
+ module Driftrock
2
+ module Admin
3
+ module DriftrockModel
4
+ class DriftrockUser
5
+ include ::Driftrock::Service::DriftrockModel
6
+ set_api_path "/admin/users"
7
+ end
8
+ end
9
+ end
10
+ end
@@ -78,6 +78,7 @@ module Driftrock::Service::DriftrockModel
78
78
  else
79
79
  symbolise_keys(object_hash)
80
80
  end
81
+
81
82
  object_hash.each do |(key, value)|
82
83
  instance_variable_set(("@"+key.to_s).to_sym, value)
83
84
  instance_var_reader = lambda { instance_variable_get("@" + key.to_s) }
@@ -1,5 +1,5 @@
1
1
  module Driftrock
2
2
  module Service
3
- VERSION = "0.4.9"
3
+ VERSION = "0.4.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,49 +1,55 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: driftrock-service
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.10
4
5
  prerelease:
5
- version: 0.4.9
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Max
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2013-06-10 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2013-06-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: httparty
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
24
22
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: rspec
28
23
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rspec
32
+ requirement: !ruby/object:Gem::Requirement
30
33
  none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "0"
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
35
38
  type: :development
36
- version_requirements: *id002
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
37
46
  description: Gem for talking to the driftrock api
38
- email:
47
+ email:
39
48
  - max.dupenois@forward.co.uk
40
49
  executables: []
41
-
42
50
  extensions: []
43
-
44
51
  extra_rdoc_files: []
45
-
46
- files:
52
+ files:
47
53
  - .gitignore
48
54
  - .rspec
49
55
  - Gemfile
@@ -64,6 +70,7 @@ files:
64
70
  - lib/driftrock-service/driftrock_logger.rb
65
71
  - lib/driftrock-service/driftrock_model.rb
66
72
  - lib/driftrock-service/driftrock_model/admin/driftrock_app.rb
73
+ - lib/driftrock-service/driftrock_model/admin/driftrock_user.rb
67
74
  - lib/driftrock-service/driftrock_model/channel.rb
68
75
  - lib/driftrock-service/driftrock_model/channel_type.rb
69
76
  - lib/driftrock-service/driftrock_model/company.rb
@@ -81,32 +88,29 @@ files:
81
88
  - spec/website_spec_helper.rb
82
89
  homepage: https://github.com/forward/driftrock-service
83
90
  licenses: []
84
-
85
91
  post_install_message:
86
92
  rdoc_options: []
87
-
88
- require_paths:
93
+ require_paths:
89
94
  - lib
90
- required_ruby_version: !ruby/object:Gem::Requirement
95
+ required_ruby_version: !ruby/object:Gem::Requirement
91
96
  none: false
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- version: "0"
96
- required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ! '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
102
  none: false
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- version: "0"
103
+ requirements:
104
+ - - ! '>='
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
102
107
  requirements: []
103
-
104
108
  rubyforge_project:
105
109
  rubygems_version: 1.8.24
106
110
  signing_key:
107
111
  specification_version: 3
108
112
  summary: Maintains the api endpoints and the calls to them with authorisation, etc.
109
- test_files:
113
+ test_files:
110
114
  - spec/models/channel_spec.rb
111
115
  - spec/models/channel_type_spec.rb
112
116
  - spec/models/company_spec.rb