hungry 0.1.0 → 0.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.
@@ -7,44 +7,44 @@ describe Hungry::Util do
7
7
  expect(hash).to include 'q' => 'ruby', 'lang' => 'en'
8
8
  end
9
9
  end
10
-
10
+
11
11
  describe '#uri_with_params' do
12
12
  it 'returns a clean URL if there no hash is given' do
13
13
  url = Hungry::Util.uri_with_params('http://www.google.com/')
14
14
  expect(url).to eql 'http://www.google.com/'
15
15
  end
16
-
16
+
17
17
  it 'returns an URL with params representing the given hash' do
18
18
  url = Hungry::Util.uri_with_params('http://www.google.com/search', 'q' => 'ruby', 'lang' => 'en')
19
19
  expect(url).to eql 'http://www.google.com/search?q=ruby&lang=en'
20
20
  end
21
21
  end
22
-
22
+
23
23
  describe '#is_numeric?' do
24
24
  it 'returns true for integers' do
25
25
  expect(Hungry::Util.is_numeric?(100)).to be true
26
26
  end
27
-
27
+
28
28
  it 'returns true for floats' do
29
29
  expect(Hungry::Util.is_numeric?(10.0)).to be true
30
30
  end
31
-
31
+
32
32
  it 'returns true for integers in strings' do
33
33
  expect(Hungry::Util.is_numeric?('100')).to be true
34
34
  end
35
-
35
+
36
36
  it 'returns true for floats in strings' do
37
37
  expect(Hungry::Util.is_numeric?('10.0')).to be true
38
38
  end
39
-
39
+
40
40
  it 'returns true for negative integers in strings' do
41
41
  expect(Hungry::Util.is_numeric?('-100')).to be true
42
42
  end
43
-
43
+
44
44
  it 'returns true for negative floats in strings' do
45
45
  expect(Hungry::Util.is_numeric?('-10.0')).to be true
46
46
  end
47
-
47
+
48
48
  it 'returns false for non numeric values' do
49
49
  expect(Hungry::Util.is_numeric?('abc')).to be false
50
50
  expect(Hungry::Util.is_numeric?('1a3')).to be false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hungry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom-Eric Gerritsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-29 00:00:00.000000000 Z
11
+ date: 2020-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -84,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubyforge_project:
88
- rubygems_version: 2.5.1
87
+ rubygems_version: 3.0.6
89
88
  signing_key:
90
89
  specification_version: 4
91
90
  summary: An interface to the Eet.nu API.