search_spring 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/README.md +48 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/data/ca-certificates.crt +3919 -0
- data/lib/search_spring/client.rb +70 -0
- data/lib/search_spring/errors.rb +30 -0
- data/lib/search_spring/version.rb +3 -0
- data/lib/search_spring.rb +9 -0
- data/search_spring.gemspec +32 -0
- metadata +213 -0
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
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
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
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__)
|