harvested 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b320e8b059c090f49100d56dd033bd1cd8d388ea
4
- data.tar.gz: 4edae05dec9b1f29e4e73315d071f104849b0911
3
+ metadata.gz: 85f9194a4556d2e4f55bd7ed336a18393b3b75ba
4
+ data.tar.gz: b63cbb54de97e276cbaa9f4829f0756d8ceb74aa
5
5
  SHA512:
6
- metadata.gz: 237ff0b0bd1c19bbd60620b9c4df92c2de856e3557c70e0a777a482f03bf5b5dfb9730668a88614664dfcebd5eef1ceb0363ca65397fa061c3c4f6d384ece125
7
- data.tar.gz: 7956415b92ee623735f3eef012a74f0bc9ba039eee99eb66fdaf54a875356c5f28e2aac660b28bf300d2c7e5446a9e8c0ae709dc40bfed67e12438ed3c9664db
6
+ metadata.gz: dc40190d2ee5dde42dc4f7815306dc341edc5e0b503e828ed63f333739113f2b6c1087b50990978717979e9780d0a5bec24dd9a52062d9887177be2b1b316b11
7
+ data.tar.gz: f43828a1bbde4e7ca2443d97d741d7eb307f0c21521e80d24ac2e0a37b36a6df40c6878347e14a58165c22d8d7643445cd7b01973ac80d7e1a3bbb51fe3137c3
data/README.md CHANGED
@@ -17,7 +17,7 @@ client = harvest.clients.create(client)
17
17
  harvest.clients.find(client.id) # returns a Harvest::Client
18
18
  ```
19
19
 
20
- You can also pass query options in as the last parameter on any objects `all` finder
20
+ You can also pass query options in as the last parameter on any object's `all` finder
21
21
  method, for example to find all the projects for client ID 12345:
22
22
 
23
23
  ```ruby
