twingly-search 5.1.0 → 5.1.1

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
  SHA1:
3
- metadata.gz: 3c9c84cb7c69272bfd499b2901f475082d4dc251
4
- data.tar.gz: d51285306f3bc40452016e81bee6a6b22f783c59
3
+ metadata.gz: 60adc47513e35c4778e60e15ba44d38b4c2f229e
4
+ data.tar.gz: 98023f64eab7ceb86066f3d06de920d9ebdb113d
5
5
  SHA512:
6
- metadata.gz: 407a46a73b5bff7aed5277240f45bf7be611cafc2b64b8b9a22de2b019be3f3cd49d1da236c4ecdd5a6a221e0a82e54482ba60c40ca4babae33f0e6e0f93b389
7
- data.tar.gz: 7f64f9eec9386722f72f13701f473d687680016f2bf303be68007a30b116872b61e8790ed6a43c8ff3ba7702edc81baecf31f6b0c7cd4850bf07070da439796b
6
+ metadata.gz: 80a9a299d9be055afb7acd3b96ab71b5abd140b0ea0e7764d48f39979ee45619218b13f5a3941a33b92abf4d4b611351703f81451537986d70cc54c7a063aabf
7
+ data.tar.gz: b33ba8f7f5075ef854bfd0dbea4c586b15ee2c4df8e5775ad196b6802ab827e7d2737fb6bc43e064da3912ba4a8f4a8e505a93f3d7c3b738333ec4bdb466713b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Change Log
2
2
 
3
+ ## [v5.1.0](https://github.com/twingly/twingly-search-api-ruby/tree/v5.1.0) (2017-05-09)
4
+ [Full Changelog](https://github.com/twingly/twingly-search-api-ruby/compare/v5.0.1...v5.1.0)
5
+
6
+ **Fixed bugs:**
7
+
8
+ - Ruby 1.9.3 and Ruby 2.0.0 can't use nokogiri \>= 1.7.0 \(build failures\) [\#61](https://github.com/twingly/twingly-search-api-ruby/issues/61)
9
+ - rack-2.0.1 requires ruby version \>= 2.2.2, which is incompatible with the current version [\#58](https://github.com/twingly/twingly-search-api-ruby/issues/58)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Update Search client to Search API v3 [\#65](https://github.com/twingly/twingly-search-api-ruby/pull/65) ([roback](https://github.com/roback))
14
+ - Add LiveFeed v5 client [\#64](https://github.com/twingly/twingly-search-api-ruby/pull/64) ([roback](https://github.com/roback))
15
+ - Drop support for old Ruby versions \(1.9.3 and 2.0.0\) [\#62](https://github.com/twingly/twingly-search-api-ruby/pull/62) ([dentarg](https://github.com/dentarg))
16
+ - Add support for post outlinks [\#60](https://github.com/twingly/twingly-search-api-ruby/pull/60) ([dentarg](https://github.com/dentarg))
17
+ - Use any rake 11 version [\#59](https://github.com/twingly/twingly-search-api-ruby/pull/59) ([dentarg](https://github.com/dentarg))
18
+
3
19
  ## [v5.0.1](https://github.com/twingly/twingly-search-api-ruby/tree/v5.0.1) (2016-03-03)
4
20
  [Full Changelog](https://github.com/twingly/twingly-search-api-ruby/compare/v5.0.0...v5.0.1)
5
21
 
@@ -130,7 +130,7 @@ module Twingly
130
130
  end
131
131
 
132
132
  def format_timestamp_for_query(timestamp)
133
- timestamp.to_time.utc.strftime("%FT%T")
133
+ timestamp.to_time.utc.iso8601
134
134
  end
135
135
  end
136
136
  end
@@ -1,5 +1,5 @@
1
1
  module Twingly
2
2
  module Search
3
- VERSION = "5.1.0"
3
+ VERSION = "5.1.1"
4
4
  end
5
5
  end
data/spec/query_spec.rb CHANGED
@@ -91,7 +91,7 @@ describe Query do
91
91
  let(:time) { Time.parse(timestamp) }
92
92
 
93
93
  it "should not change timezone" do
94
- expect(subject.request_parameters.fetch(:q)).to include("2016-02-09T09:01:22")
94
+ expect(subject.request_parameters.fetch(:q)).to include("2016-02-09T09:01:22Z")
95
95
  end
96
96
 
97
97
  it "should not modify the given time object" do
@@ -117,7 +117,7 @@ describe Query do
117
117
  let(:time) { Time.parse(timestamp) }
118
118
 
119
119
  it "should convert to UTC" do
120
- expect(subject.request_parameters.fetch(:q)).to include("2016-02-09T04:01:22")
120
+ expect(subject.request_parameters.fetch(:q)).to include("2016-02-09T04:01:22Z")
121
121
  end
122
122
 
123
123
  it "should not modify the given time object" do
@@ -158,7 +158,7 @@ describe Query do
158
158
  let(:time) { Time.parse(timestamp) }
159
159
 
160
160
  it "should not change timezone" do
161
- expect(subject.request_parameters.fetch(:q)).to include("end-date:2016-02-09T09:01:22")
161
+ expect(subject.request_parameters.fetch(:q)).to include("end-date:2016-02-09T09:01:22Z")
162
162
  end
163
163
 
164
164
  it "should not modify the given time object" do
@@ -184,7 +184,7 @@ describe Query do
184
184
  let(:time) { Time.parse(timestamp) }
185
185
 
186
186
  it "should convert to UTC" do
187
- expect(subject.request_parameters.fetch(:q)).to include("end-date:2016-02-09T04:01:22")
187
+ expect(subject.request_parameters.fetch(:q)).to include("end-date:2016-02-09T04:01:22Z")
188
188
  end
189
189
 
190
190
  it "should not modify the given time object" do
@@ -221,7 +221,7 @@ describe Query do
221
221
 
222
222
  it "should encode url paramters" do
223
223
  subject.end_time = Time.parse("2013-12-28 09:01:22 UTC")
224
- expect(subject.url_parameters).to include('end-date%3A2013-12-28T09%3A01%3A22')
224
+ expect(subject.url_parameters).to include('end-date%3A2013-12-28T09%3A01%3A22Z')
225
225
  end
226
226
  end
227
227
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twingly-search
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twingly AB
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-09 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday