cloudfuji 0.0.42 → 0.0.43

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,9 +11,14 @@ module Cloudfuji
11
11
  # Returns an array of the unique instance methods defined
12
12
  # for all observers, except #catch_all
13
13
  def observed_events
14
- @@observers.map {|observer|
15
- observer.class.instance_methods - Cloudfuji::EventObserver.instance_methods
16
- }.flatten.uniq - [:catch_all]
14
+ if Cloudfuji::Platform.on_cloudfuji?
15
+ @@observers.map {|observer|
16
+ observer.class.instance_methods - Cloudfuji::EventObserver.instance_methods
17
+ }.flatten.uniq - [:catch_all]
18
+ else
19
+ # Return some dummy events if in development
20
+ %w(dummy_event app_claimed app_destroyed user_added email_opened).map(&:to_sym)
21
+ end
17
22
  end
18
23
 
19
24
  def fire(data, event)
@@ -1,7 +1,7 @@
1
1
  module Cloudfuji
2
2
  module UserHelper
3
- def notify(title, body, category)
4
- Cloudfuji::User.notify(self.ido_id, title, body, "chat")
3
+ def notify(title, body, category = "chat")
4
+ Cloudfuji::User.notify(self.ido_id, title, body, category)
5
5
  end
6
6
  end
7
7
  end
@@ -1,4 +1,4 @@
1
1
  module Cloudfuji
2
2
  # Current version of the Cloudfuji gem
3
- VERSION = "0.0.42"
3
+ VERSION = "0.0.43"
4
4
  end
metadata CHANGED
@@ -1,74 +1,91 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cloudfuji
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.43
4
5
  prerelease:
5
- version: 0.0.42
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Sean Grove
9
9
  - Kev Zettler
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2012-05-17 00:00:00 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
13
+ date: 2012-05-28 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
17
16
  name: rest-client
18
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
19
18
  none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
23
22
  version: 1.6.1
24
23
  type: :runtime
25
24
  prerelease: false
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 1.6.1
31
+ - !ruby/object:Gem::Dependency
28
32
  name: json
29
- requirement: &id002 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
30
34
  none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
34
38
  version: 1.4.6
35
39
  type: :runtime
36
40
  prerelease: false
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: 1.4.6
47
+ - !ruby/object:Gem::Dependency
39
48
  name: highline
40
- requirement: &id003 !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
41
50
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
45
54
  version: 1.6.1
46
55
  type: :runtime
47
56
  prerelease: false
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: 1.6.1
63
+ - !ruby/object:Gem::Dependency
50
64
  name: orm_adapter
51
- requirement: &id004 !ruby/object:Gem::Requirement
65
+ requirement: !ruby/object:Gem::Requirement
52
66
  none: false
53
- requirements:
67
+ requirements:
54
68
  - - ~>
55
- - !ruby/object:Gem::Version
69
+ - !ruby/object:Gem::Version
56
70
  version: 0.0.3
57
71
  type: :runtime
58
72
  prerelease: false
59
- version_requirements: *id004
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: 0.0.3
60
79
  description: A module for integrating the Cloudfuji platform into a ruby app
61
- email:
80
+ email:
62
81
  - support@cloudfuji.com
63
82
  - s@bushi.do
64
83
  - k@bushi.do
65
- executables:
84
+ executables:
66
85
  - cloudfuji
67
86
  extensions: []
68
-
69
87
  extra_rdoc_files: []
70
-
71
- files:
88
+ files:
72
89
  - .gitignore
73
90
  - .rspec
74
91
  - Gemfile
@@ -240,148 +257,32 @@ files:
240
257
  - test_app/spec/views/home.html.erb_spec.rb
241
258
  homepage: https://github.com/cloudfuji/cloudfuji_client
242
259
  licenses: []
243
-
244
260
  post_install_message:
245
261
  rdoc_options: []
246
-
247
- require_paths:
262
+ require_paths:
248
263
  - lib
249
- required_ruby_version: !ruby/object:Gem::Requirement
264
+ required_ruby_version: !ruby/object:Gem::Requirement
250
265
  none: false
251
- requirements:
252
- - - ">="
253
- - !ruby/object:Gem::Version
254
- hash: 4040377203528950463
255
- segments:
266
+ requirements:
267
+ - - ! '>='
268
+ - !ruby/object:Gem::Version
269
+ version: '0'
270
+ segments:
256
271
  - 0
257
- version: "0"
258
- required_rubygems_version: !ruby/object:Gem::Requirement
272
+ hash: -3993018565100804292
273
+ required_rubygems_version: !ruby/object:Gem::Requirement
259
274
  none: false
260
- requirements:
261
- - - ">="
262
- - !ruby/object:Gem::Version
263
- hash: 4040377203528950463
264
- segments:
275
+ requirements:
276
+ - - ! '>='
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
279
+ segments:
265
280
  - 0
266
- version: "0"
281
+ hash: -3993018565100804292
267
282
  requirements: []
268
-
269
283
  rubyforge_project: cloudfuji
270
- rubygems_version: 1.8.17
284
+ rubygems_version: 1.8.24
271
285
  signing_key:
272
286
  specification_version: 3
273
287
  summary: Cloudfuji integration
274
- test_files:
275
- - spec/app_spec/controllers/envs_controller_spec.rb
276
- - spec/app_spec/controllers/mail_controller_spec.rb
277
- - spec/app_spec/integration/app_claim_spec.rb
278
- - spec/gem_spec/base_spec.rb
279
- - spec/gem_spec/command_spec.rb
280
- - spec/gem_spec/config_spec.rb
281
- - spec/gem_spec/data_spec.rb
282
- - spec/gem_spec/hooks_spec.rb
283
- - spec/gem_spec/mail_route_spec.rb
284
- - spec/gem_spec/platform_spec.rb
285
- - spec/gem_spec/user_spec.rb
286
- - spec/spec_helper.rb
287
- - spec/test_apps/rails-2.3/.gitignore
288
- - spec/test_apps/rails-2.3/Gemfile
289
- - spec/test_apps/rails-2.3/README
290
- - spec/test_apps/rails-2.3/Rakefile
291
- - spec/test_apps/rails-2.3/app/controllers/application_controller.rb
292
- - spec/test_apps/rails-2.3/app/helpers/application_helper.rb
293
- - spec/test_apps/rails-2.3/config/boot.rb
294
- - spec/test_apps/rails-2.3/config/environment.rb
295
- - spec/test_apps/rails-2.3/config/environments/development.rb
296
- - spec/test_apps/rails-2.3/config/environments/production.rb
297
- - spec/test_apps/rails-2.3/config/environments/test.rb
298
- - spec/test_apps/rails-2.3/config/initializers/backtrace_silencers.rb
299
- - spec/test_apps/rails-2.3/config/initializers/cookie_verification_secret.rb
300
- - spec/test_apps/rails-2.3/config/initializers/inflections.rb
301
- - spec/test_apps/rails-2.3/config/initializers/mime_types.rb
302
- - spec/test_apps/rails-2.3/config/initializers/new_rails_defaults.rb
303
- - spec/test_apps/rails-2.3/config/initializers/session_store.rb
304
- - spec/test_apps/rails-2.3/config/locales/en.yml
305
- - spec/test_apps/rails-2.3/config/routes.rb
306
- - spec/test_apps/rails-2.3/db/seeds.rb
307
- - spec/test_apps/rails-2.3/doc/README_FOR_APP
308
- - spec/test_apps/rails-2.3/lib/tasks/rspec.rake
309
- - spec/test_apps/rails-2.3/public/404.html
310
- - spec/test_apps/rails-2.3/public/422.html
311
- - spec/test_apps/rails-2.3/public/500.html
312
- - spec/test_apps/rails-2.3/public/favicon.ico
313
- - spec/test_apps/rails-2.3/public/images/rails.png
314
- - spec/test_apps/rails-2.3/public/javascripts/application.js
315
- - spec/test_apps/rails-2.3/public/javascripts/controls.js
316
- - spec/test_apps/rails-2.3/public/javascripts/dragdrop.js
317
- - spec/test_apps/rails-2.3/public/javascripts/effects.js
318
- - spec/test_apps/rails-2.3/public/javascripts/prototype.js
319
- - spec/test_apps/rails-2.3/public/robots.txt
320
- - spec/test_apps/rails-2.3/script/about
321
- - spec/test_apps/rails-2.3/script/autospec
322
- - spec/test_apps/rails-2.3/script/console
323
- - spec/test_apps/rails-2.3/script/dbconsole
324
- - spec/test_apps/rails-2.3/script/destroy
325
- - spec/test_apps/rails-2.3/script/generate
326
- - spec/test_apps/rails-2.3/script/performance/benchmarker
327
- - spec/test_apps/rails-2.3/script/performance/profiler
328
- - spec/test_apps/rails-2.3/script/plugin
329
- - spec/test_apps/rails-2.3/script/runner
330
- - spec/test_apps/rails-2.3/script/server
331
- - spec/test_apps/rails-2.3/script/spec
332
- - spec/test_apps/rails-2.3/spec/all_spec.rb
333
- - spec/test_apps/rails-2.3/spec/rcov.opts
334
- - spec/test_apps/rails-2.3/spec/spec.opts
335
- - spec/test_apps/rails-2.3/spec/spec_helper.rb
336
- - spec/test_apps/rails-2.3/test/performance/browsing_test.rb
337
- - spec/test_apps/rails-2.3/test/test_helper.rb
338
- - spec/test_apps/rails-3.0/.gitignore
339
- - spec/test_apps/rails-3.0/.rspec
340
- - spec/test_apps/rails-3.0/Gemfile
341
- - spec/test_apps/rails-3.0/README
342
- - spec/test_apps/rails-3.0/Rakefile
343
- - spec/test_apps/rails-3.0/app/controllers/application_controller.rb
344
- - spec/test_apps/rails-3.0/app/controllers/static_controller.rb
345
- - spec/test_apps/rails-3.0/app/helpers/application_helper.rb
346
- - spec/test_apps/rails-3.0/app/helpers/static_helper.rb
347
- - spec/test_apps/rails-3.0/app/views/layouts/application.html.erb
348
- - spec/test_apps/rails-3.0/app/views/static/home.html.erb
349
- - spec/test_apps/rails-3.0/config.ru
350
- - spec/test_apps/rails-3.0/config/application.rb
351
- - spec/test_apps/rails-3.0/config/boot.rb
352
- - spec/test_apps/rails-3.0/config/environment.rb
353
- - spec/test_apps/rails-3.0/config/environments/development.rb
354
- - spec/test_apps/rails-3.0/config/environments/production.rb
355
- - spec/test_apps/rails-3.0/config/environments/test.rb
356
- - spec/test_apps/rails-3.0/config/initializers/backtrace_silencers.rb
357
- - spec/test_apps/rails-3.0/config/initializers/inflections.rb
358
- - spec/test_apps/rails-3.0/config/initializers/mime_types.rb
359
- - spec/test_apps/rails-3.0/config/initializers/secret_token.rb
360
- - spec/test_apps/rails-3.0/config/initializers/session_store.rb
361
- - spec/test_apps/rails-3.0/config/locales/en.yml
362
- - spec/test_apps/rails-3.0/config/routes.rb
363
- - spec/test_apps/rails-3.0/db/schema.rb
364
- - spec/test_apps/rails-3.0/db/seeds.rb
365
- - spec/test_apps/rails-3.0/doc/README_FOR_APP
366
- - spec/test_apps/rails-3.0/lib/tasks/.gitkeep
367
- - spec/test_apps/rails-3.0/public/404.html
368
- - spec/test_apps/rails-3.0/public/422.html
369
- - spec/test_apps/rails-3.0/public/500.html
370
- - spec/test_apps/rails-3.0/public/favicon.ico
371
- - spec/test_apps/rails-3.0/public/images/rails.png
372
- - spec/test_apps/rails-3.0/public/index.html
373
- - spec/test_apps/rails-3.0/public/javascripts/application.js
374
- - spec/test_apps/rails-3.0/public/javascripts/controls.js
375
- - spec/test_apps/rails-3.0/public/javascripts/dragdrop.js
376
- - spec/test_apps/rails-3.0/public/javascripts/effects.js
377
- - spec/test_apps/rails-3.0/public/javascripts/prototype.js
378
- - spec/test_apps/rails-3.0/public/javascripts/rails.js
379
- - spec/test_apps/rails-3.0/public/robots.txt
380
- - spec/test_apps/rails-3.0/public/stylesheets/.gitkeep
381
- - spec/test_apps/rails-3.0/script/rails
382
- - spec/test_apps/rails-3.0/spec/all_spec.rb
383
- - spec/test_apps/rails-3.0/spec/spec_helper.rb
384
- - spec/test_apps/rails-3.0/test/performance/browsing_test.rb
385
- - spec/test_apps/rails-3.0/test/test_helper.rb
386
- - spec/test_apps/rails-3.0/vendor/plugins/.gitkeep
387
- - test_app/spec/views/home.html.erb_spec.rb
288
+ test_files: []