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 +3 -0
- data/README.rdoc +16 -5
- data/lib/netzke/core/version.rb +1 -1
- data/lib/netzke/core.rb +1 -1
- data/netzke-core.gemspec +2 -2
- data/test/rails_app/Gemfile +1 -1
- data/test/rails_app/Gemfile.lock +27 -27
- metadata +3 -3
data/CHANGELOG.rdoc
CHANGED
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.
|
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
|
-
|
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
|
data/lib/netzke/core/version.rb
CHANGED
data/lib/netzke/core.rb
CHANGED
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.
|
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-
|
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 = [
|
data/test/rails_app/Gemfile
CHANGED
data/test/rails_app/Gemfile.lock
CHANGED
@@ -2,12 +2,12 @@ GEM
|
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
4
|
abstract (1.0.0)
|
5
|
-
actionmailer (3.0.
|
6
|
-
actionpack (= 3.0.
|
5
|
+
actionmailer (3.0.1)
|
6
|
+
actionpack (= 3.0.1)
|
7
7
|
mail (~> 2.2.5)
|
8
|
-
actionpack (3.0.
|
9
|
-
activemodel (= 3.0.
|
10
|
-
activesupport (= 3.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.
|
19
|
-
activesupport (= 3.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.
|
23
|
-
activemodel (= 3.0.
|
24
|
-
activesupport (= 3.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.
|
28
|
-
activemodel (= 3.0.
|
29
|
-
activesupport (= 3.0.
|
30
|
-
activesupport (3.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.
|
47
|
+
cucumber (0.9.3)
|
48
48
|
builder (~> 2.1.2)
|
49
49
|
diff-lcs (~> 1.1.2)
|
50
|
-
gherkin (~> 2.2.
|
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.
|
84
|
-
actionmailer (= 3.0.
|
85
|
-
actionpack (= 3.0.
|
86
|
-
activerecord (= 3.0.
|
87
|
-
activeresource (= 3.0.
|
88
|
-
activesupport (= 3.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.
|
91
|
-
railties (3.0.
|
92
|
-
actionpack (= 3.0.
|
93
|
-
activesupport (= 3.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.
|
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
|
-
-
|
9
|
-
version: 0.6.
|
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-
|
17
|
+
date: 2010-10-26 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|