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 CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "caseblocks_api"
8
- s.version = "0.2.5"
8
+ s.version = "0.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mark Provan"]
@@ -35,21 +35,21 @@ module CaseblocksAPI
35
35
  private
36
36
 
37
37
  def fetch_case_type_id(case_type_name)
38
- case_types[case_type_name] || find_case_type_by_name(case_type_name)
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
- @case_types = self.class.get("/case_blocks/case_types")["case_types"]
43
- @case_types.each do |case_type|
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
- return case_type["id"]
45
+ @case_type = case_type["id"]
46
46
  end
47
47
  end
48
- nil
48
+ @case_type
49
49
  end
50
50
 
51
- def case_types
52
- @case_types ||= {}
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.5
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: -3653200939008105340
218
+ hash: -1391248459656405888
219
219
  required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  none: false
221
221
  requirements: