algolia 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0246ce68c04f74cbc9e5556fc6ce0732168ae80854fad5bb3c16cc136c5313f
4
- data.tar.gz: b8d46fda53509732a442547eda0b1b8087127380bf4b628461aee491e85736bc
3
+ metadata.gz: 40d3c378e402c5b99ccc924d79c5c9872d6737b1eaae852351b550a591d09ad9
4
+ data.tar.gz: 70d32a655666b9058f9c764d77051d03527abbbc52b0217320b03fe5cb1db78e
5
5
  SHA512:
6
- metadata.gz: dc78357744b82ccea9963df689b6bfce71125cde45c7605b348cb38210ca028a681c57ad9e422add37c33a1a0394681bec958e3a50a1690128b727a2d5406099
7
- data.tar.gz: f56ffd3e67ca4072024f99e24447ecac30a34d252893cc585e467a6589f5ce7331f9e80cc98fe4188ea0a01d325c9f0b6cfac7a689565cbda785c5a077510692
6
+ metadata.gz: 22fc03fda8e648f7dea09eb475462ea3f6502cceba01b8860c31e2c5c98a2556191f235907bd7fbd0d9e9d45ed5b9692cc791f7f9dada888fa022c33e766697d
7
+ data.tar.gz: a8f099bd900239517cc13b91928272450947a528979d29b1aa9b455dd25703415aaa9ef2bdd0970f3a1ed657a709e2445c586d78707b726a2089da06260aabdf
@@ -0,0 +1,38 @@
1
+ # rspec failure tracking
2
+ .rspec_status
3
+
4
+ ## MAC OS
5
+ .DS_Store
6
+ .idea/
7
+
8
+ ## TEXTMATE
9
+ *.tmproj
10
+ tmtags
11
+
12
+ ## EMACS
13
+ *~
14
+ \#*
15
+ .\#*
16
+
17
+ ## VIM
18
+ *.swp
19
+
20
+ ## PROJECT::GENERAL
21
+ coverage
22
+ rdoc
23
+ pkg
24
+ .rvmrc
25
+ /.bundle/
26
+ /.yardoc
27
+ /_yardoc/
28
+ /coverage/
29
+ /doc/
30
+ /pkg/
31
+ /spec/reports/
32
+ /tmp/
33
+
34
+ ## PROJECT::SPECIFIC
35
+ spec/integration_spec_conf.rb
36
+ data.sqlite3
37
+
38
+ debug.log
data/.gitignore CHANGED
@@ -37,3 +37,4 @@ spec/integration_spec_conf.rb
37
37
  data.sqlite3
38
38
 
39
39
  debug.log
40
+ .ruby-version
@@ -1,15 +1,22 @@
1
1
  # ChangeLog
2
2
 
3
- ## Unreleased
3
+ ## [Unreleased](https://github.com/algolia/algoliasearch-client-ruby/compare/2.0.3...master)
4
4
 
5
- ## [2.0.2](https://github.com/algolia/algoliasearch-client-ruby/releases/tag/2.0.2) (2020-11-09)
5
+ ## [2.0.3](https://github.com/algolia/algoliasearch-client-ruby/compare/2.0.2...2.0.3) (2020-11-24)
6
6
 
7
- * Fix: don't mutate index name on stripping
7
+ ### Chore
8
+ - Containerize the repo
8
9
 
9
- ## [2.0.1](https://github.com/algolia/algoliasearch-client-ruby/releases/tag/2.0.1) (2020-11-02)
10
+ ## [2.0.2](https://github.com/algolia/algoliasearch-client-ruby/compare/2.0.1...2.0.2) (2020-11-09)
10
11
 
11
- * Fix: simplify merge of headers in `Transport` class
12
- * Fix: `deserialize_settings` function to take into account `symbolize_keys` parameter
12
+ ### Fix
13
+ - Don't mutate index name on stripping
14
+
15
+ ## [2.0.1](https://github.com/algolia/algoliasearch-client-ruby/compare/2.0.0...2.0.1) (2020-11-02)
16
+
17
+ ### Fix
18
+ - Simplify merge of headers in `Transport` class
19
+ - `deserialize_settings` function to take into account `symbolize_keys` parameter
13
20
 
14
21
  ## [2.0.0](https://github.com/algolia/algoliasearch-client-ruby/releases/tag/2.0.0) (2020-10-27)
15
22
 
