action_controller-parents 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8971a4188ec77e694b85ba6bcc8b716f0e2a3ae2
4
- data.tar.gz: bbbd2f28eaa82115a4809f9af0bc2f0702d72363
3
+ metadata.gz: b9f3dc097efe51fe77aa33b7b4ad3c0c611f64b4
4
+ data.tar.gz: a0a01b028d0a2e45d040724461deaeec8319318d
5
5
  SHA512:
6
- metadata.gz: 832cb24c7816516c1e9b1a30ab8d2244d1b062bf278e848eb619edfc1ce8a3564ed4da8e50dbf5b2cc97a6416e03fc7dd6a2f195d4fc54ed1b6823f425476041
7
- data.tar.gz: 080a58489983e0b8fe582f58c952a436616a32e460555a729293f7a23a96fe8ce3846c50b3793f5c7dcbcec5f1de1b97a71da292e51d140cc9f60fd349c15181
6
+ metadata.gz: 98ca811ff7ae5d0a203dd92de929394b8fc4731cc1f29db014444401fd0ab4362fabb8c7fa8606f066d426a668474cd8dc0ee0712a27c60e72667e33cacdd82b
7
+ data.tar.gz: 27a6e714af635f1abfc34bff53f349a46688c184ff5f677c8a71483d225afbb32bd78d14634e316ce94492674eb28614df4a30b916ce7cef6268539985b80bbb
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.0
6
+ gemfile:
7
+ - gemfiles/activesupport_3.gemfile
8
+ - gemfiles/activesupport_4.gemfile
9
+ script: "bundle exec rake spec"
data/Appraisals ADDED
@@ -0,0 +1,7 @@
1
+ appraise "activesupport-3" do
2
+ gem "activesupport", "3.0.0"
3
+ end
4
+
5
+ appraise "activesupport-4" do
6
+ gem "activesupport", "4.0.0"
7
+ end
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # ActionController::Parents
2
2
 
