sym 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d41b4e029568fa3d2191e68b5ac766c4d163b28
4
- data.tar.gz: 6ea72c6c63ace161df9783583bf3778b3b162750
3
+ metadata.gz: 2effc18a54f6e8f663d2b9a41956e8c635709485
4
+ data.tar.gz: e972b21e1014c1f83ee3b82f34d9ff84170e80df
5
5
  SHA512:
6
- metadata.gz: cfa343d0c0d35a3affb33318f847e028bc2708514a93f7a6b86833cb6491773d7d2de143224ae8a62d0072dc7f5179280c65b7012199471412d6c51569e01825
7
- data.tar.gz: 4d719d61ad5f5915a0044f0f1fb343a381c705f764ec74a2e6c89807fdb634562b773aa73c632ba2f616bbda0649dfb041a68b7e735cd45878021254a7077eb1
6
+ metadata.gz: e13d61d7dd3c3ee6d980d9736f4a31cd990dfac0cf7f70cff8f120a22ff62a4464a4a9397c66d53f0b242890c1f6e1500ff5628d33759af4363c075f6ef37a22
7
+ data.tar.gz: d10df4e927af9139cbcd1a329ee7f331e112c2f37952b968f7c56e1240514d99196d1cd4f209cd1bafa033b50d62e45d0b848e48166fb0347563868c06396312
data/.gitignore CHANGED
@@ -11,3 +11,5 @@
11
11
  /data
12
12
  /spec/coverage/
13
13
  /*.enc
14
+ **/.DS_Store
15
+ .ruby-version
@@ -1,13 +1,22 @@
1
1
  language: ruby
2
2
  env:
3
- - CODECLIMATE_REPO_TOKEN=be1a1a266b0ffc81fa0bd1e432a229f2a4ab420dcb9e9e15c1e75e2acad573b7
3
+ - CODECLIMATE_REPO_TOKEN=be1a1a266b0ffc81fa0bd1e432a229f2a4ab420dcb9e9e15c1e75e2acad573b7
4
4
  rvm:
5
- - 2.2.5
6
- - 2.3.1
7
- script: "rake"
5
+ - 2.4.0
6
+ - 2.3.3
7
+ script: rake
8
8
  notifications:
9
9
  email:
10
10
  recipients:
11
- - kigster@gmail.com
11
+ - kigster@gmail.com
12
12
  on_success: change
13
13
  on_failure: always
14
+ slack:
15
+ rooms:
16
+ secure: GcACCHmcmo99lYE5dgt2TmY4YIPMWr75q0Bkm4Lddegq/1eMXgcZDz00j8iHWtnveyJSjEUpZFQ9uyx+P7dvxT7D5gl43arKZEylS4vMRg9QRgZu7/ROrXbJtrUyKulFRUTdFrmOiK9nDKpAzlvLvMKC4kaQnn88Xtu9pYMU8y4n5fCtl29gZM9ZjVbrBBvV/SumnTDLla2oQ7oFgUZdZhQZ1qsevYknxNq4eIcvPDjbon+bovfsIISEVRSNo2C3yjO+mqWKed3jfuCA4taAZ8/aVVFEKURMH10HFms1CiC3lE/gF4YfBXsqKpjnB+bKjBcWox2FQrp96FulMEIfkKQrnuncO96o7MGHX9oNqKSMoycf3+SZFwNa+5Mfq7SBepbHYCoU7/ow31UTyStrc5idG19XzYgI85yjQHdzQN299Xf0O8cGf9q9qAu7rS7JlM3ekR+3rZYO+OxNYTF8rcW1fYIj6GKcbsV8BvuhAVQRFOsk/ibcIb2N7rGVd/ZbU4HAk3RE1ywt+XowinpIHktu2PQUPDNpgRQwM6xqZHO/7s9r7oW0ULmZCMLZ9CMKNjKzrQ9wfh90+v+FiEiUKsaVj4cCwF3PvhVYvxU2AKbCeHtSEb7K6to86+DYNoIKnGH1ryKoyCtyOTZpNMLGFt34Msv7WfEylhG+DpVMvkM=
17
+ addons:
18
+ code_climate:
19
+ repo_token: be1a1a266b0ffc81fa0bd1e432a229f2a4ab420dcb9e9e15c1e75e2acad573b7
20
+ # regular test configuration
21
+ after_success:
22
+ - bundle exec codeclimate-test-reporter
data/Gemfile CHANGED
@@ -4,3 +4,8 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem 'ffi', :platforms => [:mswin, :mingw]
7
+
8
+ if RUBY_PLATFORM == 'x86_64-darwin16'
9
+ gem 'coin', git: 'https://github.com/kigster/coin'
10
+ end
11
+
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
 
2
+
2
3
  # Sym — Your Encryption Best Friend
3
4
 
