crm_client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f683a1eb2f540bf6193715adc444c237b2fdfa9d
4
+ data.tar.gz: e705b296db28d82e28cf3e995e8c1bbe277a599b
5
+ SHA512:
6
+ metadata.gz: 826a597eb3d01696c5bca02276cce5b968c0391a8cc26b356343d5141f042ed34296c9e54202572cbf379ce68df8619c570dea0323bfa5d7d929ae497a87d175
7
+ data.tar.gz: bea6e656cbda17e36c77565524fe47937a86988e904f9c9a7381ff7a82262fbd4634a1a3f65ea3f78c7a61b231e23831f0e37892fa86c15cdd94e0a64562a124
@@ -0,0 +1,8 @@
1
+ module Crm
2
+ # Wraps around Hydra for readibility
3
+ module ParallelRequests
4
+ def self.run
5
+ HYDRA.run
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,13 @@
1
+ module Crm
2
+ HYDRA = Typhoeus::Hydra.new
3
+ HOST = case Rails.env
4
+ when "production"
5
+ "crm.padm.am"
6
+ when "development"
7
+ "localhost:3000"
8
+ when "staging"
9
+ "padma-crm-staging.herokuapp.com"
10
+ when "test"
11
+ "localhost:3000"
12
+ end
13
+ end
data/lib/crm_client.rb ADDED
@@ -0,0 +1,4 @@
1
+ require 'logical_model'
2
+ if defined?(Rails)
3
+ require 'crm_client/railties'
4
+ end
@@ -0,0 +1,4 @@
1
+ module CrmClient
2
+ class Engine < Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,10 @@
1
+ module CrmClient
2
+ module ServiceConfiguration
3
+ def self.included(base)
4
+ base.send('use_hydra', Crm::HYDRA)
5
+ #base.send('force_ssl')
6
+ base.send('set_resource_host', Crm::HOST)
7
+ base.send('configure_index_response', {collection: 'collection', total: 'total'})
8
+ end
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: crm_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Alex Falke
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-11-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: logical_model
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 0.5.5
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 0.5.5
41
+ description: This is client library for PADMA CRM API.
42
+ email:
43
+ - afalkear@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - app/helpers/crm/parallel_requests.rb
49
+ - lib/crm_client/service_configuration.rb
50
+ - lib/crm_client/railties.rb
51
+ - lib/crm_client.rb
52
+ - config/initializers/crm_client.rb
53
+ homepage: ''
54
+ licenses: []
55
+ metadata: {}
56
+ post_install_message:
57
+ rdoc_options: []
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ requirements: []
71
+ rubyforge_project:
72
+ rubygems_version: 2.1.9
73
+ signing_key:
74
+ specification_version: 4
75
+ summary: Client library PADMA CRM API
76
+ test_files: []
77
+ has_rdoc: