jegolize 0.1.3 → 0.1.6

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.6
data/jegolize.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jegolize}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alemeshet Alemu"]
12
- s.date = %q{2011-03-15}
12
+ s.date = %q{2011-03-16}
13
13
  s.description = %q{XMPP compatible reach chat organizer}
14
14
  s.email = %q{alemyis@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -30,6 +30,8 @@ Gem::Specification.new do |s|
30
30
  "config/initializers/jegol.rb",
31
31
  "config/jegol.yml",
32
32
  "jegolize.gemspec",
33
+ "lib/generators/jegolize/scaffold/USAGE",
34
+ "lib/generators/jegolize/scaffold/scaffold_generator.rb",
33
35
  "lib/jegolize.rb",
34
36
  "lib/ruby_bosh.rb",
35
37
  "public/javascripts/jegol.js",
@@ -0,0 +1,8 @@
1
+ Description:
2
+ TODO -
3
+
4
+ Usage:
5
+ TODO -
6
+
7
+ Examples:
8
+ TODO -
@@ -0,0 +1,43 @@
1
+ module Jegolize
2
+ module Generators
3
+ class ScaffoldGenerator < Rails::Generators::Base
4
+ source_root File.expand_path('../../../../../', __FILE__)
5
+
6
+ def copy_files
7
+
8
+ puts '====================================================='
9
+ puts "Coping: #{self.class.source_root} -->"
10
+ puts '-----------------------------------------------------'
11
+
12
+ # Copy views
13
+ filename_pattern = File.join self.class.source_root, "app/views/*.html.erb"
14
+ Dir.glob(filename_pattern).map {|f| File.basename f}.each do |f|
15
+ copy_file "#{self.class.source_root}/app/views/#{f}", "app/views/jegol/#{f}"
16
+ end
17
+
18
+ # Copy server side components - controller, config, init,
19
+ copy_file File.join(self.class.source_root, "app/controllers/jegol_controller.rb"), "app/controllers/jegol_controller.rb"
20
+ copy_file File.join(self.class.source_root, "config/initializers/jegol.rb"), "config/initializers/jegol.rb"
21
+ copy_file File.join(self.class.source_root, "config/jegol.yml"), "config/jegol.yml"
22
+ copy_file File.join(self.class.source_root, "lib/jegolize.rb"), "lib/jegolize.rb"
23
+ copy_file File.join(self.class.source_root, "lib/ruby_bosh.rb"), "lib/ruby_bosh.rb"
24
+
25
+ # Copy client side files - JS, CSS
26
+ copy_file File.join(self.class.source_root, "public/javascripts/jegol.js"), "public/javascripts/jegol.js"
27
+ copy_file File.join(self.class.source_root, "public/javascripts/jegol.tag.js"), "public/javascripts/jegol.tag.js"
28
+ copy_file File.join(self.class.source_root, "public/javascripts/strophe.js"), "public/javascripts/strophe.js"
29
+ copy_file File.join(self.class.source_root, "public/stylesheets/jegol.css"), "public/stylesheets/jegol.css"
30
+
31
+ # Copy plugin files
32
+ plugin_filename_pattern = File.join self.class.source_root, "public/javascripts/jegol.plugin/*.js"
33
+ Dir.glob(plugin_filename_pattern).map {|f| File.basename f}.each do |f|
34
+ copy_file "#{self.class.source_root}/public/javascripts/jegol.plugin/#{f}", "public/javascripts/jegol.plugin/#{f}"
35
+ end
36
+ end
37
+
38
+ def create_route
39
+ route "match 'jegol/boshsession/:room_jid' => 'jegol#new_boshsession', :conditions => {:method => :get }"
40
+ end
41
+ end
42
+ end
43
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jegolize
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alemeshet Alemu
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-15 00:00:00 -07:00
13
+ date: 2011-03-16 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -113,6 +113,8 @@ files:
113
113
  - config/initializers/jegol.rb
114
114
  - config/jegol.yml
115
115
  - jegolize.gemspec
116
+ - lib/generators/jegolize/scaffold/USAGE
117
+ - lib/generators/jegolize/scaffold/scaffold_generator.rb
116
118
  - lib/jegolize.rb
117
119
  - lib/ruby_bosh.rb
118
120
  - public/javascripts/jegol.js
@@ -155,7 +157,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
157
  requirements:
156
158
  - - ">="
157
159
  - !ruby/object:Gem::Version
158
- hash: 443777105
160
+ hash: -535598431
159
161
  segments:
160
162
  - 0
161
163
  version: "0"