twingly-search 5.1.2 → 5.1.3
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/twingly/search/query.rb +1 -1
- data/lib/twingly/search/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/search_for_spotify_on_sv_blogs.yml +1301 -565
- data/spec/query_spec.rb +6 -6
- metadata +2 -3
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:
|
94
|
+
expect(subject.request_parameters.fetch(:q)).to include("2016-02-09T09:01:22")
|
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:
|
120
|
+
expect(subject.request_parameters.fetch(:q)).to include("2016-02-09T04:01:22")
|
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:
|
161
|
+
expect(subject.request_parameters.fetch(:q)).to include("end-date:2016-02-09T09:01:22")
|
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:
|
187
|
+
expect(subject.request_parameters.fetch(:q)).to include("end-date:2016-02-09T04:01:22")
|
188
188
|
end
|
189
189
|
|
190
190
|
it "should not modify the given time object" do
|
@@ -219,9 +219,9 @@ describe Query do
|
|
219
219
|
expect(subject.request_parameters.fetch(:q)).to include("lang:en")
|
220
220
|
end
|
221
221
|
|
222
|
-
it "should encode url
|
222
|
+
it "should encode url parameters" 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%
|
224
|
+
expect(subject.url_parameters).to include('end-date%3A2013-12-28T09%3A01%3A22')
|
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.
|
4
|
+
version: 5.1.3
|
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-
|
11
|
+
date: 2017-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -253,4 +253,3 @@ test_files:
|
|
253
253
|
- spec/result_spec.rb
|
254
254
|
- spec/spec_helper.rb
|
255
255
|
- spec/vcr_setup.rb
|
256
|
-
has_rdoc:
|