torquebox_faker 0.0.2

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/Gemfile ADDED
@@ -0,0 +1 @@
1
+ source "http://rubygems.org"
data/README ADDED
@@ -0,0 +1,23 @@
1
+ === torquebox_faker ===
2
+
3
+ The sole porpouse of this gem is to fake torquebox so you can run your torquebox apps using MRI in your dev/test environment.
4
+
5
+ I did it because unfortunetly, as today, JRuby is too slow for loading Rails 2.3 apps. It takes 20-25 seconds to load (aka. require config/environment) a Rails app in my machine (MBP i5)... 20-25 seconds added to my test suits :(
6
+
7
+ With this gem, I can use jruby for my production environment (and use all the JBoss's power) and MRI for dev/test environment (making my test suite run 20-25 seconds faster).
8
+
9
+ I recommend using bundler in this manner:
10
+
11
+ == recommended Gemfile ==
12
+
13
+ group :development, :test do
14
+ gem "torquebox_faker", :platform => :ruby
15
+ end
16
+
17
+ group :production do
18
+ gem 'torquebox', :platform => :jruby
19
+ end
20
+
21
+ == Support features ==
22
+
23
+ As today, this gem only supports the Task feature from torquebox. It also loads all your tasks at /app/tasks folder.
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,11 @@
1
+ module TorqueBox
2
+ module Messaging
3
+ class Task
4
+ def self.async(method_name, params = Hash.new)
5
+ Thread.new {
6
+ self.new.send(method_name, params)
7
+ }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ require "torquebox_faker/version"
2
+ require "task.rb"
3
+
4
+ puts "***************** Arquivos: " + Dir[File.expand_path(File.join(Rails.root, 'app', 'tasks', '**','*.rb'))].to_s + " *************"
5
+
6
+ Dir[File.expand_path(File.join(Rails.root, 'app', 'tasks', '**','*.rb'))].each {|f| require f}
7
+
8
+ module TorqueboxFaker
9
+
10
+ end
@@ -0,0 +1,3 @@
1
+ module TorqueboxFaker
2
+ VERSION = "0.0.2"
3
+ end
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: torquebox_faker
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 2
10
+ version: 0.0.2
11
+ platform: ruby
12
+ authors:
13
+ - razenha
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-07-03 00:00:00 Z
19
+ dependencies: []
20
+
21
+ description: Fake torquebox features in a MRI dev/test env. DO NOT USE WITH JRUBY OR IN PRODUCTION!
22
+ email:
23
+ - rubem.azenha@gmail.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - lib/task.rb
32
+ - lib/torquebox_faker/version.rb
33
+ - lib/torquebox_faker.rb
34
+ - Gemfile
35
+ - Rakefile
36
+ - README
37
+ homepage: ""
38
+ licenses: []
39
+
40
+ post_install_message:
41
+ rdoc_options: []
42
+
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ hash: 3
51
+ segments:
52
+ - 0
53
+ version: "0"
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ requirements: []
64
+
65
+ rubyforge_project: torquebox_faker
66
+ rubygems_version: 1.8.5
67
+ signing_key:
68
+ specification_version: 3
69
+ summary: Fake torquebox features in a MRI dev/test env
70
+ test_files: []
71
+