appsent 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,7 @@ class AppSent
12
12
  @type ||= Hash
13
13
  raise "params #{@type} and block given" if block_given? and not @type==Hash
14
14
  @path_to_config = File.join(@config_dir,@config_file_name+'.yml')
15
+ @self_error_msg = ''
15
16
  end
16
17
 
17
18
  def valid?
@@ -10,7 +10,7 @@ class AppSent
10
10
 
11
11
  # data => it's an actual data of parameter
12
12
  def initialize parameter, data_type, data, description, example, &block
13
- @parameter, @data_type, @data, @description, @example = (parameter.to_sym rescue parameter), data_type, data, description, example
13
+ @parameter, @data_type, @data, @description, @example = (parameter and parameter.to_sym), data_type, data, description, example
14
14
 
15
15
  @data_type ||= Hash
16
16
  raise WRONG_DATA_TYPE_PASSED_MSG unless @data_type.is_a?(Class)
@@ -1,3 +1,3 @@
1
1
  class AppSent
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - kucaahbe