imapcli 1.0.2 → 1.0.3

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: 233c09fd4ccab5108dc17439403aec4099f2d0ce
4
- data.tar.gz: 00036e75671e0560245430bcb2e366ded544651c
3
+ metadata.gz: ba4f2f36ccafebb43e5975ee4bf4b0c9aff21e52
4
+ data.tar.gz: 74eb3e7586599a4991242beede3c2b6393403aeb
5
5
  SHA512:
6
- metadata.gz: 2e36b19fce6f121d8db634f3ef5af0955bad59b2b9c6f3be20757133f267b12a4ef4e33fdd4635aecf6eb987eb56530fd8ef9b1e38a2b888494388ca1ba5a0c8
7
- data.tar.gz: 5eaaf027ac74cc76378a30be8f83285c33d605264274ab1c480aca8caa1d62d322639899bd79e1176a4bf7cd069b10aeab4a552a434b01c7d5d5e935d3ea7dfb
6
+ metadata.gz: b7bf576ed0d640643ed9ac61105e04544c3fedeb53af5455df17de1bb1d71c893cd799e52cd8cdb5043dbef06ae97516eb15f6aef37fa237b2ee890a59534140
7
+ data.tar.gz: 23189a43cf79762fed894bc6daa8be50a81ec96585a51f18c85e21f8908b1a0d5aafe8fe9a29dae4099defaa288c9684695fe06f55c6aa9ecd84b6a3d2260547
data/Dockerfile CHANGED
@@ -1,8 +1,14 @@
1
1
  FROM ruby:alpine
2
2
  LABEL maintainer=bovender@bovender.de
3
3
  LABEL description="Command-line tool to query IMAP servers."
4
- RUN apk add --no-cache build-base && \
5
- gem install --no-rdoc --no-ri imapcli && \
6
- apk del build-base
7
4
 
8
- ENTRYPOINT ["imapcli"]
5
+ WORKDIR /
6
+ RUN apk add --no-cache git build-base && \
7
+ git clone --depth 1 https://github.com/bovender/imapcli && \
8
+ cd imapcli && \
9
+ bundle && \
10
+ apk del build-base && \
11
+ rm -rf /var/cache/apk/*
12
+
13
+ WORKDIR /imapcli
14
+ ENTRYPOINT ["bundle", "exec", "imapcli"]
data/NEWS CHANGED
@@ -1,34 +1,2 @@
1
- Version 1.0.2 (2017-12-11)
2
- ------------------------------------------------------------------------
3
-
4
- - Fix: Docker image did not build properly.
5
-
6
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
7
-
8
-
9
- Version 1.0.1 (2017-12-11)
10
- ------------------------------------------------------------------------
11
-
12
- - Fix: Gem package.
13
- - Fix: Removed development warning.
14
- - Improvement: Smaller docker image.
15
-
16
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
17
-
18
-
19
- Version 1.0.0 (2017-12-10)
20
- ------------------------------------------------------------------------
21
-
22
- Initial working release.
23
-
24
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
25
-
26
-
27
- Version 0.0.1 (2017-11-16)
28
- ------------------------------------------------------------------------
29
-
30
- Initial alpha release. Stats working only for mailboxes that are
31
- explicitly given on the command line.
32
-
33
-
34
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1
+ - Fix: Docker image.
2
+ - Fix: Options error message.
data/README.md CHANGED
@@ -5,6 +5,7 @@ imapcli
5
5
  =======
6
6
 
7
7
  > Command-line interface (CLI) for IMAP servers
8
+ > (<https://github.com/bovender/imapcli>)
8
9
 
9
10
  `imapcli` is a command-line tool that offers a convenient way to query an IMAP
10
11
  server for configuration details and e-mail statistics. It can be used to gather
@@ -117,7 +118,20 @@ Run:
117
118
 
118
119
  ### Docker image
119
120
 
120
- To follow.
121
+ With [Docker](https://www.docker.com), you do not have to install Ruby and the
122
+ additional dependencies. Everything is contained in the, well, container. The
123
+ Docker image is about 120 MB in size though (I did not manage to make it
124
+ smaller).
125
+
126
+ Run:
127
+
128
+ docker run bvndr/imapcli <arguments>
129
+
130
+ Example:
131
+
132
+ docker run bvndr/imapcli -s myserver.example.com -u user -P info
133
+
134
+ The Docker repository is at <https://hub.docker.com/r/bvndr/imapcli>.
121
135
 
122
136
 
123
137
  Terminology
@@ -14,8 +14,8 @@ module Imapcli
14
14
  if global_options[:s].nil? || global_options[:s].empty?
15
15
  @errors << 'missing server name (use -s option or set IMAP_SERVER environment variable)'
16
16
  end
17
- if global_options[:s].nil? || global_options[:s].empty?
18
- @errors << 'missing server name (use -s option or set IMAP_SERVER environment variable)'
17
+ if global_options[:u].nil? || global_options[:u].empty?
18
+ @errors << 'missing user name (use -u option or set IMAP_USER environment variable)'
19
19
  end
20
20
  if global_options[:P] && global_options[:p]
21
21
  @errors << '-p and -P options do not agree'
@@ -1,3 +1,3 @@
1
1
  module Imapcli
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imapcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kraus (bovender)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-11 00:00:00.000000000 Z
11
+ date: 2017-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake