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 +8 -8
- data/lib/my_plugin/version.rb +1 -1
- data/lib/my_plugin.rb +2 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjIxYWU5NDRiZjVjM2UzMjRiZmM4MTU1OGM0OTBhYWU0M2IxZTFmMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Njc3ZGFiNTcyYzE3ZmQ5NzAzMDE5OWNiNGFiZjFiMTE1ZDZhNjk5NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWQ4ODA0YzVmOGZmMzZjMjUyNTc4YWUyN2IxNWIyZjYwNzg1NTRjMjI4NDc1
|
10
|
+
MGNlNWZmODc1ZTFkNzE1YzhhZjVmYzJlMjQ4ZWQyZWYwNTAwMTk3NDdhZDBi
|
11
|
+
MzA4NmQ1MTY3MWU2ZGNiNTNiODRkNGM2ODI2OGE4MjA3ZjRjOTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzgwNzRlMzRjMzI2YTU1OGUxNWVjYWYxZWI1M2MwYTgwMTk4MGNjYzJmNTQw
|
14
|
+
MzAyOWI0M2Y5N2E4NTMyNDA4NGE3YjNkZjdjYzJkYzdjMmVlYmZhMDRlZTk0
|
15
|
+
NTYyN2RlMWU5NDcxNDczZTlhNjRlNjkzOGVlMmQ5MWY3NDVmMzk=
|
data/lib/my_plugin/version.rb
CHANGED
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.
|
7
|
-
|
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(',')]
|