flex 0.2.0 → 0.2.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -17,7 +17,7 @@ module Flex
17
17
  if source.nil? || source != /\n/
18
18
  paths = [ "#{Configuration.flex_dir}/#{source}.yml",
19
19
  "#{Configuration.flex_dir}/#{ModelManager.class_name_to_type(host_class.name)}.yml",
20
- source ]
20
+ source.to_s ]
21
21
  source = paths.find {|p| File.exist?(p)}
22
22
  end
23
23
  raise ArgumentError, "expected a string (got #{source.inspect})." \
@@ -12,7 +12,7 @@ module Flex
12
12
  response = ::RestClient::Request.new( args ).execute
13
13
  extend_response(response, url)
14
14
 
15
- rescue ::RestClient::ExceptionWithResponse, ::RestClient::RequestFailed => e
15
+ rescue ::RestClient::ExceptionWithResponse => e
16
16
  extend_response(e.response, url)
17
17
  end
18
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-07 00:00:00.000000000 Z
12
+ date: 2012-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json