idonethis-cli 0.12.0 → 0.13.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0ab8a523680ec339432ce597c050ff9aabf9d39
4
- data.tar.gz: 3fe8cc22e494bb5cba8ad803370586f8aaa0a621
3
+ metadata.gz: 754d92eb8968858f21bf90f56736ce5b13cb0b64
4
+ data.tar.gz: 56794ec060afa4ceff4aeca0dd58321979146819
5
5
  SHA512:
6
- metadata.gz: def9b1051c054f31a38e440c21cfba144a5488c0ecfb45575cf43881b632b9adfd28f0c4e8c1a3baf98be5e1c288683d5cd6542caf9a090dcea71284678f5907
7
- data.tar.gz: 59ea502d7d1b014b06cab4c111e1d62d3919a0bba9dc1b3aa6a287f66cb6598e4bc52bb317a61ae0ec2a1be91cfd4caa8b439598a192d7d3318ad91443a41b63
6
+ metadata.gz: fb11a86712f640f552bea88d52daacc9fee19bd0deacd4b84f5ed3f00a05fac2196feb937512a2b1292760b23a8c684fd17035ab7d75919ff564ff50b757b590
7
+ data.tar.gz: c16e55b46c914b4d951383864a3b0ec8c5f6708c2b2d0aadea8ed1034a56deff039d21021ce1b0c9a93d4a4ae019c843dd2db22960d13df516de7c4deb9f742c
data/.gitignore CHANGED
@@ -1,11 +1,11 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- .settings
11
- .rspec
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ .settings
11
+ .rspec
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.1
4
- before_install: gem install bundler -v 1.10.6
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.1
4
+ before_install: gem install bundler -v 1.10.6
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Ben Biddington
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Ben Biddington
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,99 +1,99 @@
1
- A CLI for [idonethis](https://idonethis.com/).
2
-
3
- [![Build Status](https://travis-ci.org/ben-biddington/idonethis-cli.svg?branch=master)](http://travis-ci.org/ben-biddington/idonethis-cli)
4
-
5
- ## Installation
6
-
7
- ```
8
- $ gem install idonethis-cli
9
- ```
10
-
11
- Due to [this defect](https://github.com/bundler/bundler/issues/1096), you may have to install rspec 3 manually. (Bundler tries to install development dependencies too.)
12
-
13
- ## Usage
14
-
15
- ### Configuration
16
-
17
- Set up your token and team (find your token [here](https://idonethis.com/api/token/)):
18
-
19
- ```
20
- $ idonethis config user.token=7513375f96b158a5c42a1337f1025d4d76d1deb
21
- ```
22
-
23
- ```
24
- $ idonethis config user.team=benbiddington-personal
25
- ```
26
-
27
- ### List dones
28
-
29
- ```
30
- $ idonethis list today
31
- 1 2015-09-21T04:42:21.832 -- Moved settings file into lib
32
- 2 2015-09-21T01:22:53.058 -- Some more refactoring
33
- 3 2015-09-21T01:13:00.111 -- [idone] Split adapters and use cases
34
- 4 2015-09-20T23:29:01.002 -- Some work in change contact (js)
35
- 5 2015-09-20T21:47:00.903 -- Do <code>backticks</code> work?
36
- 6 2015-09-20T21:46:00.053 -- Seems to work on windows, though we do get that gem warning &lt;Unresolved specs during Gem::Specification.reset&gt;
37
- ```
38
-
39
- You can also list dones for the past week:
40
-
41
- ```
42
- $ idonethis list week
43
- ```
44
-
45
- ### Add done
46
-
47
- ```
48
- $ bin/idonethis new -m "Ricky Bizzness"
49
- ```
50
-
51
- ### Choose team
52
-
53
- To work against a different team, use the `-t` option.
54
-
55
- ```
56
- $ idonethis list today -t benbiddington-personal-lM85
57
- 1 2015-09-23T02:01:41.808 benbiddington-personal-lM85 -- I think this is our shared team, Ricky F
58
- ```
59
-
60
- Same for adding:
61
-
62
- ```
63
- idonethis new -m "Can use \`-t\` to send dones to another team" -t benbiddington-personal-lM85
64
- ```
65
-
66
- ### Add dones based on commit activity [alpha]
67
-
68
- ```
69
- $ idonethis git
70
- Scanning dir </home/ben/sauce>, which has <1> repositories that have changed
71
-
72
- idonethis-cli (10):
73
- -- [22:07] `idonethis git` prints an activity summary
74
- -- [21:16] v0.4.0
75
- -- [21:16] Use raw text for CLI display
76
- -- [21:14] Document `list week`
77
- -- [21:12] Add build status icon
78
- -- [21:09] Enable `rake` (runs tests)
79
- -- [21:07] v0.3.0 -- `list week`
80
- -- [21:06] Enable `idonethis list week`
81
- -- [20:55] Refactor: simplified
82
- -- [20:48] Refactor: extract function"
83
- ```
84
-
85
- ## Development
86
-
87
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
88
-
89
- 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).
90
-
91
- ## Contributing
92
-
93
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/idonethis-cli.
94
-
95
-
96
- ## License
97
-
98
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
99
-
1
+ A CLI for [idonethis](https://idonethis.com/).
2
+
3
+ [![Build Status](https://travis-ci.org/ben-biddington/idonethis-cli.svg?branch=master)](http://travis-ci.org/ben-biddington/idonethis-cli)
4
+
5
+ ## Installation
6
+
7
+ ```
8
+ $ gem install idonethis-cli
9
+ ```
10
+
11
+ Due to [this defect](https://github.com/bundler/bundler/issues/1096), you may have to install rspec 3 manually. (Bundler tries to install development dependencies too.)
12
+
13
+ ## Usage
14
+
15
+ ### Configuration
16
+
17
+ Set up your token and team (find your token [here](https://idonethis.com/api/token/)):
18
+
19
+ ```
20
+ $ idonethis config user.token=7513375f96b158a5c42a1337f1025d4d76d1deb
21
+ ```
22
+
23
+ ```
24
+ $ idonethis config user.team=benbiddington-personal
25
+ ```
26
+
27
+ ### List dones
28
+
29
+ ```
30
+ $ idonethis list today
31
+ 1 2015-09-21T04:42:21.832 -- Moved settings file into lib
32
+ 2 2015-09-21T01:22:53.058 -- Some more refactoring
33
+ 3 2015-09-21T01:13:00.111 -- [idone] Split adapters and use cases
34
+ 4 2015-09-20T23:29:01.002 -- Some work in change contact (js)
35
+ 5 2015-09-20T21:47:00.903 -- Do <code>backticks</code> work?
36
+ 6 2015-09-20T21:46:00.053 -- Seems to work on windows, though we do get that gem warning &lt;Unresolved specs during Gem::Specification.reset&gt;
37
+ ```
38
+
39
+ You can also list dones for the past week:
40
+
41
+ ```
42
+ $ idonethis list week
43
+ ```
44
+
45
+ ### Add done
46
+
47
+ ```
48
+ $ bin/idonethis new -m "Ricky Bizzness"
49
+ ```
50
+
51
+ ### Choose team
52
+
53
+ To work against a different team, use the `-t` option.
54
+
55
+ ```
56
+ $ idonethis list today -t benbiddington-personal-lM85
57
+ 1 2015-09-23T02:01:41.808 benbiddington-personal-lM85 -- I think this is our shared team, Ricky F
58
+ ```
59
+
60
+ Same for adding:
61
+
62
+ ```
63
+ idonethis new -m "Can use \`-t\` to send dones to another team" -t benbiddington-personal-lM85
64
+ ```
65
+
66
+ ### Add dones based on commit activity [alpha]
67
+
68
+ ```
69
+ $ idonethis git
70
+ Scanning dir </home/ben/sauce>, which has <1> repositories that have changed
71
+
72
+ idonethis-cli (10):
73
+ -- [22:07] `idonethis git` prints an activity summary
74
+ -- [21:16] v0.4.0
75
+ -- [21:16] Use raw text for CLI display
76
+ -- [21:14] Document `list week`
77
+ -- [21:12] Add build status icon
78
+ -- [21:09] Enable `rake` (runs tests)
79
+ -- [21:07] v0.3.0 -- `list week`
80
+ -- [21:06] Enable `idonethis list week`
81
+ -- [20:55] Refactor: simplified
82
+ -- [20:48] Refactor: extract function"
83
+ ```
84
+
85
+ ## Development
86
+
87
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
88
+
89
+ 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).
90
+
91
+ ## Contributing
92
+
93
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/idonethis-cli.
94
+
95
+
96
+ ## License
97
+
98
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
99
+
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
- require "bundler/gem_tasks"
2
-
3
- require 'rspec/core/rake_task'
4
-
5
- RSpec::Core::RakeTask.new(:test)
6
-
7
- task :default => :test
1
+ require "bundler/gem_tasks"
2
+
3
+ require 'rspec/core/rake_task'
4
+
5
+ RSpec::Core::RakeTask.new(:test)
6
+
7
+ task :default => :test
data/bin/console CHANGED
@@ -1,14 +1,14 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "idonethis/cli"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "idonethis/cli"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/idonethis CHANGED
@@ -1,13 +1,13 @@
1
- #!/usr/bin/env ruby
2
-
3
- gemfile_path = File.join(File.dirname(File.dirname(__FILE__)), "Gemfile")
4
-
5
- ENV["BUNDLE_GEMFILE"] = gemfile_path
6
-
7
- require "rubygems"
8
- require "bundler/setup"
9
- require "idonethis"
10
-
11
- Bundler.require(:default)
12
-
13
- Idonethis::Adapters::Cli.run ARGV
1
+ #!/usr/bin/env ruby
2
+
3
+ gemfile_path = File.join(File.dirname(File.dirname(__FILE__)), "Gemfile")
4
+
5
+ ENV["BUNDLE_GEMFILE"] = gemfile_path
6
+
7
+ require "rubygems"
8
+ require "bundler/setup"
9
+ require "idonethis"
10
+
11
+ Bundler.require(:default)
12
+
13
+ Idonethis::Adapters::Cli.run ARGV
data/bin/setup CHANGED
@@ -1,7 +1,7 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -1,35 +1,36 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'idonethis/cli/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "idonethis-cli"
8
- spec.version = Idonethis::Cli::VERSION
9
- spec.authors = ["Ben Biddington"]
10
- spec.email = ["ben.biddington@gmail.com"]
11
-
12
- spec.summary = %q{Command line interface for idonethis}
13
- spec.description = %q{Command line interface for idonethis}
14
- spec.homepage = "https://github.com/ben-biddington/idonethis-cli"
15
- spec.license = "MIT"
16
-
17
- # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
- # delete this section to allow pushing this gem to any host.
19
- if spec.respond_to?(:metadata)
20
- spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
- else
22
- raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
- end
24
-
25
- spec.files = File.exists?(".git") ? `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } : []
26
- spec.bindir = "bin"
27
- spec.executables = ['idonethis']
28
- spec.require_paths = ["lib"]
29
-
30
- spec.add_development_dependency "bundler" , "~> 1.10"
31
- spec.add_development_dependency "rake" , "~> 10.0"
32
- spec.add_development_dependency "rspec" , "~> 3"
33
- spec.add_dependency "rest-client" , "~> 1"
34
- spec.add_dependency "git" , "~> 1"
35
- end
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'idonethis/cli/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "idonethis-cli"
8
+ spec.version = Idonethis::Cli::VERSION
9
+ spec.authors = ["Ben Biddington"]
10
+ spec.email = ["ben.biddington@gmail.com"]
11
+
12
+ spec.summary = %q{Command line interface for idonethis}
13
+ spec.description = %q{Command line interface for idonethis}
14
+ spec.homepage = "https://github.com/ben-biddington/idonethis-cli"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ end
24
+
25
+ spec.files = File.exists?(".git") ? `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } : []
26
+ spec.bindir = "bin"
27
+ spec.executables = ['idonethis']
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "bundler" , "~> 1.10"
31
+ spec.add_development_dependency "rake" , "~> 10.0"
32
+ spec.add_development_dependency "rspec" , "~> 3"
33
+ spec.add_dependency "rest-client" , "~> 1"
34
+ spec.add_dependency "git" , "~> 1"
35
+ spec.add_dependency "celluloid" , "~> 0.17"
36
+ end