neo-rails 0.2.3.1 → 0.3

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
  SHA1:
3
- metadata.gz: 07b063caccfd2a6dec3ec4b52f87692d14359e53
4
- data.tar.gz: 69a99a0335baf768c6740bb7a3c15315e786834a
3
+ metadata.gz: bc74ebfc66344e32f26ae6d1d368b60c8ba45430
4
+ data.tar.gz: 33b4748429340037c4f361e89db1d16bb8542693
5
5
  SHA512:
6
- metadata.gz: dfa0f1793703144b18a84b2e0fba05a432f978d531b384b21c8fe04e211a826a5023e09ffafe69875b7ebfca74a7618af012e9ef0b01b35fa73918d58711a488
7
- data.tar.gz: 7ab84c698d6977ea8d4c6c15e660470cc5b0ddfabf1a21737fe1e55383ab26d397a4f06b1881e70313489aa87d63634e5b2b53537a22f074df8a30539d3377a4
6
+ metadata.gz: ff8d52b79c3196dcf8df315a3113b17e36e5c35102557a2148a381d293628d3546b93d0fe67415d0778ff90f5b8f6efa2f05f3c29249cd4cd86b87c931922cb8
7
+ data.tar.gz: c546542ce34a7a897fcc26455fbe400128f4c74cea055252a65bedec30f5baa4fe8d273e1c60d42ef08fbb7a006b74ab9396df6f60911ad8b5e57f10770de7a1
@@ -1,8 +1,27 @@
1
1
  language: ruby
2
+ sudo: false
3
+ cache: bundler
2
4
  rvm:
3
- - 2.0.0
5
+ # - ruby-head (see as below)
6
+ # - 2.2 skip for now. See https://travis-ci.org/neopoly/neo-rails/jobs/50484846
7
+ - 2.1
8
+ - 2.0
4
9
  - 1.9.3
5
- - jruby-19mode
6
10
  env:
7
- - RAILS_VERSION=3.2
8
- - RAILS_VERSION=4.0
11
+ global:
12
+ - CODECLIMATE_REPO_TOKEN=f88e6216112f3039c2ceb879c813ad95b99e4ac13413a7fc104dc176eb7c63bb
13
+ matrix:
14
+ - RAILS_VERSION=3.2
15
+ - RAILS_VERSION=4.0
16
+ - RAILS_VERSION=4.1
17
+ - RAILS_VERSION=4.2
18
+ matrix:
19
+ allow_failures:
20
+ fast_finish: true
21
+ notifications:
22
+ webhooks:
23
+ urls:
24
+ - https://webhooks.gitter.im/e/cdc790028864bf9cbc44
25
+ on_success: change # options: [always|never|change] default: always
26
+ on_failure: always # options: [always|never|change] default: always
27
+ on_start: false # default: false
data/Gemfile CHANGED
@@ -5,16 +5,14 @@ gemspec
5
5
 
6
6
  rails_version = ENV['RAILS_VERSION']
7
7
  case rails_version
8
- when '4.1.6'
9
- gem 'rails', '~> 4.1.6'
10
- when '4.1'
11
- gem 'rails', '~> 4.1.0'
12
- when '4.0'
13
- gem 'rails', '~> 4.0.0'
14
- when '3.2'
15
- gem 'rails', '~> 3.2.13'
8
+ when /^(\d+\.\d+)/
9
+ gem 'rails', "~> #{$1}.0"
16
10
  when NilClass
17
11
  abort "Missing env RAILS_VERSION"
18
12
  else
19
13
  abort "Rails version #{rails_version.inspect} not supported"
20
14
  end
15
+
16
+ if ENV['CODECLIMATE_REPO_TOKEN']
17
+ gem "codeclimate-test-reporter", :group => :test, :require => nil
18
+ end
data/README.md CHANGED
@@ -1,9 +1,24 @@
1
- # Neo::Rails
1
+ [github]: https://github.com/neopoly/neo-rails
2
+ [doc]: http://rubydoc.info/github/neopoly/neo-rails/master/file/README.md
3
+ [gem]: https://rubygems.org/gems/neo-rails
4
+ [travis]: https://travis-ci.org/neopoly/neo-rails
5
+ [codeclimate]: https://codeclimate.com/github/neopoly/neo-rails
6
+ [inchpages]: https://inch-ci.org/github/neopoly/neo-rails
2
7
 
