usercycle 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,7 @@ module Usercycle
28
28
  def create(identity, action, properties={})
29
29
  options = { :body => {
30
30
  :identity => identity,
31
- :action => action,
31
+ :action_name => action,
32
32
  :properties => properties }}
33
33
  @client.class.post('/events.json', options)
34
34
  end
@@ -1,3 +1,3 @@
1
1
  module Usercycle
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/usercycle.rb CHANGED
@@ -7,15 +7,15 @@ module Usercycle
7
7
 
8
8
  class Client
9
9
 
10
- def initialize(key)
10
+ def initialize(key, host='https://api.usercycle.com/api/v1')
11
11
  @api_key = key
12
12
  self.class.headers 'X-Usercycle-API-Key' => @api_key
13
+ self.class.base_uri host
13
14
  end
14
15
 
15
16
  include HTTParty
16
17
  include Event
17
18
 
18
- base_uri "https://api.usercycle.com/api/v1"
19
19
  format :json
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usercycle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-27 00:00:00.000000000 Z
12
+ date: 2012-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &70133955823640 !ruby/object:Gem::Requirement
16
+ requirement: &70176435820740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.8.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70133955823640
24
+ version_requirements: *70176435820740
25
25
  description: Ruby Libray for interating with the USERCycle API
26
26
  email:
27
27
  - calebawoods@gmail.com