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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c59a09b7ad4c1cccc5922f4ed52f840d7bfde161
4
- data.tar.gz: 6ed13f78e33e454002211d91563787fd722ece6a
3
+ metadata.gz: 2552884dd2669c3765432f904680f388d929b034
4
+ data.tar.gz: c16792b509fcb29849b84003b4be5deea2e19489
5
5
  SHA512:
6
- metadata.gz: a5f7335fd46127d08ee3f36af938447678ba499e268906ecad9cb227161d47d84c867221e455b734289047b2ca787a9411d25cfcafeb85a4d966b2ee92e91406
7
- data.tar.gz: 899696ddebf673a0c5885af0dcee2f3c30afaaef1f7a52d9de3b6af12dcda3ef46a321d630a3875fa836d1b4d16db74a3d32bd6725588c9a427d62a0aa42e2be
6
+ metadata.gz: 710a713cd55d7e7ccc0607d959cbbcf66dd4948809db89a87c2de1e352cf4a438cea6dda690ed33b25ad4e59d9055cfad49244e27f4355fbb95c308e985d65ff
7
+ data.tar.gz: 62aaab1d67c283084e708da0fcdf42b1a6ae273c3da888b1e89124d064aa63bce5fd6127f522818cedead8e2b084205821afa916f7f5eaa923ed26a98ac9bbfc
@@ -1,3 +1,3 @@
1
1
  module SearchRails
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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
- Dir.chdir(root + '/app/controllers')
255
- if File.exists?('searches_controller.rb')
256
- else
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.0
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-25 00:00:00.000000000 Z
11
+ date: 2016-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler