zertico 1.1.1 → 1.2.0

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: f39db9160bae1df0a6d7555e28d3669d02facde7
4
+ data.tar.gz: 2d995876b5b73394b4e4c0841ab0b62356da2971
5
+ SHA512:
6
+ metadata.gz: 6628233f99f1a51e03974c94f0d76237aa45eba6d0ef0793d3268c9d8de999b4362ec340f945dd29c2fb243392cf6d39d6f863d61ec0dedffbd56ff1240d3c95
7
+ data.tar.gz: b676888e6346bd3891a84c52572408766e4c07bc2e6c5752926a44a18a7666757dddc2c4922128e503ecd78cbb2516432c644b3424930a32b7e23c970931ee5a
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-1.9.3
1
+ 2.1.1
data/.travis.yml CHANGED
@@ -1,7 +1,27 @@
1
1
  rvm:
2
+ - 1.8.7
2
3
  - 1.9.2
3
4
  - 1.9.3
5
+ - 2.0.0
6
+ - 2.1.1
7
+ - ree
4
8
  - jruby
5
9
  gemfile:
6
10
  - gemfiles/Gemfile.rails3.1
7
11
  - gemfiles/Gemfile.rails3.2
12
+ - gemfiles/Gemfile.rails4.0
13
+ - gemfiles/Gemfile.rails4.1
14
+ matrix:
15
+ exclude:
16
+ - rvm: 1.8.7
17
+ gemfile: gemfiles/Gemfile.rails4.0
18
+ - rvm: ree
19
+ gemfile: gemfiles/Gemfile.rails4.0
20
+ - rvm: 1.9.2
21
+ gemfile: gemfiles/Gemfile.rails4.0
22
+ - rvm: 1.8.7
23
+ gemfile: gemfiles/Gemfile.rails4.1
24
+ - rvm: ree
25
+ gemfile: gemfiles/Gemfile.rails4.1
26
+ - rvm: 1.9.2
27
+ gemfile: gemfiles/Gemfile.rails4.1
@@ -0,0 +1,5 @@
1
+ source :rubygems
2
+
3
+ gem 'rails', '4.0'
4
+
5
+ gemspec :path => '../'
@@ -0,0 +1,5 @@
1
+ source :rubygems
2
+
3
+ gem 'rails', '4.1'
4
+
5
+ gemspec :path => '../'
@@ -19,9 +19,16 @@ module Zertico
19
19
  super
20
20
  end
21
21
 
22
- def respond_to_missing?(method_name, include_private = false)
23
- return true if interface.respond_to?(method_name)
24
- super
22
+ if RUBY_VERSION == '1.8.7'
23
+ def respond_to?(method_name, include_private = false)
24
+ return true if self.interface.respond_to?(method_name)
25
+ super
26
+ end
27
+ else
28
+ def respond_to_missing?(method_name, include_private = false)
29
+ return true if self.interface.respond_to?(method_name)
30
+ super
31
+ end
25
32
  end
26
33
 
27
34
  protected
@@ -7,6 +7,14 @@ module Zertico
7
7
 
8
8
  protected
9
9
 
10
+ def default_render
11
+ if request.headers['X-PJAX']
12
+ render layout: false
13
+ else
14
+ super
15
+ end
16
+ end
17
+
10
18
  def navigation_behavior(error)
11
19
  if get?
12
20
  raise error
@@ -1,3 +1,3 @@
1
1
  module Zertico
2
- VERSION = '1.1.1'
2
+ VERSION = '1.2.0'
3
3
  end
data/zertico.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features|gemfiles)/})
18
18
  gem.require_paths = %w(lib)
19
19
 
20
- gem.add_runtime_dependency 'rails', '>= 3.0.0'
20
+ gem.add_runtime_dependency 'rails', '>= 3.1.0'
21
21
  gem.add_development_dependency 'rspec'
22
22
  gem.add_development_dependency 'coveralls'
23
- end
23
+ end
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zertico
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
5
- prerelease:
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Paulo Henrique Lopes Ribeiro
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-04 00:00:00.000000000 Z
11
+ date: 2014-04-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
- version: 3.0.0
19
+ version: 3.1.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: 3.0.0
26
+ version: 3.1.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: coveralls
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: Easy Rails development using the Zertico Way
@@ -66,17 +59,19 @@ executables: []
66
59
  extensions: []
67
60
  extra_rdoc_files: []
68
61
  files:
69
- - .gitignore
70
- - .rspec
71
- - .ruby-gemset
72
- - .ruby-version
73
- - .travis.yml
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".ruby-gemset"
65
+ - ".ruby-version"
66
+ - ".travis.yml"
74
67
  - Gemfile
75
68
  - LICENSE.txt
76
69
  - README.md
77
70
  - Rakefile
78
71
  - gemfiles/Gemfile.rails3.1
79
72
  - gemfiles/Gemfile.rails3.2
73
+ - gemfiles/Gemfile.rails4.0
74
+ - gemfiles/Gemfile.rails4.1
80
75
  - lib/zertico.rb
81
76
  - lib/zertico/accessor.rb
82
77
  - lib/zertico/controller.rb
@@ -103,37 +98,32 @@ files:
103
98
  homepage:
104
99
  licenses:
105
100
  - MIT
101
+ metadata: {}
106
102
  post_install_message:
107
103
  rdoc_options: []
108
104
  require_paths:
109
105
  - lib
110
106
  required_ruby_version: !ruby/object:Gem::Requirement
111
- none: false
112
107
  requirements:
113
- - - ! '>='
108
+ - - ">="
114
109
  - !ruby/object:Gem::Version
115
110
  version: '0'
116
- segments:
117
- - 0
118
- hash: -2706871665374996323
119
111
  required_rubygems_version: !ruby/object:Gem::Requirement
120
- none: false
121
112
  requirements:
122
- - - ! '>='
113
+ - - ">="
123
114
  - !ruby/object:Gem::Version
124
115
  version: '0'
125
- segments:
126
- - 0
127
- hash: -2706871665374996323
128
116
  requirements: []
129
117
  rubyforge_project:
130
- rubygems_version: 1.8.25
118
+ rubygems_version: 2.2.2
131
119
  signing_key:
132
- specification_version: 3
120
+ specification_version: 4
133
121
  summary: Models and patterns used by Zertico to achieve greater agility
134
122
  test_files:
135
123
  - gemfiles/Gemfile.rails3.1
136
124
  - gemfiles/Gemfile.rails3.2
125
+ - gemfiles/Gemfile.rails4.0
126
+ - gemfiles/Gemfile.rails4.1
137
127
  - spec/fake_app/admin/user_accessor.rb
138
128
  - spec/fake_app/admin/user_controller.rb
139
129
  - spec/fake_app/admin/user_service.rb