rwiki 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,48 @@
1
+ h1. rwiki
2
+
3
+ Personal wiki inspired by Zim http://zim-wiki.org/
4
+
5
+ h2. Installation
6
+
7
+ Currently Rwiki works only on ruby 1.9.2
8
+
9
+ Install the gem
10
+
11
+ <code>
12
+ gem install riwiki
13
+ </code>
14
+
15
+ Run the application
16
+
17
+ <code>
18
+ rwiki /path/to/your/wiki-files
19
+ </code>
20
+
21
+ h2. Screenshots
22
+
23
+ h3. Browsing pages
24
+
25
+ !http://img809.imageshack.us/img809/5460/snapshot6.png(test)!
26
+
27
+ h3. Editing a page
28
+
29
+ !http://img703.imageshack.us/img703/9992/snapshot7h.png(test)!
30
+
31
+ h3. FuzzyFinder
32
+
33
+ !http://img404.imageshack.us/img404/2449/snapshot8w.png(test)!
34
+
35
+ h2. Note on Patches/Pull Requests
36
+
37
+ * Fork the project.
38
+ * Make your feature addition or bug fix.
39
+ * Add tests for it. This is important so I don't break it in a
40
+ future version unintentionally.
41
+ * Commit, do not mess with rakefile, version, or history.
42
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
43
+ * Send me a pull request. Bonus points for topic branches.
44
+
45
+ h2. Copyright
46
+
47
+ Copyright (c) 2010 Łukasz Bandzarewicz. See LICENSE for details.
48
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -0,0 +1,10 @@
1
+ Feature: Tree Panel
2
+
3
+ Background:
4
+ Given I open the application
5
+
6
+ @javascript
7
+ Scenario: Find a page
8
+ When I press "Find page"
9
+ And I fill in the input with "test" within the dialog box
10
+
@@ -1,10 +1,10 @@
1
1
  When /^I fill in the input with "([^"]*)" within the dialog box$/ do |text|
2
- field = find('div.x-window-dlg input')
2
+ field = find('div.x-window input')
3
3
  field.set(text)
4
4
  end
5
5
 
6
6
  When /^I press "([^"]*)" within the dialog box$/ do |button|
7
- When %{I press "#{button}" within "div.x-window-dlg"}
7
+ When %{I press "#{button}" within "div.x-window"}
8
8
  end
9
9
 
10
10
  Then /^I should see the window titled "([^"]*)"$/ do |title|
Binary file
@@ -18,17 +18,20 @@ Rwiki.EditorWindow = Ext.extend(Ext.Window, {
18
18
  {
19
19
  text: 'Save',
20
20
  scope: this,
21
- handler: this.onSaveButton
21
+ handler: this.onSaveButton,
22
+ iconCls: 'icon-save'
22
23
  },
23
24
  {
24
25
  text: 'Save and continue',
25
26
  scope: this,
26
- handler: this.onSaveAndContinueButton
27
+ handler: this.onSaveAndContinueButton,
28
+ iconCls: 'icon-save'
27
29
  },
28
30
  {
29
31
  text: 'Cancel',
30
32
  scope: this,
31
- handler: this.onCancelButton
33
+ handler: this.onCancelButton,
34
+ iconCls: 'icon-cancel'
32
35
  }
33
36
  ]
34
37
  });
