committee-rails 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b640c3b77a994b7172de11d4d3cc0e207d869d11576bb2747ff6b6530be792d3
4
- data.tar.gz: f6ba370310d7fbb0cdc5e60f67cea8e99eafb99b1970d2bd3649046aca60c7ae
3
+ metadata.gz: fa06dd474eb9c10c7f96d481cc6c5d3bb6ab7eaf43a397c60cfd94933ceb2716
4
+ data.tar.gz: 10c18ae513ce8199bed3beaa81b2134ac25245164fd95855028aa90ba7f389b8
5
5
  SHA512:
6
- metadata.gz: 6df47e899656d8a8d397d74a1548ddc1106e73806508ed01469afca839dfe4f0c9fc0252a6a89780da3511e07bbc35b1197b380a1035efaa3d0767d38fba093d
7
- data.tar.gz: 47d2ff2e4d8ea5a343d08223c994cefb3298e30596b9b7b298a69e85549ccf85185975d4e717cf7bcfb577a758011d6832a87d88416869e90a60ab603db69840
6
+ metadata.gz: a2c83913bed313e65ad4278f89c1e29527340bbf91d9689ebe09cb44484470d5f1506785520af65f82205a991db675633ac62d57ff987e5ba66b96339a6219f4
7
+ data.tar.gz: 4d8cee8759b811c9bfa5180d5a74bf2af9a08b77a03fe9ab620be4202ac69ced80145af80f7e5fa6646fc0516663929819abea84bd8d628bcc224cec1d724cbc
data/.gitignore CHANGED
@@ -8,3 +8,5 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /spec/fake_app/log/
11
+ /spec/fake_app/tmp/
12
+ /gemfiles/*.lock
@@ -5,6 +5,7 @@ rvm:
5
5
  - 2.4
6
6
  - 2.5
7
7
  - 2.6
8
+ - 2.7
9
+
8
10
  before_install:
9
- - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
10
- - gem install bundler -v '< 2'
11
+ - gem install bundler
data/Gemfile CHANGED
@@ -2,3 +2,8 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in committee-rails.gemspec
4
4
  gemspec
5
+
6
+ gem 'rake', '>= 12.3.3'
7
+ gem 'minitest', '~> 5.0'
8
+ gem 'rspec'
9
+ gem 'rspec-rails'
data/README.md CHANGED
@@ -17,6 +17,9 @@ And then execute:
17
17
 
18
18
  $ bundle
19
19
 
20
+ If you use committee prior to 3.0, you have to use committee-rails 0.4.x. Please see below.
21
+
22
+ [0.4 (0-4-stable) documentation](https://github.com/willnet/committee-rails/tree/0-4-stable)
20
23
 
21
24
  If you use committee prior to 2.4, you have to use committee-rails 0.3.x. Please see below.
22
25
 
@@ -18,13 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.bindir = 'exe'
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ['lib']
21
- spec.add_dependency 'committee', '>= 2.4.0'
21
+ spec.add_dependency 'committee', '>= 3.0.0'
22
22
  spec.add_dependency 'activesupport'
23
23
  spec.add_dependency 'actionpack'
24
24
  spec.add_dependency 'railties'
25
- spec.add_development_dependency 'bundler', '~> 1.13'
26
- spec.add_development_dependency 'rake', '~> 10.0'
27
- spec.add_development_dependency 'minitest', '~> 5.0'
28
- spec.add_development_dependency 'rspec'
29
- spec.add_development_dependency 'rspec-rails'
30
25
  end
@@ -1,22 +1,15 @@
1
+ require 'committee'
2
+
1
3
  module Committee::Rails
2
4
  module Test
3
5
  module Methods
4
6
  include Committee::Test::Methods
5
7
 
6
- def committee_schema
7
- # this code for 2.4.0, committee 3.x use committee_options
8
- @committee_schema ||= Committee::Middleware::Base.new(nil, committee_options).send(:get_schema, committee_options)
9
- end
10
-
11
8
  def committee_options
12
9
  if defined?(RSpec) && (options = RSpec.try(:configuration).try(:committee_options))
13
10
  options
14
- elsif !defined?(@committee_schema)
15
- { schema: default_schema }
16
11
  else
17
- # schema_url_prefix method call this but the user overrite comittee_schema, we got error
18
- # we can remove in comittee 3.x
19
- { schema: committee_schema }
12
+ { schema_path: default_schema }
20
13
  end
21
14
  end
22
15
 
@@ -1,5 +1,5 @@
1
1
  module Committee
2
2
  module Rails
3
- VERSION = "0.4.0"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: committee-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - willnet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-21 00:00:00.000000000 Z
11
+ date: 2020-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: committee
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.4.0
19
+ version: 3.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 2.4.0
26
+ version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,76 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: bundler
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '1.13'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.13'
83
- - !ruby/object:Gem::Dependency
84
- name: rake
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '10.0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '10.0'
97
- - !ruby/object:Gem::Dependency
98
- name: minitest
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '5.0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '5.0'
111
- - !ruby/object:Gem::Dependency
112
- name: rspec
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: rspec-rails
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
69
  description: Committee for rails
140
70
  email:
141
71
  - netwillnet@gmail.com
@@ -175,8 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
105
  - !ruby/object:Gem::Version
176
106
  version: '0'
177
107
  requirements: []
178
- rubyforge_project:
179
- rubygems_version: 2.7.6
108
+ rubygems_version: 3.1.2
180
109
  signing_key:
181
110
  specification_version: 4
182
111
  summary: Committee for rails