rmclient 0.0.1 → 0.0.2
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/HISTORY.md +8 -0
- data/{LICENSE.txt → LICENSE} +0 -0
- data/bin/rmclient +7 -5
- data/lib/rmclient/version.rb +1 -1
- data/rmclient.gemspec +1 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 681e2c89c0efaa4a20f49609a598f27c35f6c255
|
4
|
+
data.tar.gz: 4bead277debcf1beb165b5456bc0c88abdeeefc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49cb30e6068b76c6fcf6249c9b18b4e17fb020a5e8db3bfc0f9f7b9321ba0903ab050a5fd98e117ae372cd511fdf8b5c35a24db5a1158e5e8735dfc159a4da10
|
7
|
+
data.tar.gz: ce1a768686ac0a225f6a6b7a29e0e8ea27492f56671c0c4358868267ea9c0252568a7e1b5e9931536e505cee9a9e54e2c766d2605d2da4867f5cec0565932a14
|
data/HISTORY.md
ADDED
data/{LICENSE.txt → LICENSE}
RENAMED
File without changes
|
data/bin/rmclient
CHANGED
@@ -109,19 +109,21 @@ def main()
|
|
109
109
|
Rmclient::print_time_entries()
|
110
110
|
exit
|
111
111
|
else
|
112
|
-
|
113
|
-
exit
|
112
|
+
abort("Error: Could not parse query.\n")
|
114
113
|
end
|
115
114
|
exit
|
116
115
|
end
|
117
116
|
|
118
|
-
if(options.issue && options.activity && options.hours && options.date)
|
117
|
+
if(options.issue && options.activity && options.hours && options.date && options.url && options.apikey)
|
119
118
|
print "Creating time entry..."
|
120
119
|
if(mktime_entry(options.issue, options.date, options.activity, options.hours, options.comment))
|
121
|
-
print
|
120
|
+
print("success!\n")
|
121
|
+
exit
|
122
122
|
else
|
123
|
-
|
123
|
+
abort("error.\n")
|
124
124
|
end
|
125
|
+
else
|
126
|
+
abort("Not enough information for creating a time entry.\n")
|
125
127
|
end
|
126
128
|
|
127
129
|
|
data/lib/rmclient/version.rb
CHANGED
data/rmclient.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = %q{rmclient is primarily for logging time on redmine issues. Some limited query features are included to facilitate this.}
|
13
13
|
spec.homepage = "https://github.com/NBISweden/rmclient"
|
14
14
|
spec.license = "GPL-3.0"
|
15
|
-
|
15
|
+
spec.extra_rdoc_files = %w[README.md HISTORY.md LICENSE]
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikael Borg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -73,11 +73,15 @@ email:
|
|
73
73
|
executables:
|
74
74
|
- rmclient
|
75
75
|
extensions: []
|
76
|
-
extra_rdoc_files:
|
76
|
+
extra_rdoc_files:
|
77
|
+
- README.md
|
78
|
+
- HISTORY.md
|
79
|
+
- LICENSE
|
77
80
|
files:
|
78
81
|
- ".gitignore"
|
79
82
|
- Gemfile
|
80
|
-
-
|
83
|
+
- HISTORY.md
|
84
|
+
- LICENSE
|
81
85
|
- README.md
|
82
86
|
- Rakefile
|
83
87
|
- bin/rmclient
|