streamio 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.3 2012-12-03
2
+
3
+ * Fix ruby 1.8 compatability by avoiding use of define_singleton_method.
4
+
1
5
  # 1.0.2 2012-11-26
2
6
 
3
7
  * Replaced httpclient with net/http + multipart-post to avoid timeouts on file posting.
@@ -59,11 +59,13 @@ module Streamio
59
59
  end
60
60
 
61
61
  def resource_name(name)
62
- define_singleton_method(:resource) do
63
- Resource.new(name)
64
- end
62
+ @resource_name = name
65
63
  end
66
64
 
65
+ def resource
66
+ Resource.new(@resource_name)
67
+ end
68
+
67
69
  def creatable_attributes(attributes = nil)
68
70
  return @creatable_attributes ||= [] if attributes.nil?
69
71
 
@@ -1,3 +1,3 @@
1
1
  module Streamio
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: streamio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
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-11-26 00:00:00.000000000 Z
12
+ date: 2012-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  segments:
145
145
  - 0
146
- hash: -3529804903575399490
146
+ hash: -2432446855761254527
147
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  none: false
149
149
  requirements:
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  segments:
154
154
  - 0
155
- hash: -3529804903575399490
155
+ hash: -2432446855761254527
156
156
  requirements: []
157
157
  rubyforge_project:
158
158
  rubygems_version: 1.8.24