3
- [![Build Status](https://secure.travis-ci.org/neopoly/neo-rails.png?branch=master)](http://travis-ci.org/neopoly/neo-rails) [![Gem Version](https://badge.fury.io/rb/neo-rails.png)](http://badge.fury.io/rb/neo-rails) [![Code Climate](https://codeclimate.com/github/neopoly/neo-rails.png)](https://codeclimate.com/github/neopoly/neo-rails)
8
+ # Neo::Rails
4
9
 
5
10
  `neo-rails` contains some tools helping us doing Rails.
6
11
 
12
+ [![Travis](https://img.shields.io/travis/neopoly/neo-rails.svg?branch=master)][travis]
13
+ [![Gem Version](https://img.shields.io/gem/v/neo-rails.svg)][gem]
14
+ [![Code Climate](https://img.shields.io/codeclimate/github/neopoly/neo-rails.svg)][codeclimate]
15
+ [![Test Coverage](https://codeclimate.com/github/neopoly/neo-rails/badges/coverage.svg)][codeclimate]
16
+ [![Inline docs](https://inch-ci.org/github/neopoly/neo-rails.svg?branch=master&style=flat)][inchpages]
17
+
18
+ [Gem][gem] |
19
+ [Source][github] |
20
+ [Documentation][doc]
21
+
7
22
  This gem includes:
8
23
  * Mocks
9
24
  * Presenters
@@ -1,5 +1,5 @@
1
1
  module Neo
2
2
  module Rails
3
- VERSION = "0.2.3.1"
3
+ VERSION = "0.3"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  namespace :"neo-rails" do
2
2
  desc "standard tasks for a new application"
3
3
  task :setup do
4
- ["build:presenter", "build:mock"].each do |task|
4
+ ["build:presenter", "build:mock", "build:view_model"].each do |task|
5
5
  Rake::Task["neo-rails:#{task}"].invoke
6
6
  end
7
7
  end
@@ -23,5 +23,13 @@ namespace :"neo-rails" do
23
23
  task :mock do
24
24
  copy_from_template "app/mocks/mock.rb"
25
25
  end
26
+
27
+ desc "build application base view model"
28
+ task :view_model do
29
+ spec = Gem::Specification.find_by_name 'view_model-rails'
30
+ load "#{spec.gem_dir}/lib/tasks/view_model_tasks.rake"
31
+
32
+ Rake::Task["view_model:setup"].invoke
33
+ end
26
34
  end
27
35
  end
@@ -17,19 +17,17 @@ Gem::Specification.new do |gem|
17
17
  gem.require_paths = ["lib"]
18
18
  gem.version = Neo::Rails::VERSION
19
19
 
20
+ gem.add_dependency "view_model-rails"
21
+
20
22
  case rails_version
21
- when '4.1.6'
22
- gem.add_development_dependency "minitest", '~> 5.4'
23
- when '4.1'
24
- gem.add_development_dependency "minitest", '~> 5.1'
25
- when '4.0'
26
- gem.add_development_dependency "minitest"
27
- when '3.2'
28
- gem.add_development_dependency "minitest", '~> 4.7'
29
- when NilClass
30
- abort "Missing env RAILS_VERSION"
31
- else
32
- abort "Rails version #{rails_version.inspect} not supported"
23
+ when '3.2'
24
+ gem.add_development_dependency "minitest", '~> 4.7'
25
+ when /.*/
26
+ gem.add_development_dependency "minitest"
27
+ when NilClass
28
+ abort "Missing env RAILS_VERSION"
29
+ else
30
+ abort "Rails version #{rails_version.inspect} not supported"
33
31
  end
34
32
 
35
33
  gem.add_development_dependency "rake"
@@ -1,3 +1,8 @@
1
+ if ENV['CODECLIMATE_REPO_TOKEN']
2
+ require "codeclimate-test-reporter"
3
+ CodeClimate::TestReporter.start
4
+ end
5
+
1
6
  require 'simplecov' if ENV['COVERAGE']
2
7
  require 'rails/generators'
3
8
  require 'minitest/autorun'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.1
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Thiel
@@ -9,8 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-12 00:00:00.000000000 Z
12
+ date: 2015-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: view_model-rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
14
28
  - !ruby/object:Gem::Dependency
15
29
  name: minitest
16
30
  requirement: !ruby/object:Gem::Requirement