usercycle 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,19 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usercycle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Caleb Woods
9
+ - Steve Odom
10
+ - Ry Walker
11
+ - Lukas Fittl
9
12
  autorequire:
10
13
  bindir: bin
11
14
  cert_chain: []
12
- date: 2012-09-28 00:00:00.000000000 Z
15
+ date: 2013-06-13 00:00:00.000000000Z
13
16
  dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: rspec
19
+ requirement: &2161439180 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ~>
23
+ - !ruby/object:Gem::Version
24
+ version: '2.11'
25
+ type: :development
26
+ prerelease: false
27
+ version_requirements: *2161439180
28
+ - !ruby/object:Gem::Dependency
29
+ name: rspec-given
30
+ requirement: &2161438640 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ~>
34
+ - !ruby/object:Gem::Version
35
+ version: 1.4.0
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: *2161438640
39
+ - !ruby/object:Gem::Dependency
40
+ name: webmock
41
+ requirement: &2161438160 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: '1.6'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: *2161438160
14
50
  - !ruby/object:Gem::Dependency
15
51
  name: httparty
16
- requirement: &70233054722760 !ruby/object:Gem::Requirement
52
+ requirement: &2161437000 !ruby/object:Gem::Requirement
17
53
  none: false
18
54
  requirements:
19
55
  - - ! '>='
@@ -21,25 +57,15 @@ dependencies:
21
57
  version: 0.8.1
22
58
  type: :runtime
23
59
  prerelease: false
24
- version_requirements: *70233054722760
25
- description: Ruby Libray for interating with the USERCycle API
60
+ version_requirements: *2161437000
61
+ description:
26
62
  email:
27
- - calebawoods@gmail.com
63
+ - team@spark59.com
28
64
  executables: []
29
65
  extensions: []
30
66
  extra_rdoc_files: []
31
- files:
32
- - .gitignore
33
- - .rvmrc
34
- - Gemfile
35
- - Gemfile.lock
36
- - README.md
37
- - Rakefile
38
- - lib/usercycle.rb
39
- - lib/usercycle/event.rb
40
- - lib/usercycle/version.rb
41
- - usercycle.gemspec
42
- homepage: ''
67
+ files: []
68
+ homepage: https://github.com/usercycle/usercycle-api-ruby
43
69
  licenses: []
44
70
  post_install_message:
45
71
  rdoc_options: []
@@ -59,8 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
85
  version: '0'
60
86
  requirements: []
61
87
  rubyforge_project:
62
- rubygems_version: 1.8.12
88
+ rubygems_version: 1.8.15
63
89
  signing_key:
64
90
  specification_version: 3
65
- summary: Library based of original rails plugin https://github.com/usercycle/usercycle-ruby-api
91
+ summary: Ruby library for integrating with the USERcycle API
66
92
  test_files: []
data/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- .DS_Store
2
- *.log
data/.rvmrc DELETED
@@ -1,55 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
- # development environment upon cd'ing into the directory
5
-
6
- # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
7
- environment_id="ruby-1.9.3-p0@usercycle"
8
-
9
- #
10
- # Uncomment following line if you want options to be set only for given project.
11
- #
12
- # PROJECT_JRUBY_OPTS=( --1.9 )
13
-
14
- #
15
- # First we attempt to load the desired environment directly from the environment
16
- # file. This is very fast and efficient compared to running through the entire
17
- # CLI and selector. If you want feedback on which environment was used then
18
- # insert the word 'use' after --create as this triggers verbose mode.
19
- #
20
- if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
21
- && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
22
- then
23
- \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
24
-
25
- if [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]]
26
- then
27
- . "${rvm_path:-$HOME/.rvm}/hooks/after_use"
28
- fi
29
- else
30
- # If the environment file has not yet been created, use the RVM CLI to select.
31
- if ! rvm --create use "$environment_id"
32
- then
33
- echo "Failed to create RVM environment '${environment_id}'."
34
- exit 1
35
- fi
36
- fi
37
-
38
- #
39
- # If you use an RVM gemset file to install a list of gems (*.gems), you can have
40
- # it be automatically loaded. Uncomment the following and adjust the filename if
41
- # necessary.
42
- #
43
- # filename=".gems"
44
- # if [[ -s "$filename" ]]
45
- # then
46
- # rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
47
- # fi
48
-
49
- # If you use bundler, this might be useful to you:
50
- # if command -v bundle && [[ -s Gemfile ]]
51
- # then
52
- # bundle install
53
- # fi
54
-
55
-
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- # Specify your gem's dependencies in usercycle.gemspec
4
- gemspec
@@ -1,20 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- usercycle (0.1.3)
5
- httparty (>= 0.8.1)
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- httparty (0.8.1)
11
- multi_json
12
- multi_xml
13
- multi_json (1.1.0)
14
- multi_xml (0.4.1)
15
-
16
- PLATFORMS
17
- ruby
18
-
19
- DEPENDENCIES
20
- usercycle!
data/README.md DELETED
@@ -1,42 +0,0 @@
1
- ## Install
2
-
3
- ```
4
- $ gem install usercycle
5
- ```
6
-
7
- ## Usage
8
-
9
- ### Setup
10
-
11
- ``` ruby
12
- require 'usercycle'
13
-
14
- # put your own credentials here
15
- api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
16
-
17
- # set up a client to talk to the USERCycle API
18
- @client = Usercycle::Client.new api_key
19
- ```
20
-
21
- ### List events by identity
22
-
23
- ```ruby
24
- identity = 'john.smith@example.com' #required
25
- @client.event.find_by_identity(identity)
26
- ```
27
-
28
- ### Creating an event
29
-
30
- ```ruby
31
- @params = {
32
- :identity => 'john.smith@example.com',
33
- :action_name => 'signed_up',
34
- :occurred_at => '2012-03-01 19:45:54 UTC', #optional
35
- :properties => { :first_name => 'John', :last_name => 'Smith' } #optional
36
- }
37
- @client.event.create(@params)
38
- ```
39
-
40
- ## Full Documentation
41
-
42
- For full API documentation visit the official USERCycle docs at http://docs.usercycle.com/rest_api
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env rake
2
- require "bundler/gem_tasks"
@@ -1,21 +0,0 @@
1
- require "httparty"
2
- require "usercycle/version"
3
- require "usercycle/event"
4
-
5
-
6
- module Usercycle
7
-
8
- class Client
9
-
10
- def initialize(key, host='https://api.usercycle.com/api/v1')
11
- @api_key = key
12
- self.class.headers 'X-Usercycle-API-Key' => @api_key
13
- self.class.base_uri host
14
- end
15
-
16
- include HTTParty
17
- include Event
18
-
19
- format :json
20
- end
21
- end
@@ -1,38 +0,0 @@
1
- module Usercycle
2
- module Event
3
-
4
- def event
5
- @event ||= Event.new self
6
- end
7
-
8
- class Event
9
-
10
- def initialize(client)
11
- @client = client
12
- end
13
-
14
- # List events by identity
15
- #
16
- # client.event.find_by_identity('john.smith@example.com')
17
- #
18
- def find_by_identity(identity, options={})
19
- @client.class.get("/events.json?identity=#{identity}", options)
20
- end
21
-
22
- # Creating an event
23
- #
24
- # @params = {
25
- # :identity => 'john.smith@example.com',
26
- # :action_name => 'signed_up',
27
- # :occurred_at => '2012-03-01 19:45:54 UTC'
28
- # :properties => { :first_name => 'John', :last_name => 'Smith' }
29
- # }
30
- # @client.event.create(@params)
31
- #
32
- def create(params)
33
- options = { :body => params }
34
- @client.class.post('/events.json', options)
35
- end
36
- end
37
- end
38
- end
@@ -1,3 +0,0 @@
1
- module Usercycle
2
- VERSION = "0.1.3"
3
- end
@@ -1,19 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/usercycle/version', __FILE__)
3
-
4
- Gem::Specification.new do |gem|
5
- gem.authors = ["Caleb Woods"]
6
- gem.email = ["calebawoods@gmail.com"]
7
- gem.description = %q{Ruby Libray for interating with the USERCycle API}
8
- gem.summary = %q{Library based of original rails plugin https://github.com/usercycle/usercycle-ruby-api}
9
- gem.homepage = ""
10
-
11
- gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
- gem.files = `git ls-files`.split("\n")
13
- gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
- gem.name = "usercycle"
15
- gem.require_paths = ["lib"]
16
- gem.version = Usercycle::VERSION
17
-
18
- gem.add_runtime_dependency "httparty", ">= 0.8.1"
19
- end