spotlight_search 0.1.0 → 0.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: e94efda6aaa8700be25f24c0372d793875e09b86
4
- data.tar.gz: d70f6872c4a66db65cb4fd43f8dc9eda79d93d64
3
+ metadata.gz: f966ce0ff53b156ff5331bc5bd4060b1f7bfffea
4
+ data.tar.gz: 721da67b41a985326fe7411dceda48f9006adfb4
5
5
  SHA512:
6
- metadata.gz: 8204e7359ec7e6ad3c7f413db23477b4276c28d41881ec2312ab3a8d5430088f0b09255aaf593ddfc2d2d6ebb119b77776015e26a0e2782f6b63d3f3ca021716
7
- data.tar.gz: ebc2ece340e906a056cb2e5cecb34245c03e0b5f102762400554b1d705cc5cc65c7ea48add3a7b106f83ece28cb7d39b784b41f2523c3fa2963a791194d31bd4
6
+ metadata.gz: fc27ae38ec68d276dc5a6021cfb24f1c10925fc42261aedc3c4f1f62ca7cd5d21447168c7b9f36845a068091bbd1e09874531af912a64cdefc9907da8ddef7d4
7
+ data.tar.gz: 2a08b02a85ed1be18410226d5cfc2117832dd1b0c21309e67de0966c0cbb530d05e84bbace19ac005f066fe71194938365d9a0f6a2bb3117fb7548d6e2b2c962
data/.DS_Store CHANGED
Binary file
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # ImageZoomer
1
+ # SpotlightSearch
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/image_zoomer`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/spotlight_search`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
5
5
  TODO: Delete this and the text above, and describe your gem
6
6
 
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'image_zoomer'
12
+ gem 'spotlight_search'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -18,7 +18,7 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install image_zoomer
21
+ $ gem install spotlight_search
22
22
 
23
23
  ## Usage
24
24
 
@@ -32,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
32
 
33
33
  ## Contributing
34
34
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/image_zoomer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/spotlight_search. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
36
 
37
37
  ## License
38
38
 
@@ -40,4 +40,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
40
40
 
41
41
  ## Code of Conduct
42
42
 
43
- Everyone interacting in the ImageZoomer project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/image_zoomer/blob/master/CODE_OF_CONDUCT.md).
43
+ Everyone interacting in the SpotlightSearch project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/spotlight_search/blob/master/CODE_OF_CONDUCT.md).
@@ -1,6 +1,6 @@
1
1
  module SpotlightSearch
2
2
  module Helpers
3
-
3
+
4
4
  def sortable(column, title = nil, sort_column="created_at", sort_direction="asc")
5
5
  title ||= column.titleize
6
6
  css_class = column == sort_column ? "current #{sort_direction}" : nil
@@ -21,7 +21,7 @@ module SpotlightSearch
21
21
  end
22
22
  end
23
23
  current_page = content_tag :li do
24
- tag.a class: 'btn btn-bordered mx-2', data: {sort_column: @filtered_result.sort[:sort_column], sort_direction: @filtered_result.sort[:sort_direction], page: facets.current_page, behaviour: 'current-page' } do
24
+ tag.a class: 'btn btn-bordered mx-2', data: {sort_column: facets.sort[:sort_column], sort_direction: facets.sort[:sort_direction], page: facets.current_page, behaviour: 'current-page' } do
25
25
  "Showing #{facets.current_page} of #{facets.total_pages} pages"
26
26
  end
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module SpotlightSearch
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spotlight_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anbazhagan Palani