overmind_client 0.0.1

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.
@@ -0,0 +1,26 @@
1
+ module Overmind
2
+ # MonthlyStat represents statistiv for a *month*
3
+ # :ref_date is last day of such month.
4
+ class MonthlyStat < LogicalModel
5
+ self.hydra = HYDRA
6
+ self.use_ssl = (ENV['RACK_ENV'] == "production")
7
+ self.resource_path = "/api/v0/monthly_stats"
8
+ self.attribute_keys = [
9
+ :id,
10
+ :name,
11
+ :ref_date,
12
+ :account_name,
13
+ :value,
14
+ :service
15
+ ]
16
+ self.use_api_key = true
17
+ self.api_key_name = "api_key"
18
+ self.api_key = API_KEY
19
+ self.host = HOST
20
+
21
+ def json_root
22
+ 'monthly_stat'
23
+ end
24
+
25
+ end
26
+ end
@@ -0,0 +1,17 @@
1
+ if(defined?(Rails))
2
+ module Overmind
3
+
4
+ unless defined? HYDRA
5
+ HYDRA = Typhoeus::Hydra.new
6
+ end
7
+
8
+ HOST = case Rails.env
9
+ when "production"
10
+ "padma-overmind.herokuapp.com"
11
+ when "development"
12
+ "localhost:3007"
13
+ when "test"
14
+ "localhost:3007"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,4 @@
1
+ module OvermindClient
2
+ class Engine < Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'logical_model'
2
+ if defined?(Rails)
3
+ require 'overmind/railties'
4
+ end
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: overmind_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Dwayne Macgowan
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-10-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
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: '3.1'
30
+ - !ruby/object:Gem::Dependency
31
+ name: logical_model
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: This is client library for padma-Overmind-ws
47
+ email:
48
+ - dwaynemac@gmail.com
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - app/models/overmind/monthly_stat.rb
54
+ - lib/overmind/railties.rb
55
+ - lib/overmind_client.rb
56
+ - config/initializers/overmind_client.rb
57
+ homepage: ''
58
+ licenses: []
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ! '>='
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ requirements: []
76
+ rubyforge_project:
77
+ rubygems_version: 1.8.24
78
+ signing_key:
79
+ specification_version: 3
80
+ summary: Client library for padma-Overmind-ws
81
+ test_files: []
82
+ has_rdoc: