chockstone 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/.gitignore +3 -1
  2. data/Gemfile +7 -0
  3. data/README.rdoc +57 -0
  4. data/chockstone.gemspec +7 -2
  5. metadata +23 -5
data/.gitignore CHANGED
@@ -1 +1,3 @@
1
- doc
1
+ doc/*
2
+ *.gem
3
+ Gemfile.lock
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source :gemcutter
2
+
3
+ gemspec
4
+
5
+ group :development do
6
+ gem 'rake'
7
+ end
data/README.rdoc CHANGED
@@ -0,0 +1,57 @@
1
+ = Chockstone API
2
+
3
+ == Description
4
+ This a Ruby interface for the Chockstone [http://www.heartlandpaymentsystems.com/loyaltymarketing] service.
5
+
6
+ == Installation
7
+ gem install chockstone
8
+
9
+ == Example
10
+ require 'rubygems'
11
+ require 'chockstone'
12
+
13
+ cs = Chockstone::Connection.new({
14
+ :url => "MY_API_URL",
15
+ :domain => "MY_API_DOMAIN",
16
+ :profile => "MY_API_PROFILE",
17
+ :seller_profile => "MY_API_SELLER_PROFILE",
18
+ :password => "MY_API_PASSWORD"
19
+ })
20
+
21
+ # verify user credentials
22
+ cs.authenticate_user('their_email@email.com', 'their_password')
23
+
24
+ # create new user
25
+ cs.create_user({
26
+ :id => 'their_email@email.com',
27
+ :password => 'their_password',
28
+ :title => 'Mr.',
29
+ :first_name => 'The Lord Viper',
30
+ :last_name => 'Scorpion',
31
+ :street => "123 Fake St.",
32
+ :city => '',
33
+ :state_or_province => '',
34
+ :postal_code => '',
35
+ :country => 'USA',
36
+ :email => 'their_email@email.com',
37
+ :email_opt_in => 0,
38
+ :voice_phone => '',
39
+ :other_phone => '',
40
+ :birth_date => {
41
+ :year => '',
42
+ :month => '',
43
+ :day => ''
44
+ }
45
+ })
46
+
47
+ # create a new user and account (provide a hash of authorization
48
+ # method as a 2nd argument to create_user)
49
+ cs.create_user({
50
+ #... user hash
51
+ },{
52
+ :pin_authorization => {
53
+ :id => '1234123412341234',
54
+ :pin => '4321'
55
+ }
56
+ }
57
+ })
data/chockstone.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{chockstone}
3
- s.version = %q{0.1.0}
3
+ s.version = %q{0.2.0}
4
4
  s.summary = ""
5
5
  s.description = "Wrapper for Chockstone API requests"
6
6
  s.authors = ["Thomas Mulloy"]
@@ -10,11 +10,16 @@ Gem::Specification.new do |s|
10
10
  "lib/chockstone.rb",
11
11
  ".gitignore",
12
12
  "chockstone.gemspec",
13
+ "Gemfile",
13
14
  "Rakefile",
14
15
  "README.rdoc"
15
16
  ]
16
- s.homepage = %q{http://thomasmulloy.com}
17
+ s.homepage = %q{https://github.com/teeem/chockstone-api}
17
18
  s.test_files = [
18
19
  "test/test_icle.rb"
19
20
  ]
21
+ s.rdoc_options = ["--charset=UTF-8"]
22
+ s.require_paths = ['lib']
23
+
24
+ s.add_dependency('libxml-ruby')
20
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chockstone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-10 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2012-04-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: libxml-ruby
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  description: Wrapper for Chockstone API requests
15
31
  email: twmulloy@gmail.com
16
32
  executables: []
@@ -21,13 +37,15 @@ files:
21
37
  - lib/chockstone.rb
22
38
  - .gitignore
23
39
  - chockstone.gemspec
40
+ - Gemfile
24
41
  - Rakefile
25
42
  - README.rdoc
26
43
  - test/test_icle.rb
27
- homepage: http://thomasmulloy.com
44
+ homepage: https://github.com/teeem/chockstone-api
28
45
  licenses: []
29
46
  post_install_message:
30
- rdoc_options: []
47
+ rdoc_options:
48
+ - --charset=UTF-8
31
49
  require_paths:
32
50
  - lib
33
51
  required_ruby_version: !ruby/object:Gem::Requirement