stickler 2.2.4 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/CONTRIBUTING.md +48 -0
  2. data/{HISTORY.asciidoc → HISTORY.md} +8 -2
  3. data/Manifest.txt +86 -0
  4. data/{README.asciidoc → README.rdoc} +18 -20
  5. data/Rakefile +25 -59
  6. data/bin/stickler +10 -3
  7. data/examples/gemcutter_repo.ru +1 -2
  8. data/lib/stickler.rb +6 -2
  9. data/lib/stickler/client.rb +5 -4
  10. data/lib/stickler/client/delete.rb +50 -0
  11. data/lib/stickler/client/unyank.rb +50 -0
  12. data/lib/stickler/middleware.rb +7 -0
  13. data/lib/stickler/middleware/compression.rb +0 -2
  14. data/lib/stickler/middleware/gemcutter.rb +16 -7
  15. data/lib/stickler/middleware/helpers.rb +1 -3
  16. data/lib/stickler/middleware/index.rb +0 -8
  17. data/lib/stickler/middleware/local.rb +1 -5
  18. data/lib/stickler/middleware/mirror.rb +0 -4
  19. data/lib/stickler/middleware/not_found.rb +0 -1
  20. data/lib/stickler/repository.rb +9 -5
  21. data/lib/stickler/repository/index.rb +0 -1
  22. data/lib/stickler/repository/local.rb +12 -4
  23. data/lib/stickler/repository/null.rb +0 -1
  24. data/lib/stickler/repository/remote.rb +40 -20
  25. data/lib/stickler/repository/remote_mirror.rb +1 -1
  26. data/lib/stickler/server.rb +1 -9
  27. data/lib/stickler/server/public/css/blueprint/ie.css +35 -0
  28. data/lib/stickler/server/public/css/blueprint/screen.css +266 -0
  29. data/lib/stickler/server/public/css/style.css +19 -0
  30. data/man/stickler-passenger-config.1 +83 -0
  31. data/man/stickler-passenger-config.1.ronn +70 -0
  32. data/man/stickler-server.1 +168 -0
  33. data/man/stickler-server.1.ronn +84 -0
  34. data/man/stickler.1 +321 -0
  35. data/man/stickler.1.ronn +144 -0
  36. data/spec/data/gemcutter/gems/foo-1.0.0.gem +0 -0
  37. data/spec/middleware/local_spec.rb +1 -4
  38. data/spec/middleware/not_found_spec.rb +1 -2
  39. data/spec/paths_spec.rb +1 -3
  40. data/spec/repository/api_behavior.rb +34 -4
  41. data/spec/repository/api_spec.rb +2 -3
  42. data/spec/repository/index_spec.rb +10 -11
  43. data/spec/repository/local_spec.rb +10 -12
  44. data/spec/repository/null_spec.rb +2 -5
  45. data/spec/repository/remote_spec.rb +3 -5
  46. data/spec/spec_helper.rb +7 -2
  47. data/spec/spec_lite_spec.rb +1 -3
  48. data/tasks/default.rake +274 -0
  49. data/tasks/this.rb +209 -0
  50. metadata +142 -85
  51. data/.bnsignore +0 -14
  52. data/.gitignore +0 -23
  53. data/TODO.asciidoc +0 -6
  54. data/lib/stickler/version.rb +0 -36
  55. data/man/asciidoc.conf +0 -25
  56. data/man/stickler-passenger-config.asciidoc +0 -74
  57. data/man/stickler-server.asciidoc +0 -87
  58. data/man/stickler.asciidoc +0 -150
  59. data/tasks/asciidoc.rake +0 -32
  60. data/tasks/bundler.rake +0 -13
  61. data/tasks/contribute.rake +0 -36
  62. data/tasks/man.rake +0 -19
@@ -1,13 +0,0 @@
1
- namespace :bundle do
2
-
3
- file 'Gemfile' => [ 'gem:spec' ] do
4
- File.open( 'Gemfile', 'w+' ) do |f|
5
- f.puts 'source "http://rubygems.org"'
6
- f.puts 'gemspec'
7
- end
8
- end
9
-
10
- desc "Create a bundler Gemfile"
11
- task :gemfile => 'Gemfile'
12
-
13
- end
@@ -1,36 +0,0 @@
1
- desc "Instructions on how to contribute to stickler"
2
- task :help do
3
- abort <<-_banner
4
- -----------------------------------------------------------------------
5
- I see you are wanting to do some development on stickler. You will
6
- need to install the 'bones' gem first.
7
-
8
- % gem install bones -v #{USING_BONES_VERSION}
9
-
10
- The easiest way to start after that is with the
11
- 'install:dependencies' task:
12
-
13
- % rake gem:install_dependencies
14
-
15
- If you use bundler, then you will need to first create the Gemfile
16
- and then run 'bundle install':
17
-
18
- % rake bundle:gemfile
19
- % bundle install
20
-
21
- Now you are ready to work on stickler. Please submit bugs and pull
22
- requests to:
23
-
24
- https://github.com/copiousfreetime/stickler
25
-
26
- Thanks!
27
-
28
- -jeremy
29
- -----------------------------------------------------------------------
30
- _banner
31
- end
32
-
33
- desc "(Alias for 'help') Instructions on how to contribute to stickler"
34
- task 'how_to_contribute' => :help
35
- desc "(Alias for 'help') Instructions on how to contribute to stickler"
36
- task '==> I WANT TO CONTRIBUTE <==' => :help
@@ -1,19 +0,0 @@
1
- namespace :man do
2
-
3
- rule '.1' => '.asciidoc' do |t|
4
- sh "a2x --no-xmllint --format manpage #{t.source}"
5
- end
6
-
7
- src = FileList["man/*.asciidoc"]
8
- man = src.collect{ |f| f.ext( "1" ) }
9
-
10
- desc "Create man pages"
11
- task :create => man
12
-
13
- task :clobber_man do
14
- rm_f FileList["man/*.1", "man/*.html", "man/*.xml"]
15
- end
16
- end
17
-
18
- task :clobber => %w[ man:clobber_man ]
19
- task 'gem:prereqs' => 'man:create'