osp 0.6.1 → 0.7.0

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.
@@ -1,13 +1,15 @@
1
1
 
2
2
  module TheFox
3
- module OSP
4
-
5
- class OSPDev < OSP
6
-
7
- HASHES_EXP = 10
8
- HASHES_N = 2 ** HASHES_EXP
9
-
10
- end
11
-
12
- end
3
+ module OSP
4
+
5
+ class OSPDev < OSP
6
+
7
+ HASHES_EXP = 10
8
+ HASHES_N = 2 ** HASHES_EXP
9
+ PASSWORD_MIN_SIZE = 8
10
+ PASSWORD_MAX_SIZE = 32
11
+
12
+ end
13
+
14
+ end
13
15
  end
@@ -1,17 +1,17 @@
1
1
 
2
2
  module TheFox
3
- module OSP
4
-
5
- class OSPDotCom < OSP
6
-
7
- ID = 'OneShallPass v2.0'
8
- HASHES_EXP = 10
9
- HASHES_N = 2 ** HASHES_EXP
10
- PASSWORD_MIN_SIZE = 8
11
- PASSWORD_MAX_SIZE = 16
12
- SYMBOLS = 1
13
-
14
- end
15
-
16
- end
3
+ module OSP
4
+
5
+ class OSPDotCom < OSP
6
+
7
+ ID = 'OneShallPass v2.0'
8
+ HASHES_EXP = 10
9
+ HASHES_N = 2 ** HASHES_EXP
10
+ PASSWORD_MIN_SIZE = 8
11
+ PASSWORD_MAX_SIZE = 16
12
+ SYMBOLS = 1
13
+
14
+ end
15
+
16
+ end
17
17
  end
@@ -1,8 +1,8 @@
1
1
 
2
2
  module TheFox
3
- module OSP
4
- VERSION = '0.6.1'
5
- DATE = '2017-01-11'
6
- HOMEPAGE = 'https://github.com/TheFox/osp'
7
- end
3
+ module OSP
4
+ VERSION = '0.7.0'
5
+ DATE = '2018-09-09'
6
+ HOMEPAGE = 'https://github.com/TheFox/osp'
7
+ end
8
8
  end
@@ -6,29 +6,29 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
  require 'osp/version'
7
7
 
8
8
  Gem::Specification.new do |spec|
9
- spec.name = 'osp'
10
- spec.version = TheFox::OSP::VERSION
11
- spec.date = TheFox::OSP::DATE
12
- spec.author = 'Christian Mayer'
13
- spec.email = 'christian@fox21.at'
14
-
15
- spec.summary = %q{One Shall Pass}
16
- spec.description = %q{Password Manager: One Shall Pass for Command Line.}
17
- spec.homepage = TheFox::OSP::HOMEPAGE
18
- spec.license = 'GPL-3.0'
19
-
20
- spec.files = `git ls-files -z`.split("\x0").reject{ |f| f.match(%r{^(test|spec|features)/}) }
21
- spec.bindir = 'bin'
22
- spec.executables = ['osp']
23
- spec.require_paths = ['lib']
24
- spec.required_ruby_version = '>=2.1.0'
25
-
26
- spec.add_development_dependency 'minitest', '~>5.8'
27
- spec.add_development_dependency 'simplecov', '~>0.12'
28
- spec.add_development_dependency 'simplecov-phpunit', '~>1.0'
29
-
30
- spec.add_runtime_dependency 'highline', '~>1.7'
31
- spec.add_runtime_dependency 'msgpack', '~>1.0'
32
-
33
- spec.add_runtime_dependency 'thefox-ext', '~>1.2'
9
+ spec.name = 'osp'
10
+ spec.version = TheFox::OSP::VERSION
11
+ spec.date = TheFox::OSP::DATE
12
+ spec.author = 'Christian Mayer'
13
+ spec.email = 'christian@fox21.at'
14
+
15
+ spec.summary = %q{One Shall Pass}
16
+ spec.description = %q{Password Manager: One Shall Pass for Command Line.}
17
+ spec.homepage = TheFox::OSP::HOMEPAGE
18
+ spec.license = 'GPL-3.0'
19
+
20
+ spec.files = `git ls-files -z`.split("\x0").reject{ |f| f.match(%r{^(test|spec|features)/}) }
21
+ spec.bindir = 'bin'
22
+ spec.executables = ['osp']
23
+ spec.require_paths = ['lib']
24
+ spec.required_ruby_version = '>=2.1.0'
25
+
26
+ spec.add_development_dependency 'minitest', '~>5.8'
27
+ spec.add_development_dependency 'simplecov', '~>0.12'
28
+ spec.add_development_dependency 'simplecov-phpunit', '~>1.0'
29
+
30
+ spec.add_runtime_dependency 'highline', '~>1.7'
31
+ spec.add_runtime_dependency 'msgpack', '~>1.0'
32
+
33
+ spec.add_runtime_dependency 'thefox-ext', '~>1.2'
34
34
  end
