harvesting 0.1.0 → 0.2.0

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
  SHA256:
3
- metadata.gz: ba547e0b7559bb7e2fd813f033eea49bc081ba343eeb76f16a7fe6f5844d094b
4
- data.tar.gz: 619c571ee6951d6ba1680c8ef884b8f65029ca398039f080dbaad9c58a10033c
3
+ metadata.gz: 1673fee5f8b50a00750256df7dea9b8143b4afbead80fbdf431cd2ecd19c6a1c
4
+ data.tar.gz: 5cb711e920654119f73ade9d2a9cc32a71ff869630b9a6d2ee0f48003cd743b5
5
5
  SHA512:
6
- metadata.gz: e67ebf3abc0d39326847c700cabc18ee9211457621fd2ff3aa1e9bad91bd5bee09fa1e5c06147f65f277d98bc1edd14bbdb9cd92db71f2ce2d302d6a91eab2b9
7
- data.tar.gz: 64044c30588913da4bd2abdd71b30cc890644a8db84bdc048c4a29d36d88d32a7b99e452b474c3727b653c44a4dab11588b1b937f7115877a85da38e28952045
6
+ metadata.gz: 36d93fb5fdea77d42429d5e9116a12409e480746a261ce6f615987fa2c47b04e13f95a160eebcdea0314df78dd937b9353d8bafb21d8f44c8e64fa3f72928913
7
+ data.tar.gz: 3ba6fa74a9e549fb2bfb49f4cbde3e6b7c46fcb30564dbe9d0da14d1b0f03e8bd14e1f018b43c0667888f42b82c99ea89fb78da91c647039e9b5e616fe7c3486
@@ -0,0 +1,6 @@
1
+ FROM ruby:2.4.1
2
+
3
+ RUN mkdir /gem
4
+ WORKDIR /gem
5
+
6
+ RUN gem install bundler -v 1.16.1
data/README.md CHANGED
@@ -18,6 +18,10 @@ Or install it yourself as:
18
18
 
19
19
  $ gem install harvesting
20
20
 
21
+ ## Documentation
22
+
23
+ The API is documented [here](https://www.rubydoc.info/github/ombulabs/harvesting)
24
+
21
25
  ## Usage
22
26
 
23
27
  In order to start using this gem you will need your personal token and an
@@ -92,12 +96,24 @@ this:
92
96
 
93
97
  There are many things to be developed for this gem. For now they are tracked here: [TODO.md](https://github.com/ombulabs/harvesting/blob/master/TODO.md)
94
98
 
99
+ ## Releases
100
+
101
+ You can find more info [here](RELEASE_NOTES.md)
102
+
95
103
  ## Development
96
104
 
105
+ ### Without Docker
106
+
97
107
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
98
108
 
99
109
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
100
110
 
111
+ ### With Docker
112
+
113
+ This setup allows you to create a completely isolated development environment for working on this gem. The version of ruby used for development and the gems that it depends on will remain inside the container.
114
+
115
+ After checking out the repo, run `docker-compose build` to create the `gem` container. Running `docker-compose run gem bash` will get you a bash session inside the container. From there, you can follow the instructions in the "Without Docker" section above.
116
+
101
117
  ## Contributing
102
118
 
103
119
  Bug reports and pull requests are welcome on GitHub at https://github.com/ombulabs/harvesting. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -0,0 +1,20 @@
1
+ # RELEASE NOTES
2
+
3
+ ## Version 0.1.0 - Sep 04, 2018
4
+
5
+ **Notes**
6
+
7
+ - Initial release
8
+
9
+ ### Version 0.2.0 - Oct 18, 2018
10
+
11
+ **Notes**
12
+
13
+ - More documentation in README.md
14
+ - Adds ability to access user associated with time entries: https://github.com/ombulabs/harvesting/pull/3
15
+ - Adds support for Docker for development: https://github.com/ombulabs/harvesting/pull/1
16
+
17
+ **Bug Fixes**
18
+
19
+ - Fixes issues with specs: https://github.com/ombulabs/harvesting/pull/2
20
+ - Fixed https://github.com/ombulabs/harvesting/issues/6 with https://github.com/ombulabs/harvesting/pull/7
@@ -0,0 +1,10 @@
1
+ version: '3'
2
+ services:
3
+ gem:
4
+ build: .
5
+ volumes:
6
+ - .:/gem
7
+ - bundler:/usr/local/bundle
8
+
9
+ volumes:
10
+ bundler:
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "byebug"
4
3
  require "http"
5
4
  require "json"
6
5
 
@@ -27,6 +27,10 @@ module Harvesting
27
27
  def path
28
28
  id.nil? ? "time_entries" : "time_entries/#{id}"
29
29
  end
30
+
31
+ def user
32
+ Models::User.new(@attributes['user'], client: @client)
33
+ end
30
34
  end
31
35
  end
32
36
  end
@@ -1,3 +1,3 @@
1
1
  module Harvesting
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harvesting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernesto Tagwerker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-04 00:00:00.000000000 Z
11
+ date: 2018-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -162,15 +162,18 @@ files:
162
162
  - ".gitignore"
163
163
  - ".travis.yml"
164
164
  - CODE_OF_CONDUCT.md
165
+ - Dockerfile
165
166
  - Gemfile
166
167
  - Gemfile.lock
167
168
  - Guardfile
168
169
  - LICENSE.txt
169
170
  - README.md
171
+ - RELEASE_NOTES.md
170
172
  - Rakefile
171
173
  - TODO.md
172
174
  - bin/console
173
175
  - bin/setup
176
+ - docker-compose.yml
174
177
  - harvesting.gemspec
175
178
  - lib/harvesting.rb
176
179
  - lib/harvesting/client.rb