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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9609f2e3945d8c12e90fc99e636e62af22ccbf8f
4
- data.tar.gz: 996f01223c4b5a15352fdf92966831b853ae75a2
3
+ metadata.gz: 681e2c89c0efaa4a20f49609a598f27c35f6c255
4
+ data.tar.gz: 4bead277debcf1beb165b5456bc0c88abdeeefc7
5
5
  SHA512:
6
- metadata.gz: 5eeaf13e967a54fcec45451c7768ac9efbd1b23c5ad5223521805d9968a68004de2729edaae8b5921a4e5c5b836c1eb1bf570c3c9d6b6dddcfb82fb8e37a2709
7
- data.tar.gz: eb873dbd888271c5c03ec5aea2aac9511ea5329054c5769b1960792c95c23089e70fcb9f987588ebc5e68e5a7b1a7a467a7ea4abc4f33c4a90c04aa95e82215d
6
+ metadata.gz: 49cb30e6068b76c6fcf6249c9b18b4e17fb020a5e8db3bfc0f9f7b9321ba0903ab050a5fd98e117ae372cd511fdf8b5c35a24db5a1158e5e8735dfc159a4da10
7
+ data.tar.gz: ce1a768686ac0a225f6a6b7a29e0e8ea27492f56671c0c4358868267ea9c0252568a7e1b5e9931536e505cee9a9e54e2c766d2605d2da4867f5cec0565932a14
@@ -0,0 +1,8 @@
1
+ # 0.0.2 / 2016-12-23
2
+
3
+ Exit with failure code upon error.
4
+
5
+ # 0.0.1
6
+
7
+ * Initial release
8
+
File without changes
@@ -109,19 +109,21 @@ def main()
109
109
  Rmclient::print_time_entries()
110
110
  exit
111
111
  else
112
- print "Error: Could not parse query.\n"
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 "success!\n"
120
+ print("success!\n")
121
+ exit
122
122
  else
123
- print "error.\n"
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
 
@@ -1,3 +1,3 @@
1
1
  module Rmclient
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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.1
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-14 00:00:00.000000000 Z
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
- - LICENSE.txt
83
+ - HISTORY.md
84
+ - LICENSE
81
85
  - README.md
82
86
  - Rakefile
83
87
  - bin/rmclient