search_rails 1.1.0 → 1.1.1
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 +4 -4
- data/lib/search_rails/version.rb +1 -1
- data/lib/search_rails.rb +3 -19
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2552884dd2669c3765432f904680f388d929b034
|
4
|
+
data.tar.gz: c16792b509fcb29849b84003b4be5deea2e19489
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 710a713cd55d7e7ccc0607d959cbbcf66dd4948809db89a87c2de1e352cf4a438cea6dda690ed33b25ad4e59d9055cfad49244e27f4355fbb95c308e985d65ff
|
7
|
+
data.tar.gz: 62aaab1d67c283084e708da0fcdf42b1a6ae273c3da888b1e89124d064aa63bce5fd6127f522818cedead8e2b084205821afa916f7f5eaa923ed26a98ac9bbfc
|
data/lib/search_rails/version.rb
CHANGED
data/lib/search_rails.rb
CHANGED
@@ -16,7 +16,6 @@ module SearchRails
|
|
16
16
|
end
|
17
17
|
Dir.chdir(root + '/app/search')
|
18
18
|
if File.exists?('search_module.rb')
|
19
|
-
File.open(root + '/app/search/search_module.rb', 'w') {|file| file.truncate(0) }
|
20
19
|
puts 'Already Exists'.bold.green + ' /app/search/search_module.rb'.bold
|
21
20
|
else
|
22
21
|
File.new "search_module.rb", "w"
|
@@ -24,7 +23,6 @@ module SearchRails
|
|
24
23
|
end
|
25
24
|
Dir.chdir(root + '/app/controllers')
|
26
25
|
if File.exists?('searches_controller.rb')
|
27
|
-
File.open(root + '/app/controllers/searches_controller.rb', 'w') {|file| file.truncate(0) }
|
28
26
|
puts 'Already Exists'.bold.green + ' /app/controllers/searches_controller.rb'.bold
|
29
27
|
else
|
30
28
|
File.new "searches_controller.rb", "w"
|
@@ -32,7 +30,6 @@ module SearchRails
|
|
32
30
|
end
|
33
31
|
Dir.chdir(root + '/app/models')
|
34
32
|
if File.exists?('search.rb')
|
35
|
-
File.open(root + '/app/models/search.rb', 'w') {|file| file.truncate(0) }
|
36
33
|
puts 'Already Exists'.bold.green + ' /app/models/search.rb'.bold
|
37
34
|
else
|
38
35
|
File.new "search.rb", "w"
|
@@ -251,22 +248,9 @@ module SearchRails
|
|
251
248
|
end
|
252
249
|
|
253
250
|
SearchInstall.new.create_files
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
SearchInstall.new.write_search_controller
|
258
|
-
end
|
259
|
-
Dir.chdir(root + '/app/models')
|
260
|
-
if File.exists?('search.rb')
|
261
|
-
else
|
262
|
-
SearchInstall.new.write_search_model
|
263
|
-
end
|
264
|
-
Dir.chdir(root + '/app/search')
|
265
|
-
if File.exists?('search_module.rb')
|
266
|
-
else
|
267
|
-
SearchInstall.new.write_search_module(object, attributes)
|
268
|
-
end
|
269
|
-
Dir.chdir(root)
|
251
|
+
SearchInstall.new.write_search_controller
|
252
|
+
SearchInstall.new.write_search_model
|
253
|
+
SearchInstall.new.write_search_module(object, attributes)
|
270
254
|
SearchInstall.new.write_application_controller
|
271
255
|
SearchInstall.new.write_migration
|
272
256
|
SearchInstall.new.update_routes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: search_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- micahnico22
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|