driftrock-service 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ module Driftrock
2
+ module Service
3
+ module Api
4
+ module Visitor
5
+ include Driftrock::Service::Api
6
+
7
+ module URLs
8
+ BASE = '/dashboard_api/visitor'
9
+ APPS = BASE+'/apps/'
10
+ end
11
+
12
+ def visitor_apps(opts = {})
13
+ get(URLs::APPS, opts)
14
+ end
15
+
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,5 +1,5 @@
1
1
  module Driftrock
2
2
  module Service
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.3"
4
4
  end
5
5
  end
@@ -3,6 +3,7 @@ require "driftrock-service/config"
3
3
  require "driftrock-service/connector"
4
4
  require "driftrock-service/api"
5
5
  require "driftrock-service/api/website"
6
+ require "driftrock-service/api/visitor"
6
7
  require "driftrock-service/api/admin"
7
8
  require "driftrock-service/api/data"
8
9
  require "driftrock-service/api/puller"
@@ -37,6 +38,11 @@ module Driftrock
37
38
  extend Driftrock::Service::Api::Website
38
39
  end
39
40
 
41
+ def acts_as_driftrock_website_visitor_model
42
+ include Driftrock::Service::Api::Visitor
43
+ extend Driftrock::Service::Api::Visitor
44
+ end
45
+
40
46
  def acts_as_driftrock_admin
41
47
  include Driftrock::Service::Api::Admin
42
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: driftrock-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-30 00:00:00.000000000 Z
12
+ date: 2013-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -61,6 +61,7 @@ files:
61
61
  - lib/driftrock-service/api/admin.rb
62
62
  - lib/driftrock-service/api/data.rb
63
63
  - lib/driftrock-service/api/puller.rb
64
+ - lib/driftrock-service/api/visitor.rb
64
65
  - lib/driftrock-service/api/website.rb
65
66
  - lib/driftrock-service/config.rb
66
67
  - lib/driftrock-service/connector.rb