@@ -1,10 +1,10 @@
1
1
  {
2
- "folders":[
3
- {
4
- "path": ".",
5
- "name": "OneShallPass",
6
- "folder_exclude_patterns": [ "coverage" ],
7
- "file_exclude_patterns": [ ]
8
- }
9
- ]
2
+ "folders":[
3
+ {
4
+ "path": ".",
5
+ "name": "OneShallPass",
6
+ "folder_exclude_patterns": [ "coverage" ],
7
+ "file_exclude_patterns": [ ]
8
+ }
9
+ ]
10
10
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Mayer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-11 00:00:00.000000000 Z
11
+ date: 2018-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -102,14 +102,20 @@ extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
104
  - ".editorconfig"
105
+ - ".env.example"
105
106
  - ".gitignore"
106
107
  - ".gitlab-ci.yml"
107
108
  - ".travis.yml"
108
109
  - Gemfile
109
- - Makefile
110
- - Makefile.common
111
110
  - README.md
111
+ - Vagrantfile
112
+ - bin/.gitignore
113
+ - bin/dev_setup.sh
114
+ - bin/install.sh
112
115
  - bin/osp
116
+ - bin/release.sh
117
+ - bin/test.sh
118
+ - bin/uninstall.sh
113
119
  - lib/ext/string.rb
114
120
  - lib/osp.rb
115
121
  - lib/osp/database.rb
@@ -140,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
146
  version: '0'
141
147
  requirements: []
142
148
  rubyforge_project:
143
- rubygems_version: 2.6.8
149
+ rubygems_version: 2.7.7
144
150
  signing_key:
145
151
  specification_version: 4
146
152
  summary: One Shall Pass
data/Makefile DELETED
@@ -1,21 +0,0 @@
1
-
2
- GEM_NAME = osp
3
-
4
- include Makefile.common
5
-
6
- # Email: example@example.com
7
- # Password: password
8
- dev:
9
- RUBYOPT=--debug $(BUNDLER) exec ./bin/osp -d passwords.osp
10
-
11
- .PHONY: test
12
- test:
13
- RUBYOPT=-w $(BUNDLER) exec ./test/suite_all.rb
14
-
15
- .PHONY: cov
16
- cov:
17
- RUBYOPT=-w COVERAGE=1 $(BUNDLER) exec ./test/suite_all.rb -v
18
-
19
- .PHONY: cov_local
20
- cov_local:
21
- RUBYOPT=-w SIMPLECOV_PHPUNIT_LOAD_PATH=../simplecov-phpunit COVERAGE=1 $(BUNDLER) exec ./test/suite_all.rb -v
@@ -1,58 +0,0 @@
1
-
2
- # Ruby Common Big 2016-11-08
3
-
4
- MV = mv -nv
5
- RM = rm -rfd
6
- MKDIR = mkdir -p
7
- CHMOD = chmod
8
- BUNDLER = bundler
9
- BUNDLER_OPTIONS = --jobs=5 --retry=3
10
- GEMSPEC_FILE = $(GEM_NAME).gemspec
11
-
12
- .PHONY: all
13
- all: setup $(ALL_TARGETS_EXT)
14
-
15
- .PHONY: setup
16
- setup: .setup
17
-
18
- .setup:
19
- which ruby &> /dev/null
20
- which $(BUNDLER) &> /dev/null
21
- ruby -v
22
- $(BUNDLER) install $(BUNDLER_OPTIONS)
23
- touch $@
24
-
25
- .PHONY: install
26
- install:
27
- gem_file=$$(gem build $(GEMSPEC_FILE) 2> /dev/null | grep 'File:' | tail -1 | awk '{ print $$2 }'); \
28
- gem install $$gem_file; \
29
- $(RM) $$gem_file
30
-
31
- .PHONY: uninstall
32
- uninstall:
33
- gem uninstall $(GEM_NAME)
34
-
35
- .PHONY: update
36
- update:
37
- $(BUNDLER) update
38
-
39
- .PHONY: clean
40
- clean:
41
- $(RM) .bundle .setup Gemfile.lock
42
-
43
- .PHONY: release
44
- release: | releases
45
- set -e; \
46
- gem_file=$$(gem build $(GEMSPEC_FILE) | grep 'File:' | tail -1 | awk '{ print $$2 }'); \
47
- dst="releases/$$gem_file"; \
48
- [ ! -f $$dst ]; \
49
- $(MV) $$gem_file releases; \
50
- gem push $$dst; \
51
- echo 'done'
52
-
53
- releases:
54
- $(MKDIR) $@
55
-
56
- tmp:
57
- $(MKDIR) $@
58
- $(CHMOD) u=rwx,go-rwx $@