glasses 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +35 -0
- data/lib/glasses.rb +115 -0
- data/lib/glasses/version.rb +3 -0
- data/lib/tasks/glasses_tasks.rake +4 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/dummy_data/MOCK_DATA.json +1000 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/player.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +32 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20150401172324_create_players.rb +15 -0
- data/spec/dummy/db/schema.rb +29 -0
- data/spec/dummy/db/seeds.rb +15 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/my_engine/engine.rb +9 -0
- data/spec/dummy/log/development.log +461 -0
- data/spec/dummy/log/test.log +1845 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/test/glasses_tests/search_test.rb +19 -0
- data/spec/dummy/test/test_helper.rb +12 -0
- data/spec/glasses_spec.rb +3 -0
- data/spec/spec_helper.rb +26 -0
- data/spec/tasks/rspec.rake +3 -0
- data/spec/tests/sanitized_search_test.rb +17 -0
- data/spec/tests/search_test.rb +37 -0
- metadata +264 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
#describe Glasses do
|
4
|
+
|
5
|
+
# describe '.search' do
|
6
|
+
|
7
|
+
# it "should search for an ActiveRecord model" do
|
8
|
+
# expect(Glasses.search(Player, {first_name: "Jane"}).size).to eq 1
|
9
|
+
# end
|
10
|
+
|
11
|
+
# end
|
12
|
+
|
13
|
+
#end
|
14
|
+
|
15
|
+
class GlassesSearchTest < ActionController:TestCase
|
16
|
+
test "should search for an ActiveRecord model" do
|
17
|
+
assert(Glasses.search(Player, {first_name: "Jane"}).size == 1)
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
ENV['RAILS_ENV'] = 'development'
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
3
|
+
require 'rails/test_help'
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
7
|
+
fixtures :all
|
8
|
+
|
9
|
+
# Add more helper methods to be used by all tests here...
|
10
|
+
models :all
|
11
|
+
end
|
12
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'glasses'
|
2
|
+
require 'database_cleaner'
|
3
|
+
|
4
|
+
ENV['RAILS_ENV'] ||= 'test'
|
5
|
+
|
6
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
7
|
+
require 'rspec/rails'
|
8
|
+
require 'rspec/autorun'
|
9
|
+
|
10
|
+
Rails.backtrace_cleaner.remove_silencers!
|
11
|
+
|
12
|
+
# Load support files
|
13
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
14
|
+
|
15
|
+
RSpec.configure do |config|
|
16
|
+
config.mock_with :rspec
|
17
|
+
#config.use_transactional_fixtures = true
|
18
|
+
#config.infer_base_class_for_anonymous_controllers = false
|
19
|
+
#config.order = "random"
|
20
|
+
config.expect_with(:rspec) {|r| r.syntax = :should }
|
21
|
+
config.before(:suite) do
|
22
|
+
DatabaseCleaner.strategy = :transaction
|
23
|
+
DatabaseCleaner.clean_with(:truncation)
|
24
|
+
Rails.application.load_seed # loading seeds
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
describe Glasses do
|
2
|
+
|
3
|
+
describe '.sanitized_search()' do
|
4
|
+
|
5
|
+
it 'is vulnerable to SQL injection when totally unprotected' do
|
6
|
+
results = Glasses.search(Player, {first_name: "' OR 1 = 1 ) --"})
|
7
|
+
(results.size).should == 10
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'is not vulnerable to SQL injection when protected' do
|
11
|
+
results = Glasses.sanitized_search(Player, {first_name: "' OR 1 = 1 ) --"})
|
12
|
+
(results.size).should == 0
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
describe Glasses do
|
2
|
+
|
3
|
+
describe 'search' do
|
4
|
+
|
5
|
+
it 'should search for an ActiveRecord model' do
|
6
|
+
|
7
|
+
((Glasses.search(Player,{first_name: "Jane"})).size).should == 1
|
8
|
+
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'should search for an ActiveRecord model when input is only partial' do
|
12
|
+
|
13
|
+
((Glasses.search(Player,{first_name: "J"})).size).should == 2 # Jane & Jessica
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'should return an empty array if no matches are found' do
|
18
|
+
(Glasses.search(Player,{first_name: "HELLOOOOOOO IZE A PLAYAH"})).should == []
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
#describe 'string-pattern search' do
|
26
|
+
|
27
|
+
# it 'specialized search quicker than general search' do
|
28
|
+
# begin1 = Time.now
|
29
|
+
# Glasses.search(Player,{first_name: "Jane"})
|
30
|
+
# finish1 = Time.now
|
31
|
+
|
32
|
+
# begin2 = Time.now
|
33
|
+
# Glasses.match_pat(Player,{first_name: "Jane"})
|
34
|
+
# finish2 = Time.now
|
35
|
+
|
36
|
+
# ((finish1 - begin1) > (finish2 - begin2)).should == true
|
37
|
+
# end
|
metadata
ADDED
@@ -0,0 +1,264 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: glasses
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.6.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Otávio Monteagudo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sqlite3
|
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: rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.2.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.2.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: database_cleaner
|
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: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '10.0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '10.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: activerecord
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 3.0.18
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 3.0.18
|
125
|
+
description: |2-
|
126
|
+
Running through ActiveRecord's relations, this gem makes it very simple to quickly search through a given model's columns and return an array of objects that match the searched criteria.
|
127
|
+
See the README available in the 'Documentation' repository found in the link below.
|
128
|
+
email:
|
129
|
+
- oivatom@gmail.com
|
130
|
+
executables: []
|
131
|
+
extensions: []
|
132
|
+
extra_rdoc_files: []
|
133
|
+
files:
|
134
|
+
- MIT-LICENSE
|
135
|
+
- Rakefile
|
136
|
+
- lib/glasses.rb
|
137
|
+
- lib/glasses/version.rb
|
138
|
+
- lib/tasks/glasses_tasks.rake
|
139
|
+
- spec/dummy/Rakefile
|
140
|
+
- spec/dummy/app/assets/dummy_data/MOCK_DATA.json
|
141
|
+
- spec/dummy/app/assets/javascripts/application.js
|
142
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
143
|
+
- spec/dummy/app/controllers/application_controller.rb
|
144
|
+
- spec/dummy/app/helpers/application_helper.rb
|
145
|
+
- spec/dummy/app/models/player.rb
|
146
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
147
|
+
- spec/dummy/bin/bundle
|
148
|
+
- spec/dummy/bin/rails
|
149
|
+
- spec/dummy/bin/rake
|
150
|
+
- spec/dummy/bin/setup
|
151
|
+
- spec/dummy/config.ru
|
152
|
+
- spec/dummy/config/application.rb
|
153
|
+
- spec/dummy/config/boot.rb
|
154
|
+
- spec/dummy/config/database.yml
|
155
|
+
- spec/dummy/config/environment.rb
|
156
|
+
- spec/dummy/config/environments/development.rb
|
157
|
+
- spec/dummy/config/environments/production.rb
|
158
|
+
- spec/dummy/config/environments/test.rb
|
159
|
+
- spec/dummy/config/initializers/assets.rb
|
160
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
161
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
162
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
163
|
+
- spec/dummy/config/initializers/inflections.rb
|
164
|
+
- spec/dummy/config/initializers/mime_types.rb
|
165
|
+
- spec/dummy/config/initializers/session_store.rb
|
166
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
167
|
+
- spec/dummy/config/locales/en.yml
|
168
|
+
- spec/dummy/config/routes.rb
|
169
|
+
- spec/dummy/config/secrets.yml
|
170
|
+
- spec/dummy/db/development.sqlite3
|
171
|
+
- spec/dummy/db/migrate/20150401172324_create_players.rb
|
172
|
+
- spec/dummy/db/schema.rb
|
173
|
+
- spec/dummy/db/seeds.rb
|
174
|
+
- spec/dummy/db/test.sqlite3
|
175
|
+
- spec/dummy/lib/my_engine/engine.rb
|
176
|
+
- spec/dummy/log/development.log
|
177
|
+
- spec/dummy/log/test.log
|
178
|
+
- spec/dummy/public/404.html
|
179
|
+
- spec/dummy/public/422.html
|
180
|
+
- spec/dummy/public/500.html
|
181
|
+
- spec/dummy/public/favicon.ico
|
182
|
+
- spec/dummy/test/glasses_tests/search_test.rb
|
183
|
+
- spec/dummy/test/test_helper.rb
|
184
|
+
- spec/glasses_spec.rb
|
185
|
+
- spec/spec_helper.rb
|
186
|
+
- spec/tasks/rspec.rake
|
187
|
+
- spec/tests/sanitized_search_test.rb
|
188
|
+
- spec/tests/search_test.rb
|
189
|
+
homepage: https://github.com/otamm/Glasses
|
190
|
+
licenses:
|
191
|
+
- MIT
|
192
|
+
metadata: {}
|
193
|
+
post_install_message:
|
194
|
+
rdoc_options: []
|
195
|
+
require_paths:
|
196
|
+
- lib
|
197
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
requirements: []
|
208
|
+
rubyforge_project:
|
209
|
+
rubygems_version: 2.4.7
|
210
|
+
signing_key:
|
211
|
+
specification_version: 4
|
212
|
+
summary: Simplify searches on Ruby web frameworks which utilize ActiveRecord as a
|
213
|
+
DB interface.
|
214
|
+
test_files:
|
215
|
+
- spec/dummy/app/assets/dummy_data/MOCK_DATA.json
|
216
|
+
- spec/dummy/app/assets/javascripts/application.js
|
217
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
218
|
+
- spec/dummy/app/controllers/application_controller.rb
|
219
|
+
- spec/dummy/app/helpers/application_helper.rb
|
220
|
+
- spec/dummy/app/models/player.rb
|
221
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
222
|
+
- spec/dummy/bin/bundle
|
223
|
+
- spec/dummy/bin/rails
|
224
|
+
- spec/dummy/bin/rake
|
225
|
+
- spec/dummy/bin/setup
|
226
|
+
- spec/dummy/config/application.rb
|
227
|
+
- spec/dummy/config/boot.rb
|
228
|
+
- spec/dummy/config/database.yml
|
229
|
+
- spec/dummy/config/environment.rb
|
230
|
+
- spec/dummy/config/environments/development.rb
|
231
|
+
- spec/dummy/config/environments/production.rb
|
232
|
+
- spec/dummy/config/environments/test.rb
|
233
|
+
- spec/dummy/config/initializers/assets.rb
|
234
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
235
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
236
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
237
|
+
- spec/dummy/config/initializers/inflections.rb
|
238
|
+
- spec/dummy/config/initializers/mime_types.rb
|
239
|
+
- spec/dummy/config/initializers/session_store.rb
|
240
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
241
|
+
- spec/dummy/config/locales/en.yml
|
242
|
+
- spec/dummy/config/routes.rb
|
243
|
+
- spec/dummy/config/secrets.yml
|
244
|
+
- spec/dummy/config.ru
|
245
|
+
- spec/dummy/db/development.sqlite3
|
246
|
+
- spec/dummy/db/migrate/20150401172324_create_players.rb
|
247
|
+
- spec/dummy/db/schema.rb
|
248
|
+
- spec/dummy/db/seeds.rb
|
249
|
+
- spec/dummy/db/test.sqlite3
|
250
|
+
- spec/dummy/lib/my_engine/engine.rb
|
251
|
+
- spec/dummy/log/development.log
|
252
|
+
- spec/dummy/log/test.log
|
253
|
+
- spec/dummy/public/404.html
|
254
|
+
- spec/dummy/public/422.html
|
255
|
+
- spec/dummy/public/500.html
|
256
|
+
- spec/dummy/public/favicon.ico
|
257
|
+
- spec/dummy/Rakefile
|
258
|
+
- spec/dummy/test/glasses_tests/search_test.rb
|
259
|
+
- spec/dummy/test/test_helper.rb
|
260
|
+
- spec/glasses_spec.rb
|
261
|
+
- spec/spec_helper.rb
|
262
|
+
- spec/tasks/rspec.rake
|
263
|
+
- spec/tests/sanitized_search_test.rb
|
264
|
+
- spec/tests/search_test.rb
|