@@ -0,0 +1,89 @@
1
+ In this page you will find our recommended way of installing Docker on your machine.
2
+ This guide is made for OSX users.
3
+
4
+ ## Install docker
5
+
6
+ First install Docker using [Homebrew](https://brew.sh/)
7
+ ```
8
+ $ brew install docker
9
+ ```
10
+
11
+ You can then install [Docker Desktop](https://docs.docker.com/get-docker/) if you wish, or use `docker-machine`. As we prefer the second option, we will only document this one.
12
+
13
+ ## Setup your docker
14
+
15
+ Install `docker-machine`
16
+ ```
17
+ $ brew install docker-machine
18
+ ```
19
+
20
+ Then install [VirtualBox](https://www.virtualbox.org/) with [Homebrew Cask](https://github.com/Homebrew/homebrew-cask) to get a driver for your Docker machine
21
+ ```
22
+ $ brew cask install virtualbox
23
+ ```
24
+
25
+ You may need to enter your password and authorize the application in your `System Settings` > `Security & Privacy`.
26
+
27
+ Create now a new machine, set it up as default and connect your shell to it (here we use zsh. The commands should anyway be displayed in each steps' output)
28
+
29
+ ```
30
+ $ docker-machine create --driver virtualbox default
31
+ $ docker-machine env default
32
+ $ eval "$(docker-machine env default)"
33
+ ```
34
+
35
+ Now you're all setup to use our provided Docker image!
36
+
37
+ ## Build the image
38
+
39
+ ```bash
40
+ docker build -t algolia-ruby .
41
+ ```
42
+
43
+ ## Run the image
44
+
45
+ You need to provide few environment variables at runtime to be able to run the [Common Test Suite](https://github.com/algolia/algoliasearch-client-specs/tree/master/common-test-suite).
46
+ You can set them up directly in the command:
47
+
48
+ ```bash
49
+ docker run -it --rm --env ALGOLIA_APP_ID=XXXXXX [...] -v $PWD:/app -w /app algolia-ruby bash
50
+ ```
51
+
52
+ However, we advise you to export them in your `.bashrc` or `.zshrc`. That way, you can use [Docker's shorten syntax](https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file) to set your variables.
53
+
54
+ ```bash
55
+ ### For external contributors, only the following env variables should be enough
56
+ docker run -it --rm --env ALGOLIA_APPLICATION_ID_1 \
57
+ --env ALGOLIA_ADMIN_KEY_1 \
58
+ --env ALGOLIA_SEARCH_KEY_1 \
59
+ -v $PWD:/app -w /app algolia-ruby bash
60
+
61
+ ### This is needed only to run the full test suite
62
+ docker run -it --rm --env ALGOLIA_APPLICATION_ID_1 \
63
+ --env ALGOLIA_ADMIN_KEY_1 \
64
+ --env ALGOLIA_SEARCH_KEY_1 \
65
+ --env ALGOLIA_APPLICATION_ID_2 \
66
+ --env ALGOLIA_ADMIN_KEY_2 \
67
+ --env ALGOLIA_APPLICATION_ID_MCM \
68
+ --env ALGOLIA_ADMIN_KEY_MCM \
69
+ -v $PWD:/app -w /app algolia-ruby bash
70
+ ```
71
+
72
+ Once your container is running, any changes you make in your IDE are directly reflected in the container.
73
+
74
+ To launch the tests, you can use one of the following commands
75
+ ```shell script
76
+ # run only the unit tests
77
+ bundle exec rake test:unit
78
+
79
+ # run only the integration tests
80
+ bundle exec rake test:integration
81
+
82
+ # run the whole test suite
83
+ bundle exec rake test:all
84
+
85
+ # run a single test
86
+ bundle exec rake test TEST=/full/path/to/test.rb TESTOPTS="--name=test_name"
87
+ ```
88
+
89
+ Feel free to contact us if you have any questions.
@@ -0,0 +1,7 @@
1
+ FROM ruby:2.6.3
2
+
3
+ RUN gem install bundler
4
+
5
+ WORKDIR /app
6
+ COPY . /app/
7
+ RUN bundle install
data/README.md CHANGED
@@ -59,6 +59,10 @@ Encountering an issue? Before reaching out to support, we recommend heading to o
59
59
 
60
60
  If you were using the v1 and wish to update to v2, please follow our [Upgrade Guide](upgrade_guide.md)
61
61
 
62
+ ## Use the Dockerfile
63
+
64
+ If you want to contribute to this project without installing all its dependencies, you can use our Docker image. Please check our [dedicated guide](DOCKER_README.MD) to learn more.
65
+
62
66
  ## 📄 License
63
67
 
64
68
  Algolia Ruby API Client is an open-sourced software licensed under the [MIT license](LICENSE.md).
@@ -1,3 +1,3 @@
1
1
  module Algolia
2
- VERSION = '2.0.2'.freeze
2
+ VERSION = '2.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algolia
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-09 00:00:00.000000000 Z
11
+ date: 2020-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -192,6 +192,7 @@ extensions: []
192
192
  extra_rdoc_files: []
193
193
  files:
194
194
  - ".circleci/config.yml"
195
+ - ".dockerignore"
195
196
  - ".github/ISSUE_TEMPLATE.md"
196
197
  - ".github/PULL_REQUEST_TEMPLATE.md"
197
198
  - ".gitignore"
@@ -199,6 +200,8 @@ files:
199
200
  - ".rubocop_todo.yml"
200
201
  - CHANGELOG.md
201
202
  - CODE_OF_CONDUCT.md
203
+ - DOCKER_README.MD
204
+ - Dockerfile
202
205
  - Gemfile
203
206
  - LICENSE
204
207
  - README.md