happy-cli 0.1.0.pre1 → 0.1.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  source :rubygems
2
2
 
3
- gem 'happy'
3
+ gem 'happy', '>= 0.1.0.pre'
@@ -0,0 +1,3 @@
1
+ source :rubygems
2
+
3
+ gem 'happy', '>= 0.1.0.pre'
@@ -0,0 +1,10 @@
1
+ context do
2
+ # Methods added here will be available on your request context object
3
+ # as well as in your views.
4
+ #
5
+ # Example:
6
+ #
7
+ # def current_user
8
+ # session[:current_user_id] ? User.find(session[:current_user_id]) : nil
9
+ # end
10
+ end
@@ -0,0 +1,10 @@
1
+ permissions do |can, context|
2
+ # Examples:
3
+ #
4
+ # can.dance!
5
+ # can.sing!
6
+ #
7
+ # if context.current_user.admin?
8
+ # can.play!
9
+ # end
10
+ end
@@ -0,0 +1,9 @@
1
+ route do
2
+ # if can? :dance
3
+ # 'dancing'
4
+ # else
5
+ # 'not dancing'
6
+ # end
7
+
8
+ "Welcome to my new Happy application!"
9
+ end
@@ -0,0 +1,8 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ Bundler.require
4
+
5
+ require 'happy/ext/permissions'
6
+ require 'happy/utils/app_spawner'
7
+
8
+ run Happy::Utils::AppSpawner.new
@@ -1,3 +1,3 @@
1
1
  module HappyCLI
2
- VERSION = "0.1.0.pre1"
2
+ VERSION = "0.1.0.pre2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: happy-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre1
4
+ version: 0.1.0.pre2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70366605894480 !ruby/object:Gem::Requirement
16
+ requirement: &70332015716180 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0.15'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70366605894480
24
+ version_requirements: *70332015716180
25
25
  description: Command line tool for the Happy web application toolkit.
26
26
  email:
27
27
  - hendrik@mans.de
@@ -40,6 +40,11 @@ files:
40
40
  - lib/happy-cli.rb
41
41
  - lib/happy-cli/templates/minimal/Gemfile
42
42
  - lib/happy-cli/templates/minimal/config.ru
43
+ - lib/happy-cli/templates/standard/Gemfile
44
+ - lib/happy-cli/templates/standard/app/context.rb
45
+ - lib/happy-cli/templates/standard/app/permissions.rb
46
+ - lib/happy-cli/templates/standard/app/routes.rb
47
+ - lib/happy-cli/templates/standard/config.ru
43
48
  - lib/happy-cli/version.rb
44
49
  homepage: https://github.com/hmans/happy-cli
45
50
  licenses: []