cartage-rack 1.1 → 2.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Contributing.md +66 -0
- data/History.md +46 -0
- data/{Licence.rdoc → Licence.md} +5 -5
- data/Manifest.txt +7 -8
- data/README.rdoc +91 -22
- data/Rakefile +40 -31
- data/lib/cartage/rack.rb +88 -59
- data/lib/cartage/rack/metadata.rb +128 -0
- data/lib/cartage/rack/simple.rb +56 -0
- data/test/minitest_config.rb +44 -13
- data/test/test_cartage_rack.rb +131 -85
- data/test/test_cartage_rack_metadata.rb +238 -0
- data/test/test_cartage_rack_simple.rb +106 -0
- metadata +96 -55
- data/.autotest +0 -27
- data/.gemtest +0 -1
- data/.minitest.rb +0 -2
- data/.travis.yml +0 -36
- data/Contributing.rdoc +0 -63
- data/Gemfile +0 -9
- data/History.rdoc +0 -26
data/.autotest
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
|
-
require "autotest/restart"
|
4
|
-
|
5
|
-
Autotest.add_hook :initialize do |at|
|
6
|
-
# .minitest.rb ensures that the gem version of minitest is used.
|
7
|
-
at.testlib = ".minitest.rb"
|
8
|
-
# at.testlib = "minitest/unit"
|
9
|
-
#
|
10
|
-
# at.extra_files << "../some/external/dependency.rb"
|
11
|
-
#
|
12
|
-
# at.libs << ":../some/external"
|
13
|
-
#
|
14
|
-
# at.add_exception "vendor"
|
15
|
-
#
|
16
|
-
# at.add_mapping(/dependency.rb/) do |f, _|
|
17
|
-
# at.files_matching(/test_.*rb$/)
|
18
|
-
# end
|
19
|
-
#
|
20
|
-
# %w(TestA TestB).each do |klass|
|
21
|
-
# at.extra_class_map[klass] = "test/test_misc.rb"
|
22
|
-
# end
|
23
|
-
end
|
24
|
-
|
25
|
-
# Autotest.add_hook :run_command do |at|
|
26
|
-
# system "rake build"
|
27
|
-
# end
|
data/.gemtest
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
|
data/.minitest.rb
DELETED
data/.travis.yml
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
---
|
2
|
-
sudo: false
|
3
|
-
language: ruby
|
4
|
-
rvm:
|
5
|
-
- "2.2"
|
6
|
-
- "2.1"
|
7
|
-
- 2.0.0
|
8
|
-
- ruby-head
|
9
|
-
- jruby-head
|
10
|
-
- jruby-9.0.0.0.pre1
|
11
|
-
- rbx-2
|
12
|
-
matrix:
|
13
|
-
allow_failures:
|
14
|
-
- rvm: rbx-2
|
15
|
-
- rvm: jruby-head
|
16
|
-
- rvm: jruby-9.0.0.0.pre1
|
17
|
-
- rvm: ruby-head
|
18
|
-
gemfile:
|
19
|
-
- Gemfile
|
20
|
-
before_script:
|
21
|
-
- |
|
22
|
-
case "${TRAVIS_RUBY_VERSION}" in
|
23
|
-
rbx*)
|
24
|
-
gem install psych
|
25
|
-
;;
|
26
|
-
esac
|
27
|
-
- rake travis:before -t
|
28
|
-
script: rake travis
|
29
|
-
after_script:
|
30
|
-
- rake travis:after -t
|
31
|
-
notifications:
|
32
|
-
email:
|
33
|
-
recipients:
|
34
|
-
- aziegler@kineticcafe.com
|
35
|
-
on_success: change
|
36
|
-
on_failure: always
|
data/Contributing.rdoc
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
== Contributing
|
2
|
-
|
3
|
-
We value any contribution to cartage-rack you can provide: a bug report, a
|
4
|
-
feature request, or code contributions.
|
5
|
-
|
6
|
-
cartage-rack has a few contribution guidelines:
|
7
|
-
|
8
|
-
* Changes *will* *not* be accepted without tests. The test suite is written
|
9
|
-
with {Minitest}[https://github.com/seattlerb/minitest].
|
10
|
-
* Match our coding style.
|
11
|
-
* Use a thoughtfully-named topic branch that contains your change. Rebase your
|
12
|
-
commits into logical chunks as necessary.
|
13
|
-
* Use {quality commit messages}[http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html].
|
14
|
-
* Do not change the version number; when your patch is accepted and a release
|
15
|
-
is made, the version will be updated at that point.
|
16
|
-
* Submit a GitHub pull request with your changes.
|
17
|
-
|
18
|
-
=== Test Dependencies
|
19
|
-
|
20
|
-
cartage-rack uses Ryan Davis’s {Hoe}[https://github.com/seattlerb/hoe] to manage
|
21
|
-
the release process, and it adds a number of rake tasks. You will mostly be
|
22
|
-
interested in:
|
23
|
-
|
24
|
-
$ rake
|
25
|
-
|
26
|
-
which runs the tests the same way that:
|
27
|
-
|
28
|
-
$ rake test
|
29
|
-
$ rake travis
|
30
|
-
|
31
|
-
will do.
|
32
|
-
|
33
|
-
To assist with the installation of the development dependencies for cartage-rack,
|
34
|
-
I have provided the simplest possible Gemfile pointing to the (generated)
|
35
|
-
+cartage-rack.gemspec+ file. This will permit you to do:
|
36
|
-
|
37
|
-
$ bundle install
|
38
|
-
|
39
|
-
to get the development dependencies. If you aleady have +hoe+ installed, you
|
40
|
-
can accomplish the same thing with:
|
41
|
-
|
42
|
-
$ rake newb
|
43
|
-
|
44
|
-
This task will install any missing dependencies, run the tests/specs, and
|
45
|
-
generate the RDoc.
|
46
|
-
|
47
|
-
=== Workflow
|
48
|
-
|
49
|
-
Here's the most direct way to get your work merged into the project:
|
50
|
-
|
51
|
-
* Fork the project.
|
52
|
-
* Clone down your fork (<tt>git clone git://github.com/KineticCafe/cartage-rack.git</tt>).
|
53
|
-
* Create a topic branch to contain your change (<tt>git checkout -b my\_awesome\_feature</tt>).
|
54
|
-
* Hack away, add tests. Not necessarily in that order.
|
55
|
-
* Make sure everything still passes by running +rake+.
|
56
|
-
* If necessary, rebase your commits into logical chunks, without errors.
|
57
|
-
* Push the branch up (<tt>git push origin my\_awesome\_feature</tt>).
|
58
|
-
* Create a pull request against KineticCafe/cartage-rack and describe
|
59
|
-
what your change does and the why you think it should be merged.
|
60
|
-
|
61
|
-
=== Contributors
|
62
|
-
|
63
|
-
* Austin Ziegler created cartage-rack.
|
data/Gemfile
DELETED
data/History.rdoc
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
=== 1.1 / 2015-04-11
|
2
|
-
|
3
|
-
* 2 minor enhancements
|
4
|
-
|
5
|
-
* Implemented Cartage::Rack#inspect to prevent <tt>rake routes</tt> from
|
6
|
-
presenting badly.
|
7
|
-
|
8
|
-
* Preparing for a future Cartage change to the contents of the
|
9
|
-
+release_hashref+ file. The future +release_hashref+ will be two lines:
|
10
|
-
|
11
|
-
hashref
|
12
|
-
timestamp
|
13
|
-
|
14
|
-
If +release_hashref+ has two lines, the timestamp will be included in
|
15
|
-
the response. A timestamp will not be included if there is no
|
16
|
-
+release_hashref+ file.
|
17
|
-
|
18
|
-
* 1 development change
|
19
|
-
|
20
|
-
* Implemented tests for Cartage::Rack.
|
21
|
-
|
22
|
-
=== 1.0 / 2015-03-20
|
23
|
-
|
24
|
-
* 1 major enhancement
|
25
|
-
|
26
|
-
* Birthday!
|