my_plugin 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDYyMmRkMWVmYTE3NjAxODhlNGM3MWQ5YmMwOWE2YzZjMDc5NmM0OA==
4
+ NjBkNzgyZDUwNDM2MTJmOTRlNmE3MzI0N2IwZjYxNDYyMDE2YTA3Ng==
5
5
  data.tar.gz: !binary |-
6
- NmY1ZTgyZWRmMGJmNGQ3ODgyODQxNzEwMmMyZDJjYjQ5ODcxOTJjMQ==
6
+ ZDU4ZjExODFhYmU0MmY4MDZlMWZjOGY1NzgwMTRhNmJkYjVkMzAwMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGQ4ODcwNjk4NGVjZThiZDVmOTQxMjc4NTZiODRlNTg5OTAxNDAyMjA1Y2Fl
10
- MmU1NDRlZTAwYjQ0NGFhZTQwNjM0MzI2ZWMxZjA3YzY5MDU1N2RmNWQ3YzRj
11
- YzllZjQyNzNiMDZmZDMyZDUwMzI5MmYwZTRiOTVjMmZkNGFhZDg=
9
+ ZDg5ZmU2ZDZiMTU1MDAwNTc2YzRkNjFmZDRjNGVmZDAzNTM4NmQ3OTljZGMx
10
+ MDQyZGY3NThkMjliNDFmMDUyNmFlOWUxOTcwYTlmMGUzY2U3MjY1OWI4Yzhh
11
+ YjM4NjI1ZDZiZDIwYTI1NTcwZDhhYzlkNTE2ZTg5NmYwMmNmMDM=
12
12
  data.tar.gz: !binary |-
13
- MTk2Njg5ZjIyNWI0OWJkZGI1OGEyY2VlMTU1ODg1ODdlOWNlMjM5Y2FmZDM5
14
- ZjgxOGEwYWM5M2YxNmI1MmYzZDMzMTg3ZjJkMzRiYjg2M2Q5NWQ5NmFjYTkw
15
- ZTlmYjk4MWExOWFiMjYxMzExZWEzYWJlYmI4MDNjYjQ0ZmFmNWQ=
13
+ N2I5MmZkMWRjMzA1NjljODQ3ZTc2OTcwNGRlODdmNzBhYmUwMzA5ODdiYTFi
14
+ NjM4MjUzYzZlMGZiY2U5Y2U4NThmMTc3Y2RjMjlmOTlhZTJmMDc0ZDUyMjQ4
15
+ OGExYmRjMGNhOTc5ZTE1MjE2YmY0ZWYzYjkwZDdhZWU0ZWQ0YzM=
@@ -1,3 +1,3 @@
1
1
  module MyPlugin
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
data/lib/my_plugin.rb CHANGED
@@ -3,11 +3,15 @@ require "my_plugin/version"
3
3
  module MyPlugin
4
4
  require 'my_plugin/railtie' if defined?(Rails)
5
5
 
6
- def self.yo(temp)
7
- equal = temp.split("=")
8
- dot = equal[0].split(".")
9
- hash = Hash[*equal[1].split(',')]
10
- puts "#{dot[0].class}"
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
11
+ # equal = temp.split("=")
12
+ # dot = equal[0].split(".")
13
+ # hash = Hash[*equal[1].split(',')]
14
+ # puts "#{dot[0].class}"
11
15
  puts "Hello World"
12
16
  end
13
17
  end
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.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sohair Ahmad