webmate 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -30,9 +30,10 @@ Gemfile
30
30
 
31
31
  gem 'webmate'
32
32
  gem 'slim'
33
- gem 'sass', group: assets
33
+ gem 'sass'
34
34
  gem 'rake'
35
35
  gem 'webmate-sprockets'
36
+ gem 'webmate-client'
36
37
 
37
38
  config.ru
38
39
 
@@ -42,7 +43,7 @@ config.ru
42
43
  run Sinatra::Sprockets.environment
43
44
  end
44
45
  end
45
- run ExampleApp
46
+ run Webmate::Application
46
47
 
47
48
  config/config.rb
48
49
 
@@ -63,30 +64,17 @@ config/config.rb
63
64
  config.websockets.port = 3503
64
65
  end
65
66
 
66
- config/application.rb
67
-
68
- require 'digest/sha1'
69
- require 'base64'
70
-
71
- class ExampleApp < Webmate::Application
72
- # do other things)
73
- end
74
-
75
67
  config/environment.rb
76
68
 
77
69
  WEBMATE_ROOT = File.expand_path('.')
78
70
  require 'webmate'
79
71
 
80
- Dir[File.join(WEBMATE_ROOT, 'app', 'routes', '**', '*.rb')].each do |file|
81
- require file
82
- end
83
-
84
72
  ### Hello world
85
73
 
86
74
  #### 1. Adding routes
87
75
 
88
76
  # app/routes/homepage_routes.rb
89
- ExampleApp.define_routes do
77
+ Webmate::Application.define_routes do
90
78
  get '/', to: 'pages#index', transport: [:http]
91
79
  end
92
80
 
@@ -130,7 +118,7 @@ config/environment.rb
130
118
  - localhost:27017
131
119
 
132
120
  # config/initializers/mongoid.rb
133
- Mongoid.load!(File.join(WEBMATE_ROOT, 'config', 'mongoid.yml'))
121
+ Mongoid.load!(File.join(Webmate.root, 'config', 'mongoid.yml'))
134
122
 
135
123
  #### 4. Models
136
124
 
data/lib/webmate.rb CHANGED
@@ -70,11 +70,6 @@ Dir[ File.join( Webmate.root, 'app', 'observers', '**', '*.rb')].each do |file|
70
70
  require file
71
71
  end
72
72
 
73
- # include routes
74
- Dir[ File.join( Webmate.root, 'app', 'routes', '**', '*.rb')].each do |file|
75
- require file
76
- end
77
-
78
73
  class Webmate::Application
79
74
  #register Webmate::RouteHelpers::Channels
80
75
  register Sinatra::Reloader
@@ -1,5 +1,8 @@
1
1
  Webmate::Application.configure do |config|
2
- config.app.load_paths = ["app/responders", "app/models", "app/services", "app/observers", "app/decorators"]
2
+ config.app.load_paths = [
3
+ "app/responders", "app/models", "app/services",
4
+ "app/observers", "app/decorators", "app/routes"
5
+ ]
3
6
  config.app.cache_classes = false
4
7
 
5
8
  config.app.name = 'webmate'
@@ -1,3 +1,3 @@
1
1
  module Webmate
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
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: 2013-07-08 00:00:00.000000000 Z
12
+ date: 2013-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thin
@@ -253,7 +253,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
253
253
  version: '0'
254
254
  segments:
255
255
  - 0
256
- hash: 4389437756586890718
256
+ hash: 2410033587434335146
257
257
  required_rubygems_version: !ruby/object:Gem::Requirement
258
258
  none: false
259
259
  requirements:
@@ -262,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
262
262
  version: '0'
263
263
  segments:
264
264
  - 0
265
- hash: 4389437756586890718
265
+ hash: 2410033587434335146
266
266
  requirements: []
267
267
  rubyforge_project:
268
268
  rubygems_version: 1.8.25