bcdatabase 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +5 -0
- data/bcdatabase.gemspec +2 -2
- data/lib/bcdatabase.rb +6 -1
- data/lib/bcdatabase/commands/epass.rb +3 -1
- data/lib/bcdatabase/version.rb +1 -1
- metadata +58 -44
data/CHANGELOG.markdown
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Bcdatabase history
|
2
2
|
==================
|
3
3
|
|
4
|
+
1.2.2
|
5
|
+
-----
|
6
|
+
- Ensure that long passwords can be properly encrypted. (#19, @gibsop1)
|
7
|
+
- Ensure compatibility with HighLine 1.6.5. (#16)
|
8
|
+
|
4
9
|
1.2.1
|
5
10
|
-----
|
6
11
|
- Generalize `datamapper_adapter` and `jruby_adapter` transforms to
|
data/bcdatabase.gemspec
CHANGED
@@ -18,11 +18,11 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.files = Dir.glob("{CHANGELOG.markdown,LICENSE,README.markdown,bcdatabase.gemspec,{bin,lib}/**/*}")
|
19
19
|
|
20
20
|
s.add_dependency "activesupport", ">= 2.0"
|
21
|
-
s.add_dependency "highline", "~> 1.5"
|
21
|
+
s.add_dependency "highline", "~> 1.5", '< 1.6.9'
|
22
22
|
s.add_dependency "i18n"
|
23
23
|
s.add_dependency 'thor', '~> 0.14.6'
|
24
24
|
|
25
|
-
s.add_development_dependency 'bundler', '~> 1.0.15'
|
25
|
+
s.add_development_dependency 'bundler', '~> 1.0', '>= 1.0.15'
|
26
26
|
s.add_development_dependency 'rake', '~> 0.9.2'
|
27
27
|
s.add_development_dependency 'rspec','~> 2.6'
|
28
28
|
s.add_development_dependency "ci_reporter", "~> 1.6"
|
data/lib/bcdatabase.rb
CHANGED
@@ -51,7 +51,12 @@ module Bcdatabase
|
|
51
51
|
##
|
52
52
|
# @private exposed for collaboration
|
53
53
|
def encrypt(s)
|
54
|
-
|
54
|
+
bits = encipher(:encrypt, s)
|
55
|
+
if Base64.respond_to?(:strict_encode64)
|
56
|
+
Base64.strict_encode64(bits).strip
|
57
|
+
else
|
58
|
+
Base64.encode64(bits).gsub("\n", '').strip
|
59
|
+
end
|
55
60
|
end
|
56
61
|
|
57
62
|
##
|
@@ -24,7 +24,9 @@ module Bcdatabase::Commands
|
|
24
24
|
|
25
25
|
def interactive
|
26
26
|
loop do
|
27
|
-
|
27
|
+
# The proc ensures that HighLine doesn't coerce the answer to
|
28
|
+
# a HighLine::String.
|
29
|
+
pass = @hl.ask("Password (^C to end): ", proc { |a| a }) do |q|
|
28
30
|
# this is configurable because having it false hangs the
|
29
31
|
# unit tests.
|
30
32
|
q.echo = @echo
|
data/lib/bcdatabase/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bcdatabase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 2
|
10
|
+
version: 1.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Rhett Sutphin
|
@@ -15,13 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2013-02-19 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
prerelease: false
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
22
|
none: false
|
26
23
|
requirements:
|
27
24
|
- - ">="
|
@@ -31,12 +28,12 @@ dependencies:
|
|
31
28
|
- 2
|
32
29
|
- 0
|
33
30
|
version: "2.0"
|
31
|
+
prerelease: false
|
34
32
|
type: :runtime
|
35
|
-
|
33
|
+
name: activesupport
|
34
|
+
requirement: *id001
|
36
35
|
- !ruby/object:Gem::Dependency
|
37
|
-
|
38
|
-
prerelease: false
|
39
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
36
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
37
|
none: false
|
41
38
|
requirements:
|
42
39
|
- - ~>
|
@@ -46,12 +43,20 @@ dependencies:
|
|
46
43
|
- 1
|
47
44
|
- 5
|
48
45
|
version: "1.5"
|
46
|
+
- - <
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
hash: 29
|
49
|
+
segments:
|
50
|
+
- 1
|
51
|
+
- 6
|
52
|
+
- 9
|
53
|
+
version: 1.6.9
|
54
|
+
prerelease: false
|
49
55
|
type: :runtime
|
50
|
-
|
56
|
+
name: highline
|
57
|
+
requirement: *id002
|
51
58
|
- !ruby/object:Gem::Dependency
|
52
|
-
|
53
|
-
prerelease: false
|
54
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
59
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
55
60
|
none: false
|
56
61
|
requirements:
|
57
62
|
- - ">="
|
@@ -60,12 +65,12 @@ dependencies:
|
|
60
65
|
segments:
|
61
66
|
- 0
|
62
67
|
version: "0"
|
68
|
+
prerelease: false
|
63
69
|
type: :runtime
|
64
|
-
|
70
|
+
name: i18n
|
71
|
+
requirement: *id003
|
65
72
|
- !ruby/object:Gem::Dependency
|
66
|
-
|
67
|
-
prerelease: false
|
68
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
69
74
|
none: false
|
70
75
|
requirements:
|
71
76
|
- - ~>
|
@@ -76,15 +81,22 @@ dependencies:
|
|
76
81
|
- 14
|
77
82
|
- 6
|
78
83
|
version: 0.14.6
|
84
|
+
prerelease: false
|
79
85
|
type: :runtime
|
80
|
-
|
86
|
+
name: thor
|
87
|
+
requirement: *id004
|
81
88
|
- !ruby/object:Gem::Dependency
|
82
|
-
|
83
|
-
prerelease: false
|
84
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
89
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
85
90
|
none: false
|
86
91
|
requirements:
|
87
92
|
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
hash: 15
|
95
|
+
segments:
|
96
|
+
- 1
|
97
|
+
- 0
|
98
|
+
version: "1.0"
|
99
|
+
- - ">="
|
88
100
|
- !ruby/object:Gem::Version
|
89
101
|
hash: 9
|
90
102
|
segments:
|
@@ -92,12 +104,12 @@ dependencies:
|
|
92
104
|
- 0
|
93
105
|
- 15
|
94
106
|
version: 1.0.15
|
107
|
+
prerelease: false
|
95
108
|
type: :development
|
96
|
-
|
109
|
+
name: bundler
|
110
|
+
requirement: *id005
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
|
-
|
99
|
-
prerelease: false
|
100
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
112
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
101
113
|
none: false
|
102
114
|
requirements:
|
103
115
|
- - ~>
|
@@ -108,12 +120,12 @@ dependencies:
|
|
108
120
|
- 9
|
109
121
|
- 2
|
110
122
|
version: 0.9.2
|
123
|
+
prerelease: false
|
111
124
|
type: :development
|
112
|
-
|
125
|
+
name: rake
|
126
|
+
requirement: *id006
|
113
127
|
- !ruby/object:Gem::Dependency
|
114
|
-
|
115
|
-
prerelease: false
|
116
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
128
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
117
129
|
none: false
|
118
130
|
requirements:
|
119
131
|
- - ~>
|
@@ -123,12 +135,12 @@ dependencies:
|
|
123
135
|
- 2
|
124
136
|
- 6
|
125
137
|
version: "2.6"
|
138
|
+
prerelease: false
|
126
139
|
type: :development
|
127
|
-
|
140
|
+
name: rspec
|
141
|
+
requirement: *id007
|
128
142
|
- !ruby/object:Gem::Dependency
|
129
|
-
|
130
|
-
prerelease: false
|
131
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
143
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
132
144
|
none: false
|
133
145
|
requirements:
|
134
146
|
- - ~>
|
@@ -138,12 +150,12 @@ dependencies:
|
|
138
150
|
- 1
|
139
151
|
- 6
|
140
152
|
version: "1.6"
|
153
|
+
prerelease: false
|
141
154
|
type: :development
|
142
|
-
|
155
|
+
name: ci_reporter
|
156
|
+
requirement: *id008
|
143
157
|
- !ruby/object:Gem::Dependency
|
144
|
-
|
145
|
-
prerelease: false
|
146
|
-
requirement: &id009 !ruby/object:Gem::Requirement
|
158
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
147
159
|
none: false
|
148
160
|
requirements:
|
149
161
|
- - ~>
|
@@ -154,8 +166,10 @@ dependencies:
|
|
154
166
|
- 7
|
155
167
|
- 2
|
156
168
|
version: 0.7.2
|
169
|
+
prerelease: false
|
157
170
|
type: :development
|
158
|
-
|
171
|
+
name: yard
|
172
|
+
requirement: *id009
|
159
173
|
description: bcdatabase is a tool for storing passwords and other configuration information outside of your application source tree.
|
160
174
|
email: rhett@detailedbalance.net
|
161
175
|
executables:
|
@@ -177,7 +191,6 @@ files:
|
|
177
191
|
- lib/bcdatabase/commands.rb
|
178
192
|
- lib/bcdatabase/version.rb
|
179
193
|
- lib/bcdatabase.rb
|
180
|
-
has_rdoc: true
|
181
194
|
homepage: http://github.com/NUBIC/bcdatabase
|
182
195
|
licenses: []
|
183
196
|
|
@@ -207,9 +220,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
220
|
requirements: []
|
208
221
|
|
209
222
|
rubyforge_project:
|
210
|
-
rubygems_version: 1.
|
223
|
+
rubygems_version: 1.8.23
|
211
224
|
signing_key:
|
212
225
|
specification_version: 3
|
213
226
|
summary: Server-central database configuration for rails and other ruby apps
|
214
227
|
test_files: []
|
215
228
|
|
229
|
+
has_rdoc:
|