sifiapi 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. data/.gitignore +18 -0
  2. data/Gemfile +8 -0
  3. data/LICENSE +22 -0
  4. data/README.md +83 -0
  5. data/Rakefile +7 -0
  6. data/examples/complete_workflow.rb +93 -0
  7. data/lib/faraday/request/convert_file_to_upload_io.rb +37 -0
  8. data/lib/faraday/request/json_encode.rb +11 -0
  9. data/lib/faraday/response/parse_json.rb +32 -0
  10. data/lib/faraday/response/raise_sifi_error.rb +37 -0
  11. data/lib/sifi_api/ad.rb +2 -0
  12. data/lib/sifi_api/ad_file_type.rb +2 -0
  13. data/lib/sifi_api/ad_size.rb +2 -0
  14. data/lib/sifi_api/bid_type.rb +2 -0
  15. data/lib/sifi_api/branded_datum.rb +2 -0
  16. data/lib/sifi_api/browser.rb +2 -0
  17. data/lib/sifi_api/campaign.rb +2 -0
  18. data/lib/sifi_api/campaign_stat.rb +2 -0
  19. data/lib/sifi_api/campaign_type.rb +2 -0
  20. data/lib/sifi_api/change.rb +2 -0
  21. data/lib/sifi_api/client.rb +2 -0
  22. data/lib/sifi_api/company.rb +2 -0
  23. data/lib/sifi_api/connection.rb +59 -0
  24. data/lib/sifi_api/context.rb +2 -0
  25. data/lib/sifi_api/dayparting.rb +2 -0
  26. data/lib/sifi_api/device.rb +2 -0
  27. data/lib/sifi_api/dma.rb +2 -0
  28. data/lib/sifi_api/domain.rb +2 -0
  29. data/lib/sifi_api/error.rb +15 -0
  30. data/lib/sifi_api/geo_target.rb +2 -0
  31. data/lib/sifi_api/ip_range.rb +2 -0
  32. data/lib/sifi_api/keyword.rb +2 -0
  33. data/lib/sifi_api/keyword_category.rb +2 -0
  34. data/lib/sifi_api/operating_system.rb +2 -0
  35. data/lib/sifi_api/recency.rb +2 -0
  36. data/lib/sifi_api/recurring_report.rb +2 -0
  37. data/lib/sifi_api/report.rb +2 -0
  38. data/lib/sifi_api/report_asset.rb +2 -0
  39. data/lib/sifi_api/report_type.rb +2 -0
  40. data/lib/sifi_api/resource.rb +150 -0
  41. data/lib/sifi_api/user.rb +2 -0
  42. data/lib/sifi_api/version.rb +9 -0
  43. data/lib/sifi_api.rb +41 -0
  44. data/lib/sifiapi.rb +1 -0
  45. data/sifiapi.gemspec +22 -0
  46. data/spec/sifi_api/ad_file_type_spec.rb +7 -0
  47. data/spec/sifi_api/ad_size_spec.rb +7 -0
  48. data/spec/sifi_api/ad_spec.rb +7 -0
  49. data/spec/sifi_api/bid_type_spec.rb +7 -0
  50. data/spec/sifi_api/branded_datum_spec.rb +7 -0
  51. data/spec/sifi_api/browser_spec.rb +7 -0
  52. data/spec/sifi_api/campaign_spec.rb +7 -0
  53. data/spec/sifi_api/campaign_stat_spec.rb +7 -0
  54. data/spec/sifi_api/campaign_type_spec.rb +7 -0
  55. data/spec/sifi_api/change_spec.rb +7 -0
  56. data/spec/sifi_api/client_spec.rb +7 -0
  57. data/spec/sifi_api/company_spec.rb +7 -0
  58. data/spec/sifi_api/context_spec.rb +7 -0
  59. data/spec/sifi_api/dayparting_spec.rb +7 -0
  60. data/spec/sifi_api/device_spec.rb +7 -0
  61. data/spec/sifi_api/dma_spec.rb +7 -0
  62. data/spec/sifi_api/domain_spec.rb +7 -0
  63. data/spec/sifi_api/geo_target_spec.rb +7 -0
  64. data/spec/sifi_api/ip_range_spec.rb +8 -0
  65. data/spec/sifi_api/keyword_category_spec.rb +7 -0
  66. data/spec/sifi_api/keyword_spec.rb +8 -0
  67. data/spec/sifi_api/operating_system_spec.rb +8 -0
  68. data/spec/sifi_api/recency_spec.rb +7 -0
  69. data/spec/sifi_api/recurring_report_spec.rb +8 -0
  70. data/spec/sifi_api/report_asset_spec.rb +8 -0
  71. data/spec/sifi_api/report_spec.rb +8 -0
  72. data/spec/sifi_api/report_type_spec.rb +8 -0
  73. data/spec/sifi_api/user_spec.rb +7 -0
  74. data/spec/spec_helper.rb +27 -0
  75. data/spec/support/resource_shared_example.rb +97 -0
  76. metadata +200 -0
metadata ADDED
@@ -0,0 +1,200 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sifiapi
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Brandon Aaron
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-07-02 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: faraday
16
+ requirement: &2166076460 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 0.7.6
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2166076460
25
+ - !ruby/object:Gem::Dependency
26
+ name: multi_json
27
+ requirement: &2166075960 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.3
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *2166075960
36
+ - !ruby/object:Gem::Dependency
37
+ name: activesupport
38
+ requirement: &2166075500 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 3.0.10
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *2166075500
47
+ - !ruby/object:Gem::Dependency
48
+ name: i18n
49
+ requirement: &2166075040 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.5.0
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *2166075040
58
+ description: ''
59
+ email:
60
+ - brandon@simpli.fi
61
+ executables: []
62
+ extensions: []
63
+ extra_rdoc_files: []
64
+ files:
65
+ - .gitignore
66
+ - Gemfile
67
+ - LICENSE
68
+ - README.md
69
+ - Rakefile
70
+ - examples/complete_workflow.rb
71
+ - lib/faraday/request/convert_file_to_upload_io.rb
72
+ - lib/faraday/request/json_encode.rb
73
+ - lib/faraday/response/parse_json.rb
74
+ - lib/faraday/response/raise_sifi_error.rb
75
+ - lib/sifi_api.rb
76
+ - lib/sifi_api/ad.rb
77
+ - lib/sifi_api/ad_file_type.rb
78
+ - lib/sifi_api/ad_size.rb
79
+ - lib/sifi_api/bid_type.rb
80
+ - lib/sifi_api/branded_datum.rb
81
+ - lib/sifi_api/browser.rb
82
+ - lib/sifi_api/campaign.rb
83
+ - lib/sifi_api/campaign_stat.rb
84
+ - lib/sifi_api/campaign_type.rb
85
+ - lib/sifi_api/change.rb
86
+ - lib/sifi_api/client.rb
87
+ - lib/sifi_api/company.rb
88
+ - lib/sifi_api/connection.rb
89
+ - lib/sifi_api/context.rb
90
+ - lib/sifi_api/dayparting.rb
91
+ - lib/sifi_api/device.rb
92
+ - lib/sifi_api/dma.rb
93
+ - lib/sifi_api/domain.rb
94
+ - lib/sifi_api/error.rb
95
+ - lib/sifi_api/geo_target.rb
96
+ - lib/sifi_api/ip_range.rb
97
+ - lib/sifi_api/keyword.rb
98
+ - lib/sifi_api/keyword_category.rb
99
+ - lib/sifi_api/operating_system.rb
100
+ - lib/sifi_api/recency.rb
101
+ - lib/sifi_api/recurring_report.rb
102
+ - lib/sifi_api/report.rb
103
+ - lib/sifi_api/report_asset.rb
104
+ - lib/sifi_api/report_type.rb
105
+ - lib/sifi_api/resource.rb
106
+ - lib/sifi_api/user.rb
107
+ - lib/sifi_api/version.rb
108
+ - lib/sifiapi.rb
109
+ - sifiapi.gemspec
110
+ - spec/sifi_api/ad_file_type_spec.rb
111
+ - spec/sifi_api/ad_size_spec.rb
112
+ - spec/sifi_api/ad_spec.rb
113
+ - spec/sifi_api/bid_type_spec.rb
114
+ - spec/sifi_api/branded_datum_spec.rb
115
+ - spec/sifi_api/browser_spec.rb
116
+ - spec/sifi_api/campaign_spec.rb
117
+ - spec/sifi_api/campaign_stat_spec.rb
118
+ - spec/sifi_api/campaign_type_spec.rb
119
+ - spec/sifi_api/change_spec.rb
120
+ - spec/sifi_api/client_spec.rb
121
+ - spec/sifi_api/company_spec.rb
122
+ - spec/sifi_api/context_spec.rb
123
+ - spec/sifi_api/dayparting_spec.rb
124
+ - spec/sifi_api/device_spec.rb
125
+ - spec/sifi_api/dma_spec.rb
126
+ - spec/sifi_api/domain_spec.rb
127
+ - spec/sifi_api/geo_target_spec.rb
128
+ - spec/sifi_api/ip_range_spec.rb
129
+ - spec/sifi_api/keyword_category_spec.rb
130
+ - spec/sifi_api/keyword_spec.rb
131
+ - spec/sifi_api/operating_system_spec.rb
132
+ - spec/sifi_api/recency_spec.rb
133
+ - spec/sifi_api/recurring_report_spec.rb
134
+ - spec/sifi_api/report_asset_spec.rb
135
+ - spec/sifi_api/report_spec.rb
136
+ - spec/sifi_api/report_type_spec.rb
137
+ - spec/sifi_api/user_spec.rb
138
+ - spec/spec_helper.rb
139
+ - spec/support/resource_shared_example.rb
140
+ homepage: http://simpli.fi
141
+ licenses: []
142
+ post_install_message:
143
+ rdoc_options: []
144
+ require_paths:
145
+ - lib
146
+ required_ruby_version: !ruby/object:Gem::Requirement
147
+ none: false
148
+ requirements:
149
+ - - ! '>='
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ segments:
153
+ - 0
154
+ hash: 4076601209202194299
155
+ required_rubygems_version: !ruby/object:Gem::Requirement
156
+ none: false
157
+ requirements:
158
+ - - ! '>='
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ segments:
162
+ - 0
163
+ hash: 4076601209202194299
164
+ requirements: []
165
+ rubyforge_project:
166
+ rubygems_version: 1.8.10
167
+ signing_key:
168
+ specification_version: 3
169
+ summary: Ruby wrapper for the Simpli.fi API
170
+ test_files:
171
+ - spec/sifi_api/ad_file_type_spec.rb
172
+ - spec/sifi_api/ad_size_spec.rb
173
+ - spec/sifi_api/ad_spec.rb
174
+ - spec/sifi_api/bid_type_spec.rb
175
+ - spec/sifi_api/branded_datum_spec.rb
176
+ - spec/sifi_api/browser_spec.rb
177
+ - spec/sifi_api/campaign_spec.rb
178
+ - spec/sifi_api/campaign_stat_spec.rb
179
+ - spec/sifi_api/campaign_type_spec.rb
180
+ - spec/sifi_api/change_spec.rb
181
+ - spec/sifi_api/client_spec.rb
182
+ - spec/sifi_api/company_spec.rb
183
+ - spec/sifi_api/context_spec.rb
184
+ - spec/sifi_api/dayparting_spec.rb
185
+ - spec/sifi_api/device_spec.rb
186
+ - spec/sifi_api/dma_spec.rb
187
+ - spec/sifi_api/domain_spec.rb
188
+ - spec/sifi_api/geo_target_spec.rb
189
+ - spec/sifi_api/ip_range_spec.rb
190
+ - spec/sifi_api/keyword_category_spec.rb
191
+ - spec/sifi_api/keyword_spec.rb
192
+ - spec/sifi_api/operating_system_spec.rb
193
+ - spec/sifi_api/recency_spec.rb
194
+ - spec/sifi_api/recurring_report_spec.rb
195
+ - spec/sifi_api/report_asset_spec.rb
196
+ - spec/sifi_api/report_spec.rb
197
+ - spec/sifi_api/report_type_spec.rb
198
+ - spec/sifi_api/user_spec.rb
199
+ - spec/spec_helper.rb
200
+ - spec/support/resource_shared_example.rb