netzke-core 0.1.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v0.1.2
2
+ Fixed the bug with <widget>_class_definition returning empty string on sequential loading.
3
+
1
4
  v0.1.1.1
2
5
  Meta: moving from GitHub to RubyForge
3
6
 
@@ -5,9 +5,15 @@ class NetzkeCoreGenerator < Rails::Generator::Base
5
5
  # m.directory "public/javascripts/netzke"
6
6
  # m.file 'netzke.js', "public/javascripts/netzke/netzke.js"
7
7
  m.file 'netzke.html.erb', "app/views/layouts/netzke.html.erb"
8
- m.migration_template 'create_netzke_preferences.rb', "db/migrate", {:migration_file_name => "create_netzke_preferences"}
8
+
9
9
  # FIXME: how do we avoid getting the same migration IDs?
10
- m.migration_template 'create_netzke_layouts.rb', "db/migrate", {:migration_file_name => "create_netzke_layouts"}
10
+ # m.migration_template 'create_netzke_preferences.rb', "db/migrate", {:migration_file_name => "create_netzke_preferences"}
11
+ # m.migration_template 'create_netzke_layouts.rb', "db/migrate", {:migration_file_name => "create_netzke_layouts"}
12
+
13
+ # Work-around for now
14
+ time = Time.now.utc.strftime("%Y%m%d%H%M%S")
15
+ m.file 'create_netzke_layouts.rb', "db/migrate/#{time}_create_netzke_layouts"
16
+ m.file 'create_netzke_preferences.rb', "db/migrate/#{time.to_i+1}_create_netzke_preferences"
11
17
  end
12
18
  end
13
19
  end
data/init.rb CHANGED
@@ -1 +1 @@
1
- # require 'netzke-core'
1
+ require 'netzke-core'
data/lib/netzke-core.rb CHANGED
@@ -7,7 +7,6 @@ require 'netzke/controller_extensions'
7
7
  # Vendor
8
8
  require 'vendor/facets/hash/recursive_merge'
9
9
 
10
-
11
10
  %w{ models controllers }.each do |dir|
12
11
  path = File.join(File.dirname(__FILE__), 'app', dir)
13
12
  $LOAD_PATH << path
@@ -15,8 +14,6 @@ require 'vendor/facets/hash/recursive_merge'
15
14
  ActiveSupport::Dependencies.load_once_paths.delete(path)
16
15
  end
17
16
 
18
- # raise 'test'
19
-
20
17
  ActionController::Base.class_eval do
21
18
  include Netzke::ControllerExtensions
22
19
  end
@@ -25,4 +22,4 @@ end
25
22
  ActiveSupport::Dependencies.load_once_paths.delete(File.join(File.dirname(__FILE__)))
26
23
 
27
24
  # Include the javascript
28
- Netzke::Base.config[:javascripts] << "#{File.dirname(__FILE__)}/../javascripts/core.js"
25
+ Netzke::Base.config[:javascripts] << "#{File.dirname(__FILE__)}/../javascripts/core.js"
@@ -64,10 +64,10 @@ module Netzke
64
64
  def #{name}_class_definition
65
65
  result = ""
66
66
  config = controller.class.widget_config_storage[:#{name}]
67
- @@generated_widget_classes ||= []
67
+ @generated_widget_classes ||= []
68
68
  # do not duplicate javascript code on the same page
69
- unless @@generated_widget_classes.include?("#{config[:widget_class_name]}")
70
- @@generated_widget_classes << "#{config[:widget_class_name]}"
69
+ unless @generated_widget_classes.include?("#{config[:widget_class_name]}")
70
+ @generated_widget_classes << "#{config[:widget_class_name]}"
71
71
  result = Netzke::#{config[:widget_class_name]}.js_class_code
72
72
  end
73
73
  result
data/netzke-core.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{netzke-core}
5
- s.version = "0.1.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Sergei Kozlov"]
9
- s.date = %q{2009-01-01}
9
+ s.date = %q{2009-01-02}
10
10
  s.description = %q{Build ExtJS/Rails widgets with minimum effort}
11
11
  s.email = %q{sergei@writelesscode.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "lib/app/controllers/netzke_controller.rb", "lib/app/models/netzke_layout.rb", "lib/app/models/netzke_preference.rb", "lib/netzke/base.rb", "lib/netzke/controller_extensions.rb", "lib/netzke/core_ext.rb", "lib/netzke/js_class_builder.rb", "lib/netzke-core.rb", "lib/vendor/facets/hash/recursive_merge.rb", "LICENSE", "README.mdown", "tasks/netzke_core_tasks.rake"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netzke-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergei Kozlov
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-01 00:00:00 -06:00
12
+ date: 2009-01-02 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15