remotty-rails 0.0.2 → 0.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: 3caea27a28a28b64f6ea59fdb326c9ea32f5e3ae
4
- data.tar.gz: 03717a04e39d8f9814ea4777ac8c558a2710ec2d
3
+ metadata.gz: fc4301b92aef99d64c32ca021fbf84f83f43931e
4
+ data.tar.gz: 5828b70eef0507dd0ffb7a78f513e14ea24365a4
5
5
  SHA512:
6
- metadata.gz: ef893e27bed967ade7d6b626aeabf6b1dc5a78628199da80bb445b769419d78120e8aa3b502de5f35d2fd1cc412a707cc0afd661a96a92bed8fc064ce3623b82
7
- data.tar.gz: 8d371b18d992246d7dd6bcd91b525e20c461bce541ef4d303fd25d0859ec71ccadcdcec2999d120e46f89a8e083164329b6c8db35104dc76acbb4aa8535e2312
6
+ metadata.gz: af2fdbeaa5b0795a40d21fb3d17d0b72942fcf8d65d3f441e17e1323c7dd872421d31cd6dea5c38c049891edf3665893896e950a71e814b84c2f755c66a4fe82
7
+ data.tar.gz: c213217609d3e7ae4c8dee24e8ecbed099d0bab304c29cb0da7ede032cc9a936f78f8ee54e10e4dc5c5f571682acd3abd4a237435b94800b3c47de307094a031
data/Gemfile CHANGED
@@ -10,6 +10,7 @@ gem 'active_model_serializers'
10
10
  gem 'devise'
11
11
  gem 'omniauth-facebook'
12
12
  gem 'omniauth-twitter'
13
+ gem 'cancan'
13
14
 
14
15
  # File upload
15
16
  gem 'paperclip'
@@ -31,10 +31,13 @@ module Remotty::Rails
31
31
  ActiveModel::Serializer.root = false
32
32
  ActiveModel::ArraySerializer.root = false
33
33
 
34
- # wrap parameters
35
34
  ActiveSupport.on_load(:action_controller) do
35
+ # wrap parameters
36
36
  include ActionController::ParamsWrapper
37
37
  wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
38
+
39
+ # cancan
40
+ include CanCan::ControllerAdditions
38
41
  end
39
42
 
40
43
  # paperclip
@@ -1,5 +1,5 @@
1
1
  module Remotty
2
2
  module Rails
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.add_dependency 'devise', '>= 3.2.4'
25
25
  spec.add_dependency 'omniauth-facebook', '>= 1.6.0'
26
26
  spec.add_dependency 'omniauth-twitter', '>= 1.0.1'
27
+ spec.add_dependency 'cancan', '>= 1.6.10'
27
28
 
28
29
  spec.add_dependency 'paperclip', '>= 4.1.1'
29
30
  spec.add_dependency 'rmagick', '>= 2.13.2'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remotty-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chungsub Kim
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-19 00:00:00.000000000 Z
12
+ date: 2014-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack-cors
@@ -81,6 +81,20 @@ dependencies:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: 1.0.1
84
+ - !ruby/object:Gem::Dependency
85
+ name: cancan
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 1.6.10
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: 1.6.10
84
98
  - !ruby/object:Gem::Dependency
85
99
  name: paperclip
86
100
  requirement: !ruby/object:Gem::Requirement