simple_action 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTg4ZTEzMzI3MzYxMGNmNDFhYjM1MDkxN2ZlYzMwYzRmZjRlOTNhMg==
4
+ NzE4ZDAyZjZmZDc2NTI0YmYwYzAyMjZhODA5NjI4OTliYjhlY2MxOA==
5
5
  data.tar.gz: !binary |-
6
- N2VlM2Q5YzA5YjU0M2MxNTE0YmViYWQ3NGJiOTVlMmE1ZTgzNTRkOQ==
6
+ NDYyNTBmZWQwOGQ1MzhmYTk5YjBlMTY3M2YxZmYwMWYyMTc3NjBkMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTM5ZDljMWVjZjljNjNiYmI0NDM5NGYwMzA0NmUyYzVlOTkwM2VkMWFkMjJi
10
- MjQ1NDcwNTI2NzQwOGNiZWZhNjc5YThlN2ViZTY1MzJjMTVkZmU1NjEyZGJl
11
- MWI3MjgxNmViZWI0NzJlYWU2N2VlZTc1N2Q3ZDA2OGU2ZjIyNWU=
9
+ NzE3NjQxZTY1ZjgwZGE2MmMxNTA1YTkwNDRhYzUxMmE4MzUwMjZiNjNkN2Nk
10
+ ZTY4MTlhNDVhMzYyMTRjM2YzOTVjYWM5NTMyMTA3M2M3YWRhYjcwNzdiOWRh
11
+ MmUyYzEyZDlmNDFmODAyZGFkN2ZkMjdhNmRiM2JhYzcyMTJhNzM=
12
12
  data.tar.gz: !binary |-
13
- NWYwMzE1MGZiOTdiNGVkNzI5OGY2YjE4ZWZiNGRmZmM0NjJlY2ZmZGFmNWMw
14
- MGI5YzViZGY2MDY3MDJlZTRhNWU0NzM5MTlkOGE2MjBhMWJiMzg5MjYyYjg4
15
- YjZmMTY4YzMxMDk3ZDQ0ZjUwMTVhOGZlM2Y4YTY2ZTVhMDM1ZjI=
13
+ MDE1N2MxN2FlZDgzNjExNTM4ODNlYWNhOGE3MzQxYWFjZGEwMTVmNzkwMjAy
14
+ ZTUxYzcyNjNhOTY5ZjQ5MTExY2Q3MDVhMDUxODRhYTIzY2VhNjhkMGEzMDVh
15
+ NjEyZWE2YTk4ZjI3MDliYTUwYWY0N2I4OGFhYmI2ODg2N2U1MjM=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_action (1.5.2)
4
+ simple_action (1.6.0)
5
5
  simple_params (>= 1.6, < 2.0)
6
6
 
7
7
  GEM
@@ -48,7 +48,7 @@ GEM
48
48
  rspec-mocks (2.99.3)
49
49
  shoulda-matchers (2.8.0)
50
50
  activesupport (>= 3.0.0)
51
- simple_params (1.6.0)
51
+ simple_params (1.6.5)
52
52
  activemodel (>= 3.0, < 5.0)
53
53
  shoulda-matchers (~> 2.8)
54
54
  virtus (>= 1.0.0)
@@ -71,3 +71,6 @@ DEPENDENCIES
71
71
  rake (~> 10.1)
72
72
  rspec (~> 2.6)
73
73
  simple_action!
74
+
75
+ BUNDLED WITH
76
+ 1.11.2
@@ -9,6 +9,7 @@ module SimpleAction
9
9
 
10
10
  def params(&block)
11
11
  klass_name = self.model_name.to_s
12
+ klass_name = get_non_namespaced_module(klass_name)
12
13
  klass_name = klass_name + "Params"
13
14
  @params_class = Class.new(SimpleAction::Params).tap do |klass|
14
15
  extend ActiveModel::Naming
@@ -21,5 +22,10 @@ module SimpleAction
21
22
  def api_pie_documentation
22
23
  @params_class.api_pie_documentation
23
24
  end
25
+
26
+ private
27
+ def get_non_namespaced_module(name)
28
+ name.split('::').last || name
29
+ end
24
30
  end
25
31
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleAction
2
- VERSION = "1.6.0"
2
+ VERSION = "1.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_action
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - brycesenz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-03 00:00:00.000000000 Z
11
+ date: 2015-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_params
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  requirements: []
143
143
  rubyforge_project:
144
- rubygems_version: 2.4.6
144
+ rubygems_version: 2.4.8
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: A DSL for specifying services objects, including parameters and execution