inline_encryption 1.0.3 → 2.1.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.
- checksums.yaml +7 -0
- data/.gitignore +2 -1
- data/.pre-commit-config.yaml +21 -0
- data/.rubocop.yml +12 -0
- data/.rubocop_todo.yml +20 -0
- data/.tool-versions +2 -0
- data/.travis.yml +5 -3
- data/CHANGELOG.md +32 -0
- data/Gemfile +13 -5
- data/Guardfile +6 -11
- data/README.md +25 -0
- data/Rakefile +5 -3
- data/bin/inline_encryption +2 -0
- data/config/locales.yml +2 -0
- data/inline_encryption.gemspec +14 -15
- data/lib/inline_encryption/base.rb +19 -23
- data/lib/inline_encryption/cli.rb +6 -11
- data/lib/inline_encryption/config.rb +23 -15
- data/lib/inline_encryption/errors.rb +4 -3
- data/lib/inline_encryption/version.rb +3 -1
- data/lib/inline_encryption.rb +3 -2
- data/spec/inline_encryption/base_spec.rb +35 -36
- data/spec/inline_encryption/cli_spec.rb +7 -12
- data/spec/inline_encryption/config_spec.rb +18 -21
- data/spec/inline_encryption_spec.rb +4 -4
- data/spec/spec_helper.rb +8 -15
- metadata +37 -79
- data/test_app/.gitignore +0 -16
- data/test_app/Gemfile +0 -6
- data/test_app/README.rdoc +0 -28
- data/test_app/Rakefile +0 -6
- data/test_app/app/assets/images/.keep +0 -0
- data/test_app/app/assets/javascripts/application.js +0 -16
- data/test_app/app/assets/stylesheets/application.css +0 -13
- data/test_app/app/controllers/application_controller.rb +0 -5
- data/test_app/app/controllers/concerns/.keep +0 -0
- data/test_app/app/helpers/application_helper.rb +0 -2
- data/test_app/app/mailers/.keep +0 -0
- data/test_app/app/models/.keep +0 -0
- data/test_app/app/models/concerns/.keep +0 -0
- data/test_app/app/views/layouts/application.html.erb +0 -14
- data/test_app/bin/bundle +0 -3
- data/test_app/bin/rails +0 -4
- data/test_app/bin/rake +0 -4
- data/test_app/config/application.rb +0 -23
- data/test_app/config/boot.rb +0 -4
- data/test_app/config/database.yml +0 -25
- data/test_app/config/environment.rb +0 -5
- data/test_app/config/environments/development.rb +0 -29
- data/test_app/config/environments/production.rb +0 -80
- data/test_app/config/environments/test.rb +0 -36
- data/test_app/config/initializers/backtrace_silencers.rb +0 -7
- data/test_app/config/initializers/filter_parameter_logging.rb +0 -4
- data/test_app/config/initializers/inflections.rb +0 -16
- data/test_app/config/initializers/mime_types.rb +0 -5
- data/test_app/config/initializers/secret_token.rb +0 -12
- data/test_app/config/initializers/session_store.rb +0 -3
- data/test_app/config/initializers/wrap_parameters.rb +0 -14
- data/test_app/config/locales/en.yml +0 -23
- data/test_app/config/routes.rb +0 -56
- data/test_app/config.ru +0 -4
- data/test_app/db/seeds.rb +0 -7
- data/test_app/lib/assets/.keep +0 -0
- data/test_app/lib/tasks/.keep +0 -0
- data/test_app/log/.keep +0 -0
- data/test_app/public/404.html +0 -58
- data/test_app/public/422.html +0 -58
- data/test_app/public/500.html +0 -57
- data/test_app/public/favicon.ico +0 -0
- data/test_app/public/robots.txt +0 -5
- data/test_app/test/controllers/.keep +0 -0
- data/test_app/test/fixtures/.keep +0 -0
- data/test_app/test/helpers/.keep +0 -0
- data/test_app/test/integration/.keep +0 -0
- data/test_app/test/mailers/.keep +0 -0
- data/test_app/test/models/.keep +0 -0
- data/test_app/test/test_helper.rb +0 -15
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require 'spec_helper'
|
|
2
4
|
require 'base64'
|
|
3
5
|
require 'inline_encryption/cli'
|
|
@@ -7,10 +9,8 @@ def tmp_filename
|
|
|
7
9
|
end
|
|
8
10
|
|
|
9
11
|
describe InlineEncryption::CLI do
|
|
10
|
-
|
|
11
12
|
describe 'initialize' do
|
|
12
|
-
|
|
13
|
-
let(:subject){ InlineEncryption::CLI.new }
|
|
13
|
+
let(:subject) { InlineEncryption::CLI.new }
|
|
14
14
|
|
|
15
15
|
before :all do
|
|
16
16
|
@default_key = OpenSSL::PKey::RSA.generate(2048)
|
|
@@ -18,24 +18,21 @@ describe InlineEncryption::CLI do
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
it 'should encrypt' do
|
|
21
|
-
InlineEncryption.
|
|
21
|
+
expect(InlineEncryption).to receive(:encrypt).with('hello')
|
|
22
22
|
|
|
23
23
|
subject.encrypt('hello')
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
it 'should require a file if passed' do
|
|
27
|
-
subject = InlineEncryption::CLI.new(['foo'], [
|
|
27
|
+
subject = InlineEncryption::CLI.new(['foo'], ['-r', 'foo.rb'], {})
|
|
28
28
|
|
|
29
|
-
subject.
|
|
29
|
+
expect(subject).to receive(:load_environment).with('foo.rb')
|
|
30
30
|
|
|
31
31
|
subject.encrypt('foo')
|
|
32
32
|
end
|
|
33
|
-
|
|
34
33
|
end
|
|
35
34
|
|
|
36
|
-
|
|
37
35
|
describe 'load_environment' do
|
|
38
|
-
|
|
39
36
|
before :each do
|
|
40
37
|
FileUtils.mkdir_p File.dirname(tmp_filename)
|
|
41
38
|
File.open(tmp_filename, 'w') do |file|
|
|
@@ -49,9 +46,7 @@ describe InlineEncryption::CLI do
|
|
|
49
46
|
|
|
50
47
|
it 'should require the file' do
|
|
51
48
|
subject.send(:load_environment, tmp_filename)
|
|
52
|
-
expect{ FooForInlineEncryptionSpec }.not_to raise_error
|
|
49
|
+
expect { FooForInlineEncryptionSpec }.not_to raise_error
|
|
53
50
|
end
|
|
54
|
-
|
|
55
51
|
end
|
|
56
|
-
|
|
57
52
|
end
|
|
@@ -1,58 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require 'spec_helper'
|
|
2
4
|
|
|
3
5
|
describe InlineEncryption::Config do
|
|
4
|
-
|
|
5
6
|
describe 'check_required_values' do
|
|
6
|
-
let(:subject){ InlineEncryption::Config.new }
|
|
7
|
+
let(:subject) { InlineEncryption::Config.new }
|
|
7
8
|
|
|
8
9
|
it "should raise if 'key' is not set" do
|
|
9
|
-
expect{ subject.check_required_variables }.to raise_error(InlineEncryption::MissingRequiredVariableError)
|
|
10
|
+
expect { subject.check_required_variables }.to raise_error(InlineEncryption::MissingRequiredVariableError)
|
|
10
11
|
end
|
|
11
12
|
|
|
12
13
|
it "should not raise if 'key' is set" do
|
|
13
14
|
subject[:key] = 'foo'
|
|
14
|
-
expect{ subject.check_required_variables }.not_to raise_error
|
|
15
|
+
expect { subject.check_required_variables }.not_to raise_error
|
|
15
16
|
end
|
|
16
|
-
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
describe 'real_key' do
|
|
21
|
-
let(:subject){ InlineEncryption::Config.new }
|
|
20
|
+
let(:subject) { InlineEncryption::Config.new }
|
|
22
21
|
|
|
23
22
|
it 'should return nil if key is NilClass' do
|
|
24
23
|
subject[:key] = nil
|
|
25
24
|
|
|
26
|
-
subject.real_key.
|
|
25
|
+
expect(subject.real_key).to be_nil
|
|
27
26
|
end
|
|
28
27
|
|
|
29
28
|
it 'should return the key value if key is an OpenSSL::PKey::RSA key' do
|
|
30
|
-
key = OpenSSL::PKey::RSA.new(
|
|
29
|
+
key = OpenSSL::PKey::RSA.new(512)
|
|
31
30
|
subject[:key] = key
|
|
32
31
|
|
|
33
|
-
subject.real_key.
|
|
32
|
+
expect(subject.real_key).to eq(key)
|
|
34
33
|
end
|
|
35
34
|
|
|
36
35
|
it 'should return an OpenSSL::PKey::RSA key from the given String' do
|
|
37
|
-
temp_key = OpenSSL::PKey::RSA.generate(
|
|
36
|
+
temp_key = OpenSSL::PKey::RSA.generate(512)
|
|
38
37
|
key = temp_key.to_s
|
|
39
38
|
subject[:key] = key
|
|
40
39
|
|
|
41
|
-
subject.real_key.to_s.
|
|
42
|
-
subject.real_key.
|
|
40
|
+
expect(subject.real_key.to_s).to eq(temp_key.to_s)
|
|
41
|
+
expect(subject.real_key).to be_an_instance_of OpenSSL::PKey::RSA
|
|
43
42
|
end
|
|
44
43
|
|
|
45
44
|
it 'should load the contents of the given file if exists and use as key' do
|
|
46
|
-
temp_key = OpenSSL::PKey::RSA.generate(
|
|
45
|
+
temp_key = OpenSSL::PKey::RSA.generate(512)
|
|
47
46
|
key = 'foo'
|
|
48
47
|
subject[:key] = key
|
|
49
|
-
File.
|
|
50
|
-
File.
|
|
48
|
+
allow(File).to receive(:exist?).with('foo').and_return(true)
|
|
49
|
+
allow(File).to receive(:read).with('foo').and_return(temp_key.to_s)
|
|
51
50
|
|
|
52
|
-
subject.real_key.to_s.
|
|
53
|
-
subject.real_key.
|
|
51
|
+
expect(subject.real_key.to_s).to eq(temp_key.to_s)
|
|
52
|
+
expect(subject.real_key).to be_an_instance_of OpenSSL::PKey::RSA
|
|
54
53
|
end
|
|
55
54
|
end
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
end
|
|
55
|
+
end
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require 'spec_helper'
|
|
2
4
|
|
|
3
5
|
describe InlineEncryption do
|
|
4
|
-
|
|
5
6
|
it 'should load Base' do
|
|
6
|
-
expect{ InlineEncryption::Base }.not_to raise_error
|
|
7
|
+
expect { InlineEncryption::Base }.not_to raise_error
|
|
7
8
|
end
|
|
8
9
|
|
|
9
10
|
it 'should be extended by Base' do
|
|
10
|
-
InlineEncryption.respond_to?(:config).
|
|
11
|
+
expect(InlineEncryption.respond_to?(:config)).to be_truthy
|
|
11
12
|
end
|
|
12
|
-
|
|
13
13
|
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
require 'spork'
|
|
3
|
-
#uncomment the following line to use spork with the debugger
|
|
4
|
-
#require 'spork/ext/ruby-debug'
|
|
5
|
-
|
|
6
|
-
Spork.prefork do
|
|
7
|
-
require 'simplecov'
|
|
8
|
-
SimpleCov.start do
|
|
9
|
-
add_filter "/spec/"
|
|
10
|
-
end
|
|
1
|
+
# frozen_string_literal: true
|
|
11
2
|
|
|
12
|
-
|
|
3
|
+
require 'rubygems'
|
|
13
4
|
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
require 'simplecov'
|
|
6
|
+
SimpleCov.start do
|
|
7
|
+
add_filter '/spec/'
|
|
16
8
|
end
|
|
17
9
|
|
|
18
|
-
|
|
10
|
+
require 'rspec'
|
|
19
11
|
|
|
20
|
-
|
|
12
|
+
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
|
|
13
|
+
require 'inline_encryption'
|
metadata
CHANGED
|
@@ -1,59 +1,71 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inline_encryption
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 2.1.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- rubyisbeautiful
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: hashie
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
|
-
- -
|
|
17
|
+
- - ">="
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
21
19
|
version: '0'
|
|
22
20
|
type: :runtime
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
|
-
- -
|
|
24
|
+
- - ">="
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
26
|
version: '0'
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
|
31
28
|
name: i18n
|
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
30
|
requirements:
|
|
35
|
-
- -
|
|
31
|
+
- - ">="
|
|
36
32
|
- !ruby/object:Gem::Version
|
|
37
33
|
version: '0'
|
|
38
34
|
type: :runtime
|
|
39
35
|
prerelease: false
|
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
37
|
requirements:
|
|
43
|
-
- -
|
|
38
|
+
- - ">="
|
|
44
39
|
- !ruby/object:Gem::Version
|
|
45
40
|
version: '0'
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: thor
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
description: " A simple encryption tool based on common convention "
|
|
56
|
+
email: bcptaylor+github@gmail.com
|
|
50
57
|
executables:
|
|
51
58
|
- inline_encryption
|
|
52
59
|
extensions: []
|
|
53
60
|
extra_rdoc_files: []
|
|
54
61
|
files:
|
|
55
|
-
- .gitignore
|
|
56
|
-
- .
|
|
62
|
+
- ".gitignore"
|
|
63
|
+
- ".pre-commit-config.yaml"
|
|
64
|
+
- ".rubocop.yml"
|
|
65
|
+
- ".rubocop_todo.yml"
|
|
66
|
+
- ".tool-versions"
|
|
67
|
+
- ".travis.yml"
|
|
68
|
+
- CHANGELOG.md
|
|
57
69
|
- Gemfile
|
|
58
70
|
- Guardfile
|
|
59
71
|
- LICENSE.txt
|
|
@@ -73,86 +85,32 @@ files:
|
|
|
73
85
|
- spec/inline_encryption/config_spec.rb
|
|
74
86
|
- spec/inline_encryption_spec.rb
|
|
75
87
|
- spec/spec_helper.rb
|
|
76
|
-
|
|
77
|
-
- test_app/Gemfile
|
|
78
|
-
- test_app/README.rdoc
|
|
79
|
-
- test_app/Rakefile
|
|
80
|
-
- test_app/app/assets/images/.keep
|
|
81
|
-
- test_app/app/assets/javascripts/application.js
|
|
82
|
-
- test_app/app/assets/stylesheets/application.css
|
|
83
|
-
- test_app/app/controllers/application_controller.rb
|
|
84
|
-
- test_app/app/controllers/concerns/.keep
|
|
85
|
-
- test_app/app/helpers/application_helper.rb
|
|
86
|
-
- test_app/app/mailers/.keep
|
|
87
|
-
- test_app/app/models/.keep
|
|
88
|
-
- test_app/app/models/concerns/.keep
|
|
89
|
-
- test_app/app/views/layouts/application.html.erb
|
|
90
|
-
- test_app/bin/bundle
|
|
91
|
-
- test_app/bin/rails
|
|
92
|
-
- test_app/bin/rake
|
|
93
|
-
- test_app/config.ru
|
|
94
|
-
- test_app/config/application.rb
|
|
95
|
-
- test_app/config/boot.rb
|
|
96
|
-
- test_app/config/database.yml
|
|
97
|
-
- test_app/config/environment.rb
|
|
98
|
-
- test_app/config/environments/development.rb
|
|
99
|
-
- test_app/config/environments/production.rb
|
|
100
|
-
- test_app/config/environments/test.rb
|
|
101
|
-
- test_app/config/initializers/backtrace_silencers.rb
|
|
102
|
-
- test_app/config/initializers/filter_parameter_logging.rb
|
|
103
|
-
- test_app/config/initializers/inflections.rb
|
|
104
|
-
- test_app/config/initializers/mime_types.rb
|
|
105
|
-
- test_app/config/initializers/secret_token.rb
|
|
106
|
-
- test_app/config/initializers/session_store.rb
|
|
107
|
-
- test_app/config/initializers/wrap_parameters.rb
|
|
108
|
-
- test_app/config/locales/en.yml
|
|
109
|
-
- test_app/config/routes.rb
|
|
110
|
-
- test_app/db/seeds.rb
|
|
111
|
-
- test_app/lib/assets/.keep
|
|
112
|
-
- test_app/lib/tasks/.keep
|
|
113
|
-
- test_app/log/.keep
|
|
114
|
-
- test_app/public/404.html
|
|
115
|
-
- test_app/public/422.html
|
|
116
|
-
- test_app/public/500.html
|
|
117
|
-
- test_app/public/favicon.ico
|
|
118
|
-
- test_app/public/robots.txt
|
|
119
|
-
- test_app/test/controllers/.keep
|
|
120
|
-
- test_app/test/fixtures/.keep
|
|
121
|
-
- test_app/test/helpers/.keep
|
|
122
|
-
- test_app/test/integration/.keep
|
|
123
|
-
- test_app/test/mailers/.keep
|
|
124
|
-
- test_app/test/models/.keep
|
|
125
|
-
- test_app/test/test_helper.rb
|
|
126
|
-
homepage: http://github.com/rubyisbeautiful/inline_encryption
|
|
88
|
+
homepage: https://github.com/rubyisbeautiful/inline_encryption
|
|
127
89
|
licenses:
|
|
128
90
|
- MIT
|
|
91
|
+
metadata: {}
|
|
129
92
|
post_install_message:
|
|
130
93
|
rdoc_options: []
|
|
131
94
|
require_paths:
|
|
132
95
|
- lib
|
|
133
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
|
-
none: false
|
|
135
97
|
requirements:
|
|
136
|
-
- -
|
|
98
|
+
- - ">="
|
|
137
99
|
- !ruby/object:Gem::Version
|
|
138
|
-
version: 1.
|
|
100
|
+
version: 2.1.5
|
|
139
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
|
-
none: false
|
|
141
102
|
requirements:
|
|
142
|
-
- -
|
|
103
|
+
- - ">="
|
|
143
104
|
- !ruby/object:Gem::Version
|
|
144
105
|
version: '0'
|
|
145
106
|
requirements: []
|
|
146
|
-
|
|
147
|
-
rubygems_version: 1.8.23
|
|
107
|
+
rubygems_version: 3.1.6
|
|
148
108
|
signing_key:
|
|
149
|
-
specification_version:
|
|
150
|
-
summary: A simple encryption tool
|
|
151
|
-
in for Stringish things
|
|
109
|
+
specification_version: 4
|
|
110
|
+
summary: A drop-in simple encryption tool for stringish things
|
|
152
111
|
test_files:
|
|
153
112
|
- spec/inline_encryption/base_spec.rb
|
|
154
113
|
- spec/inline_encryption/cli_spec.rb
|
|
155
114
|
- spec/inline_encryption/config_spec.rb
|
|
156
115
|
- spec/inline_encryption_spec.rb
|
|
157
116
|
- spec/spec_helper.rb
|
|
158
|
-
has_rdoc:
|
data/test_app/.gitignore
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
|
2
|
-
#
|
|
3
|
-
# If you find yourself ignoring temporary files generated by your text editor
|
|
4
|
-
# or operating system, you probably want to add a global ignore instead:
|
|
5
|
-
# git config --global core.excludesfile '~/.gitignore_global'
|
|
6
|
-
|
|
7
|
-
# Ignore bundler config.
|
|
8
|
-
/.bundle
|
|
9
|
-
|
|
10
|
-
# Ignore the default SQLite database.
|
|
11
|
-
/db/*.sqlite3
|
|
12
|
-
/db/*.sqlite3-journal
|
|
13
|
-
|
|
14
|
-
# Ignore all logfiles and tempfiles.
|
|
15
|
-
/log/*.log
|
|
16
|
-
/tmp
|
data/test_app/Gemfile
DELETED
data/test_app/README.rdoc
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
== README
|
|
2
|
-
|
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
|
4
|
-
application up and running.
|
|
5
|
-
|
|
6
|
-
Things you may want to cover:
|
|
7
|
-
|
|
8
|
-
* Ruby version
|
|
9
|
-
|
|
10
|
-
* System dependencies
|
|
11
|
-
|
|
12
|
-
* Configuration
|
|
13
|
-
|
|
14
|
-
* Database creation
|
|
15
|
-
|
|
16
|
-
* Database initialization
|
|
17
|
-
|
|
18
|
-
* How to run the test suite
|
|
19
|
-
|
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
|
21
|
-
|
|
22
|
-
* Deployment instructions
|
|
23
|
-
|
|
24
|
-
* ...
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
|
28
|
-
<tt>rake doc:app</tt>.
|
data/test_app/Rakefile
DELETED
|
File without changes
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
-
// listed below.
|
|
3
|
-
//
|
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
|
6
|
-
//
|
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
-
// compiled file.
|
|
9
|
-
//
|
|
10
|
-
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
|
11
|
-
// about supported directives.
|
|
12
|
-
//
|
|
13
|
-
//= require jquery
|
|
14
|
-
//= require jquery_ujs
|
|
15
|
-
//= require turbolinks
|
|
16
|
-
//= require_tree .
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
-
* listed below.
|
|
4
|
-
*
|
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
|
7
|
-
*
|
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
|
10
|
-
*
|
|
11
|
-
*= require_self
|
|
12
|
-
*= require_tree .
|
|
13
|
-
*/
|
|
File without changes
|
data/test_app/app/mailers/.keep
DELETED
|
File without changes
|
data/test_app/app/models/.keep
DELETED
|
File without changes
|
|
File without changes
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>TestApp</title>
|
|
5
|
-
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
|
6
|
-
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
|
7
|
-
<%= csrf_meta_tags %>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
|
|
11
|
-
<%= yield %>
|
|
12
|
-
|
|
13
|
-
</body>
|
|
14
|
-
</html>
|
data/test_app/bin/bundle
DELETED
data/test_app/bin/rails
DELETED
data/test_app/bin/rake
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
|
2
|
-
|
|
3
|
-
require 'rails/all'
|
|
4
|
-
|
|
5
|
-
# Require the gems listed in Gemfile, including any gems
|
|
6
|
-
# you've limited to :test, :development, or :production.
|
|
7
|
-
Bundler.require(:default, Rails.env)
|
|
8
|
-
|
|
9
|
-
module TestApp
|
|
10
|
-
class Application < Rails::Application
|
|
11
|
-
# Settings in config/environments/* take precedence over those specified here.
|
|
12
|
-
# Application configuration should go into files in config/initializers
|
|
13
|
-
# -- all .rb files in that directory are automatically loaded.
|
|
14
|
-
|
|
15
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
|
16
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
|
17
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
|
18
|
-
|
|
19
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
20
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
21
|
-
# config.i18n.default_locale = :de
|
|
22
|
-
end
|
|
23
|
-
end
|
data/test_app/config/boot.rb
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# SQLite version 3.x
|
|
2
|
-
# gem install sqlite3
|
|
3
|
-
#
|
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
5
|
-
# gem 'sqlite3'
|
|
6
|
-
development:
|
|
7
|
-
adapter: sqlite3
|
|
8
|
-
database: db/development.sqlite3
|
|
9
|
-
pool: 5
|
|
10
|
-
timeout: 5000
|
|
11
|
-
|
|
12
|
-
# Warning: The database defined as "test" will be erased and
|
|
13
|
-
# re-generated from your development database when you run "rake".
|
|
14
|
-
# Do not set this db to the same as development or production.
|
|
15
|
-
test:
|
|
16
|
-
adapter: sqlite3
|
|
17
|
-
database: db/test.sqlite3
|
|
18
|
-
pool: 5
|
|
19
|
-
timeout: 5000
|
|
20
|
-
|
|
21
|
-
production:
|
|
22
|
-
adapter: sqlite3
|
|
23
|
-
database: db/production.sqlite3
|
|
24
|
-
pool: 5
|
|
25
|
-
timeout: 5000
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
TestApp::Application.configure do
|
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
|
3
|
-
|
|
4
|
-
# In the development environment your application's code is reloaded on
|
|
5
|
-
# every request. This slows down response time but is perfect for development
|
|
6
|
-
# since you don't have to restart the web server when you make code changes.
|
|
7
|
-
config.cache_classes = false
|
|
8
|
-
|
|
9
|
-
# Do not eager load code on boot.
|
|
10
|
-
config.eager_load = false
|
|
11
|
-
|
|
12
|
-
# Show full error reports and disable caching.
|
|
13
|
-
config.consider_all_requests_local = true
|
|
14
|
-
config.action_controller.perform_caching = false
|
|
15
|
-
|
|
16
|
-
# Don't care if the mailer can't send.
|
|
17
|
-
config.action_mailer.raise_delivery_errors = false
|
|
18
|
-
|
|
19
|
-
# Print deprecation notices to the Rails logger.
|
|
20
|
-
config.active_support.deprecation = :log
|
|
21
|
-
|
|
22
|
-
# Raise an error on page load if there are pending migrations
|
|
23
|
-
config.active_record.migration_error = :page_load
|
|
24
|
-
|
|
25
|
-
# Debug mode disables concatenation and preprocessing of assets.
|
|
26
|
-
# This option may cause significant delays in view rendering with a large
|
|
27
|
-
# number of complex assets.
|
|
28
|
-
config.assets.debug = true
|
|
29
|
-
end
|