4
5
  [![Gem Version](https://badge.fury.io/rb/sym.svg)](https://badge.fury.io/rb/sym)
@@ -6,10 +7,9 @@
6
7
  [![Documentation](http://inch-ci.org/github/kigster/sym.png)](http://inch-ci.org/github/kigster/sym)
7
8
 
8
9
  [![Build Status](https://travis-ci.org/kigster/sym.svg?branch=master)](https://travis-ci.org/kigster/sym)
9
- [![Code Climate](https://codeclimate.com/github/kigster/secrets-cipher-base64/badges/gpa.svg)](https://codeclimate.com/github/kigster/secrets-cipher-base64)
10
- [![Test Coverage](https://codeclimate.com/github/kigster/secrets-cipher-base64/badges/coverage.svg)](https://codeclimate.com/github/kigster/secrets-cipher-base64/coverage)
11
- [![Issue Count](https://codeclimate.com/github/kigster/secrets-cipher-base64/badges/issue_count.svg)](https://codeclimate.com/github/kigster/secrets-cipher-base64)
12
-
10
+ [![Code Climate](https://codeclimate.com/github/kigster/sym/badges/gpa.svg)](https://codeclimate.com/github/kigster/sym)
11
+ [![Test Coverage](https://codeclimate.com/github/kigster/sym/badges/coverage.svg)](https://codeclimate.com/github/kigster/sym/coverage)
12
+ [![Issue Count](https://codeclimate.com/github/kigster/sym/badges/issue_count.svg)](https://codeclimate.com/github/kigster/sym)
13
13
 
14
14
  ## Description
15
15
 
@@ -1,3 +1,4 @@
1
+
1
2
  #!/usr/bin/env bash
2
3
  #
3
4
  # Sym command line completion
@@ -14,8 +15,15 @@ _sym() {
14
15
 
15
16
  COMPREPLY=()
16
17
 
17
- SYM_COMP_OPTIONS=$(sym --dictionary)
18
- [[ $COMP_CWORD == 1 ]] && SYM_COMP_OPTIONS="${SYM_COMP_OPTIONS} ${SYM_COMMANDS}"
18
+ #[[ $COMP_CWORD == 1 ]] && SYM_COMP_OPTIONS="${SYM_COMP_OPTIONS} ${SYM_COMMANDS}"
19
+ if [[ $prev =~ "-f" || $prev =~ "-o" || $prev =~ "-K" || $prev == "--keyfile" ]] ; then
20
+ SYM_COMP_OPTIONS="$(find . -type f -depth 1 | sed 's#./##g')"
21
+ elif [[ "${cur}" == '--' || "${cur}" == --* ]] ; then
22
+ SYM_COMP_OPTIONS=$(sym --dictionary | sed -E 's/ /\n/g')
23
+ else
24
+ SYM_COMP_OPTIONS=$(sym -h | egrep ' \-' | grep -v '^ --' | cut -d ',' -f 1)
25
+ fi
26
+
19
27
  COMPREPLY=( $(compgen -W "${SYM_COMP_OPTIONS}" -- ${cur}) )
20
28
  return 0
21
29
  }
@@ -5,7 +5,7 @@ module Sym
5
5
  class Stdout < ::Sym::App::Output::Base
6
6
  required_option nil
7
7
  def output_proc
8
- ->(argument) { puts argument }
8
+ ->(argument) { printf argument }
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Sym
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
@@ -36,10 +36,11 @@ Thank you for installing Sym!
36
36
  spec.add_dependency 'clipboard', '~> 1.1'
37
37
  spec.add_dependency 'coin', '~> 0.1.8'
38
38
 
39
+ spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0'
40
+ spec.add_development_dependency 'simplecov'
39
41
  spec.add_development_dependency 'aruba'
40
- spec.add_development_dependency 'codeclimate-test-reporter'
41
- spec.add_development_dependency 'bundler', '~> 1.12'
42
- spec.add_development_dependency 'rake', '~> 10.0'
43
- spec.add_development_dependency 'rspec', '~> 3.0'
44
- spec.add_development_dependency 'yard', '~> 0.9'
42
+ spec.add_development_dependency 'bundler', '~> 1'
43
+ spec.add_development_dependency 'rake'
44
+ spec.add_development_dependency 'rspec', '~> 3'
45
+ spec.add_development_dependency 'yard'
45
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sym
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Gredeskoul
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-11 00:00:00.000000000 Z
11
+ date: 2017-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2
@@ -95,7 +95,21 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.1.8
97
97
  - !ruby/object:Gem::Dependency
98
- name: aruba
98
+ name: codeclimate-test-reporter
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - ">="
@@ -109,7 +123,7 @@ dependencies:
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
- name: codeclimate-test-reporter
126
+ name: aruba
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - ">="
@@ -128,56 +142,56 @@ dependencies:
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: '1.12'
145
+ version: '1'
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: '1.12'
152
+ version: '1'
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: rake
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
- - - "~>"
157
+ - - ">="
144
158
  - !ruby/object:Gem::Version
145
- version: '10.0'
159
+ version: '0'
146
160
  type: :development
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
- - - "~>"
164
+ - - ">="
151
165
  - !ruby/object:Gem::Version
152
- version: '10.0'
166
+ version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: rspec
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
171
  - - "~>"
158
172
  - !ruby/object:Gem::Version
159
- version: '3.0'
173
+ version: '3'
160
174
  type: :development
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
178
  - - "~>"
165
179
  - !ruby/object:Gem::Version
166
- version: '3.0'
180
+ version: '3'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: yard
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
- - - "~>"
185
+ - - ">="
172
186
  - !ruby/object:Gem::Version
173
- version: '0.9'
187
+ version: '0'
174
188
  type: :development
175
189
  prerelease: false
176
190
  version_requirements: !ruby/object:Gem::Requirement
177
191
  requirements:
178
- - - "~>"
192
+ - - ">="
179
193
  - !ruby/object:Gem::Version
180
- version: '0.9'
194
+ version: '0'
181
195
  description: Store sensitive data safely as encrypted strings or entire files, using
182
196
  symmetric aes-256-cbc encryption/decryption with a secret key and an IV vector,
183
197
  and YAML-friendly base64-encoded encrypted result.
@@ -254,40 +268,20 @@ files:
254
268
  homepage: https://github.com/kigster/sym
255
269
  licenses: []
256
270
  metadata: {}
257
- post_install_message: |2
258
-
259
-
260
- Please copy and paste the following BASH function into your ~/.bashrc or
261
- equivalent, in order to enable command completion:
262
-
263
- #!/usr/bin/env bash
264
- #
265
- # Sym command line completion
266
- #
267
- # © 2015-2016, Konstantin Gredeskoul, https://github.com/kigster/sym
268
- # MIT LICENSE
269
- #
270
-
271
- _sym() {
272
- local SYM_OPTS SYM_POINTS cur prev
273
-
274
- cur="${COMP_WORDS[COMP_CWORD]}"
275
- prev="${COMP_WORDS[COMP_CWORD-1]}"
276
-
277
- COMPREPLY=()
278
-
279
- SYM_COMP_OPTIONS=$(sym --dictionary)
280
- [[ $COMP_CWORD == 1 ]] && SYM_COMP_OPTIONS="${SYM_COMP_OPTIONS} ${SYM_COMMANDS}"
281
- COMPREPLY=( $(compgen -W "${SYM_COMP_OPTIONS}" -- ${cur}) )
282
- return 0
283
- }
284
-
285
- complete -F _sym sym
286
-
287
-
288
-
289
- Thank you for installing Sym!
290
- -- KG (github.com/kigster)
271
+ post_install_message: "\n\nPlease copy and paste the following BASH function into
272
+ your ~/.bashrc or\nequivalent, in order to enable command completion:\n\n\n#!/usr/bin/env
273
+ bash\n#\n# Sym command line completion\n#\n# © 2015-2016, Konstantin Gredeskoul,
274
+ \ https://github.com/kigster/sym\n# MIT LICENSE\n#\n\n_sym() {\n local SYM_OPTS
275
+ SYM_POINTS cur prev\n\n cur=\"${COMP_WORDS[COMP_CWORD]}\"\n prev=\"${COMP_WORDS[COMP_CWORD-1]}\"\n\n
276
+ \ COMPREPLY=()\n\n #[[ $COMP_CWORD == 1 ]] && SYM_COMP_OPTIONS=\"${SYM_COMP_OPTIONS}
277
+ ${SYM_COMMANDS}\"\n if [[ $prev =~ \"-f\" || $prev =~ \"-o\" || $prev =~ \"-K\"
278
+ || $prev == \"--keyfile\" ]] ; then \n SYM_COMP_OPTIONS=\"$(find . -type f
279
+ -depth 1 | sed 's#./##g')\"\n elif [[ \"${cur}\" == '--' || \"${cur}\" == --*
280
+ ]] ; then \n SYM_COMP_OPTIONS=$(sym --dictionary | sed -E 's/ /\\n/g')\n else
281
+ \n SYM_COMP_OPTIONS=$(sym -h | egrep ' \\-' | grep -v '^ --' | cut -d ','
282
+ -f 1)\n fi\n\n COMPREPLY=( $(compgen -W \"${SYM_COMP_OPTIONS}\" -- ${cur})
283
+ )\n return 0\n}\n\ncomplete -F _sym sym\n\n\n\nThank you for installing Sym!\n
284
+ \ -- KG (github.com/kigster)\n"
291
285
  rdoc_options: []
292
286
  require_paths:
293
287
  - lib
@@ -303,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
297
  version: '0'
304
298
  requirements: []
305
299
  rubyforge_project:
306
- rubygems_version: 2.5.1
300
+ rubygems_version: 2.5.2
307
301
  signing_key:
308
302
  specification_version: 4
309
303
  summary: Simple tool to encrypt/decrypt data using symmetric aes-256-cbc encryption