[DRE-commits] [ruby-sinatra-simple-navigation] 01/04: Imported Upstream version 3.6.0

Ben Armstrong synrg at alioth.debian.org
Wed Aug 14 22:06:53 UTC 2013


This is an automated email from the git hooks/post-receive script.

synrg pushed a commit to branch master
in repository ruby-sinatra-simple-navigation.

commit 3224326cf3669ce2708b6e1df096dd58f8f12836
Author: Ben Armstrong <synrg at debian.org>
Date:   Wed Aug 14 08:23:14 2013 -0300

    Imported Upstream version 3.6.0
---
 CHANGELOG                        |   75 ++++++++++++++++++++++++++++++++++++++
 README.textile                   |   69 +++++++++++++++++++++++++++++++++++
 Rakefile                         |   31 ++++++++++++++++
 VERSION                          |    1 +
 lib/sinatra/simple-navigation.rb |    1 +
 lib/sinatra/simple_navigation.rb |   18 +++++++++
 metadata.yml                     |   73 +++++++++++++++++++++++++++++++++++++
 7 files changed, 268 insertions(+)

diff --git a/CHANGELOG b/CHANGELOG
new file mode 100644
index 0000000..baf20cb
--- /dev/null
+++ b/CHANGELOG
@@ -0,0 +1,75 @@
+*3.6.0
+
+* depends on simple-navigation 3.10.1
+
+*3.5.1
+
+* depends on simple-navigation 3.5.x
+
+*3.5.0
+
+* depends on simple-navigation 3.5.0
+
+*3.4.2
+
+* depends on simple-navigation 3.4.2
+
+*3.4.1
+
+* depends on simple-navigation 3.4.1
+
+*3.4.0
+
+* depends on simple-navigation 3.4.0
+
+*3.3.5
+
+* depends on simple-navigation 3.3.4
+
+*3.3.4
+
+* depends on simple-navigation 3.3.3
+
+*3.3.3
+
+* depends on simple-navigation 3.3.2
+
+*3.3.2
+
+* depends on simple-navigation 3.3.1
+
+*3.3.1
+
+* fixing padrino. Did not register properly (downside: registers twice now in sinatra)
+
+*3.3.0
+
+* depends on simple-navigation 3.3.0
+
+*3.2.1
+
+* bugfix. Creating a modular style app now works without requiring 'sinatra'. Credits to Carlo Bertini.
+
+*3.2.0
+  
+* depends on simple-navigation 3.2.0
+
+*3.1.0
+
+* depends on new simple-navigation 3.1.0
+
+*3.0.2
+
+* depends on new simple-navigation 3.0.2
+
+*3.0.1
+
+* depends on new simple-navigation 3.0.1
+
+*3.0.0
+
+* depends on new simple-navigation 3.0.0
+
+*3.0.0.beta1
+
+* initial version. Dependent on simple-navigation-3.0.0.beta2
diff --git a/README.textile b/README.textile
new file mode 100644
index 0000000..be4d3ff
--- /dev/null
+++ b/README.textile
@@ -0,0 +1,69 @@
+h1. sinatra-simple-navigation
+
+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.
+
+h2. Installation
+
+Either manually install the gem
+
+ at gem install sinatra-simple-navigation@
+
+or preferably use bundler and add it to your Gemfile
+
+ at gem 'sinatra-simple-navigation'@
+
+and run @bundle install@
+
+h2. Usage
+
+h3. Sinatra Applications
+
+h4. Classic Style
+
+To use simple-navigation in your classic style sinatra application, just require 'sinatra/simple-navigation':
+
+<pre><code>require 'rubygems'
+require 'sinatra'
+require 'sinatra/simple-navigation'
+
+# Your app code goes here</code></pre>
+
+h4. Modular Style
+
+If you're developing a module style sinatra application (i.e. subclassing Sinatra::Base), you have to register Sinatra::SimpleNavigation:
+
+<pre><code>require 'rubygems'
+require 'sinatra/base'
+require 'sinatra/simple-navigation'
+
+class MyApp < Sinatra::Base
+  register Sinatra::SimpleNavigation
+  
+  # Your app code goes here
+end</code></pre>
+
+h3. Padrino Applications
+
+Using simple-navigation in your padrino application is similar to the modular sinatra style. In your @app/app.rb@ file:
+
+<pre><code>require 'sinatra/simple-navigation'
+
+class MyApp < Padrino::Application
+  register Sinatra::SimpleNavigation
+  
+  # Your app code goes here
+end</code></pre>
+
+Instead of requiring sinatra/simple-navigation at the top of the file, you could add this to your Gemfile:
+
+ at gem 'sinatra-simple-navigation', :require => 'sinatra/simple-navigation'@
+
+h2. Resources
+
+* simple-navigation source code: "http://github.com/andi/simple-navigation":http://github.com/andi/simple-navigation
+* simple-navigation wiki: "http://wiki.github.com/andi/simple-navigation":http://wiki.github.com/andi/simple-navigation
+* demo project with sample applications for rails, sinatra and padrino: "http://github.com/andi/simple-navigation-demo":http://github.com/andi/simple-navigation-demo
+
+h2. Legal
+
+Copyright (c) 2011 Andi Schacke, released under the MIT license
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..45d53ba
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,31 @@
+require 'rake'
+require 'rspec/core/rake_task'
+
+desc 'Default: run specs.'
+task :default => :spec
+
+desc 'Run the specs'
+RSpec::Core::RakeTask.new(:spec) do |t|
+  t.rspec_opts = ['--colour --format progress --loadby mtime --reverse']
+  t.pattern = FileList['spec/**/*_spec.rb']
+end
+
+begin
+  require 'jeweler'
+  Jeweler::Tasks.new do |gemspec|
+    gemspec.name = "sinatra-simple-navigation"
+    gemspec.summary = "A Sinatra extension to enable creating navigations with the simple-navigation gem. Also works for Padrino."
+    gemspec.email = "andreas.schacke at gmail.com"
+    gemspec.homepage = "http://github.com/andi/sinatra-simple-navigation"
+    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."
+    #gemspec.add_development_dependency('rspec', '>= 1.2.8')
+    gemspec.add_dependency('simple-navigation', '>= 3.10.1')
+    gemspec.authors = ["Andi Schacke", "Mark J. Titorenko"]
+    gemspec.rdoc_options = ["--inline-source", "--charset=UTF-8"]
+    gemspec.files = FileList["[A-Z]*", "{lib,spec}/**/*"] - FileList["**/*.log"]
+    gemspec.rubyforge_project = 'andi'
+  end
+  Jeweler::GemcutterTasks.new
+rescue LoadError => e
+  puts "Jeweler not available (#{e}). Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
+end
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..084e244
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+3.6.0
\ No newline at end of file
diff --git a/lib/sinatra/simple-navigation.rb b/lib/sinatra/simple-navigation.rb
new file mode 100644
index 0000000..72d1eb3
--- /dev/null
+++ b/lib/sinatra/simple-navigation.rb
@@ -0,0 +1 @@
+require 'sinatra/simple_navigation'
\ No newline at end of file
diff --git a/lib/sinatra/simple_navigation.rb b/lib/sinatra/simple_navigation.rb
new file mode 100644
index 0000000..51316c6
--- /dev/null
+++ b/lib/sinatra/simple_navigation.rb
@@ -0,0 +1,18 @@
+require 'simple-navigation'
+
+module Sinatra
+  
+  module SimpleNavigation
+    def self.registered(app)
+      app.helpers ::SimpleNavigation::Helpers
+      ::SimpleNavigation.register
+    end
+  end
+
+  #check if root is defined. It's undefined for modular style apps. 
+  unless ::Sinatra::Application.root.nil?
+    ::SimpleNavigation.register
+    helpers ::SimpleNavigation::Helpers
+  end
+
+end
\ No newline at end of file
diff --git a/metadata.yml b/metadata.yml
new file mode 100644
index 0000000..05e06ee
--- /dev/null
+++ b/metadata.yml
@@ -0,0 +1,73 @@
+--- !ruby/object:Gem::Specification
+name: sinatra-simple-navigation
+version: !ruby/object:Gem::Version
+  version: 3.6.0
+  prerelease: 
+platform: ruby
+authors:
+- Andi Schacke
+- Mark J. Titorenko
+autorequire: 
+bindir: bin
+cert_chain: []
+date: 2013-04-10 00:00:00.000000000 Z
+dependencies:
+- !ruby/object:Gem::Dependency
+  name: simple-navigation
+  requirement: !ruby/object:Gem::Requirement
+    none: false
+    requirements:
+    - - ! '>='
+      - !ruby/object:Gem::Version
+        version: 3.10.1
+  type: :runtime
+  prerelease: false
+  version_requirements: !ruby/object:Gem::Requirement
+    none: false
+    requirements:
+    - - ! '>='
+      - !ruby/object:Gem::Version
+        version: 3.10.1
+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.
+email: andreas.schacke at gmail.com
+executables: []
+extensions: []
+extra_rdoc_files:
+- README.textile
+files:
+- CHANGELOG
+- README.textile
+- Rakefile
+- VERSION
+- lib/sinatra/simple-navigation.rb
+- lib/sinatra/simple_navigation.rb
+homepage: http://github.com/andi/sinatra-simple-navigation
+licenses: []
+post_install_message: 
+rdoc_options:
+- --inline-source
+- --charset=UTF-8
+require_paths:
+- lib
+required_ruby_version: !ruby/object:Gem::Requirement
+  none: false
+  requirements:
+  - - ! '>='
+    - !ruby/object:Gem::Version
+      version: '0'
+required_rubygems_version: !ruby/object:Gem::Requirement
+  none: false
+  requirements:
+  - - ! '>='
+    - !ruby/object:Gem::Version
+      version: '0'
+requirements: []
+rubyforge_project: andi
+rubygems_version: 1.8.24
+signing_key: 
+specification_version: 3
+summary: A Sinatra extension to enable creating navigations with the simple-navigation
+  gem. Also works for Padrino.
+test_files: []

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-sinatra-simple-navigation.git



More information about the Pkg-ruby-extras-commits mailing list