search_spring 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ce1445e990d3892b6d476c2531a4ab9c7bd7d1c9
4
+ data.tar.gz: 8ef2963fde01fa683d2a9c147de3fac1ff3ceee7
5
+ SHA512:
6
+ metadata.gz: 8922b8cca8d50d8198a94ad5adeaa01db4dca7788fa16c14b276bb22568c54ff8fea80963beeaa606198691104dbaaa3e3bc5eb7221793a2776d03ec1944bf79
7
+ data.tar.gz: 4051a0fa2fb5d31056b36c8cfacc7c72c36de42c3f95dfc15716f5634e595d4b9e9a1d8801165d34fa6135290aa7d2e0acc2417b6abe609c1ff0b8ffbd01e629
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.2.5
5
+ before_install: gem install bundler -v 1.14.3
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in search_spring.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # SearchSpring
2
+ [![Build Status](https://api.travis-ci.org/parallel588/search_spring.svg?branch=master)](https://api.travis-ci.org/parallel588/search_spring.svg?branch=master)
3
+
4
+ What is SearchSpring?
5
+ ----------------
6
+
7
+ SearchSpring provides advanced site search and category navigation solutions to the worlds' top eCommerce retailers. Delivering the best possible results. https://searchspring.com/
8
+
9
+ What does this Gem do?
10
+ ----------------------
11
+ * implementation Live Indexing API (https://searchspring.zendesk.com/hc/en-us/articles/202518745-SearchSpring-Live-Indexing-API)
12
+
13
+ ## Installation
14
+
15
+ Add this line to your application's Gemfile:
16
+
17
+ ```ruby
18
+ gem 'search_spring'
19
+ ```
20
+
21
+ And then execute:
22
+
23
+ $ bundle
24
+
25
+ Or install it yourself as:
26
+
27
+ $ gem install search_spring
28
+
29
+ ## Usage
30
+
31
+ ```ruby
32
+ client = SearchSpring::Client.new(site_id, secret_key)
33
+
34
+ client.upsert(feed_id: '1234', products: [{id: '1', title: 'Product title'}])
35
+ client.update(feed_id: '1234', products: [{id: '1', title: 'Product title'}])
36
+ client.delete(feed_id: '1234', product_ids: [1])
37
+
38
+ ```
39
+
40
+ ## Development
41
+
42
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
43
+
44
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
45
+
46
+ ## Contributing
47
+
48
+ Bug reports and pull requests are welcome on GitHub at https://github.com/parallel588/search_spring
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "search_spring"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here