algoliasearch 1.1.4 → 1.1.5

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: 902ff4f5d458099568e67450745da03c7dc088fd
4
- data.tar.gz: 9c7dda1a55f4dd94598f25257e818544754ab11a
3
+ metadata.gz: dccd32ef275f4ebd7fd41df137127f959dfc82f1
4
+ data.tar.gz: 67b06daa971904e9528f3211b651f8f9d07d2578
5
5
  SHA512:
6
- metadata.gz: d1d11a26f1628910d80576a0a0d80b76aede1d725c8be68480080a602068aad3954a289d46deb24b00970171120364a78d45eaf5baf809f1d2ceea8e15aead8a
7
- data.tar.gz: cd3bac467622ee175c93a70a00ff6cdadbbe631b90170ae4215e0154d157846f43443b0fe0419569496d21e84bacc2a150d2bd17b0a1a51e0182f3d906981c00
6
+ metadata.gz: 73a1ac9d5f6a11d35b8bce3275982d01691bd2a38f65a3e48ade5c8bfc4ee4e48e729b946557b76a0cc2aa0a17414786a48d54b15ae2927880871e75c8ccb652
7
+ data.tar.gz: 763ab359f9c29009c182872c21616ad4403854caa4fa8cca3610a34f14524a86b7585023035020bdcad8b1c95987a7c000d7d0e9f44794d86b07144e5e226c8d
data/ChangeLog CHANGED
@@ -1,5 +1,9 @@
1
1
  CHANGELOG
2
2
 
3
+ 2013-10-17 1.1.5
4
+
5
+ * Version is now part of the user-agent
6
+
3
7
  2013-10-17 1.1.4
4
8
 
5
9
  * Fixed wait_task not sleeping at all
data/Rakefile CHANGED
@@ -11,6 +11,8 @@ rescue Bundler::BundlerError => e
11
11
  end
12
12
  require 'rake'
13
13
 
14
+ require File.join(__FILE__, '..', 'lib', 'algolia', 'version')
15
+
14
16
  require 'jeweler'
15
17
  Jeweler::Tasks.new do |gem|
16
18
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
@@ -21,6 +23,7 @@ Jeweler::Tasks.new do |gem|
21
23
  gem.description = %Q{A simple Ruby client for the algolia.com REST API}
22
24
  gem.email = "contact@algolia.com"
23
25
  gem.authors = ["Algolia"]
26
+ gem.version = Algolia::VERSION
24
27
  # dependencies defined in Gemfile
25
28
  end
26
29
  Jeweler::RubygemsDotOrgTasks.new
@@ -34,7 +37,7 @@ end
34
37
 
35
38
  require 'rdoc/task'
36
39
  Rake::RDocTask.new do |rdoc|
37
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
40
+ version = Algolia::VERSION
38
41
  rdoc.rdoc_dir = 'rdoc'
39
42
  rdoc.title = "algoliasearch #{version}"
40
43
  rdoc.rdoc_files.include('README*')
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "algoliasearch"
8
- s.version = "1.1.4"
8
+ s.version = "1.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Algolia"]
@@ -26,13 +26,13 @@ Gem::Specification.new do |s|
26
26
  "LICENSE.txt",
27
27
  "README.md",
28
28
  "Rakefile",
29
- "VERSION",
30
29
  "algoliasearch.gemspec",
31
30
  "contacts.json",
32
31
  "lib/algolia/client.rb",
33
32
  "lib/algolia/error.rb",
34
33
  "lib/algolia/index.rb",
35
34
  "lib/algolia/protocol.rb",
35
+ "lib/algolia/version.rb",
36
36
  "lib/algoliasearch.rb",
37
37
  "spec/client_spec.rb",
38
38
  "spec/spec_helper.rb"
@@ -1,5 +1,6 @@
1
1
  require 'algolia/protocol'
2
2
  require 'algolia/error'
3
+ require 'algolia/version'
3
4
  require 'json'
4
5
 
5
6
  module Algolia
@@ -84,7 +85,7 @@ module Algolia
84
85
  s.headers[Protocol::HEADER_APP_ID] = application_id
85
86
  s.headers["Content-Type"] = "application/json; charset=utf-8"
86
87
  s.headers["Accept"] = "Accept-Encoding: gzip,deflate" if @gzip
87
- s.headers["User-Agent"] = "Algolia for Ruby"
88
+ s.headers["User-Agent"] = "Algolia for Ruby #{::Algolia::VERSION}"
88
89
  s.verbose = true if @debug
89
90
  end
90
91
  hinfo
@@ -0,0 +1,3 @@
1
+ module Algolia
2
+ VERSION = "1.1.5"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algoliasearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia
@@ -83,13 +83,13 @@ files:
83
83
  - LICENSE.txt
84
84
  - README.md
85
85
  - Rakefile
86
- - VERSION
87
86
  - algoliasearch.gemspec
88
87
  - contacts.json
89
88
  - lib/algolia/client.rb
90
89
  - lib/algolia/error.rb
91
90
  - lib/algolia/index.rb
92
91
  - lib/algolia/protocol.rb
92
+ - lib/algolia/version.rb
93
93
  - lib/algoliasearch.rb
94
94
  - spec/client_spec.rb
95
95
  - spec/spec_helper.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.1.4