decorate-responder 1.0.0 → 1.0.3

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: 7e2ed8a107be5875df2018ef0de8b9f23e5a34e2
4
+ data.tar.gz: 05661393b1584cafd1a81e19ac5996a153e94a4b
5
+ SHA512:
6
+ metadata.gz: 712c96ef7be18a34553452c3aaf66deab8ce635392c66e533cd307c4ffc83b159d38a3ab86fa4b10f7c7cc6308099318d6740a4fe09db11884712bfdf7f22e06
7
+ data.tar.gz: 1edc44ac77087b155089987e25ba287f179a4f39f53f213f3dad4fafde1d41da8f2fa132ba63b5bbed3c288931e283a51be9ee215db6a47201bf41d0c7abae4e
data/.travis.yml CHANGED
@@ -1,4 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
- - 1.8.7
4
+ env:
5
+ - RAILS_VERSION=3.2
6
+ - RAILS_VERSION=4.0
7
+ - RAILS_VERSION=head
8
+ matrix:
9
+ allow_failure:
10
+ - env: RAILS_VERSION=head
data/Gemfile CHANGED
@@ -3,12 +3,10 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in decorate-responder.gemspec
4
4
  gemspec
5
5
 
6
- group :development do
7
- gem 'minitest'
8
- gem 'rake'
9
- end
10
-
11
- group :test do
12
- gem 'draper'
13
- gem 'actionpack'
14
- end
6
+ gem 'draper'
7
+ # draper requires activemodel
8
+ gem 'activemodel'
9
+
10
+ RAILS_VERSION = ENV['RAILS_VERSION'] || '4.0'
11
+
12
+ eval_gemfile File.expand_path("../gemfiles/Gemfile.rails-#{RAILS_VERSION.gsub(/\.+/, '-')}", __FILE__)
@@ -11,9 +11,13 @@ Gem::Specification.new do |gem|
11
11
  gem.description = %q{A Rails responder to decorate resources.}
12
12
  gem.summary = %q{A Rails responder to decorate resources.}
13
13
  gem.homepage = ""
14
+ gem.license = 'MIT'
14
15
 
15
16
  gem.files = `git ls-files`.split($/)
16
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
19
  gem.require_paths = ["lib"]
20
+
21
+ gem.add_development_dependency 'rake'
22
+ gem.add_development_dependency 'minitest'
19
23
  end
@@ -0,0 +1,2 @@
1
+ gem 'actionpack', '~> 3.2.0'
2
+ gem 'minitest', '< 5.0'
@@ -0,0 +1 @@
1
+ gem 'actionpack', '~> 4.0.0'
@@ -0,0 +1 @@
1
+ gem 'actionpack', github: 'rails/rails'
@@ -2,7 +2,7 @@ module DecorateResponder
2
2
  module VERSION
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 0
5
+ PATCH = 3
6
6
  STAGE = nil
7
7
 
8
8
  def self.to_s
data/test/test_helper.rb CHANGED
@@ -14,8 +14,8 @@ require 'decorate-responder'
14
14
 
15
15
  Responders::Routes = ActionDispatch::Routing::RouteSet.new
16
16
  Responders::Routes.draw do
17
- match '/index' => 'app#index'
18
- match '/ex' => 'explicit_decorate#index'
17
+ get '/index' => 'app#index'
18
+ get '/ex' => 'explicit_decorate#index'
19
19
  end
20
20
 
21
21
  class ActiveSupport::TestCase
metadata CHANGED
@@ -1,16 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decorate-responder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jan Graichen
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-09 00:00:00.000000000 Z
13
- dependencies: []
11
+ date: 2013-07-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
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: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
14
41
  description: A Rails responder to decorate resources.
15
42
  email:
16
43
  - jg@altimos.de
@@ -18,13 +45,16 @@ executables: []
18
45
  extensions: []
19
46
  extra_rdoc_files: []
20
47
  files:
21
- - ".gitignore"
22
- - ".travis.yml"
48
+ - .gitignore
49
+ - .travis.yml
23
50
  - Gemfile
24
51
  - LICENSE.txt
25
52
  - README.md
26
53
  - Rakefile
27
54
  - decorate-responder.gemspec
55
+ - gemfiles/Gemfile.rails-3-2
56
+ - gemfiles/Gemfile.rails-4-0
57
+ - gemfiles/Gemfile.rails-head
28
58
  - lib/decorate-responder.rb
29
59
  - lib/decorate-responder/version.rb
30
60
  - lib/responders/decorate_responder.rb
@@ -32,34 +62,28 @@ files:
32
62
  - test/explicit_decorate_responder_test.rb
33
63
  - test/test_helper.rb
34
64
  homepage: ''
35
- licenses: []
65
+ licenses:
66
+ - MIT
67
+ metadata: {}
36
68
  post_install_message:
37
69
  rdoc_options: []
38
70
  require_paths:
39
71
  - lib
40
72
  required_ruby_version: !ruby/object:Gem::Requirement
41
- none: false
42
73
  requirements:
43
- - - ">="
74
+ - - '>='
44
75
  - !ruby/object:Gem::Version
45
76
  version: '0'
46
- segments:
47
- - 0
48
- hash: -288045878216154046
49
77
  required_rubygems_version: !ruby/object:Gem::Requirement
50
- none: false
51
78
  requirements:
52
- - - ">="
79
+ - - '>='
53
80
  - !ruby/object:Gem::Version
54
81
  version: '0'
55
- segments:
56
- - 0
57
- hash: -288045878216154046
58
82
  requirements: []
59
83
  rubyforge_project:
60
- rubygems_version: 1.8.25
84
+ rubygems_version: 2.0.3
61
85
  signing_key:
62
- specification_version: 3
86
+ specification_version: 4
63
87
  summary: A Rails responder to decorate resources.
64
88
  test_files:
65
89
  - test/decorate_responder_test.rb