3
+ [![Build
4
+ Status](https://travis-ci.org/mcls/action_controller-parents.png?branch=master)](https://travis-ci.org/mcls/action_controller-parents)
5
+
3
6
  Easily access parent resources.
4
7
 
5
8
  ## Installation
@@ -22,7 +25,7 @@ Example:
22
25
 
23
26
  ```ruby
24
27
  class MembersController < ActionController::Base
25
- include Parents.new(Organization, Group)
28
+ include ActionController::Parents.new(Organization, Group)
26
29
 
27
30
  # GET /organizations/:organization_id/members
28
31
  # GET /groups/:group_id/members
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rspec/core/rake_task'
3
5
 
@@ -21,7 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_development_dependency "rspec"
24
- spec.add_development_dependency "mutant"
24
+ spec.add_development_dependency "mutant", "~> 0.3.5"
25
+ spec.add_development_dependency "appraisal", "1.0.0.beta2"
25
26
 
26
27
  spec.add_dependency "activesupport", ">= 3.0.0"
27
28
  end
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activesupport", "3.0.0"
6
+
7
+ gemspec :path=>".././"
@@ -0,0 +1,83 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ action_controller-parents (0.0.1)
5
+ activesupport (>= 3.0.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ abstract_type (0.0.7)
11
+ activesupport (3.0.0)
12
+ adamantium (0.2.0)
13
+ ice_nine (~> 0.11.0)
14
+ memoizable (~> 0.4.0)
15
+ anima (0.2.0)
16
+ abstract_type (~> 0.0.7)
17
+ adamantium (~> 0.1)
18
+ equalizer (~> 0.0.8)
19
+ appraisal (1.0.0.beta2)
20
+ bundler
21
+ rake
22
+ thor (>= 0.14.0)
23
+ ast (1.1.0)
24
+ atomic (1.1.14)
25
+ concord (0.1.4)
26
+ adamantium (~> 0.1)
27
+ equalizer (~> 0.0.7)
28
+ descendants_tracker (0.0.3)
29
+ diff-lcs (1.2.5)
30
+ equalizer (0.0.9)
31
+ ice_nine (0.11.0)
32
+ inflecto (0.0.2)
33
+ memoizable (0.4.0)
34
+ thread_safe (~> 0.1.3)
35
+ mutant (0.3.5)
36
+ abstract_type (~> 0.0.7)
37
+ adamantium (~> 0.1)
38
+ anima (~> 0.2.0)
39
+ concord (~> 0.1.4)
40
+ descendants_tracker (~> 0.0.1)
41
+ equalizer (~> 0.0.7)
42
+ ice_nine (~> 0.9)
43
+ inflecto (~> 0.0.2)
44
+ parser (~> 2.1.4)
45
+ procto (~> 0.0.2)
46
+ rspec (~> 2.14.1)
47
+ unparser (~> 0.1.8)
48
+ parser (2.1.4)
49
+ ast (~> 1.1)
50
+ slop (~> 3.4, >= 3.4.5)
51
+ procto (0.0.2)
52
+ rake (10.1.1)
53
+ rspec (2.14.1)
54
+ rspec-core (~> 2.14.0)
55
+ rspec-expectations (~> 2.14.0)
56
+ rspec-mocks (~> 2.14.0)
57
+ rspec-core (2.14.7)
58
+ rspec-expectations (2.14.5)
59
+ diff-lcs (>= 1.1.3, < 2.0)
60
+ rspec-mocks (2.14.5)
61
+ slop (3.4.7)
62
+ thor (0.18.1)
63
+ thread_safe (0.1.3)
64
+ atomic
65
+ unparser (0.1.9)
66
+ abstract_type (~> 0.0.7)
67
+ adamantium (~> 0.1)
68
+ concord (~> 0.1.4)
69
+ equalizer (~> 0.0.7)
70
+ parser (~> 2.1.0)
71
+ procto (~> 0.0.2)
72
+
73
+ PLATFORMS
74
+ ruby
75
+
76
+ DEPENDENCIES
77
+ action_controller-parents!
78
+ activesupport (= 3.0.0)
79
+ appraisal (= 1.0.0.beta2)
80
+ bundler (~> 1.3)
81
+ mutant (~> 0.3.5)
82
+ rake
83
+ rspec
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activesupport", "4.0.0"
6
+
7
+ gemspec :path=>".././"
@@ -0,0 +1,92 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ action_controller-parents (0.0.1)
5
+ activesupport (>= 3.0.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ abstract_type (0.0.7)
11
+ activesupport (4.0.0)
12
+ i18n (~> 0.6, >= 0.6.4)
13
+ minitest (~> 4.2)
14
+ multi_json (~> 1.3)
15
+ thread_safe (~> 0.1)
16
+ tzinfo (~> 0.3.37)
17
+ adamantium (0.2.0)
18
+ ice_nine (~> 0.11.0)
19
+ memoizable (~> 0.4.0)
20
+ anima (0.2.0)
21
+ abstract_type (~> 0.0.7)
22
+ adamantium (~> 0.1)
23
+ equalizer (~> 0.0.8)
24
+ appraisal (1.0.0.beta2)
25
+ bundler
26
+ rake
27
+ thor (>= 0.14.0)
28
+ ast (1.1.0)
29
+ atomic (1.1.14)
30
+ concord (0.1.4)
31
+ adamantium (~> 0.1)
32
+ equalizer (~> 0.0.7)
33
+ descendants_tracker (0.0.3)
34
+ diff-lcs (1.2.5)
35
+ equalizer (0.0.9)
36
+ i18n (0.6.9)
37
+ ice_nine (0.11.0)
38
+ inflecto (0.0.2)
39
+ memoizable (0.4.0)
40
+ thread_safe (~> 0.1.3)
41
+ minitest (4.7.5)
42
+ multi_json (1.8.4)
43
+ mutant (0.3.5)
44
+ abstract_type (~> 0.0.7)
45
+ adamantium (~> 0.1)
46
+ anima (~> 0.2.0)
47
+ concord (~> 0.1.4)
48
+ descendants_tracker (~> 0.0.1)
49
+ equalizer (~> 0.0.7)
50
+ ice_nine (~> 0.9)
51
+ inflecto (~> 0.0.2)
52
+ parser (~> 2.1.4)
53
+ procto (~> 0.0.2)
54
+ rspec (~> 2.14.1)
55
+ unparser (~> 0.1.8)
56
+ parser (2.1.4)
57
+ ast (~> 1.1)
58
+ slop (~> 3.4, >= 3.4.5)
59
+ procto (0.0.2)
60
+ rake (10.1.1)
61
+ rspec (2.14.1)
62
+ rspec-core (~> 2.14.0)
63
+ rspec-expectations (~> 2.14.0)
64
+ rspec-mocks (~> 2.14.0)
65
+ rspec-core (2.14.7)
66
+ rspec-expectations (2.14.5)
67
+ diff-lcs (>= 1.1.3, < 2.0)
68
+ rspec-mocks (2.14.5)
69
+ slop (3.4.7)
70
+ thor (0.18.1)
71
+ thread_safe (0.1.3)
72
+ atomic
73
+ tzinfo (0.3.38)
74
+ unparser (0.1.9)
75
+ abstract_type (~> 0.0.7)
76
+ adamantium (~> 0.1)
77
+ concord (~> 0.1.4)
78
+ equalizer (~> 0.0.7)
79
+ parser (~> 2.1.0)
80
+ procto (~> 0.0.2)
81
+
82
+ PLATFORMS
83
+ ruby
84
+
85
+ DEPENDENCIES
86
+ action_controller-parents!
87
+ activesupport (= 4.0.0)
88
+ appraisal (= 1.0.0.beta2)
89
+ bundler (~> 1.3)
90
+ mutant (~> 0.3.5)
91
+ rake
92
+ rspec
@@ -1,5 +1,5 @@
1
1
  module ActionController
2
2
  class Parents < Module
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -1,4 +1,5 @@
1
- require "action_controller/parents/version"
1
+ require 'active_support/core_ext/string/conversions'
2
+ require 'action_controller/parents/version'
2
3
 
3
4
  module ActionController
4
5
  # To be included in a controller.
@@ -9,7 +10,7 @@ module ActionController
9
10
  # @example Organization and Group as parents
10
11
  #
11
12
  # class MembersController < ActionController::Base
12
- # include Parents.new(Organization, Group)
13
+ # include ActionController::Parents.new(Organization, Group)
13
14
  #
14
15
  # def index
15
16
  # @members = parent_resource.members
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1 @@
1
- require 'active_support/all'
2
1
  require 'action_controller/parents'
3
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_controller-parents
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maarten Claes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-03 00:00:00.000000000 Z
11
+ date: 2014-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,16 +56,30 @@ dependencies:
56
56
  name: mutant
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.3.5
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.3.5
69
+ - !ruby/object:Gem::Dependency
70
+ name: appraisal
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 1.0.0.beta2
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 1.0.0.beta2
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: activesupport
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -89,12 +103,18 @@ extra_rdoc_files: []
89
103
  files:
90
104
  - .gitignore
91
105
  - .rspec
106
+ - .travis.yml
92
107
  - .yardopts
108
+ - Appraisals
93
109
  - Gemfile
94
110
  - LICENSE.txt
95
111
  - README.md
96
112
  - Rakefile
97
113
  - action_controller-parents.gemspec
114
+ - gemfiles/activesupport_3.gemfile
115
+ - gemfiles/activesupport_3.gemfile.lock
116
+ - gemfiles/activesupport_4.gemfile
117
+ - gemfiles/activesupport_4.gemfile.lock
98
118
  - lib/action_controller/parents.rb
99
119
  - lib/action_controller/parents/version.rb
100
120
  - spec/spec_helper.rb
@@ -126,4 +146,3 @@ summary: Easily access parent resources
126
146
  test_files:
127
147
  - spec/spec_helper.rb
128
148
  - spec/unit/action_controller-parents_spec.rb
129
- has_rdoc: