rest-more 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES
2
2
 
3
+ ## rest-more 1.0.1 -- 2012-05-14
4
+
5
+ * [RailsUtilUtil] Fix for DalliStore
6
+
3
7
  ## rest-more 1.0.0 -- 2012-03-17
4
8
 
5
9
  ### Enhancement
data/README.md CHANGED
@@ -217,6 +217,12 @@ To be added. But you can take a look at the [Facebook tutorial][] first.
217
217
 
218
218
  [Facebook tutorial]: https://github.com/cardinalblue/rest-more/blob/master/doc/tutorial/facebook.md
219
219
 
220
+ ## EventMachine inside Rainbows!
221
+
222
+ To be added. But you can take a look at the [Rainbows configuration][] first.
223
+
224
+ [Rainbows configuration]: https://github.com/cardinalblue/rest-more/blob/master/example/rainbows.rb
225
+
220
226
  ## A simple interactive shell with [rib][]:
221
227
 
222
228
  You need to install [rib][] in order to try this interactive shell:
data/example/rainbows.rb CHANGED
@@ -12,7 +12,7 @@ Rainbows! do
12
12
  client_header_buffer_size 8*1024 # 8 kilobytes
13
13
  end
14
14
 
15
- require 'rest-core'
15
+ require 'rest-more'
16
16
  ::RC::Builder.default_app = ::RC::Auto
17
17
 
18
18
  class RainbowsEventMachineFiberClient < Rainbows::EventMachine::Client
@@ -21,20 +21,6 @@ class RainbowsEventMachineFiberClient < Rainbows::EventMachine::Client
21
21
  end
22
22
  end
23
23
 
24
- # monkey patch eventmachine to ignore errors and report them,
25
- # instead of crashing!!
26
- module ::EventMachine
27
- class << self
28
- alias_method :crashing_stop, :stop
29
- end
30
-
31
- def self.stop
32
- if @wrapped_exception
33
- $stderr.puts("WARN: #{@wrapped_exception.inspect}: " \
34
- "#{@wrapped_exception.backtrace.inspect}")
35
- @wrapped_exception = nil
36
- else
37
- crashing_stop
38
- end
39
- end
40
- end
24
+ EM.error_handler{ |e|
25
+ puts "Error: EM.error_handler: #{e.inspect} #{e.backtrace.inspect}"
26
+ }
@@ -124,3 +124,7 @@ module RestCore::RailsUtilUtil
124
124
  end
125
125
 
126
126
  ActiveSupport::Cache::Store.send(:include, RestCore::RailsUtilUtil::Cache)
127
+ if ActiveSupport::Cache.const_defined?(:DalliStore)
128
+ ActiveSupport::Cache::DalliStore.
129
+ send(:include, RestCore::RailsUtilUtil::Cache)
130
+ end
@@ -1,4 +1,4 @@
1
1
 
2
2
  module RestMore
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
data/rest-more.gemspec CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rest-more"
5
- s.version = "1.0.0"
5
+ s.version = "1.0.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [
9
9
  "Cardinal Blue",
10
10
  "Lin Jen-Shin (godfat)"]
11
- s.date = "2012-03-17"
11
+ s.date = "2012-05-14"
12
12
  s.description = "Various REST clients such as Facebook and Twitter built with [rest-core][]\n\n[rest-core]: https://github.com/cardinalblue/rest-core"
13
13
  s.email = ["dev (XD) cardinalblue.com"]
14
14
  s.executables = ["rib-rest-core"]
@@ -118,7 +118,7 @@ Gem::Specification.new do |s|
118
118
  "test/twitter/test_api.rb"]
119
119
  s.homepage = "https://github.com/cardinalblue/rest-more"
120
120
  s.require_paths = ["lib"]
121
- s.rubygems_version = "1.8.19"
121
+ s.rubygems_version = "1.8.24"
122
122
  s.summary = "Various REST clients such as Facebook and Twitter built with [rest-core][]"
123
123
  s.test_files = [
124
124
  "test/bing/test_api.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-more
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-17 00:00:00.000000000 Z
13
+ date: 2012-05-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-core
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  requirements: []
164
164
  rubyforge_project:
165
- rubygems_version: 1.8.19
165
+ rubygems_version: 1.8.24
166
166
  signing_key:
167
167
  specification_version: 3
168
168
  summary: Various REST clients such as Facebook and Twitter built with [rest-core][]