caseblocks_api 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/caseblocks_api.gemspec +1 -1
- data/lib/caseblocks_api.rb +7 -7
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.6
|
data/caseblocks_api.gemspec
CHANGED
data/lib/caseblocks_api.rb
CHANGED
@@ -35,21 +35,21 @@ module CaseblocksAPI
|
|
35
35
|
private
|
36
36
|
|
37
37
|
def fetch_case_type_id(case_type_name)
|
38
|
-
|
38
|
+
case_type || find_case_type_by_name(case_type_name)
|
39
39
|
end
|
40
40
|
|
41
41
|
def find_case_type_by_name(case_type_name)
|
42
|
-
|
43
|
-
|
42
|
+
case_types = self.class.get("/case_blocks/case_types")["case_types"]
|
43
|
+
case_types.each do |case_type|
|
44
44
|
if case_type["name"] == case_type_name
|
45
|
-
|
45
|
+
@case_type = case_type["id"]
|
46
46
|
end
|
47
47
|
end
|
48
|
-
|
48
|
+
@case_type
|
49
49
|
end
|
50
50
|
|
51
|
-
def
|
52
|
-
@
|
51
|
+
def case_type
|
52
|
+
@case_type
|
53
53
|
end
|
54
54
|
|
55
55
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caseblocks_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -215,7 +215,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
215
215
|
version: '0'
|
216
216
|
segments:
|
217
217
|
- 0
|
218
|
-
hash: -
|
218
|
+
hash: -1391248459656405888
|
219
219
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
220
220
|
none: false
|
221
221
|
requirements:
|