netzke-core 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ = v0.6.1 - 2010-10-26
2
+ * Disabled buggy implementation of rendering on-page JS classes in netzke.js instead of main page.
3
+
1
4
  = v0.6.0 - 2010-10-24
2
5
  * Rails3 compatibility, thorough rewrite
3
6
  * Much more thorough testing
data/README.rdoc CHANGED
@@ -38,7 +38,10 @@ Create YOUR_APP/app/components/hello_world_component.rb, and put in the followin
38
38
 
39
39
  # Bottom bar with an automatically created action
40
40
  js_property :bbar, [:bug_server.action]
41
-
41
+
42
+ # Action to be placed on the bottom bar
43
+ action :bug_server, :text => 'Ask server', :icon => :accept
44
+
42
45
  # Method in the JS class that (by default) processes the action's "click" event
43
46
  js_method :on_bug_server, <<-JS
44
47
  function(){
@@ -64,15 +67,23 @@ Create YOUR_APP/app/components/hello_world_component.rb, and put in the followin
64
67
 
65
68
  To embed a Netzke component into your Rails view do the following:
66
69
 
67
- 1. In your layout, within the "head" tag, use the <tt>netzke_init</tt> helper to include all the necessary JavaScript and styles.
70
+ 1. Add <tt>netzke</tt> routes:
71
+
72
+ # in routes.rb
73
+ RailsApp::Application.routes.draw do
74
+ netzke
75
+ ...
76
+ end
77
+
78
+ 2. In your layout, within the "head" tag, use the <tt>netzke_init</tt> helper to include all the necessary JavaScript and styles.
68
79
 
69
80
  <%= netzke_init %>
70
81
 
71
- You can optionally specify an Ext theme:
82
+ # You can optionally specify an Ext theme:
72
83
 
73
84
  <%= netzke_init :ext_theme => 'grey' %>
74
85
 
75
- 2. In your view use the <tt>netzke</tt> helper to embed the component:
86
+ 3. In your view use the <tt>netzke</tt> helper to embed the component:
76
87
 
77
88
  <%= netzke :hello_world_component %>
78
89
 
@@ -123,4 +134,4 @@ The netzke-basepack project (pre-built full-featured components): http://github.
123
134
 
124
135
  ---
125
136
 
126
- Copyright (c) 2008-2010 Sergei Kozlov, released under the MIT license
137
+ Copyright (c) 2008-2010 Sergei Kozlov, released under the MIT license
@@ -3,7 +3,7 @@ module Netzke
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 6
6
- PATCH = 0
6
+ PATCH = 1
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
9
9
  end
data/lib/netzke/core.rb CHANGED
@@ -40,7 +40,7 @@ module Netzke
40
40
  @@icons_uri = "/images/icons"
41
41
 
42
42
  mattr_accessor :javascript_on_main_page
43
- @@javascript_on_main_page = false
43
+ @@javascript_on_main_page = true
44
44
 
45
45
  def self.setup
46
46
  yield self
data/netzke-core.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{netzke-core}
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sergei Kozlov"]
12
- s.date = %q{2010-10-24}
12
+ s.date = %q{2010-10-26}
13
13
  s.description = %q{Allows building ExtJS/Rails reusable code in a DRY way}
14
14
  s.email = %q{sergei@playcode.nl}
15
15
  s.extra_rdoc_files = [
@@ -1,6 +1,6 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'rails', '3.0.0'
3
+ gem 'rails', '3.0.1'
4
4
 
5
5
  # Bundle edge Rails instead:
6
6
  # gem 'rails', :git => 'git://github.com/rails/rails.git'
@@ -2,12 +2,12 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  abstract (1.0.0)
5
- actionmailer (3.0.0)
6
- actionpack (= 3.0.0)
5
+ actionmailer (3.0.1)
6
+ actionpack (= 3.0.1)
7
7
  mail (~> 2.2.5)
8
- actionpack (3.0.0)
9
- activemodel (= 3.0.0)
10
- activesupport (= 3.0.0)
8
+ actionpack (3.0.1)
9
+ activemodel (= 3.0.1)
10
+ activesupport (= 3.0.1)
11
11
  builder (~> 2.1.2)
12
12
  erubis (~> 2.6.6)
13
13
  i18n (~> 0.4.1)
@@ -15,19 +15,19 @@ GEM
15
15
  rack-mount (~> 0.6.12)
16
16
  rack-test (~> 0.5.4)
17
17
  tzinfo (~> 0.3.23)
18
- activemodel (3.0.0)
19
- activesupport (= 3.0.0)
18
+ activemodel (3.0.1)
19
+ activesupport (= 3.0.1)
20
20
  builder (~> 2.1.2)
21
21
  i18n (~> 0.4.1)
22
- activerecord (3.0.0)
23
- activemodel (= 3.0.0)
24
- activesupport (= 3.0.0)
22
+ activerecord (3.0.1)
23
+ activemodel (= 3.0.1)
24
+ activesupport (= 3.0.1)
25
25
  arel (~> 1.0.0)
26
26
  tzinfo (~> 0.3.23)
27
- activeresource (3.0.0)
28
- activemodel (= 3.0.0)
29
- activesupport (= 3.0.0)
30
- activesupport (3.0.0)
27
+ activeresource (3.0.1)
28
+ activemodel (= 3.0.1)
29
+ activesupport (= 3.0.1)
30
+ activesupport (3.0.1)
31
31
  arel (1.0.1)
32
32
  activesupport (~> 3.0.0)
33
33
  builder (2.1.2)
@@ -44,10 +44,10 @@ GEM
44
44
  childprocess (0.1.3)
45
45
  ffi (~> 0.6.3)
46
46
  configuration (1.1.0)
47
- cucumber (0.9.2)
47
+ cucumber (0.9.3)
48
48
  builder (~> 2.1.2)
49
49
  diff-lcs (~> 1.1.2)
50
- gherkin (~> 2.2.5)
50
+ gherkin (~> 2.2.9)
51
51
  json (~> 1.4.6)
52
52
  term-ansicolor (~> 1.0.5)
53
53
  cucumber-rails (0.3.2)
@@ -80,17 +80,17 @@ GEM
80
80
  rack (>= 1.0.0)
81
81
  rack-test (0.5.6)
82
82
  rack (>= 1.0)
83
- rails (3.0.0)
84
- actionmailer (= 3.0.0)
85
- actionpack (= 3.0.0)
86
- activerecord (= 3.0.0)
87
- activeresource (= 3.0.0)
88
- activesupport (= 3.0.0)
83
+ rails (3.0.1)
84
+ actionmailer (= 3.0.1)
85
+ actionpack (= 3.0.1)
86
+ activerecord (= 3.0.1)
87
+ activeresource (= 3.0.1)
88
+ activesupport (= 3.0.1)
89
89
  bundler (~> 1.0.0)
90
- railties (= 3.0.0)
91
- railties (3.0.0)
92
- actionpack (= 3.0.0)
93
- activesupport (= 3.0.0)
90
+ railties (= 3.0.1)
91
+ railties (3.0.1)
92
+ actionpack (= 3.0.1)
93
+ activesupport (= 3.0.1)
94
94
  rake (>= 0.8.4)
95
95
  thor (~> 0.14.0)
96
96
  rake (0.8.7)
@@ -131,7 +131,7 @@ DEPENDENCIES
131
131
  cucumber-rails
132
132
  database_cleaner
133
133
  launchy
134
- rails (= 3.0.0)
134
+ rails (= 3.0.1)
135
135
  rspec-rails (~> 2.0.0)
136
136
  spork
137
137
  sqlite3-ruby
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 0
9
- version: 0.6.0
8
+ - 1
9
+ version: 0.6.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sergei Kozlov
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-24 00:00:00 +02:00
17
+ date: 2010-10-26 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency