sliver-rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sliver/rails/action.rb +10 -0
- data/sliver-rails.gemspec +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7c14d480287cbdc9a25447e5ceb56f4afb27fb9
|
4
|
+
data.tar.gz: bd5d0f5640681685401e4530b25159139d8eb45f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c856f578505b93d71e73e6c45733414d71f1c382be0e5cb13fdb8e908ed6c2ffb7292dacab3a5d70870add10706b3821a9ec91c099a1abd35781e8c04fcdf5c5
|
7
|
+
data.tar.gz: 15ae1661f31276d01692fda474dc30e05fca889e66603997943aab4ff5c1510765a45deeea461425e48ba382fc6b0b609be391e1753cdbc69c5b9a4464488dcf
|
data/lib/sliver/rails/action.rb
CHANGED
@@ -3,6 +3,16 @@ class Sliver::Rails::Action
|
|
3
3
|
|
4
4
|
BODIED_METHODS = %w( post put patch )
|
5
5
|
|
6
|
+
def self.call(environment)
|
7
|
+
request = ::Rack::Request.new environment
|
8
|
+
Rails.logger.info "Processing by #{name}"
|
9
|
+
if request.params.any?
|
10
|
+
Rails.logger.info " Parameters: #{request.params.inspect}"
|
11
|
+
end
|
12
|
+
|
13
|
+
super
|
14
|
+
end
|
15
|
+
|
6
16
|
def self.expose(name, options = {}, &block)
|
7
17
|
add_exposed_methods name, options, &block if block_given?
|
8
18
|
|
data/sliver-rails.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sliver-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sliver
|
@@ -63,9 +63,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
65
|
rubyforge_project:
|
66
|
-
rubygems_version: 2.
|
66
|
+
rubygems_version: 2.4.8
|
67
67
|
signing_key:
|
68
68
|
specification_version: 4
|
69
69
|
summary: Rails extensions for Sliver
|
70
70
|
test_files: []
|
71
|
-
has_rdoc:
|