camping-kirbybase 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'camping'
4
+ gem 'KirbyBase'
5
+ # Specify your gem's dependencies in camping-kirbybase.gemspec
6
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,11 @@
1
+ Copyright (c) 2012 Isak Andersson
2
+
3
+ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
4
+
5
+ Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
6
+
7
+ 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
8
+
9
+ 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
10
+
11
+ 3. This notice may not be removed or altered from any source distribution.
data/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # Camping::Kirbybase
2
+
3
+ This gem allows you to easily use KirbyBase with the amazing Camping web framework.
4
+ It's just a quick hack to let you focus on the code and not configuring a bunch of stuff
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ gem 'camping-kirbybase'
11
+
12
+ And then execute:
13
+
14
+ $ bundle
15
+
16
+ Or install it yourself as:
17
+
18
+ $ gem install camping-kirbybase
19
+
20
+ ## Usage
21
+
22
+ TODO: Write usage instructions here
23
+
24
+ ## Contributing
25
+
26
+ 1. Fork it
27
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
28
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
29
+ 4. Push to the branch (`git push origin my-new-feature`)
30
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,17 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/camping-kirbybase/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Isak Andersson"]
6
+ gem.email = ["BitPuffin@lavabit.com"]
7
+ gem.description = %q{Easily use KirbyBase with Camping!}
8
+ gem.summary = %q{Use KirbyBase with Camping}
9
+ gem.homepage = ""
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "camping-kirbybase"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Kirby::VERSION
17
+ end
@@ -0,0 +1,3 @@
1
+ module Kirby
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,19 @@
1
+ require "camping-kirbybase/version"
2
+ require 'kirbybase'
3
+
4
+ module Kirby
5
+ module Helpers
6
+ # No helpers yet..
7
+ end
8
+
9
+ def Kirby.included(mod)
10
+ mod.module_eval "
11
+ Kirby = Module.new
12
+
13
+ module Helpers
14
+ include ::Kirby::Helpers # Future features? Meeeebeeee!
15
+ include Kirby
16
+ end
17
+ "
18
+ end
19
+ end
data/test/testapp.rb ADDED
@@ -0,0 +1,26 @@
1
+ $LOAD_PATH << 'lib'
2
+
3
+ require 'camping-kirbybase'
4
+
5
+ Camping.goes :Testing
6
+
7
+ module Testing
8
+ include Kirby
9
+ end
10
+
11
+ module Testing::Controllers
12
+ class Index
13
+ def get
14
+ obj = TestObject.new
15
+ obj.name
16
+ end
17
+ end
18
+ end
19
+
20
+ module Testing::Kirby
21
+ class TestObject
22
+ def name
23
+ "My name is Ben!!!!!"
24
+ end
25
+ end
26
+ end
metadata ADDED
@@ -0,0 +1,55 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: camping-kirbybase
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Isak Andersson
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-12 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Easily use KirbyBase with Camping!
15
+ email:
16
+ - BitPuffin@lavabit.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - LICENSE
24
+ - README.md
25
+ - Rakefile
26
+ - camping-kirbybase.gemspec
27
+ - lib/camping-kirbybase.rb
28
+ - lib/camping-kirbybase/version.rb
29
+ - test/testapp.rb
30
+ homepage: ''
31
+ licenses: []
32
+ post_install_message:
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ! '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubyforge_project:
50
+ rubygems_version: 1.8.21
51
+ signing_key:
52
+ specification_version: 3
53
+ summary: Use KirbyBase with Camping
54
+ test_files:
55
+ - test/testapp.rb