@@ -25,7 +25,7 @@ harvest = Harvest.client(subdomain: 'yoursubdomain', username: 'yourusername', p
25
25
  harvest.projects.all(nil, :client => 12345)
26
26
  ```
27
27
 
28
- Note, the first parameter is a User ID field that is optional, but needs to be specified
28
+ Note: the first parameter is a User ID field that is optional, but needs to be specified
29
29
  as nil if not included.
30
30
 
31
31
  You can pass in any hash of query attributes you wish as per the
@@ -35,11 +35,11 @@ You can find more examples in `/examples` and in the documentation for Harvest::
35
35
 
36
36
  ## Permissions
37
37
 
38
- For most operations you need to be an Admin on the Harvest account. You can do few select things as normal users and project managers, but you will likely get errors.
38
+ For most operations you need to be an Admin on the Harvest account. You can do a few select things as a normal user or a project manager, but you will likely get errors.
39
39
 
40
40
  ## Hardy Client
41
41
 
42
- The guys at Harvest built a great API, but there are always dangers in writing code that depends on an API. For example, HTTP Timeouts, Occasional Bad Gateways, and Rate Limiting issues need to be accounted for.
42
+ The team at Harvest built a great API, but there are always dangers in writing code that depends on an API. For example: HTTP Timeouts, Occasional Bad Gateways, and Rate Limiting issues need to be accounted for.
43
43
 
44
44
  Using `Harvested#client` your code needs to handle all these situations. However you can also use `Harvested#hardy_client` which will retry errors and wait for Rate Limit resets.
45
45
 
@@ -50,7 +50,7 @@ harvest.projects.all # This will wait for the Rate Limit reset if you have gon
50
50
 
51
51
  ## Ruby support
52
52
 
53
- Harvested's tests are currently supports ruby 2.0+
53
+ Harvested's tests currently support Ruby version 2.0+
54
54
 
55
55
  ## Links
56
56
 
@@ -88,5 +88,5 @@ The tests use [VCR](https://github.com/myronmarston/vcr) to cache the API respon
88
88
 
89
89
  ## Notes on Harvest Estimates
90
90
 
91
- Estimates aren't currently supported due to lack of an API. If this opens up, harvested will include them.
91
+ Estimates aren't currently supported due to the lack of an API. If this opens up, harvested will include them.
92
92
 
@@ -2,7 +2,6 @@ module Harvest
2
2
  # shamelessly ripped from Rails: http://github.com/rails/rails/blob/master/activesupport/lib/active_support/values/time_zone.rb
3
3
  module Timezones
4
4
  MAPPING = {
5
- "pacific/midway" => "International Date Line West",
6
5
  "pacific/midway" => "Midway Island",
7
6
  "pacific/pago_pago" => "Samoa",
8
7
  "pacific/honolulu" => "Hawaii",
@@ -15,7 +14,6 @@ module Harvest
15
14
  "america/mazatlan" => "Mazatlan",
16
15
  "america/chicago" => "Central Time (US & Canada)",
17
16
  "america/regina" => "Saskatchewan",
18
- "america/mexico_city" => "Guadalajara",
19
17
  "america/mexico_city" => "Mexico City",
20
18
  "america/monterrey" => "Monterrey",
21
19
  "america/guatemala" => "Central America",
@@ -23,7 +21,6 @@ module Harvest
23
21
  "america/indiana/indianapolis" => "Indiana (East)",
24
22
  "america/bogota" => "Bogota",
25
23
  "america/lima" => "Lima",
26
- "america/lima" => "Quito",
27
24
  "america/halifax" => "Atlantic Time (Canada)",
28
25
  "america/caracas" => "Caracas",
29
26
  "america/la_paz" => "La Paz",
@@ -37,7 +34,6 @@ module Harvest
37
34
  "atlantic/azores" => "Azores",
38
35
  "atlantic/cape_verde" => "Cape Verde Is.",
39
36
  "europe/dublin" => "Dublin",
40
- "europe/dublin" => "Edinburgh",
41
37
  "europe/lisbon" => "Lisbon",
42
38
  "europe/london" => "London",
43
39
  "africa/casablanca" => "Casablanca",
@@ -58,7 +54,6 @@ module Harvest
58
54
  "europe/paris" => "Paris",
59
55
  "europe/amsterdam" => "Amsterdam",
60
56
  "europe/berlin" => "Berlin",
61
- "europe/berlin" => "Bern",
62
57
  "europe/rome" => "Rome",
63
58
  "europe/stockholm" => "Stockholm",
64
59
  "europe/vienna" => "Vienna",
@@ -78,36 +73,27 @@ module Harvest
78
73
  "africa/harare" => "Harare",
79
74
  "africa/johannesburg" => "Pretoria",
80
75
  "europe/moscow" => "Moscow",
81
- "europe/moscow" => "St. Petersburg",
82
- "europe/moscow" => "Volgograd",
83
76
  "asia/kuwait" => "Kuwait",
84
77
  "asia/riyadh" => "Riyadh",
85
78
  "africa/nairobi" => "Nairobi",
86
79
  "asia/baghdad" => "Baghdad",
87
80
  "asia/tehran" => "Tehran",
88
- "asia/muscat" => "Abu Dhabi",
89
81
  "asia/muscat" => "Muscat",
90
82
  "asia/baku" => "Baku",
91
83
  "asia/tbilisi" => "Tbilisi",
92
84
  "asia/yerevan" => "Yerevan",
93
85
  "asia/kabul" => "Kabul",
94
86
  "asia/yekaterinburg" => "Ekaterinburg",
95
- "asia/karachi" => "Islamabad",
96
87
  "asia/karachi" => "Karachi",
97
88
  "asia/tashkent" => "Tashkent",
98
- "asia/kolkata" => "Chennai",
99
89
  "asia/kolkata" => "Kolkata",
100
- "asia/kolkata" => "Mumbai",
101
- "asia/kolkata" => "New Delhi",
102
90
  "asia/katmandu" => "Kathmandu",
103
- "asia/dhaka" => "Astana",
104
91
  "asia/dhaka" => "Dhaka",
105
92
  "asia/colombo" => "Sri Jayawardenepura",
106
93
  "asia/almaty" => "Almaty",
107
94
  "asia/novosibirsk" => "Novosibirsk",
108
95
  "asia/rangoon" => "Rangoon",
109
96
  "asia/bangkok" => "Bangkok",
110
- "asia/bangkok" => "Hanoi",
111
97
  "asia/jakarta" => "Jakarta",
112
98
  "asia/krasnoyarsk" => "Krasnoyarsk",
113
99
  "asia/shanghai" => "Beijing",
@@ -121,13 +107,10 @@ module Harvest
121
107
  "asia/irkutsk" => "Irkutsk",
122
108
  "asia/ulaanbaatar" => "Ulaan Bataar",
123
109
  "asia/seoul" => "Seoul",
124
- "asia/tokyo" => "Osaka",
125
- "asia/tokyo" => "Sapporo",
126
110
  "asia/tokyo" => "Tokyo",
127
111
  "asia/yakutsk" => "Yakutsk",
128
112
  "australia/darwin" => "Darwin",
129
113
  "australia/adelaide" => "Adelaide",
130
- "australia/melbourne" => "Canberra",
131
114
  "australia/melbourne" => "Melbourne",
132
115
  "australia/sydney" => "Sydney",
133
116
  "australia/brisbane" => "Brisbane",
@@ -136,13 +119,11 @@ module Harvest
136
119
  "pacific/guam" => "Guam",
137
120
  "pacific/port_moresby" => "Port Moresby",
138
121
  "asia/magadan" => "Magadan",
139
- "asia/magadan" => "Solomon Is.",
140
122
  "pacific/noumea" => "New Caledonia",
141
123
  "pacific/fiji" => "Fiji",
142
124
  "asia/kamchatka" => "Kamchatka",
143
125
  "pacific/majuro" => "Marshall Is.",
144
126
  "pacific/auckland" => "Auckland",
145
- "pacific/auckland" => "Wellington",
146
127
  "pacific/tongatapu" => "Nuku'alofa"
147
128
  }
148
129
  end
@@ -1,3 +1,3 @@
1
1
  module Harvest
2
- VERSION = "3.1.0"
2
+ VERSION = "3.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harvested
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Moazeni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-29 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty