my_plugin 0.4.4 → 0.4.5

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
- NGFhYWNhNjViOTE1ZGYwZWFmZWUxZjk3NjYwYjNkOTZlZjVjNWNiNg==
4
+ MjIxYWU5NDRiZjVjM2UzMjRiZmM4MTU1OGM0OTBhYWU0M2IxZTFmMg==
5
5
  data.tar.gz: !binary |-
6
- NTYwMTBlMTI1Zjg5N2YyYjBlYWExNjhiMTA5Y2RjZjRlOTdlZjc1Zg==
6
+ Njc3ZGFiNTcyYzE3ZmQ5NzAzMDE5OWNiNGFiZjFiMTE1ZDZhNjk5NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NmY3ZWI1YjllYTg0YjAwNzVmZTA3ODRkMjMzMzA0NjFjN2JmNWYxMjc5OWMz
10
- MDE1OTQyMzJhZWY4YzA2ZjRlOTFmNGViMDI4ZTUxMjVjMzgzYjAxY2Y1OTc2
11
- ZDA3OWE1ZTI1NTg0ODY5MDExYzU5MWFlYjBkY2ViM2EyNzU5ZTI=
9
+ YWQ4ODA0YzVmOGZmMzZjMjUyNTc4YWUyN2IxNWIyZjYwNzg1NTRjMjI4NDc1
10
+ MGNlNWZmODc1ZTFkNzE1YzhhZjVmYzJlMjQ4ZWQyZWYwNTAwMTk3NDdhZDBi
11
+ MzA4NmQ1MTY3MWU2ZGNiNTNiODRkNGM2ODI2OGE4MjA3ZjRjOTk=
12
12
  data.tar.gz: !binary |-
13
- NjNhZTg2NGUzMjNkZGYxZWY3YTAzNzAxY2RhMzJmMTA5OWVjNWQ0NGZhYjhk
14
- N2JhZTAzNjUyYzI2MTUwNDMwYjBiYmFhYjQ2ZTY0OTRlMWY1YWRlZmIxOTEy
15
- N2JiMTYxOGE5YzY2NWE2MjU2ZTcwYjhjZWRkOTBkZjZkODU4ZWU=
13
+ MzgwNzRlMzRjMzI2YTU1OGUxNWVjYWYxZWI1M2MwYTgwMTk4MGNjYzJmNTQw
14
+ MzAyOWI0M2Y5N2E4NTMyNDA4NGE3YjNkZjdjYzJkYzdjMmVlYmZhMDRlZTk0
15
+ NTYyN2RlMWU5NDcxNDczZTlhNjRlNjkzOGVlMmQ5MWY3NDVmMzk=
@@ -1,3 +1,3 @@
1
1
  module MyPlugin
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
data/lib/my_plugin.rb CHANGED
@@ -3,11 +3,8 @@ require "my_plugin/version"
3
3
  module MyPlugin
4
4
  require 'my_plugin/railtie' if defined?(Rails)
5
5
 
6
- def self.yo(obj, field, key_pair)
7
- @obj = obj
8
- puts "#{@obj.class}"
9
- @obj.send(field+'=', Hash[*key_pair.split(',')]
10
- @obj.save
6
+ def self.hash(obj, key_pair)
7
+ obj = Hash[*key_pair.split(',')]
11
8
  # equal = temp.split("=")
12
9
  # dot = equal[0].split(".")
13
10
  # hash = Hash[*equal[1].split(',')]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sohair Ahmad