h2ocube_rails_development 0.1.11 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/h2ocube_rails_development.gemspec +3 -1
- data/lib/h2ocube_rails_development.rb +9 -2
- metadata +31 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 822680aeb9e2406079a0d61df60063d2ba90dc2a
|
4
|
+
data.tar.gz: a60c0e669a4c0dee042daeaa787e0d711e99c091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fadfa6c6d3d33ace260212a4f32f5fdb1d5ddcfbd11e486f2f6e18bb54d4b048102ee57117d3e58065a1bf03b55ccbd545093eb19ab4c3900eea7532dbe203b1
|
7
|
+
data.tar.gz: 89724607374150730e7a42297a5ed556a2c9856b7c895b3d4fdf646a0021dacf8d10ba25373674658b2cbf6e8fe384c20f32caa8aa7962177d29ceb3a1584017
|
data/README.md
CHANGED
@@ -18,6 +18,11 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
$ gem install h2ocube_rails_development
|
20
20
|
|
21
|
+
If using rspec and capybara, you should add below code to spec_helper.rb
|
22
|
+
|
23
|
+
require 'rack_session_access/capybara'
|
24
|
+
require 'webmock/rspec'
|
25
|
+
|
21
26
|
## Usage
|
22
27
|
|
23
28
|
$ bin/rake annotate # => Annotate all your models and factories
|
@@ -58,7 +63,9 @@ For test only
|
|
58
63
|
|
59
64
|
* capybara http://jnicklas.github.io/capybara
|
60
65
|
* database_cleaner https://github.com/bmabey/database_cleaner
|
66
|
+
* rack_session_access https://github.com/railsware/rack_session_access
|
61
67
|
* timecop https://github.com/travisjeffery/timecop
|
68
|
+
* webmock https://github.com/bblimke/webmock
|
62
69
|
|
63
70
|
Just installed but not required
|
64
71
|
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = 'h2ocube_rails_development'
|
6
|
-
spec.version = '0.
|
6
|
+
spec.version = '0.2.0'
|
7
7
|
spec.authors = ['Ben']
|
8
8
|
spec.email = ['ben@zfben.com']
|
9
9
|
spec.description = 'Just a collection for development gems'
|
@@ -41,7 +41,9 @@ Gem::Specification.new do |spec|
|
|
41
41
|
# for test only
|
42
42
|
spec.add_dependency 'capybara'
|
43
43
|
spec.add_dependency 'database_cleaner'
|
44
|
+
spec.add_dependency 'rack_session_access'
|
44
45
|
spec.add_dependency 'timecop'
|
46
|
+
spec.add_dependency 'webmock'
|
45
47
|
|
46
48
|
# install but don't require
|
47
49
|
spec.add_dependency 'capistrano', '~> 3.1'
|
@@ -2,14 +2,21 @@
|
|
2
2
|
|
3
3
|
%w(factory_girl_rails rspec-rails pry-rails).each { |gem| require gem } if Rails.env.development? || Rails.env.test?
|
4
4
|
|
5
|
-
|
5
|
+
if Rails.env.development?
|
6
|
+
%w(annotate better_errors binding_of_caller meta_request pry-remote).each { |gem| require gem }
|
7
|
+
BetterErrors::Middleware.allow_ip! '0.0.0.0'
|
8
|
+
end
|
6
9
|
|
7
|
-
%w(capybara database_cleaner timecop).each { |gem| require gem } if Rails.env.test?
|
10
|
+
%w(capybara database_cleaner rack_session_access timecop webmock).each { |gem| require gem } if Rails.env.test?
|
8
11
|
|
9
12
|
module H2ocubeRailsDevelopment
|
10
13
|
class Railtie < Rails::Railtie
|
11
14
|
railtie_name :h2ocube_rails_development
|
12
15
|
|
16
|
+
initializer 'h2ocube_rails_development.configure_rails_initialization' do |app|
|
17
|
+
app.middleware.use RackSessionAccess::Middleware if Rails.env.test?
|
18
|
+
end
|
19
|
+
|
13
20
|
rake_tasks do
|
14
21
|
require 'rails_stats'
|
15
22
|
desc 'annotate all your models, tests, fixtures, factories and routes'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: h2ocube_rails_development
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: exception_notification
|
@@ -220,6 +220,20 @@ dependencies:
|
|
220
220
|
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: rack_session_access
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :runtime
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
223
237
|
- !ruby/object:Gem::Dependency
|
224
238
|
name: timecop
|
225
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,6 +248,20 @@ dependencies:
|
|
234
248
|
- - ">="
|
235
249
|
- !ruby/object:Gem::Version
|
236
250
|
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: webmock
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :runtime
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
237
265
|
- !ruby/object:Gem::Dependency
|
238
266
|
name: capistrano
|
239
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -380,7 +408,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
380
408
|
version: '0'
|
381
409
|
requirements: []
|
382
410
|
rubyforge_project:
|
383
|
-
rubygems_version: 2.4.
|
411
|
+
rubygems_version: 2.4.8
|
384
412
|
signing_key:
|
385
413
|
specification_version: 4
|
386
414
|
summary: Just a collection for development gems
|