n_cipher 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +3 -0
- data/.travis.yml +3 -0
- data/Guardfile +68 -4
- data/{LICENSE.txt → LICENSE} +0 -0
- data/README.md +3 -3
- data/Rakefile +3 -14
- data/lib/n_cipher/version.rb +1 -1
- data/n_cipher.gemspec +3 -6
- metadata +10 -54
- data/.codeclimate.yml +0 -13
- data/.rubocop.yml +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6745670732254c4a64708cb93de4303e926b6387
|
4
|
+
data.tar.gz: 1ef6c8752f76ed5899c6ecb88cdca30aa0a79096
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa2eb75273ba70afaf3874d920a9e63eceb465f44519ee6ead3f459f6347ca4729508429e760f784ad5271c6f0638507927f1411543278fc99da400573a6d19d
|
7
|
+
data.tar.gz: 519123fa2cc902e4d33db79f1e091bdc571a65eb1cac9b58101fa6382b6491efadc85435650aedde35ce8a0dcf9ca671670b37b37da398a0952ffebc1f927642
|
data/.rspec
ADDED
data/.travis.yml
CHANGED
data/Guardfile
CHANGED
@@ -1,6 +1,70 @@
|
|
1
|
-
#
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
|
4
|
+
## Uncomment and set this to only include directories you want to watch
|
5
|
+
# directories %w(app lib config test spec features) \
|
6
|
+
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
7
|
+
|
8
|
+
## Note: if you are using the `directories` clause above and you are not
|
9
|
+
## watching the project directory ('.'), then you will want to move
|
10
|
+
## the Guardfile to a watched dir and symlink it back, e.g.
|
11
|
+
#
|
12
|
+
# $ mkdir config
|
13
|
+
# $ mv Guardfile config/
|
14
|
+
# $ ln -s config/Guardfile .
|
15
|
+
#
|
16
|
+
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
17
|
+
|
18
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
19
|
+
# rspec may be run, below are examples of the most common uses.
|
20
|
+
# * bundler: 'bundle exec rspec'
|
21
|
+
# * bundler binstubs: 'bin/rspec'
|
22
|
+
# * spring: 'bin/rspec' (This will use spring if running and you have
|
23
|
+
# installed the spring binstubs per the docs)
|
24
|
+
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
25
|
+
# * 'just' rspec: 'rspec'
|
26
|
+
|
27
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
28
|
+
require "guard/rspec/dsl"
|
29
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
30
|
+
|
31
|
+
# Feel free to open issues for suggestions and improvements
|
32
|
+
|
33
|
+
# RSpec files
|
34
|
+
rspec = dsl.rspec
|
35
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
36
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
37
|
+
watch(rspec.spec_files)
|
38
|
+
|
39
|
+
# Ruby files
|
40
|
+
ruby = dsl.ruby
|
41
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
42
|
+
|
43
|
+
# Rails files
|
44
|
+
rails = dsl.rails(view_extensions: %w(erb haml slim))
|
45
|
+
dsl.watch_spec_files_for(rails.app_files)
|
46
|
+
dsl.watch_spec_files_for(rails.views)
|
47
|
+
|
48
|
+
watch(rails.controllers) do |m|
|
49
|
+
[
|
50
|
+
rspec.spec.("routing/#{m[1]}_routing"),
|
51
|
+
rspec.spec.("controllers/#{m[1]}_controller"),
|
52
|
+
rspec.spec.("acceptance/#{m[1]}")
|
53
|
+
]
|
54
|
+
end
|
55
|
+
|
56
|
+
# Rails config changes
|
57
|
+
watch(rails.spec_helper) { rspec.spec_dir }
|
58
|
+
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
59
|
+
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
60
|
+
|
61
|
+
# Capybara features specs
|
62
|
+
watch(rails.view_dirs) { |m| rspec.spec.("features/#{m[1]}") }
|
63
|
+
watch(rails.layouts) { |m| rspec.spec.("features/#{m[1]}") }
|
64
|
+
|
65
|
+
# Turnip features and steps
|
66
|
+
watch(%r{^spec/acceptance/(.+)\.feature$})
|
67
|
+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
68
|
+
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
69
|
+
end
|
6
70
|
end
|
data/{LICENSE.txt → LICENSE}
RENAMED
File without changes
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# NCipher
|
2
2
|
|
3
3
|
[![Gem](https://img.shields.io/gem/v/n_cipher.svg)](https://rubygems.org/gems/n_cipher)
|
4
|
-
[![Required Ruby](https://img.shields.io/badge/ruby-%3E%3D%202.
|
4
|
+
[![Required Ruby](https://img.shields.io/badge/ruby-%3E%3D%202.2.0-red.svg)](#)
|
5
5
|
[![Travis branch](https://img.shields.io/travis/844196/n_cipher.svg)](https://travis-ci.org/844196/n_cipher)
|
6
6
|
[![Coveralls branch](https://img.shields.io/coveralls/844196/n_cipher/master.svg)](https://coveralls.io/github/844196/n_cipher)
|
7
7
|
[![Code Climate](https://img.shields.io/codeclimate/github/844196/n_cipher.svg)](https://codeclimate.com/github/844196/n_cipher)
|
@@ -77,13 +77,13 @@ $ n_cipher encode --seed 'おうどん' --delimiter 'ひげ' 'にゃんぱす'
|
|
77
77
|
んおおうどどんひげんおおどおおんひげんおおどうおんひげんおおうんおうひげんおおううどうひげ
|
78
78
|
```
|
79
79
|
|
80
|
-
```
|
80
|
+
```shellsession
|
81
81
|
$ # decode
|
82
82
|
$ n_cipher decode --seed 'おうどん' --delimiter 'ひげ' 'んおおうどどんひげんおおどおおんひげんおおどうおんひげんおおうんおうひげんおおううどうひげ'
|
83
83
|
にゃんぱす
|
84
84
|
```
|
85
85
|
|
86
|
-
```
|
86
|
+
```shellsession
|
87
87
|
$ # support STDIN
|
88
88
|
$ renge | n_cipher encode
|
89
89
|
んんぱんにぱに〜ゃぱんぱゃゃん〜ぱすすにぱゃ〜ぱすすゃにぱ〜ぱすすゃすゃ〜すににゃぱに〜ゃんゃんぱゃぱ〜ゃぱゃんんぱぱ〜ぱすすににに〜ぱすすにゃぱ〜ぱすすんんに〜ぱすすにぱす〜すにすんんんゃ〜
|
data/Rakefile
CHANGED
@@ -1,16 +1,5 @@
|
|
1
1
|
require 'bundler/gem_tasks'
|
2
|
-
require '
|
3
|
-
require 'yard'
|
4
|
-
require 'yard/rake/yardoc_task'
|
2
|
+
require 'rspec/core/rake_task'
|
5
3
|
|
6
|
-
|
7
|
-
|
8
|
-
task :test do
|
9
|
-
ruby 'test/test_helper.rb', '--verbose', '--progress-row-max=0'
|
10
|
-
end
|
11
|
-
|
12
|
-
RuboCop::RakeTask.new
|
13
|
-
|
14
|
-
YARD::Rake::YardocTask.new do |t|
|
15
|
-
t.files = ['lib/**/*.rb']
|
16
|
-
end
|
4
|
+
RSpec::Core::RakeTask.new(:spec)
|
5
|
+
task :default => :spec
|
data/lib/n_cipher/version.rb
CHANGED
data/n_cipher.gemspec
CHANGED
@@ -19,16 +19,13 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.required_ruby_version = '>= 2.
|
22
|
+
spec.required_ruby_version = '>= 2.2.0'
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.9'
|
24
24
|
spec.add_development_dependency 'rake', '~> 10.0'
|
25
|
-
spec.add_development_dependency '
|
26
|
-
spec.add_development_dependency 'test-unit-notify'
|
25
|
+
spec.add_development_dependency 'rspec'
|
27
26
|
spec.add_development_dependency 'coveralls'
|
28
|
-
spec.add_development_dependency 'rubocop'
|
29
|
-
spec.add_development_dependency 'yard'
|
30
27
|
spec.add_development_dependency 'guard'
|
31
|
-
spec.add_development_dependency 'guard-
|
28
|
+
spec.add_development_dependency 'guard-rspec'
|
32
29
|
|
33
30
|
spec.add_dependency 'thor'
|
34
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: n_cipher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masaya Takeda
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -39,21 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: test-unit-notify
|
42
|
+
name: rspec
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - ">="
|
@@ -80,34 +66,6 @@ dependencies:
|
|
80
66
|
- - ">="
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: yard
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
69
|
- !ruby/object:Gem::Dependency
|
112
70
|
name: guard
|
113
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,7 +81,7 @@ dependencies:
|
|
123
81
|
- !ruby/object:Gem::Version
|
124
82
|
version: '0'
|
125
83
|
- !ruby/object:Gem::Dependency
|
126
|
-
name: guard-
|
84
|
+
name: guard-rspec
|
127
85
|
requirement: !ruby/object:Gem::Requirement
|
128
86
|
requirements:
|
129
87
|
- - ">="
|
@@ -150,7 +108,7 @@ dependencies:
|
|
150
108
|
- - ">="
|
151
109
|
- !ruby/object:Gem::Version
|
152
110
|
version: '0'
|
153
|
-
description:
|
111
|
+
description: 文字列のUnicodeエスケープシーケンスを利用した簡易的な暗号です
|
154
112
|
email:
|
155
113
|
- 844196@gmail.com
|
156
114
|
executables:
|
@@ -158,13 +116,12 @@ executables:
|
|
158
116
|
extensions: []
|
159
117
|
extra_rdoc_files: []
|
160
118
|
files:
|
161
|
-
- ".codeclimate.yml"
|
162
119
|
- ".gitignore"
|
163
|
-
- ".
|
120
|
+
- ".rspec"
|
164
121
|
- ".travis.yml"
|
165
122
|
- Gemfile
|
166
123
|
- Guardfile
|
167
|
-
- LICENSE
|
124
|
+
- LICENSE
|
168
125
|
- README.md
|
169
126
|
- Rakefile
|
170
127
|
- bin/console
|
@@ -185,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
185
142
|
requirements:
|
186
143
|
- - ">="
|
187
144
|
- !ruby/object:Gem::Version
|
188
|
-
version: 2.
|
145
|
+
version: 2.2.0
|
189
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
147
|
requirements:
|
191
148
|
- - ">="
|
@@ -193,9 +150,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
150
|
version: '0'
|
194
151
|
requirements: []
|
195
152
|
rubyforge_project:
|
196
|
-
rubygems_version: 2.
|
153
|
+
rubygems_version: 2.5.1
|
197
154
|
signing_key:
|
198
155
|
specification_version: 4
|
199
|
-
summary:
|
156
|
+
summary: ぱすすにすに〜ぱすすゃぱす〜ぱすすんんに〜ぱすすゃにゃ〜ぱすすににん〜ぱすぱんぱゃ
|
200
157
|
test_files: []
|
201
|
-
has_rdoc:
|
data/.codeclimate.yml
DELETED
data/.rubocop.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
Style/AsciiComments:
|
2
|
-
Enabled: false
|
3
|
-
Style/Documentation:
|
4
|
-
Enabled: false
|
5
|
-
Style/SpaceInsideBlockBraces:
|
6
|
-
Enabled: false
|
7
|
-
Style/SpaceInsideHashLiteralBraces:
|
8
|
-
Enabled: false
|
9
|
-
Style/ColonMethodCall:
|
10
|
-
Enabled: false
|
11
|
-
Style/HashSyntax:
|
12
|
-
Enabled: false
|
13
|
-
|
14
|
-
Metrics/AbcSize:
|
15
|
-
Max: 25
|
16
|
-
Metrics/LineLength:
|
17
|
-
Max: 120
|
18
|
-
Metrics/CyclomaticComplexity:
|
19
|
-
Max: 6
|