finapps_core 2.0.8 → 2.0.9
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/.travis.yml +5 -1
- data/Gemfile.lock +1 -1
- data/lib/finapps_core/rest/resources.rb +3 -2
- data/lib/finapps_core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c22285971977bec08d18d052a6c8a8c9f914728f
|
4
|
+
data.tar.gz: f09b7b16b0274301d1c45ba1d243c35b42b52499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2de23e7309b6c9cb88531fa35e51ae46d031d02a43eecd6e91edbac0774e5386500874b6e87d8f5e82e1ed7d525ca0165d0b5d4ecdcb704b96ac1ca42e2bcc3
|
7
|
+
data.tar.gz: e38782f084a51009b01fd0a1ef23b73842cb1f1600b079ed747e142e5257ad085595adf15f6f89278513d8355567a0300ce1297d04c102e14923115b0d69abc2
|
data/.travis.yml
CHANGED
@@ -3,7 +3,11 @@ cache: bundler
|
|
3
3
|
rvm:
|
4
4
|
- 2.3.1
|
5
5
|
before_install:
|
6
|
-
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
6
|
+
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
7
|
+
- gem update --system
|
8
|
+
- gem --version
|
9
|
+
- gem install bundler
|
10
|
+
- bundler --version
|
7
11
|
script:
|
8
12
|
- bundle exec rspec
|
9
13
|
notifications:
|
data/Gemfile.lock
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
module FinAppsCore
|
3
3
|
module REST
|
4
4
|
class Resources # :nodoc:
|
5
|
+
include FinAppsCore::Utils::Validatable
|
5
6
|
include FinAppsCore::Utils::ParameterFilter
|
6
7
|
require 'erb'
|
7
8
|
|
@@ -10,7 +11,7 @@ module FinAppsCore
|
|
10
11
|
# @param [FinAppsCore::REST::Client] client
|
11
12
|
# @return [FinAppsCore::REST::Resources]
|
12
13
|
def initialize(client)
|
13
|
-
|
14
|
+
not_blank(client, :client)
|
14
15
|
@client = client
|
15
16
|
end
|
16
17
|
|
@@ -36,7 +37,7 @@ module FinAppsCore
|
|
36
37
|
end
|
37
38
|
|
38
39
|
def request_without_body(path, method, id)
|
39
|
-
|
40
|
+
not_blank(id, :id) if path.nil?
|
40
41
|
path = "#{end_point}/:id".sub ':id', ERB::Util.url_encode(id) if path.nil?
|
41
42
|
request_with_body path, method, {}
|
42
43
|
end
|
data/lib/finapps_core/version.rb
CHANGED