pupu 0.0.5.5 → 0.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +0 -16
- data/LICENSE +1 -1
- data/README.textile +3 -3
- data/Rakefile +28 -0
- data/TODO.txt +3 -8
- data/bin/pupu +24 -19
- data/examples/merb/README.textile +5 -3
- data/examples/merb/Rakefile +3 -3
- data/examples/merb/config/framework.rb +4 -4
- data/examples/merb/config/init.rb +0 -7
- data/examples/merb/public/pupu/autocompleter/README.textile +2 -2
- data/examples/merb/public/pupu/autocompleter/config.rb +1 -1
- data/examples/merb/public/pupu/blueprint/config.rb +7 -7
- data/examples/merb/public/pupu/flash/config.rb +1 -1
- data/examples/merb/public/pupu/lighter/config.rb +2 -2
- data/examples/merb/public/pupu/mootools/README.textile +1 -1
- data/examples/merb/public/pupu/mootools/config.rb +1 -1
- data/examples/rango/README.textile +6 -4
- data/examples/rango/init.rb +0 -7
- data/examples/rango/media/pupu/autocompleter/README.textile +2 -2
- data/examples/rango/media/pupu/autocompleter/config.rb +1 -1
- data/examples/rango/media/pupu/blueprint/config.rb +7 -7
- data/examples/rango/media/pupu/flash/config.rb +1 -1
- data/examples/rango/media/pupu/lighter/config.rb +2 -2
- data/examples/rango/media/pupu/mootools/README.textile +1 -1
- data/examples/rango/media/pupu/mootools/config.rb +1 -1
- data/lib/pupu.rb +1 -2
- data/lib/pupu/adapters/merb.rb +0 -12
- data/lib/pupu/adapters/rails.rb +0 -12
- data/lib/pupu/adapters/rango.rb +3 -25
- data/lib/pupu/cli.rb +11 -13
- data/lib/pupu/dsl.rb +13 -34
- data/lib/pupu/exceptions.rb +0 -2
- data/lib/pupu/github.rb +11 -23
- data/lib/pupu/helpers.rb +2 -8
- data/lib/pupu/metadata.rb +0 -2
- data/lib/pupu/parser.rb +4 -19
- data/lib/pupu/pupu.rb +21 -47
- data/lib/pupu/version.rb +3 -1
- data/pupu.gemspec +7 -15
- data/pupu.pre.gemspec +33 -5
- data/script/spec +14 -0
- data/spec/data/public/pupu/autocompleter/README.textile +2 -2
- data/spec/data/public/pupu/autocompleter/config.rb +1 -3
- data/{examples/merb/public/pupu/lighter/images/.gitignore → spec/pupu/adapters/merb_spec.rb} +0 -0
- data/{examples/rails/app/views/examples/arguments.html.erb → spec/pupu/adapters/rango_spec.rb} +0 -0
- data/spec/pupu/dsl_spec.rb +0 -3
- data/spec/pupu/exceptions_spec.rb +0 -3
- data/spec/pupu/github_spec.rb +1 -4
- data/spec/pupu/helpers_spec.rb +2 -5
- data/spec/pupu/metadata_spec.rb +0 -3
- data/spec/pupu/parser_spec.rb +1 -4
- data/spec/pupu/pupu_spec.rb +0 -3
- data/stubs/pupu/content/config.rb.rbt +1 -3
- data/stubs/pupu/postprocess.rb +0 -8
- data/stubs/pupu/setup.rb +0 -4
- data/tasks/benchmark.rake +11 -0
- data/tasks/gem.rake +23 -0
- data/tasks/hooks.rake +12 -0
- data/tasks/release.rake +68 -0
- data/tasks/spec.rake +27 -0
- data/tasks/submodules.rake +33 -0
- data/tasks/yardoc.rake +9 -0
- metadata +199 -290
- data/.gitignore +0 -9
- data/Gemfile +0 -9
- data/examples/merb/.gitignore +0 -17
- data/examples/merb/Gemfile +0 -27
- data/examples/merb/public/pupu/autocompleter/.gitignore +0 -5
- data/examples/merb/public/pupu/blueprint/.gitignore +0 -5
- data/examples/merb/public/pupu/flash/.gitignore +0 -5
- data/examples/merb/public/pupu/lighter/.gitignore +0 -10
- data/examples/merb/public/pupu/mootools/.gitignore +0 -5
- data/examples/rails/.gitignore +0 -7
- data/examples/rails/Gemfile +0 -28
- data/examples/rails/README.textile +0 -5
- data/examples/rails/Rakefile +0 -10
- data/examples/rails/app/controllers/application_controller.rb +0 -10
- data/examples/rails/app/controllers/home_controller.rb +0 -8
- data/examples/rails/app/helpers/application_helper.rb +0 -3
- data/examples/rails/app/views/examples/dependencies.html.erb +0 -0
- data/examples/rails/app/views/examples/simple.html.erb +0 -4
- data/examples/rails/app/views/index.html.erb +0 -7
- data/examples/rails/app/views/layout.html.erb +0 -12
- data/examples/rails/config/boot.rb +0 -110
- data/examples/rails/config/environment.rb +0 -55
- data/examples/rails/config/environments/development.rb +0 -17
- data/examples/rails/config/environments/production.rb +0 -28
- data/examples/rails/config/environments/test.rb +0 -28
- data/examples/rails/config/initializers/backtrace_silencers.rb +0 -7
- data/examples/rails/config/initializers/inflections.rb +0 -10
- data/examples/rails/config/initializers/mime_types.rb +0 -5
- data/examples/rails/config/initializers/new_rails_defaults.rb +0 -21
- data/examples/rails/config/initializers/session_store.rb +0 -15
- data/examples/rails/config/routes.rb +0 -43
- data/examples/rails/db/seeds.rb +0 -7
- data/examples/rails/public/404.html +0 -30
- data/examples/rails/public/422.html +0 -30
- data/examples/rails/public/500.html +0 -30
- data/examples/rails/public/favicon.ico +0 -0
- data/examples/rails/public/robots.txt +0 -5
- data/examples/rails/script/about +0 -4
- data/examples/rails/script/console +0 -3
- data/examples/rails/script/dbconsole +0 -3
- data/examples/rails/script/destroy +0 -3
- data/examples/rails/script/generate +0 -3
- data/examples/rails/script/performance/benchmarker +0 -3
- data/examples/rails/script/performance/profiler +0 -3
- data/examples/rails/script/plugin +0 -3
- data/examples/rails/script/runner +0 -3
- data/examples/rails/script/server +0 -3
- data/examples/rails/spec/application_spec.rb +0 -37
- data/examples/rails/spec/spec_helper.rb +0 -0
- data/examples/rango/.gitignore +0 -4
- data/examples/rango/Gemfile +0 -56
- data/examples/rango/media/pupu/autocompleter/.gitignore +0 -5
- data/examples/rango/media/pupu/blueprint/.gitignore +0 -5
- data/examples/rango/media/pupu/flash/.gitignore +0 -5
- data/examples/rango/media/pupu/lighter/.gitignore +0 -10
- data/examples/rango/media/pupu/lighter/images/.gitignore +0 -0
- data/examples/rango/media/pupu/mootools/.gitignore +0 -5
- data/gems/cache/media-path-0.1.2.gem +0 -0
- data/gems/cache/nake-0.0.8.gem +0 -0
- data/gems/cache/rspec-1.3.0.gem +0 -0
- data/gems/cache/term-ansicolor-1.0.4.gem +0 -0
- data/lib/pupu/tasks/pupu.nake +0 -52
- data/spec/data/public/pupu/autocompleter/.gitignore +0 -5
- data/stubs/pupu/content/%name%.gemspec.rbt +0 -47
- data/stubs/pupu/content/%name%.pre.gemspec.rbt +0 -8
- data/stubs/pupu/content/.gitignore +0 -12
- data/stubs/pupu/content/deps.rip +0 -5
- data/stubs/pupu/content/images/.gitignore +0 -0
- data/stubs/pupu/content/init.rb.rbt +0 -17
- data/stubs/pupu/content/lib/%name%.rb.rbt +0 -4
- data/stubs/pupu/content/lib/%name%/adapters/rails.rb +0 -0
- data/stubs/pupu/content/lib/%name%/adapters/rango.rb +0 -0
- data/stubs/pupu/content/spec/%name%/.gitignore +0 -0
- data/stubs/pupu/content/spec/%name%_spec.rb.rbt +0 -10
- data/stubs/pupu/content/spec/spec.opts +0 -5
- data/stubs/pupu/content/spec/spec_helper.rb.rbt +0 -7
- data/tasks.rb +0 -37
@@ -1,47 +0,0 @@
|
|
1
|
-
#!/usr/bin/env gem build
|
2
|
-
# encoding: utf-8
|
3
|
-
|
4
|
-
# Run ./<%= @name %>.gemspec or gem build <%= @name %>.gemspec
|
5
|
-
# NOTE: we can't use require_relative because when we run gem build, it use eval for executing this file
|
6
|
-
require File.join(File.dirname(__FILE__), "lib", "<%= @name %>", "version")
|
7
|
-
require "base64"
|
8
|
-
|
9
|
-
Gem::Specification.new do |s|
|
10
|
-
s.name = "<%= @name %>"
|
11
|
-
s.version = <%= @constant %>::VERSION
|
12
|
-
s.authors = ["<%= @full_name %>"]
|
13
|
-
s.homepage = "http://github.com/<%= @github_user %>/<%= @github_repository %>"
|
14
|
-
s.summary = "" # TODO: summary
|
15
|
-
s.description = "" # TODO: long description
|
16
|
-
s.cert_chain = nil
|
17
|
-
s.email = Base64.decode64() # TODO: your encrypted e-mail
|
18
|
-
s.has_rdoc = true
|
19
|
-
|
20
|
-
# files
|
21
|
-
s.files = `git ls-files`.split("\n")
|
22
|
-
|
23
|
-
s.executables = Dir["bin/*"].map(&File.method(:basename))
|
24
|
-
s.default_executable = "<%= @name %>"
|
25
|
-
s.require_paths = ["lib"]
|
26
|
-
|
27
|
-
# Ruby version
|
28
|
-
s.required_ruby_version = ::Gem::Requirement.new(">= 1.9")
|
29
|
-
|
30
|
-
# runtime dependencies
|
31
|
-
# s.add_dependency "my-gem"
|
32
|
-
|
33
|
-
# development dependencies
|
34
|
-
# use gem install <%= @name %> --development if you want to install them
|
35
|
-
# s.add_development_dependency "simple-templater"
|
36
|
-
|
37
|
-
begin
|
38
|
-
require "changelog"
|
39
|
-
rescue LoadError
|
40
|
-
warn "You have to have changelog gem installed for post install message"
|
41
|
-
else
|
42
|
-
s.post_install_message = CHANGELOG.new.version_changes
|
43
|
-
end
|
44
|
-
|
45
|
-
# RubyForge
|
46
|
-
s.rubyforge_project = "<%= @name %>"
|
47
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
#!/usr/bin/env gem build
|
2
|
-
# encoding: utf-8
|
3
|
-
|
4
|
-
# You might think this is a terrible mess and guess what, you're
|
5
|
-
# right mate! However say thanks to authors of RubyGems, not me.
|
6
|
-
eval(File.read("<%= @name %>.gemspec")).tap do |specification|
|
7
|
-
specification.version = "#{specification.version}.pre"
|
8
|
-
end
|
data/stubs/pupu/content/deps.rip
DELETED
File without changes
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
# This file will be loaded automatically when the pupu helper is used
|
4
|
-
# If you don't want to load this file, use pupu :whatever, helpers: false
|
5
|
-
|
6
|
-
$LOAD_PATH.unshift(File.expand_path("lib", __FILE__))
|
7
|
-
|
8
|
-
begin
|
9
|
-
require "<%= @name %>/adapters/#{Pupu.framework}"
|
10
|
-
rescue LoadError
|
11
|
-
# If you don't have adapter file, everything should work anyway since Pupu::Helpers
|
12
|
-
# mixin is included into helper module of your framework, so we can fail silently
|
13
|
-
end
|
14
|
-
|
15
|
-
module Pupu::Helpers
|
16
|
-
include <%= @constant %>::Helpers
|
17
|
-
end
|
File without changes
|
File without changes
|
File without changes
|
data/tasks.rb
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
#!/usr/bin/env nake
|
2
|
-
# encoding: utf-8
|
3
|
-
|
4
|
-
begin
|
5
|
-
require File.expand_path("../.bundle/environment", __FILE__)
|
6
|
-
rescue LoadError
|
7
|
-
require "bundler"
|
8
|
-
Bundler.setup
|
9
|
-
end
|
10
|
-
|
11
|
-
$LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))
|
12
|
-
|
13
|
-
require "pupu/version"
|
14
|
-
require "nake/tasks/gem"
|
15
|
-
require "nake/tasks/spec"
|
16
|
-
require "nake/tasks/release"
|
17
|
-
|
18
|
-
begin
|
19
|
-
load "code-cleaner.nake"
|
20
|
-
Nake::Task["hooks:whitespace:install"].tap do |task|
|
21
|
-
task.config[:path] = "script"
|
22
|
-
task.config[:encoding] = "utf-8"
|
23
|
-
task.config[:whitelist] = '(bin/[^/]+|.+\.(rb|rake|nake|thor|task))$'
|
24
|
-
end
|
25
|
-
rescue LoadError
|
26
|
-
warn "If you want to contribute to Pupu, please install code-cleaner and then run ./tasks.rb hooks:whitespace:install to get Git pre-commit hook for removing trailing whitespace."
|
27
|
-
end
|
28
|
-
|
29
|
-
# Setup encoding, so all the operations
|
30
|
-
# with strings from another files will work
|
31
|
-
Encoding.default_internal = "utf-8"
|
32
|
-
Encoding.default_external = "utf-8"
|
33
|
-
|
34
|
-
Task[:build].config[:gemspec] = "pupu.gemspec"
|
35
|
-
Task[:prerelease].config[:gemspec] = "pupu.pre.gemspec"
|
36
|
-
Task[:release].config[:name] = "pupu"
|
37
|
-
Task[:release].config[:version] = Pupu::VERSION
|