autodoc 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f949109553f40d0648ce7db3c7ad1dc34e3c825e
4
- data.tar.gz: aba98fa5384f3800fc492fec28c9154e488a7207
3
+ metadata.gz: d231666c20549a8b99a33c5723910aa2eaa25d9b
4
+ data.tar.gz: d315003ead0297218b50014519ebde1535745e1a
5
5
  SHA512:
6
- metadata.gz: 857a1f3de052570c6dae4fb30169ce642366eee3f8162ed3e4d4f6ba588b957d8522683782391bcf114434215693060f409714663f1802da930cccc3847d73a5
7
- data.tar.gz: ae882bf23025dd57506e4403b83cf2ee63f11e84c1a3264514b9c3c637e2dfe2331b91ed786b0dcf61cc4afe1c82d380f5f231b6b2bc122bd454e2105e9e0710
6
+ metadata.gz: d7f07664e26c457821a24634003da1c2c4442a4c8c4e1595c9286cf4c241dec57d730e16dedc913cd1b3b47f5881e42c2304376246d3c34d84bdfe242dcadbfe
7
+ data.tar.gz: 5c63ba8b8d5c3fe6416d74c67bf99a3091a883e41ee5c2bf44cf7291f0c77a92ac3f068522b96903a2843ea23269ce61bee08ebc75012132a8b7910683bafff4
@@ -0,0 +1,29 @@
1
+ jobs:
2
+ rspec:
3
+ docker:
4
+ - image: ruby:2.5.3
5
+ steps:
6
+ - checkout
7
+ - restore_cache:
8
+ keys:
9
+ - v1-dependencies-{{ checksum "Gemfile.lock" }}
10
+ - v1-dependencies-
11
+ - run:
12
+ command: bundle install --jobs=4 --retry=3 --path vendor/bundle
13
+ name: bundle install
14
+ - save_cache:
15
+ key: v1-dependencies-{{ checksum "Gemfile.lock" }}
16
+ paths:
17
+ - ./vendor/bundle
18
+ - run:
19
+ command: cd spec/dummy && RAILS_ENV=test bundle exec rails db:setup
20
+ name: rails db:setup
21
+ - run:
22
+ command: bundle exec rspec
23
+ name: rspec
24
+ version: 2
25
+ workflows:
26
+ version: 2
27
+ test:
28
+ jobs:
29
+ - rspec
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  .bundle/
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
7
6
  InstalledFiles
8
7
  _yardoc
9
8
  coverage
@@ -7,12 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
- ## 0.7.1 - 2018-12-18
10
+ ## 0.7.2 - 2019-01-09
11
11
 
12
12
  ### Fixed
13
13
 
14
14
  - Fixed broken symlink on spec/dummy/spec.
15
15
 
16
+ ## 0.7.1 - 2018-12-18
17
+
16
18
  ## 0.7.0 - 2018-08-30
17
19
 
18
20
  ### Changed
data/Gemfile CHANGED
@@ -12,7 +12,6 @@ group :test do
12
12
  gem "rspec-rails"
13
13
  end
14
14
  gem "weak_parameters"
15
- gem "protected_attributes"
16
15
  gem "rack-test"
17
16
  gem "redcarpet"
18
17
  gem "responders"
