tanraya-playmo 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,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/.rvmrc ADDED
@@ -0,0 +1,55 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
+ # development environment upon cd'ing into the directory
5
+
6
+ # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
7
+ environment_id="ruby-1.9.2-p290@tanraya-playmo"
8
+
9
+ #
10
+ # Uncomment following line if you want options to be set only for given project.
11
+ #
12
+ # PROJECT_JRUBY_OPTS=( --1.9 )
13
+
14
+ #
15
+ # First we attempt to load the desired environment directly from the environment
16
+ # file. This is very fast and efficient compared to running through the entire
17
+ # CLI and selector. If you want feedback on which environment was used then
18
+ # insert the word 'use' after --create as this triggers verbose mode.
19
+ #
20
+ if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
21
+ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
22
+ then
23
+ \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
24
+
25
+ if [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]]
26
+ then
27
+ . "${rvm_path:-$HOME/.rvm}/hooks/after_use"
28
+ fi
29
+ else
30
+ # If the environment file has not yet been created, use the RVM CLI to select.
31
+ if ! rvm --create "$environment_id"
32
+ then
33
+ echo "Failed to create RVM environment '${environment_id}'."
34
+ exit 1
35
+ fi
36
+ fi
37
+
38
+ #
39
+ # If you use an RVM gemset file to install a list of gems (*.gems), you can have
40
+ # it be automatically loaded. Uncomment the following and adjust the filename if
41
+ # necessary.
42
+ #
43
+ # filename=".gems"
44
+ # if [[ -s "$filename" ]]
45
+ # then
46
+ # rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
47
+ # fi
48
+
49
+ # If you use bundler, this might be useful to you:
50
+ # if command -v bundle && [[ -s Gemfile ]]
51
+ # then
52
+ # bundle
53
+ # fi
54
+
55
+
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in tanraya-playmo.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,9 @@
1
+ ### How to use
2
+
3
+ First, install the gem:
4
+
5
+ $ gem install tanraya-playmo
6
+
7
+ Then, run bin file:
8
+
9
+ $ tanraya-playmo newappname
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ $:.unshift File.expand_path("../../lib", __FILE__)
3
+
4
+ require 'tanraya-playmo'
5
+
6
+ TanrayaPlaymo::Cli.start(ARGV)
@@ -0,0 +1,32 @@
1
+ require "tanraya_playmo/version"
2
+ require "playmo"
3
+
4
+ module TanrayaPlaymo
5
+ extend ActiveSupport::Autoload
6
+
7
+ # We can remove unnecessary recipes
8
+ # ::Playmo::Cookbook.instance.delete(::Playmo::Recipes::MarkupRecipe)
9
+
10
+ autoload :Cli
11
+
12
+ # MarkupRecipe
13
+ # AssetsRecipe
14
+ # ApplicationControllerRecipe
15
+ # CompassRecipe
16
+ # FormsRecipe
17
+ # JavascriptFrameworkRecipe
18
+ # DeviseRecipe
19
+ # LayoutRecipe
20
+ # HomeControllerRecipe
21
+ # ApplicationHelperRecipe
22
+ # UnicornRecipe
23
+ # ThinkingSphinxRecipe
24
+ # RspecRecipe
25
+ # CapistranoRecipe
26
+ # RvmRecipe
27
+ # SetupDatabaseRecipe
28
+ # GitRecipe
29
+ # GemfileRecipe
30
+ # CongratsRecipe
31
+
32
+ end
@@ -0,0 +1,14 @@
1
+ require 'thor/group'
2
+
3
+ module TanrayaPlaymo
4
+ class Cli < Thor::Group
5
+ include Thor::Actions
6
+
7
+ argument :application_name, :type => :string, :desc => "The name of the rails application"
8
+ desc "Generates a new Rails application with Playmo'"
9
+
10
+ def run_tanraya_playmo
11
+ ::Playmo::Cli.start(ARGV)
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,3 @@
1
+ module TanrayaPlaymo
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "tanraya_playmo/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.version = TanrayaPlaymo::VERSION
7
+ s.name = "tanraya-playmo"
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Andrew Kozloff"]
10
+ s.email = ["andrew@tanraya.com"]
11
+ s.homepage = "https://github.com/tanraya/tanraya-playmo"
12
+ s.summary = %q{My own recipes cooked with Playmo}
13
+ s.description = %q{This just only for my purposes}
14
+
15
+ s.rubyforge_project = "tanraya-playmo"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+
22
+ s.add_dependency("rails", ["~> 3.1"])
23
+ s.add_dependency("playmo")
24
+ end
metadata ADDED
@@ -0,0 +1,78 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tanraya-playmo
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Andrew Kozloff
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-01-02 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &73937480 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *73937480
25
+ - !ruby/object:Gem::Dependency
26
+ name: playmo
27
+ requirement: &73937180 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *73937180
36
+ description: This just only for my purposes
37
+ email:
38
+ - andrew@tanraya.com
39
+ executables:
40
+ - tanraya-playmo
41
+ extensions: []
42
+ extra_rdoc_files: []
43
+ files:
44
+ - .gitignore
45
+ - .rvmrc
46
+ - Gemfile
47
+ - README.md
48
+ - Rakefile
49
+ - bin/tanraya-playmo
50
+ - lib/tanraya-playmo.rb
51
+ - lib/tanraya_playmo/cli.rb
52
+ - lib/tanraya_playmo/version.rb
53
+ - tanraya-playmo.gemspec
54
+ homepage: https://github.com/tanraya/tanraya-playmo
55
+ licenses: []
56
+ post_install_message:
57
+ rdoc_options: []
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ requirements: []
73
+ rubyforge_project: tanraya-playmo
74
+ rubygems_version: 1.8.10
75
+ signing_key:
76
+ specification_version: 3
77
+ summary: My own recipes cooked with Playmo
78
+ test_files: []