rtasklib 0.2.3 → 0.2.4
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 +4 -4
- data/.travis.yml +1 -1
- data/README.md +11 -3
- data/lib/rtasklib/controller.rb +5 -5
- data/lib/rtasklib/version.rb +1 -1
- data/rpms/rubygem-rtasklib-0.2.3-1.fc20.noarch.rpm +0 -0
- data/rpms/rubygem-rtasklib-doc-0.2.3-1.fc20.noarch.rpm +0 -0
- data/rtasklib.gemspec +1 -1
- data/rubygem-rtasklib.spec +100 -0
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f11f6fcd65ccbcf39e9c7615b25090df54faefb6
|
4
|
+
data.tar.gz: b95b3207de9e98428a93ab26b5a46d466ac746e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbab4b933125c77279f370d7be6d140a903279e44ca9e26edded7a5b506bfdf4cf8839cd1a63ac9a5094668055dc6af5a448819462da0746c21e76fc42a227cf
|
7
|
+
data.tar.gz: adb6fc9c8d3a72eabdeb4ac739c3d84afb2707012b5737bf8614dbb627ccdba52567e7f0245b0d0951fd7e62321b9238d534d62ff9a7ea16a6c870940c395b00
|
data/.travis.yml
CHANGED
@@ -12,7 +12,7 @@ before_install:
|
|
12
12
|
- sudo apt-get update -qq
|
13
13
|
- sudo apt-get install -qq build-essential cmake uuid-dev g++-4.8
|
14
14
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
|
15
|
-
- git clone https://git.tasktools.org/
|
15
|
+
- git clone https://git.tasktools.org/TM/task.git
|
16
16
|
- cd task
|
17
17
|
- git checkout $TASK_VERSION
|
18
18
|
- git clean -dfx
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ Or install it yourself as:
|
|
33
33
|
With this method you will need to install TaskWarrior (version 2.4 or above) yourself.
|
34
34
|
|
35
35
|
**On OSX:**
|
36
|
-
|
36
|
+
|
37
37
|
$ brew install task
|
38
38
|
|
39
39
|
**On Fedora:**
|
@@ -58,9 +58,17 @@ The major repos TaskWarrior packages are extremely outdated, so you will have to
|
|
58
58
|
|
59
59
|
### Using the RPM
|
60
60
|
|
61
|
-
If you are running Fedora there is an RPM available, this comes with the advantage of being managed by `yum` and installing TaskWarrior for you. Simply get the desired version RPM from the `
|
61
|
+
If you are running Fedora there is an RPM available, this comes with the advantage of being managed by `yum` and installing TaskWarrior for you. Simply get the desired version RPM from the `rpms/` dir:
|
62
|
+
|
63
|
+
$ sudo yum install rubygem-rtasklib-VERSION-noarch.rpm
|
64
|
+
$ sudo yum install rubygem-rtasklib-docs-VERSION-noarch.rpm
|
65
|
+
|
66
|
+
The docs package installs documentation that you can access through the ruby doc interface ri, e.g:
|
67
|
+
|
68
|
+
$ ri Rtasklib
|
69
|
+
|
70
|
+
This will bring up a `less` like interface to browse the documentation with.
|
62
71
|
|
63
|
-
$ sudo yum install rubygem-rtasklib-VERSION.rpm
|
64
72
|
|
65
73
|
### Configure TaskWarrior
|
66
74
|
|
data/lib/rtasklib/controller.rb
CHANGED
@@ -369,11 +369,11 @@ module Rtasklib
|
|
369
369
|
default: nil, urgency: nil
|
370
370
|
label = name if label.nil?
|
371
371
|
|
372
|
-
update_config("uda.#{name}.type", type)
|
373
|
-
update_config("uda.#{name}.label", label)
|
374
|
-
update_config("uda.#{name}.values", values) unless values.nil?
|
375
|
-
update_config("uda.#{name}.default", default) unless default.nil?
|
376
|
-
update_config("uda.#{name}.urgency", urgency) unless urgency.nil?
|
372
|
+
update_config!("uda.#{name}.type", type)
|
373
|
+
update_config!("uda.#{name}.label", label)
|
374
|
+
update_config!("uda.#{name}.values", values) unless values.nil?
|
375
|
+
update_config!("uda.#{name}.default", default) unless default.nil?
|
376
|
+
update_config!("uda.#{name}.urgency", urgency) unless urgency.nil?
|
377
377
|
end
|
378
378
|
|
379
379
|
# Sync the local TaskWarrior database changes to the remote databases.
|
data/lib/rtasklib/version.rb
CHANGED
Binary file
|
Binary file
|
data/rtasklib.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.add_dependency "multi_json", "~> 1.7"
|
25
25
|
spec.add_dependency "virtus", "~> 1.0"
|
26
|
-
spec.add_dependency "iso8601", "
|
26
|
+
spec.add_dependency "iso8601", "0.8.7"
|
27
27
|
|
28
28
|
spec.add_development_dependency "bundler", "~> 1.8"
|
29
29
|
spec.add_development_dependency "rake", "~> 10.0"
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# Generated from rtasklib-0.2.3.gem by gem2rpm -*- rpm-spec -*-
|
2
|
+
%global gem_name rtasklib
|
3
|
+
|
4
|
+
Name: rubygem-%{gem_name}
|
5
|
+
Version: 0.2.3
|
6
|
+
Release: 1%{?dist}
|
7
|
+
Summary: A Ruby wrapper around the TaskWarrior CLI
|
8
|
+
Group: Development/Languages
|
9
|
+
License: MIT
|
10
|
+
URL: http://github.com/dropofwill/rtasklib
|
11
|
+
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
12
|
+
Requires: ruby(release)
|
13
|
+
Requires: ruby(rubygems)
|
14
|
+
Requires: task > 2.4
|
15
|
+
# Requires: rubygem(multi_json) => 1.7
|
16
|
+
# Requires: rubygem(multi_json) < 2
|
17
|
+
# Requires: rubygem(virtus) => 1.0
|
18
|
+
# Requires: rubygem(virtus) < 2
|
19
|
+
# Requires: rubygem(iso8601) => 0.8
|
20
|
+
# Requires: rubygem(iso8601) < 1
|
21
|
+
BuildRequires: ruby(release)
|
22
|
+
BuildRequires: rubygems-devel
|
23
|
+
BuildRequires: ruby >= 2.0
|
24
|
+
# BuildRequires: rubygem(coveralls)
|
25
|
+
# BuildRequires: rubygem(rspec)
|
26
|
+
# BuildRequires: rubygem(rspec-nc)
|
27
|
+
# BuildRequires: rubygem(guard)
|
28
|
+
# BuildRequires: rubygem(guard-rspec)
|
29
|
+
# BuildRequires: rubygem(yard)
|
30
|
+
BuildArch: noarch
|
31
|
+
Provides: rubygem(%{gem_name}) = %{version}
|
32
|
+
|
33
|
+
%description
|
34
|
+
A Ruby wrapper around the TaskWarrior CLI. Requires a TaskWarrior install
|
35
|
+
version 2.4.0 of greater.
|
36
|
+
|
37
|
+
%pre
|
38
|
+
gem install virtus --version '>= 1.0'
|
39
|
+
gem install iso8601 --version '>= 0.8'
|
40
|
+
gem install multi_json --version '>= 1.11'
|
41
|
+
|
42
|
+
%package doc
|
43
|
+
Summary: Documentation for %{name}
|
44
|
+
Group: Documentation
|
45
|
+
Requires: %{name} = %{version}-%{release}
|
46
|
+
BuildArch: noarch
|
47
|
+
|
48
|
+
%description doc
|
49
|
+
Documentation for %{name}.
|
50
|
+
|
51
|
+
%prep
|
52
|
+
gem unpack %{SOURCE0}
|
53
|
+
|
54
|
+
%setup -q -D -T -n %{gem_name}-%{version}
|
55
|
+
|
56
|
+
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
57
|
+
|
58
|
+
%build
|
59
|
+
# Create the gem as gem install only works on a gem file
|
60
|
+
gem build %{gem_name}.gemspec
|
61
|
+
|
62
|
+
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
|
63
|
+
# by default, so that we can move it into the buildroot in %%install
|
64
|
+
%gem_install
|
65
|
+
|
66
|
+
%install
|
67
|
+
mkdir -p %{buildroot}%{gem_dir}
|
68
|
+
cp -a .%{gem_dir}/* \
|
69
|
+
%{buildroot}%{gem_dir}/
|
70
|
+
|
71
|
+
|
72
|
+
# Run the test suite
|
73
|
+
%check
|
74
|
+
pushd .%{gem_instdir}
|
75
|
+
|
76
|
+
popd
|
77
|
+
|
78
|
+
%files
|
79
|
+
%dir %{gem_instdir}
|
80
|
+
%{gem_libdir}
|
81
|
+
%exclude %{gem_cache}
|
82
|
+
%{gem_spec}
|
83
|
+
%exclude %{gem_instdir}/.*
|
84
|
+
%exclude %{gem_instdir}/*.spec
|
85
|
+
%exclude %{gem_instdir}/*.spec.template
|
86
|
+
|
87
|
+
%files doc
|
88
|
+
%doc %{gem_docdir}
|
89
|
+
%doc %{gem_instdir}/LICENSE.txt
|
90
|
+
%doc %{gem_instdir}/*.md
|
91
|
+
%{gem_instdir}/Gemfile
|
92
|
+
%{gem_instdir}/Guardfile
|
93
|
+
%{gem_instdir}/Rakefile
|
94
|
+
%{gem_instdir}/%{gem_name}.gemspec
|
95
|
+
%{gem_instdir}/spec/
|
96
|
+
%{gem_instdir}/bin/
|
97
|
+
|
98
|
+
%changelog
|
99
|
+
* Mon May 18 2015 Will Paul - 0.2.3-1
|
100
|
+
- Initial package
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtasklib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Will Paul
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: iso8601
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.8.7
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.8.7
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,7 +193,10 @@ files:
|
|
193
193
|
- lib/rtasklib/models.rb
|
194
194
|
- lib/rtasklib/taskrc.rb
|
195
195
|
- lib/rtasklib/version.rb
|
196
|
+
- rpms/rubygem-rtasklib-0.2.3-1.fc20.noarch.rpm
|
197
|
+
- rpms/rubygem-rtasklib-doc-0.2.3-1.fc20.noarch.rpm
|
196
198
|
- rtasklib.gemspec
|
199
|
+
- rubygem-rtasklib.spec
|
197
200
|
- spec/controller_spec.rb
|
198
201
|
- spec/data/.task/backlog.data
|
199
202
|
- spec/data/.task/completed.data
|
@@ -227,9 +230,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
230
|
requirements:
|
228
231
|
- taskwarrior, >=2.4.0
|
229
232
|
rubyforge_project:
|
230
|
-
rubygems_version: 2.
|
233
|
+
rubygems_version: 2.5.1
|
231
234
|
signing_key:
|
232
235
|
specification_version: 4
|
233
236
|
summary: A Ruby wrapper around the TaskWarrior CLI
|
234
237
|
test_files: []
|
235
|
-
has_rdoc:
|