straptible 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/straptible/gem/templates/README.md.tt +2 -2
- data/lib/straptible/rails/templates/README.md.tt +4 -4
- data/lib/straptible/rails/templates/public.api/icon-60px.png +0 -0
- data/lib/straptible/version.rb +1 -1
- data/spec/integration/api_spec.rb +1 -1
- data/spec/integration/gem_spec.rb +1 -1
- metadata +3 -4
- data/lib/straptible/rails/templates/public.api/icon-72-cropped.png +0 -0
- data/lib/straptible/rails/templates/public.api/icon-72.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0516cdac20691f9a552fda4cfe78906bee0e426
|
4
|
+
data.tar.gz: 0d8bfac9ecec6d0313c0bdd7f397af0765669b6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c701d19b4afb422c810d8cb380a56a90ce065ef4246aec64e1d22fd23d9c1feb1ceb1b232f28f7099c7f1620b5ac07893dd4da881efcd3994a25a5ea865dbb73
|
7
|
+
data.tar.gz: 3e6292dca21bbd316b401b3a9b2e5bea8768ebdda0e32f665b50e2812ff00588587431b2d7bd08eb3e9710ab88d198a6128256046cf5235f1c9b1605285cb6ac
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ![](lib/straptible/rails/templates/public.api/icon-
|
1
|
+
# ![](lib/straptible/rails/templates/public.api/icon-60px.png) Straptible
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/straptible.png)](https://rubygems.org/gems/straptible)
|
4
4
|
[![Build Status](https://secure.travis-ci.org/aptible/straptible.png?branch=master)](http://travis-ci.org/aptible/straptible)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# ![](https://raw.github.com/aptible/straptible/master/lib/straptible/rails/templates/public.api/icon-
|
1
|
+
# ![](https://raw.github.com/aptible/straptible/master/lib/straptible/rails/templates/public.api/icon-60px.png) <%= config[:constant_name] %>
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/<%= config[:name] %>.png)](https://rubygems.org/gems/<%= config[:name] %>)
|
4
4
|
[![Build Status](https://travis-ci.org/aptible/<%= config[:name] %>.png?branch=master)](https://travis-ci.org/aptible/<%= config[:name] %>)
|
@@ -10,7 +10,7 @@ TODO: Add description.
|
|
10
10
|
|
11
11
|
Add the following line to your application's Gemfile.
|
12
12
|
|
13
|
-
gem <%= config[:name] %>
|
13
|
+
gem '<%= config[:name] %>'
|
14
14
|
|
15
15
|
And then run `bundle install`.
|
16
16
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# ![](public/icon-
|
1
|
+
# ![](public/icon-60px.png) <%= app_const_base %>
|
2
2
|
|
3
3
|
TODO: Add description for this API.
|
4
4
|
|
@@ -18,14 +18,14 @@ The following command will run Ruby style guide checking, unit tests, and integr
|
|
18
18
|
|
19
19
|
## API Blueprint
|
20
20
|
|
21
|
-
We use [API Blueprint](http://apiblueprint.org/) for API documentation. To compose your blueprint, edit `
|
21
|
+
We use [API Blueprint](http://apiblueprint.org/) for API documentation. To compose your blueprint, edit `apiary.apib` according to to the API Blueprint [format](https://github.com/apiaryio/api-blueprint/blob/master/API%20Blueprint%20Specification.md). [This tutorial](http://apiary.io/blueprint) might be a good starting point.
|
22
22
|
|
23
23
|
To validate the API implementation against its blueprint, first fire up a Rails server, then invoke Dredd:
|
24
24
|
|
25
25
|
bundle exec rails server -p 3000 -d
|
26
|
-
dredd
|
26
|
+
dredd apiary.apib http://localhost:3000
|
27
27
|
|
28
|
-
To preview the documentation, use Aglio: `aglio -i
|
28
|
+
To preview the documentation, use Aglio: `aglio -i apiary.apib -p 4000 -s`. Then visit [localhost:4000](http://localhost:4000/).
|
29
29
|
|
30
30
|
## Copyright
|
31
31
|
|
Binary file
|
data/lib/straptible/version.rb
CHANGED
@@ -33,7 +33,7 @@ describe 'straptible api' do
|
|
33
33
|
it 'includes an appropriate README.md' do
|
34
34
|
readme = File.join(@tmpdir, 'foobar', 'README.md')
|
35
35
|
File.exist?(readme).should be_true
|
36
|
-
File.read(readme).should match /\#.*public\/icon-
|
36
|
+
File.read(readme).should match /\#.*public\/icon-60px.png.*Foobar/
|
37
37
|
end
|
38
38
|
|
39
39
|
it 'does not include HTML error pages' do
|
@@ -21,7 +21,7 @@ describe 'straptible gem' do
|
|
21
21
|
it 'includes an appropriate README.md' do
|
22
22
|
readme = File.join(@tmpdir, 'foobar', 'README.md')
|
23
23
|
File.exist?(readme).should be_true
|
24
|
-
File.read(readme).should match /\#.*icon-
|
24
|
+
File.read(readme).should match /\#.*icon-60px.png.*Foobar/
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: straptible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -143,8 +143,7 @@ files:
|
|
143
143
|
- lib/straptible/rails/templates/gitignore
|
144
144
|
- lib/straptible/rails/templates/package.json
|
145
145
|
- lib/straptible/rails/templates/public.api/favicon.ico
|
146
|
-
- lib/straptible/rails/templates/public.api/icon-
|
147
|
-
- lib/straptible/rails/templates/public.api/icon-72.png
|
146
|
+
- lib/straptible/rails/templates/public.api/icon-60px.png
|
148
147
|
- lib/straptible/rails/templates/public.api/robots.txt
|
149
148
|
- lib/straptible/rails/templates/spec/spec_helper.rb
|
150
149
|
- lib/straptible/rails/templates/travis.yml.api
|
Binary file
|
Binary file
|