forecasted 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/.document +3 -0
  3. data/.gitignore +39 -0
  4. data/.rspec +2 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +16 -0
  7. data/Gemfile +19 -0
  8. data/HISTORY.md +19 -0
  9. data/MIT-LICENSE +20 -0
  10. data/README.md +109 -0
  11. data/Rakefile +22 -0
  12. data/examples/basics.rb +35 -0
  13. data/examples/clear_account.rb +28 -0
  14. data/examples/project_create_script.rb +93 -0
  15. data/examples/task_assignments.rb +27 -0
  16. data/examples/user_assignments.rb +24 -0
  17. data/forecasted.gemspec +25 -0
  18. data/lib/ext/array.rb +52 -0
  19. data/lib/ext/date.rb +9 -0
  20. data/lib/ext/hash.rb +17 -0
  21. data/lib/ext/time.rb +5 -0
  22. data/lib/forecast/aggregate.rb +8 -0
  23. data/lib/forecast/api/account.rb +22 -0
  24. data/lib/forecast/api/aggregates.rb +20 -0
  25. data/lib/forecast/api/assignments.rb +63 -0
  26. data/lib/forecast/api/base.rb +68 -0
  27. data/lib/forecast/api/clients.rb +10 -0
  28. data/lib/forecast/api/expense_categories.rb +9 -0
  29. data/lib/forecast/api/expenses.rb +27 -0
  30. data/lib/forecast/api/invoice_categories.rb +26 -0
  31. data/lib/forecast/api/invoice_messages.rb +75 -0
  32. data/lib/forecast/api/invoice_payments.rb +31 -0
  33. data/lib/forecast/api/invoices.rb +35 -0
  34. data/lib/forecast/api/milestones.rb +21 -0
  35. data/lib/forecast/api/projects.rb +23 -0
  36. data/lib/forecast/api/reports.rb +53 -0
  37. data/lib/forecast/api/tasks.rb +36 -0
  38. data/lib/forecast/api/time.rb +48 -0
  39. data/lib/forecast/api/user_assignments.rb +34 -0
  40. data/lib/forecast/api/users.rb +21 -0
  41. data/lib/forecast/assignment.rb +7 -0
  42. data/lib/forecast/base.rb +111 -0
  43. data/lib/forecast/behavior/activatable.rb +31 -0
  44. data/lib/forecast/behavior/crud.rb +75 -0
  45. data/lib/forecast/client.rb +22 -0
  46. data/lib/forecast/credentials.rb +42 -0
  47. data/lib/forecast/errors.rb +26 -0
  48. data/lib/forecast/expense.rb +27 -0
  49. data/lib/forecast/expense_category.rb +10 -0
  50. data/lib/forecast/hardy_client.rb +80 -0
  51. data/lib/forecast/invoice.rb +107 -0
  52. data/lib/forecast/invoice_category.rb +9 -0
  53. data/lib/forecast/invoice_message.rb +8 -0
  54. data/lib/forecast/invoice_payment.rb +8 -0
  55. data/lib/forecast/line_item.rb +4 -0
  56. data/lib/forecast/model.rb +154 -0
  57. data/lib/forecast/project.rb +37 -0
  58. data/lib/forecast/rate_limit_status.rb +23 -0
  59. data/lib/forecast/task.rb +22 -0
  60. data/lib/forecast/time_entry.rb +25 -0
  61. data/lib/forecast/timezones.rb +130 -0
  62. data/lib/forecast/trackable_project.rb +38 -0
  63. data/lib/forecast/user_assignment.rb +30 -0
  64. data/lib/forecast/version.rb +3 -0
  65. data/lib/forecasted.rb +87 -0
  66. data/spec/factories.rb +17 -0
  67. data/spec/forecast/base_spec.rb +11 -0
  68. data/spec/functional/aggregates_spec.rb +64 -0
  69. data/spec/functional/assignments_spec.rb +131 -0
  70. data/spec/functional/errors_spec.rb +22 -0
  71. data/spec/functional/hardy_client_spec.rb +33 -0
  72. data/spec/functional/milestones_spec.rb +82 -0
  73. data/spec/functional/people_spec.rb +85 -0
  74. data/spec/functional/project_spec.rb +41 -0
  75. data/spec/spec_helper.rb +41 -0
  76. data/spec/support/forecast_credentials.example.yml +6 -0
  77. data/spec/support/forecasted_helpers.rb +66 -0
  78. data/spec/support/json_examples.rb +9 -0
  79. metadata +189 -0
