rubix 0.4.3 → 0.5.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 (37) hide show
  1. data/VERSION +1 -1
  2. data/bin/zabbix_api +45 -27
  3. data/lib/rubix.rb +17 -0
  4. data/lib/rubix/associations.rb +7 -1
  5. data/lib/rubix/associations/belongs_to_action.rb +31 -0
  6. data/lib/rubix/associations/belongs_to_media_type.rb +33 -0
  7. data/lib/rubix/associations/belongs_to_user.rb +33 -0
  8. data/lib/rubix/associations/belongs_to_user_group.rb +32 -0
  9. data/lib/rubix/associations/has_many_conditions.rb +23 -0
  10. data/lib/rubix/associations/has_many_user_groups.rb +32 -0
  11. data/lib/rubix/associations/has_many_users.rb +32 -0
  12. data/lib/rubix/models.rb +17 -10
  13. data/lib/rubix/models/action.rb +117 -0
  14. data/lib/rubix/models/application.rb +1 -3
  15. data/lib/rubix/models/condition.rb +99 -0
  16. data/lib/rubix/models/host.rb +9 -11
  17. data/lib/rubix/models/host_group.rb +1 -4
  18. data/lib/rubix/models/item.rb +12 -27
  19. data/lib/rubix/models/media_type.rb +19 -21
  20. data/lib/rubix/models/medium.rb +86 -0
  21. data/lib/rubix/models/model.rb +53 -1
  22. data/lib/rubix/models/operation.rb +134 -0
  23. data/lib/rubix/models/script.rb +49 -0
  24. data/lib/rubix/models/template.rb +2 -2
  25. data/lib/rubix/models/trigger.rb +8 -9
  26. data/lib/rubix/models/user.rb +145 -0
  27. data/lib/rubix/models/user_group.rb +94 -0
  28. data/lib/rubix/models/user_macro.rb +10 -20
  29. data/spec/requests/action_request_spec.rb +45 -0
  30. data/spec/requests/connection_request_spec.rb +3 -3
  31. data/spec/requests/media_type_request_spec.rb +8 -8
  32. data/spec/requests/script_request_spec.rb +54 -0
  33. data/spec/requests/user_group_request_spec.rb +97 -0
  34. data/spec/requests/user_request_spec.rb +84 -0
  35. data/spec/support/integration_helper.rb +105 -33
  36. data/spec/test.yml +0 -2
  37. metadata +22 -4
@@ -2,8 +2,6 @@
2
2
 
3
3
  api:
4
4
  url: localhost:8080/api_jsonrpc.php
5
- username: admin
6
- password: zabbix
7
5
 
8
6
  mysql:
9
7
  host: localhost
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 4
8
- - 3
9
- version: 0.4.3
7
+ - 5
8
+ - 0
9
+ version: 0.5.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dhruv Bansal
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-02-14 00:00:00 -06:00
17
+ date: 2012-02-17 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -104,12 +104,19 @@ files:
104
104
  - lib/rubix/models/trigger.rb
105
105
  - lib/rubix/models/media_type.rb
106
106
  - lib/rubix/models/user_macro.rb
107
+ - lib/rubix/models/action.rb
108
+ - lib/rubix/models/script.rb
107
109
  - lib/rubix/models/item.rb
110
+ - lib/rubix/models/user_group.rb
111
+ - lib/rubix/models/operation.rb
108
112
  - lib/rubix/models/host.rb
109
113
  - lib/rubix/models/host_group.rb
110
114
  - lib/rubix/models/model.rb
115
+ - lib/rubix/models/medium.rb
111
116
  - lib/rubix/models/time_series.rb
117
+ - lib/rubix/models/condition.rb
112
118
  - lib/rubix/models/application.rb
119
+ - lib/rubix/models/user.rb
113
120
  - lib/rubix/examples/simple_zabbix_monitor.rb
114
121
  - lib/rubix/examples/simple_uptime_monitor.rb
115
122
  - lib/rubix/examples/simple_cluster_monitor.rb
@@ -122,12 +129,19 @@ files:
122
129
  - lib/rubix/response.rb
123
130
  - lib/rubix/associations/has_many_hosts.rb
124
131
  - lib/rubix/associations/has_many_applications.rb
132
+ - lib/rubix/associations/belongs_to_media_type.rb
125
133
  - lib/rubix/associations/belongs_to_template.rb
126
134
  - lib/rubix/associations/has_many_host_groups.rb
135
+ - lib/rubix/associations/has_many_users.rb
136
+ - lib/rubix/associations/has_many_conditions.rb
137
+ - lib/rubix/associations/belongs_to_user.rb
138
+ - lib/rubix/associations/belongs_to_user_group.rb
127
139
  - lib/rubix/associations/belongs_to_host.rb
128
140
  - lib/rubix/associations/belongs_to_item.rb
129
141
  - lib/rubix/associations/has_many_items.rb
130
142
  - lib/rubix/associations/has_many_templates.rb
143
+ - lib/rubix/associations/belongs_to_action.rb
144
+ - lib/rubix/associations/has_many_user_groups.rb
131
145
  - lib/rubix/associations/has_many_user_macros.rb
132
146
  - lib/rubix/monitors/chef_monitor.rb
133
147
  - lib/rubix/monitors/cluster_monitor.rb
@@ -146,13 +160,17 @@ files:
146
160
  - spec/rubix/connection_spec.rb
147
161
  - spec/requests/time_series_request_spec.rb
148
162
  - spec/requests/media_type_request_spec.rb
163
+ - spec/requests/script_request_spec.rb
149
164
  - spec/requests/item_request_spec.rb
165
+ - spec/requests/action_request_spec.rb
150
166
  - spec/requests/host_group_request_spec.rb
151
167
  - spec/requests/user_macro_request_spec.rb
152
168
  - spec/requests/connection_request_spec.rb
153
169
  - spec/requests/template_request_spec.rb
154
170
  - spec/requests/trigger_request_spec.rb
155
171
  - spec/requests/host_request_spec.rb
172
+ - spec/requests/user_request_spec.rb
173
+ - spec/requests/user_group_request_spec.rb
156
174
  - spec/requests/application_request_spec.rb
157
175
  - spec/spec_helper.rb
158
176
  - spec/support/integration_helper.rb