sinatra-simple-navigation 3.0.0.beta1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG +7 -0
  2. data/README.textile +69 -0
  3. data/Rakefile +1 -1
  4. metadata +9 -9
data/CHANGELOG ADDED
@@ -0,0 +1,7 @@
1
+ *3.0.0
2
+
3
+ * depends on new simple-navigation 3.0.0
4
+
5
+ *3.0.0.beta1
6
+
7
+ * initial version. Dependent on simple-navigation-3.0.0.beta2
data/README.textile ADDED
@@ -0,0 +1,69 @@
1
+ h1. sinatra-simple-navigation
2
+
3
+ sinatra-simple-navigation is a sinatra extension enabling the use of the "simple-navigation":http://github.com/andi/simple-navigation gem in your sinatra and padrino applications.
4
+
5
+ h2. Installation
6
+
7
+ Either manually install the gem
8
+
9
+ @gem install sinatra-simple-navigation@
10
+
11
+ or preferably use bundler and add it to your Gemfile
12
+
13
+ @gem 'sinatra-simple-navigation'@
14
+
15
+ and run @bundle install@
16
+
17
+ h2. Usage
18
+
19
+ h3. Sinatra Applications
20
+
21
+ h4. Classic Style
22
+
23
+ To use simple-navigation in your classic style sinatra application, just require 'sinatra/simple-navigation':
24
+
25
+ <pre><code>require 'rubygems'
26
+ require 'sinatra'
27
+ require 'sinatra/simple-navigation'
28
+
29
+ # Your app code goes here</code></pre>
30
+
31
+ h4. Modular Style
32
+
33
+ If you're developing a module style sinatra application (i.e. subclassing Sinatra::Base), you have to register Sinatra::SimpleNavigation:
34
+
35
+ <pre><code>require 'rubygems'
36
+ require 'sinatra/base'
37
+ require 'sinatra/simple-navigation'
38
+
39
+ class MyApp < Sinatra::Base
40
+ register Sinatra::SimpleNavigation
41
+
42
+ # Your app code goes here
43
+ end</code></pre>
44
+
45
+ h3. Padrino Applications
46
+
47
+ Using simple-navigation in your padrino application is similar to the modular sinatra style. In your @app/app.rb@ file:
48
+
49
+ <pre><code>require 'sinatra/simple-navigation'
50
+
51
+ class MyApp < Padrino::Application
52
+ register Sinatra::SimpleNavigation
53
+
54
+ # Your app code goes here
55
+ end</code></pre>
56
+
57
+ Instead of requiring sinatra/simple-navigation at the top of the file, you could add this to your Gemfile:
58
+
59
+ @gem 'sinatra-simple-navigation', :require => 'sinatra/simple-navigation'@
60
+
61
+ h2. Resources
62
+
63
+ * simple-navigation source code: "http://github.com/andi/simple-navigation":http://github.com/andi/simple-navigation
64
+ * simple-navigation wiki: "http://wiki.github.com/andi/simple-navigation":http://wiki.github.com/andi/simple-navigation
65
+ * demo project with sample applications for rails, sinatra and padrino: "http://github.com/andi/simple-navigation-demo":http://github.com/andi/simple-navigation-demo
66
+
67
+ h2. Legal
68
+
69
+ Copyright (c) 2010 Andi Schacke, released under the MIT license
data/Rakefile CHANGED
@@ -20,7 +20,7 @@ begin
20
20
  gemspec.homepage = "http://github.com/andi/sinatra-simple-navigation"
21
21
  gemspec.description = "A Sinatra extension to enable creating navigations with the simple-navigation gem. Also works for Padrino. See http://github.com/andi/simple-navigation for more information on simple-navigation."
22
22
  #gemspec.add_development_dependency('rspec', '>= 1.2.8')
23
- gemspec.add_dependency('simple-navigation', '= 3.0.0.beta2')
23
+ gemspec.add_dependency('simple-navigation', '>= 3.0.0')
24
24
  gemspec.authors = ["Andi Schacke"]
25
25
  gemspec.rdoc_options = ["--inline-source", "--charset=UTF-8"]
26
26
  gemspec.files = FileList["[A-Z]*", "{lib,spec}/**/*"] - FileList["**/*.log"]
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-simple-navigation
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ prerelease: false
5
5
  segments:
6
6
  - 3
7
7
  - 0
8
8
  - 0
9
- - beta1
10
- version: 3.0.0.beta1
9
+ version: 3.0.0
11
10
  platform: ruby
12
11
  authors:
13
12
  - Andi Schacke
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-09-02 00:00:00 +02:00
17
+ date: 2010-09-28 00:00:00 +02:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -23,14 +22,13 @@ dependencies:
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
24
  requirements:
26
- - - "="
25
+ - - ">="
27
26
  - !ruby/object:Gem::Version
28
27
  segments:
29
28
  - 3
30
29
  - 0
31
30
  - 0
32
- - beta2
33
- version: 3.0.0.beta2
31
+ version: 3.0.0
34
32
  type: :runtime
35
33
  version_requirements: *id001
36
34
  description: A Sinatra extension to enable creating navigations with the simple-navigation gem. Also works for Padrino. See http://github.com/andi/simple-navigation for more information on simple-navigation.
@@ -39,9 +37,11 @@ executables: []
39
37
 
40
38
  extensions: []
41
39
 
42
- extra_rdoc_files: []
43
-
40
+ extra_rdoc_files:
41
+ - README.textile
44
42
  files:
43
+ - CHANGELOG
44
+ - README.textile
45
45
  - Rakefile
46
46
  - VERSION
47
47
  - lib/sinatra/simple-navigation.rb