metadata ADDED
@@ -0,0 +1,189 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: forecasted
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Weston Platter
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-11-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: hashie
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: business_time
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description:
70
+ email:
71
+ executables: []
72
+ extensions: []
73
+ extra_rdoc_files: []
74
+ files:
75
+ - ".document"
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".ruby-version"
79
+ - ".travis.yml"
80
+ - Gemfile
81
+ - HISTORY.md
82
+ - MIT-LICENSE
83
+ - README.md
84
+ - Rakefile
85
+ - examples/basics.rb
86
+ - examples/clear_account.rb
87
+ - examples/project_create_script.rb
88
+ - examples/task_assignments.rb
89
+ - examples/user_assignments.rb
90
+ - forecasted.gemspec
91
+ - lib/ext/array.rb
92
+ - lib/ext/date.rb
93
+ - lib/ext/hash.rb
94
+ - lib/ext/time.rb
95
+ - lib/forecast/aggregate.rb
96
+ - lib/forecast/api/account.rb
97
+ - lib/forecast/api/aggregates.rb
98
+ - lib/forecast/api/assignments.rb
99
+ - lib/forecast/api/base.rb
100
+ - lib/forecast/api/clients.rb
101
+ - lib/forecast/api/expense_categories.rb
102
+ - lib/forecast/api/expenses.rb
103
+ - lib/forecast/api/invoice_categories.rb
104
+ - lib/forecast/api/invoice_messages.rb
105
+ - lib/forecast/api/invoice_payments.rb
106
+ - lib/forecast/api/invoices.rb
107
+ - lib/forecast/api/milestones.rb
108
+ - lib/forecast/api/projects.rb
109
+ - lib/forecast/api/reports.rb
110
+ - lib/forecast/api/tasks.rb
111
+ - lib/forecast/api/time.rb
112
+ - lib/forecast/api/user_assignments.rb
113
+ - lib/forecast/api/users.rb
114
+ - lib/forecast/assignment.rb
115
+ - lib/forecast/base.rb
116
+ - lib/forecast/behavior/activatable.rb
117
+ - lib/forecast/behavior/crud.rb
118
+ - lib/forecast/client.rb
119
+ - lib/forecast/credentials.rb
120
+ - lib/forecast/errors.rb
121
+ - lib/forecast/expense.rb
122
+ - lib/forecast/expense_category.rb
123
+ - lib/forecast/hardy_client.rb
124
+ - lib/forecast/invoice.rb
125
+ - lib/forecast/invoice_category.rb
126
+ - lib/forecast/invoice_message.rb
127
+ - lib/forecast/invoice_payment.rb
128
+ - lib/forecast/line_item.rb
129
+ - lib/forecast/model.rb
130
+ - lib/forecast/project.rb
131
+ - lib/forecast/rate_limit_status.rb
132
+ - lib/forecast/task.rb
133
+ - lib/forecast/time_entry.rb
134
+ - lib/forecast/timezones.rb
135
+ - lib/forecast/trackable_project.rb
136
+ - lib/forecast/user_assignment.rb
137
+ - lib/forecast/version.rb
138
+ - lib/forecasted.rb
139
+ - spec/factories.rb
140
+ - spec/forecast/base_spec.rb
141
+ - spec/functional/aggregates_spec.rb
142
+ - spec/functional/assignments_spec.rb
143
+ - spec/functional/errors_spec.rb
144
+ - spec/functional/hardy_client_spec.rb
145
+ - spec/functional/milestones_spec.rb
146
+ - spec/functional/people_spec.rb
147
+ - spec/functional/project_spec.rb
148
+ - spec/spec_helper.rb
149
+ - spec/support/forecast_credentials.example.yml
150
+ - spec/support/forecasted_helpers.rb
151
+ - spec/support/json_examples.rb
152
+ homepage: http://github.com/westonplater/forecasted
153
+ licenses:
154
+ - MIT
155
+ metadata: {}
156
+ post_install_message:
157
+ rdoc_options: []
158
+ require_paths:
159
+ - lib
160
+ required_ruby_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: '2.0'
165
+ required_rubygems_version: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: '0'
170
+ requirements: []
171
+ rubyforge_project:
172
+ rubygems_version: 2.5.1
173
+ signing_key:
174
+ specification_version: 4
175
+ summary: A Ruby Wrapper for the HarvestForecast (unofficial) API
176
+ test_files:
177
+ - spec/factories.rb
178
+ - spec/forecast/base_spec.rb
179
+ - spec/functional/aggregates_spec.rb
180
+ - spec/functional/assignments_spec.rb
181
+ - spec/functional/errors_spec.rb
182
+ - spec/functional/hardy_client_spec.rb
183
+ - spec/functional/milestones_spec.rb
184
+ - spec/functional/people_spec.rb
185
+ - spec/functional/project_spec.rb
186
+ - spec/spec_helper.rb
187
+ - spec/support/forecast_credentials.example.yml
188
+ - spec/support/forecasted_helpers.rb
189
+ - spec/support/json_examples.rb