h2ocube_rails_test 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c57378bcf805ebb82c5d310a75211dba903aa7a6
4
+ data.tar.gz: 80e85618639811d9ee42ccb8fb10b1cb837d40b4
5
+ SHA512:
6
+ metadata.gz: 524f67d7dacac0575b2d62fd5bc6ad0f87bc96f2dc007716e6d8f6c272164135cb64962645cf77eabeca24d17ac197718fb52d494c34d18eb49e93428a0ecebe
7
+ data.tar.gz: 4208ba727199f7633f5bda9166dd7efca7d3986729183e2fff38dd0f22f9fc6e878479c3948cc811d232a8401d021cf5bb2ea27c1da1ea74123dc47512b6bcc9
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ .DS_Store
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in h2ocube_rails_development.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 H2ocube.com
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,77 @@
1
+ # H2ocubeRailsTest
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/h2ocube_rails_test.png)](http://badge.fury.io/rb/h2ocube_rails_test)
4
+
5
+ Just a collection for test gems
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ gem 'h2ocube_rails_test', group: [:development, :test]
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install h2ocube_rails_test
20
+
21
+ ## Usage
22
+
23
+ $ rake spec
24
+ $ rake rubocop
25
+ $ rake test # => run spec and rubocop
26
+
27
+ Other commands see below
28
+
29
+ ## Include
30
+
31
+ * rspec-rails https://github.com/rspec/rspec-rails
32
+ * factory_girl_rails https://github.com/thoughtbot/factory_girl_rails
33
+ * rubocop https://github.com/bbatsov/rubocop
34
+ * capybara http://jnicklas.github.io/capybara
35
+ * timecop https://github.com/travisjeffery/timecop
36
+ * database_cleaner https://github.com/bmabey/database_cleaner
37
+
38
+ ## spec_helper.rb example
39
+
40
+ ENV['RAILS_ENV'] ||= 'test'
41
+ require File.expand_path('../../config/environment', __FILE__)
42
+ require 'rspec/rails'
43
+ require 'rspec/autorun'
44
+ require 'database_cleaner'
45
+
46
+ Dir[Rails.root.join('spec/support/*.rb')].each { |f| require f }
47
+
48
+ ActiveRecord::Migration.maintain_test_schema!
49
+
50
+ RSpec.configure do |config|
51
+ config.include FactoryGirl::Syntax::Methods
52
+
53
+ config.mock_with :rspec
54
+
55
+ config.infer_base_class_for_anonymous_controllers = false
56
+ config.render_views
57
+
58
+ config.before(:suite) do
59
+ DatabaseCleaner.clean_with(:truncation)
60
+ Rails.cache.clear
61
+ end
62
+ config.before(:each) do
63
+ ActionMailer::Base.deliveries = []
64
+ DatabaseCleaner.start
65
+ end
66
+ config.after(:each) do
67
+ DatabaseCleaner.clean
68
+ end
69
+ end
70
+
71
+ ## Contributing
72
+
73
+ 1. Fork it
74
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
75
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
76
+ 4. Push to the branch (`git push origin my-new-feature`)
77
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'h2ocube_rails_test'
7
+ spec.version = '0.0.1'
8
+ spec.authors = ['Ben']
9
+ spec.email = ['ben@zfben.com']
10
+ spec.description = %q{Just a collection for test gems}
11
+ spec.summary = %q{Just a collection for test gems}
12
+ spec.homepage = 'https://github.com/h2ocube/h2ocube_rails_test'
13
+ spec.license = 'MIT'
14
+
15
+ spec.files = `git ls-files`.split($/)
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_dependency 'rspec-rails'
21
+ spec.add_dependency 'factory_girl_rails'
22
+ spec.add_dependency 'rubocop'
23
+ spec.add_dependency 'capybara'
24
+ spec.add_dependency 'timecop'
25
+ spec.add_dependency 'database_cleaner'
26
+ end
@@ -0,0 +1,16 @@
1
+ %w(rspec-rails factory_girl_rails rubocop capybara timecop database_cleaner).each{ |gem| require gem }
2
+
3
+ module H2ocubeRailsTest
4
+ class Railtie < Rails::Railtie
5
+ railtie_name :h2ocube_rails_test
6
+ rake_tasks do
7
+ desc 'run rubocop'
8
+ task :rubocop do
9
+ system 'bundle exec rubocop -R'
10
+ end
11
+
12
+ desc 'run spec and rubocop'
13
+ task test: %i(spec rubocop)
14
+ end
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: h2ocube_rails_test
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ben
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec-rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: factory_girl_rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: capybara
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: timecop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: database_cleaner
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Just a collection for test gems
98
+ email:
99
+ - ben@zfben.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - Gemfile
106
+ - LICENSE.txt
107
+ - README.md
108
+ - Rakefile
109
+ - h2ocube_rails_test.gemspec
110
+ - lib/h2ocube_rails_test.rb
111
+ homepage: https://github.com/h2ocube/h2ocube_rails_test
112
+ licenses:
113
+ - MIT
114
+ metadata: {}
115
+ post_install_message:
116
+ rdoc_options: []
117
+ require_paths:
118
+ - lib
119
+ required_ruby_version: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ required_rubygems_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ requirements: []
130
+ rubyforge_project:
131
+ rubygems_version: 2.2.2
132
+ signing_key:
133
+ specification_version: 4
134
+ summary: Just a collection for test gems
135
+ test_files: []
136
+ has_rdoc: