ns-yapi 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/Gemfile.lock +5 -5
- data/lib/model/prices_url.rb +2 -2
- data/ns.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3c731624d3a9fa44155af28d67c79e33d71edf0
|
4
|
+
data.tar.gz: 978ef46eebd4e5534d2accc04e00ba503d3f7e72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3a42e0bf077b7339f6c1c90f406f510a9339635610f95d45177508d0605588c4886704fe8bb49382caf39fcdb2923f3b515b26d04fd498e519997f72ff28ba5
|
7
|
+
data.tar.gz: d67a634c048e109961929ba1368cddde850468c69f60e496c1fb4b3cb3ef9aa077785e39027d190c7d5be2195fb1e2ada0d6192491323e49178030300ed52c2e
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ns-yapi (0.4.
|
4
|
+
ns-yapi (0.4.4)
|
5
5
|
httpclient
|
6
6
|
nokogiri
|
7
7
|
nori
|
@@ -23,13 +23,13 @@ GEM
|
|
23
23
|
httpclient (2.3.3)
|
24
24
|
metaclass (0.0.1)
|
25
25
|
mime-types (1.23)
|
26
|
-
mini_portile (0.
|
26
|
+
mini_portile (0.6.2)
|
27
27
|
mocha (0.14.0)
|
28
28
|
metaclass (~> 0.0.1)
|
29
29
|
multi_json (1.7.7)
|
30
|
-
nokogiri (1.6.
|
31
|
-
mini_portile (~> 0.
|
32
|
-
nori (2.
|
30
|
+
nokogiri (1.6.6.2)
|
31
|
+
mini_portile (~> 0.6.0)
|
32
|
+
nori (2.4.0)
|
33
33
|
rake (10.0.3)
|
34
34
|
rest-client (1.6.7)
|
35
35
|
mime-types (>= 1.16)
|
data/lib/model/prices_url.rb
CHANGED
@@ -5,7 +5,7 @@ class PricesUrl
|
|
5
5
|
@url = url
|
6
6
|
end
|
7
7
|
|
8
|
-
def url (opts = {date: nil, from: "", to: ""
|
8
|
+
def url (opts = {date: nil, from: "", to: ""})
|
9
9
|
opts[:date] = opts[:date].strftime("%d%m%Y") if opts[:date]
|
10
10
|
uri = URI.escape(opts.collect{|k,v| "#{k}=#{v}"}.join('&'))
|
11
11
|
"#{@url}?#{uri}"
|
@@ -13,4 +13,4 @@ class PricesUrl
|
|
13
13
|
|
14
14
|
class InvalidURL < StandardError
|
15
15
|
end
|
16
|
-
end
|
16
|
+
end
|
data/ns.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "ns-yapi"
|
7
|
-
gem.version = '0.4.
|
7
|
+
gem.version = '0.4.4'
|
8
8
|
gem.authors = ["Stefan Hendriks", "Derek Kraan", "Bob Forma"]
|
9
9
|
gem.email = ["stefanhen83@gmail.com"]
|
10
10
|
gem.description = %q{Yet Another (Ruby) NS API client}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ns-yapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Hendriks
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httpclient
|