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.
Files changed (141) hide show
  1. data/CHANGELOG +0 -16
  2. data/LICENSE +1 -1
  3. data/README.textile +3 -3
  4. data/Rakefile +28 -0
  5. data/TODO.txt +3 -8
  6. data/bin/pupu +24 -19
  7. data/examples/merb/README.textile +5 -3
  8. data/examples/merb/Rakefile +3 -3
  9. data/examples/merb/config/framework.rb +4 -4
  10. data/examples/merb/config/init.rb +0 -7
  11. data/examples/merb/public/pupu/autocompleter/README.textile +2 -2
  12. data/examples/merb/public/pupu/autocompleter/config.rb +1 -1
  13. data/examples/merb/public/pupu/blueprint/config.rb +7 -7
  14. data/examples/merb/public/pupu/flash/config.rb +1 -1
  15. data/examples/merb/public/pupu/lighter/config.rb +2 -2
  16. data/examples/merb/public/pupu/mootools/README.textile +1 -1
  17. data/examples/merb/public/pupu/mootools/config.rb +1 -1
  18. data/examples/rango/README.textile +6 -4
  19. data/examples/rango/init.rb +0 -7
  20. data/examples/rango/media/pupu/autocompleter/README.textile +2 -2
  21. data/examples/rango/media/pupu/autocompleter/config.rb +1 -1
  22. data/examples/rango/media/pupu/blueprint/config.rb +7 -7
  23. data/examples/rango/media/pupu/flash/config.rb +1 -1
  24. data/examples/rango/media/pupu/lighter/config.rb +2 -2
  25. data/examples/rango/media/pupu/mootools/README.textile +1 -1
  26. data/examples/rango/media/pupu/mootools/config.rb +1 -1
  27. data/lib/pupu.rb +1 -2
  28. data/lib/pupu/adapters/merb.rb +0 -12
  29. data/lib/pupu/adapters/rails.rb +0 -12
  30. data/lib/pupu/adapters/rango.rb +3 -25
  31. data/lib/pupu/cli.rb +11 -13
  32. data/lib/pupu/dsl.rb +13 -34
  33. data/lib/pupu/exceptions.rb +0 -2
  34. data/lib/pupu/github.rb +11 -23
  35. data/lib/pupu/helpers.rb +2 -8
  36. data/lib/pupu/metadata.rb +0 -2
  37. data/lib/pupu/parser.rb +4 -19
  38. data/lib/pupu/pupu.rb +21 -47
  39. data/lib/pupu/version.rb +3 -1
  40. data/pupu.gemspec +7 -15
  41. data/pupu.pre.gemspec +33 -5
  42. data/script/spec +14 -0
  43. data/spec/data/public/pupu/autocompleter/README.textile +2 -2
  44. data/spec/data/public/pupu/autocompleter/config.rb +1 -3
  45. data/{examples/merb/public/pupu/lighter/images/.gitignore → spec/pupu/adapters/merb_spec.rb} +0 -0
  46. data/{examples/rails/app/views/examples/arguments.html.erb → spec/pupu/adapters/rango_spec.rb} +0 -0
  47. data/spec/pupu/dsl_spec.rb +0 -3
  48. data/spec/pupu/exceptions_spec.rb +0 -3
  49. data/spec/pupu/github_spec.rb +1 -4
  50. data/spec/pupu/helpers_spec.rb +2 -5
  51. data/spec/pupu/metadata_spec.rb +0 -3
  52. data/spec/pupu/parser_spec.rb +1 -4
  53. data/spec/pupu/pupu_spec.rb +0 -3
  54. data/stubs/pupu/content/config.rb.rbt +1 -3
  55. data/stubs/pupu/postprocess.rb +0 -8
  56. data/stubs/pupu/setup.rb +0 -4
  57. data/tasks/benchmark.rake +11 -0
  58. data/tasks/gem.rake +23 -0
  59. data/tasks/hooks.rake +12 -0
  60. data/tasks/release.rake +68 -0
  61. data/tasks/spec.rake +27 -0
  62. data/tasks/submodules.rake +33 -0
  63. data/tasks/yardoc.rake +9 -0
  64. metadata +199 -290
  65. data/.gitignore +0 -9
  66. data/Gemfile +0 -9
  67. data/examples/merb/.gitignore +0 -17
  68. data/examples/merb/Gemfile +0 -27
  69. data/examples/merb/public/pupu/autocompleter/.gitignore +0 -5
  70. data/examples/merb/public/pupu/blueprint/.gitignore +0 -5
  71. data/examples/merb/public/pupu/flash/.gitignore +0 -5
  72. data/examples/merb/public/pupu/lighter/.gitignore +0 -10
  73. data/examples/merb/public/pupu/mootools/.gitignore +0 -5
  74. data/examples/rails/.gitignore +0 -7
  75. data/examples/rails/Gemfile +0 -28
  76. data/examples/rails/README.textile +0 -5
  77. data/examples/rails/Rakefile +0 -10
  78. data/examples/rails/app/controllers/application_controller.rb +0 -10
  79. data/examples/rails/app/controllers/home_controller.rb +0 -8
  80. data/examples/rails/app/helpers/application_helper.rb +0 -3
  81. data/examples/rails/app/views/examples/dependencies.html.erb +0 -0
  82. data/examples/rails/app/views/examples/simple.html.erb +0 -4
  83. data/examples/rails/app/views/index.html.erb +0 -7
  84. data/examples/rails/app/views/layout.html.erb +0 -12
  85. data/examples/rails/config/boot.rb +0 -110
  86. data/examples/rails/config/environment.rb +0 -55
  87. data/examples/rails/config/environments/development.rb +0 -17
  88. data/examples/rails/config/environments/production.rb +0 -28
  89. data/examples/rails/config/environments/test.rb +0 -28
  90. data/examples/rails/config/initializers/backtrace_silencers.rb +0 -7
  91. data/examples/rails/config/initializers/inflections.rb +0 -10
  92. data/examples/rails/config/initializers/mime_types.rb +0 -5
  93. data/examples/rails/config/initializers/new_rails_defaults.rb +0 -21
  94. data/examples/rails/config/initializers/session_store.rb +0 -15
  95. data/examples/rails/config/routes.rb +0 -43
  96. data/examples/rails/db/seeds.rb +0 -7
  97. data/examples/rails/public/404.html +0 -30
  98. data/examples/rails/public/422.html +0 -30
  99. data/examples/rails/public/500.html +0 -30
  100. data/examples/rails/public/favicon.ico +0 -0
  101. data/examples/rails/public/robots.txt +0 -5
  102. data/examples/rails/script/about +0 -4
  103. data/examples/rails/script/console +0 -3
  104. data/examples/rails/script/dbconsole +0 -3
  105. data/examples/rails/script/destroy +0 -3
  106. data/examples/rails/script/generate +0 -3
  107. data/examples/rails/script/performance/benchmarker +0 -3
  108. data/examples/rails/script/performance/profiler +0 -3
  109. data/examples/rails/script/plugin +0 -3
  110. data/examples/rails/script/runner +0 -3
  111. data/examples/rails/script/server +0 -3
  112. data/examples/rails/spec/application_spec.rb +0 -37
  113. data/examples/rails/spec/spec_helper.rb +0 -0
  114. data/examples/rango/.gitignore +0 -4
  115. data/examples/rango/Gemfile +0 -56
  116. data/examples/rango/media/pupu/autocompleter/.gitignore +0 -5
  117. data/examples/rango/media/pupu/blueprint/.gitignore +0 -5
  118. data/examples/rango/media/pupu/flash/.gitignore +0 -5
  119. data/examples/rango/media/pupu/lighter/.gitignore +0 -10
  120. data/examples/rango/media/pupu/lighter/images/.gitignore +0 -0
  121. data/examples/rango/media/pupu/mootools/.gitignore +0 -5
  122. data/gems/cache/media-path-0.1.2.gem +0 -0
  123. data/gems/cache/nake-0.0.8.gem +0 -0
  124. data/gems/cache/rspec-1.3.0.gem +0 -0
  125. data/gems/cache/term-ansicolor-1.0.4.gem +0 -0
  126. data/lib/pupu/tasks/pupu.nake +0 -52
  127. data/spec/data/public/pupu/autocompleter/.gitignore +0 -5
  128. data/stubs/pupu/content/%name%.gemspec.rbt +0 -47
  129. data/stubs/pupu/content/%name%.pre.gemspec.rbt +0 -8
  130. data/stubs/pupu/content/.gitignore +0 -12
  131. data/stubs/pupu/content/deps.rip +0 -5
  132. data/stubs/pupu/content/images/.gitignore +0 -0
  133. data/stubs/pupu/content/init.rb.rbt +0 -17
  134. data/stubs/pupu/content/lib/%name%.rb.rbt +0 -4
  135. data/stubs/pupu/content/lib/%name%/adapters/rails.rb +0 -0
  136. data/stubs/pupu/content/lib/%name%/adapters/rango.rb +0 -0
  137. data/stubs/pupu/content/spec/%name%/.gitignore +0 -0
  138. data/stubs/pupu/content/spec/%name%_spec.rb.rbt +0 -10
  139. data/stubs/pupu/content/spec/spec.opts +0 -5
  140. data/stubs/pupu/content/spec/spec_helper.rb.rbt +0 -7
  141. data/tasks.rb +0 -37