@@ -30,10 +30,10 @@ Rwiki.FuzzyFinderDialog = Ext.extend(Ext.Window, {
30
30
 
31
31
  var search = new Ext.form.ComboBox({
32
32
  store: dataStore,
33
+ minChars: 2,
33
34
  displayField: 'title',
34
35
  typeAhead: false,
35
36
  loadingText: 'Searching...',
36
- pageSize: 10,
37
37
  hideTrigger: true,
38
38
  tpl: resultTpl,
39
39
  itemSelector: 'div.search-item',
@@ -48,7 +48,7 @@ Rwiki.FuzzyFinderDialog = Ext.extend(Ext.Window, {
48
48
  title: 'FuzzyFinder',
49
49
  maximizable: false,
50
50
  modal: true,
51
- width: 400,
51
+ width: 600,
52
52
  layout: 'fit',
53
53
  plain: true,
54
54
  bodyStyle: 'padding: 5px;',
@@ -13,11 +13,12 @@ Rwiki.TabPanel = Ext.extend(Ext.TabPanel, {
13
13
  plugins: new Ext.ux.TabCloseMenu(),
14
14
  tbar: [{
15
15
  text: 'Edit the page',
16
+ iconCls: 'icon-edit',
16
17
  scope: this,
17
- handler: this.onEditPage,
18
- iconCls: 'icon-edit'
18
+ handler: this.onEditPage
19
19
  }, {
20
20
  text: 'Find page',
21
+ iconCls: 'icon-search',
21
22
  scope: this,
22
23
  handler: this.onFuzzyFinder
23
24
  }]
@@ -161,7 +162,7 @@ Rwiki.TabPanel = Ext.extend(Ext.TabPanel, {
161
162
  },
162
163
 
163
164
  onFuzzyFinder: function() {
164
- var fuzzyFinder = new Rwiki.FuzzyFinderDialog(this.dataStore);
165
+ var fuzzyFinder = new Rwiki.FuzzyFinderDialog();
165
166
  fuzzyFinder.show();
166
167
  }
167
168
  });
@@ -43,9 +43,12 @@
43
43
  background-image: url(../images/icons/collapse-all.gif) !important;
44
44
  }
45
45
 
46
- .icon-page, .icon-edit {
46
+ .icon-page {
47
47
  background-image: url(../images/icons/page.png) !important;
48
48
  }
49
+ .icon-edit {
50
+ background-image: url(../images/icons/page_edit.png) !important;
51
+ }
49
52
 
50
53
  .icon-create-folder {
51
54
  background-image: url(../images/icons/folder_add.png) !important;
@@ -62,3 +65,19 @@
62
65
  .icon-delete-node {
63
66
  background-image: url(../images/icons/delete.png) !important;
64
67
  }
68
+
69
+ .icon-search {
70
+ background-image: url(../images/icons/page_find.png) !important;
71
+ }
72
+
73
+ .icon-save {
74
+ background-image: url(../images/icons/page_save.png) !important;
75
+ }
76
+
77
+ .icon-accept {
78
+ background-image: url(../images/icons/cancel.png) !important;
79
+ }
80
+
81
+ .icon-cancel {
82
+ background-image: url(../images/icons/cancel.png) !important;
83
+ }
@@ -5,25 +5,25 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rwiki}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Łukasz Bandzarewicz"]
12
- s.date = %q{2011-01-22}
12
+ s.date = %q{2011-01-23}
13
13
  s.default_executable = %q{rwiki}
14
14
  s.description = %q{Personal wiki based on ExtJS}
15
15
  s.email = %q{lucassus@gmail.com}
16
16
  s.executables = ["rwiki"]
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE",
19
- "README.rdoc"
19
+ "README.textile"
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
23
23
  "Capfile",
24
24
  "Gemfile",
25
25
  "LICENSE",
26
- "README.rdoc",
26
+ "README.textile",
27
27
  "Rakefile",
28
28
  "VERSION",
29
29
  "bin/rwiki",
@@ -34,6 +34,7 @@ Gem::Specification.new do |s|
34
34
  "features/delete_page.feature",
35
35
  "features/display_page.feature",
36
36
  "features/editor.feature",
37
+ "features/fuzzy_finder.feature",
37
38
  "features/history.feature",
38
39
  "features/rename_page.feature",
39
40
  "features/step_definitions/common_steps.rb",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - "\xC5\x81ukasz Bandzarewicz"
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-22 00:00:00 +01:00
17
+ date: 2011-01-23 00:00:00 +01:00
18
18
  default_executable: rwiki
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -259,13 +259,13 @@ extensions: []
259
259
 
260
260
  extra_rdoc_files:
261
261
  - LICENSE
262
- - README.rdoc
262
+ - README.textile
263
263
  files:
264
264
  - .document
265
265
  - Capfile
266
266
  - Gemfile
267
267
  - LICENSE
268
- - README.rdoc
268
+ - README.textile
269
269
  - Rakefile
270
270
  - VERSION
271
271
  - bin/rwiki
@@ -276,6 +276,7 @@ files:
276
276
  - features/delete_page.feature
277
277
  - features/display_page.feature
278
278
  - features/editor.feature
279
+ - features/fuzzy_finder.feature
279
280
  - features/history.feature
280
281
  - features/rename_page.feature
281
282
  - features/step_definitions/common_steps.rb
@@ -2347,7 +2348,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
2347
2348
  requirements:
2348
2349
  - - ">="
2349
2350
  - !ruby/object:Gem::Version
2350
- hash: 1670006897135370854
2351
+ hash: 3933874289465481879
2351
2352
  segments:
2352
2353
  - 0
2353
2354
  version: "0"
@@ -1,27 +0,0 @@
1
- = rwiki
2
-
3
- Yet another personal wiki.
4
-
5
- == Usage
6
-
7
- ruby bin/rwiki.rb /path/to/your/wiki-files
8
-
9
- == Screenshots
10
-
11
- ![Sample 1](http://img809.imageshack.us/img809/2969/snapshot1rc.png)
12
- ![Sample 2](http://img685.imageshack.us/img685/6840/snapshot2vs.png)
13
- ![Sample 3](http://img409.imageshack.us/img409/8832/snapshot3v.png)
14
-
15
- == Note on Patches/Pull Requests
16
-
17
- * Fork the project.
18
- * Make your feature addition or bug fix.
19
- * Add tests for it. This is important so I don't break it in a
20
- future version unintentionally.
21
- * Commit, do not mess with rakefile, version, or history.
22
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
23
- * Send me a pull request. Bonus points for topic branches.
24
-
25
- == Copyright
26
-
27
- Copyright (c) 2010 Łukasz Bandzarewicz. See LICENSE for details.