@@ -0,0 +1,174 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ autodoc (0.7.1)
5
+ actionpack
6
+ activesupport (>= 3.0.0)
7
+ rspec
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actioncable (5.2.2)
13
+ actionpack (= 5.2.2)
14
+ nio4r (~> 2.0)
15
+ websocket-driver (>= 0.6.1)
16
+ actionmailer (5.2.2)
17
+ actionpack (= 5.2.2)
18
+ actionview (= 5.2.2)
19
+ activejob (= 5.2.2)
20
+ mail (~> 2.5, >= 2.5.4)
21
+ rails-dom-testing (~> 2.0)
22
+ actionpack (5.2.2)
23
+ actionview (= 5.2.2)
24
+ activesupport (= 5.2.2)
25
+ rack (~> 2.0)
26
+ rack-test (>= 0.6.3)
27
+ rails-dom-testing (~> 2.0)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
+ actionview (5.2.2)
30
+ activesupport (= 5.2.2)
31
+ builder (~> 3.1)
32
+ erubi (~> 1.4)
33
+ rails-dom-testing (~> 2.0)
34
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
+ activejob (5.2.2)
36
+ activesupport (= 5.2.2)
37
+ globalid (>= 0.3.6)
38
+ activemodel (5.2.2)
39
+ activesupport (= 5.2.2)
40
+ activerecord (5.2.2)
41
+ activemodel (= 5.2.2)
42
+ activesupport (= 5.2.2)
43
+ arel (>= 9.0)
44
+ activestorage (5.2.2)
45
+ actionpack (= 5.2.2)
46
+ activerecord (= 5.2.2)
47
+ marcel (~> 0.3.1)
48
+ activesupport (5.2.2)
49
+ concurrent-ruby (~> 1.0, >= 1.0.2)
50
+ i18n (>= 0.7, < 2)
51
+ minitest (~> 5.1)
52
+ tzinfo (~> 1.1)
53
+ arel (9.0.0)
54
+ builder (3.2.3)
55
+ coderay (1.1.1)
56
+ concurrent-ruby (1.1.4)
57
+ crass (1.0.4)
58
+ diff-lcs (1.3)
59
+ erubi (1.8.0)
60
+ globalid (0.4.1)
61
+ activesupport (>= 4.2.0)
62
+ i18n (1.3.0)
63
+ concurrent-ruby (~> 1.0)
64
+ loofah (2.2.3)
65
+ crass (~> 1.0.2)
66
+ nokogiri (>= 1.5.9)
67
+ mail (2.7.1)
68
+ mini_mime (>= 0.1.1)
69
+ marcel (0.3.3)
70
+ mimemagic (~> 0.3.2)
71
+ method_source (0.8.2)
72
+ mimemagic (0.3.3)
73
+ mini_mime (1.0.1)
74
+ mini_portile2 (2.4.0)
75
+ minitest (5.11.3)
76
+ nio4r (2.3.1)
77
+ nokogiri (1.9.1)
78
+ mini_portile2 (~> 2.4.0)
79
+ pry (0.10.4)
80
+ coderay (~> 1.1.0)
81
+ method_source (~> 0.8.1)
82
+ slop (~> 3.4)
83
+ pry-rails (0.3.6)
84
+ pry (>= 0.10.4)
85
+ rack (2.0.6)
86
+ rack-test (1.1.0)
87
+ rack (>= 1.0, < 3)
88
+ rails (5.2.2)
89
+ actioncable (= 5.2.2)
90
+ actionmailer (= 5.2.2)
91
+ actionpack (= 5.2.2)
92
+ actionview (= 5.2.2)
93
+ activejob (= 5.2.2)
94
+ activemodel (= 5.2.2)
95
+ activerecord (= 5.2.2)
96
+ activestorage (= 5.2.2)
97
+ activesupport (= 5.2.2)
98
+ bundler (>= 1.3.0)
99
+ railties (= 5.2.2)
100
+ sprockets-rails (>= 2.0.0)
101
+ rails-dom-testing (2.0.3)
102
+ activesupport (>= 4.2.0)
103
+ nokogiri (>= 1.6)
104
+ rails-html-sanitizer (1.0.4)
105
+ loofah (~> 2.2, >= 2.2.2)
106
+ railties (5.2.2)
107
+ actionpack (= 5.2.2)
108
+ activesupport (= 5.2.2)
109
+ method_source
110
+ rake (>= 0.8.7)
111
+ thor (>= 0.19.0, < 2.0)
112
+ rake (12.3.2)
113
+ redcarpet (3.4.0)
114
+ responders (2.4.0)
115
+ actionpack (>= 4.2.0, < 5.3)
116
+ railties (>= 4.2.0, < 5.3)
117
+ rspec (3.6.0)
118
+ rspec-core (~> 3.6.0)
119
+ rspec-expectations (~> 3.6.0)
120
+ rspec-mocks (~> 3.6.0)
121
+ rspec-core (3.6.0)
122
+ rspec-support (~> 3.6.0)
123
+ rspec-expectations (3.6.0)
124
+ diff-lcs (>= 1.2.0, < 2.0)
125
+ rspec-support (~> 3.6.0)
126
+ rspec-mocks (3.6.0)
127
+ diff-lcs (>= 1.2.0, < 2.0)
128
+ rspec-support (~> 3.6.0)
129
+ rspec-rails (3.6.1)
130
+ actionpack (>= 3.0)
131
+ activesupport (>= 3.0)
132
+ railties (>= 3.0)
133
+ rspec-core (~> 3.6.0)
134
+ rspec-expectations (~> 3.6.0)
135
+ rspec-mocks (~> 3.6.0)
136
+ rspec-support (~> 3.6.0)
137
+ rspec-support (3.6.0)
138
+ slop (3.6.0)
139
+ sprockets (3.7.2)
140
+ concurrent-ruby (~> 1.0)
141
+ rack (> 1, < 3)
142
+ sprockets-rails (3.2.1)
143
+ actionpack (>= 4.0)
144
+ activesupport (>= 4.0)
145
+ sprockets (>= 3.0.0)
146
+ sqlite3 (1.3.13)
147
+ thor (0.20.3)
148
+ thread_safe (0.3.6)
149
+ tzinfo (1.2.5)
150
+ thread_safe (~> 0.1)
151
+ weak_parameters (0.4.2)
152
+ rails (>= 4.0.0)
153
+ websocket-driver (0.7.0)
154
+ websocket-extensions (>= 0.1.0)
155
+ websocket-extensions (0.1.3)
156
+
157
+ PLATFORMS
158
+ ruby
159
+
160
+ DEPENDENCIES
161
+ autodoc!
162
+ bundler (~> 1.3)
163
+ pry-rails
164
+ rack-test
165
+ rails (= 5.2.2)
166
+ rake
167
+ redcarpet
168
+ responders
169
+ rspec-rails
170
+ sqlite3
171
+ weak_parameters
172
+
173
+ BUNDLED WITH
174
+ 1.17.1
data/README.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Autodoc
2
+
3
+ [![CircleCI](https://circleci.com/gh/r7kamura/autodoc.svg?style=svg)](https://circleci.com/gh/r7kamura/autodoc)
4
+ [![Gem Version](https://badge.fury.io/rb/autodoc.svg)](https://rubygems.org/gems/autodoc)
5
+
2
6
  Generate documentation from your rack application & request-spec.
3
7
 
4
8
  ## Installation
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency "actionpack"
22
22
  spec.add_dependency "rspec"
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
- spec.add_development_dependency "rails", "4.2.0"
24
+ spec.add_development_dependency "rails", "5.2.2"
25
25
  spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "sqlite3"
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module Autodoc
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -9,6 +9,6 @@ class RecipesController < ApplicationController
9
9
  end
10
10
 
11
11
  def create
12
- respond_with Recipe.create(params.slice(:name, :type))
12
+ respond_with Recipe.create(params.permit(:name, :type))
13
13
  end
14
14
  end
@@ -1,4 +1,3 @@
1
1
  class Recipe < ActiveRecord::Base
2
- attr_accessible :name, :type
3
2
  self.inheritance_column = :_type
4
3
  end
@@ -44,7 +44,6 @@ module Dummy
44
44
  # like if you have constraints or database-specific column types
45
45
  # config.active_record.schema_format = :sql
46
46
 
47
- # Version of your assets, change this if you want to expire all your assets
48
- config.assets.version = '1.0'
47
+ config.active_record.sqlite3.represent_boolean_as_integer = true
49
48
  end
50
49
  end
@@ -4,5 +4,5 @@
4
4
  # If you change this key, all old signed cookies will become invalid!
5
5
  # Make sure the secret is at least 30 characters and all random,
6
6
  # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = '2da8e59639e7c92b0da46798ed97a45be5834c72cdd9a4ad141dadc5b1175f991b05ef02dde00f9c27cadb3790311e642010b89ed1dad598539980a1ae88be61'
7
+ Dummy::Application.config.secret_key_base = '2da8e59639e7c92b0da46798ed97a45be5834c72cdd9a4ad141dadc5b1175f991b05ef02dde00f9c27cadb3790311e642010b89ed1dad598539980a1ae88be61'
8
8
  Dummy::Application.config.secret_key_base = '7bea42a7812ad8da2fa753be701ed39a8b35f014c0cfcc876ad08180f2b25504e67ed24fc4470c51b229bbbc4731454c912e4609902e1c0bba65fb86037f7f1a'
@@ -1,7 +1,7 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe "Recipes", type: :request do
4
- let(:env_hash) do
4
+ let(:headers) do
5
5
  { "ACCEPT" => "application/json", "CONTENT_TYPE" => "application/json" }
6
6
  end
7
7
 
@@ -16,13 +16,13 @@ describe "Recipes", type: :request do
16
16
 
17
17
  context "with valid condition (using Rack::Test)", autodoc: true do
18
18
  before do
19
- env_hash["Content-Type"] = "application/json"
19
+ headers["Content-Type"] = "application/json"
20
20
  end
21
21
 
22
22
  include Rack::Test::Methods
23
23
 
24
24
  it "returns the recipe" do
25
- get "/recipes/#{recipe.id}", params, env_hash
25
+ get "/recipes/#{recipe.id}", headers: headers, params: params.to_json
26
26
  expect(last_response.status).to eq(200)
27
27
  end
28
28
  end
@@ -40,7 +40,7 @@ describe "Recipes", type: :request do
40
40
  end
41
41
 
42
42
  it "returns 400" do
43
- post "/recipes", params.to_json, env_hash
43
+ post "/recipes", headers: headers, params: params.to_json
44
44
  expect(response.status).to eq(400)
45
45
  end
46
46
  end
@@ -51,7 +51,7 @@ describe "Recipes", type: :request do
51
51
  end
52
52
 
53
53
  it "returns 400" do
54
- post "/recipes", params.to_json, env_hash
54
+ post "/recipes", headers: headers, params: params.to_json
55
55
  expect(response.status).to eq(400)
56
56
  end
57
57
  end
@@ -62,7 +62,7 @@ describe "Recipes", type: :request do
62
62
  end
63
63
 
64
64
  it "creates a new recipe" do
65
- post "/recipes", params.to_json, env_hash
65
+ post "/recipes", headers: headers, params: params.to_json
66
66
  expect(response.status).to eq(201)
67
67
  end
68
68
  end
@@ -78,7 +78,7 @@ describe "Recipes", type: :request do
78
78
  end
79
79
 
80
80
  it "creates a new recipe" do
81
- post "/recipes", params.to_json, env_hash
81
+ post "/recipes", headers: headers, params: params.to_json
82
82
  expect(response.status).to eq(201)
83
83
  end
84
84
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-18 00:00:00.000000000 Z
11
+ date: 2019-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 4.2.0
75
+ version: 5.2.2
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 4.2.0
82
+ version: 5.2.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -115,9 +115,11 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
+ - ".circleci/config.yml"
118
119
  - ".gitignore"
119
120
  - CHANGELOG.md
120
121
  - Gemfile
122
+ - Gemfile.lock
121
123
  - LICENSE.txt
122
124
  - README.md
123
125
  - Rakefile
@@ -175,7 +177,6 @@ files:
175
177
  - spec/dummy/public/500.html
176
178
  - spec/dummy/public/favicon.ico
177
179
  - spec/dummy/script/rails
178
- - spec/dummy/spec
179
180
  - spec/requests/admin/entries_spec.rb
180
181
  - spec/requests/entries_spec.rb
181
182
  - spec/requests/pending_spec.rb
@@ -250,7 +251,6 @@ test_files:
250
251
  - spec/dummy/public/500.html
251
252
  - spec/dummy/public/favicon.ico
252
253
  - spec/dummy/script/rails
253
- - spec/dummy/spec
254
254
  - spec/requests/admin/entries_spec.rb
255
255
  - spec/requests/entries_spec.rb
256
256
  - spec/requests/pending_spec.rb
@@ -1 +0,0 @@
1
- spec/dummy/../../spec