@@ -1,5 +0,0 @@
1
- .DS_Store
2
- *~
3
- .*.swp
4
- .#*
5
- .svn/*
@@ -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
@@ -1,12 +0,0 @@
1
- *~
2
- .*.swp
3
- .#*
4
- .svn/*
5
- .DS_Store
6
- .yardoc
7
- .cache
8
-
9
- /*.gem
10
- script/*
11
- gems/*
12
- !gems/cache
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env rip install
2
-
3
- # Syntax:
4
- # repository [tag or commit to install]
5
- git://github.com/botanicus/pupu.git
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
@@ -1,4 +0,0 @@
1
- # encoding: utf-8
2
-
3
- module <%= @constant %>
4
- end
File without changes
@@ -1,10 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require_relative "spec_helper"
4
-
5
- describe <%= @constant %> do
6
- it "should have VERSION constant" do
7
- <%= @constant %>::VERSION.should be_kind_of(String)
8
- <%= @constant %>::VERSION.should match(/^\d+\.\d+\.\d+$/)
9
- end
10
- end
@@ -1,5 +0,0 @@
1
- --colour
2
- --format
3
- progress
4
- --loadby
5
- mtime
@@ -1,7 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # dependencies
4
- require "spec"
5
-
6
- # setup load paths
7
- $:.unshift(File.expand_path("../lib"), __FILE__)
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