my_plugin 0.5.3 → 0.5.4
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 +8 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzQ5NGI3MjQxZjhkY2NlOTliNTdhZDdjZDEyNWNiMWI5Mzc2M2VmYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWRkN2YwYTAzNGQ0ZmFhYzQ4ZTg3NjBlYjNlM2EyZWRmN2I1NjMwNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGNlZTI0ZDgwNWFmNDdkMjNhM2UzMzdkMjYzNmZjY2U5NTQwYWFjMjNlNzMy
|
10
|
+
OWI4YmVlNDhmYTk0OGQzMTI0MmMyZmYxYjI1ODExMWRkOGRjZWU4N2FmODRl
|
11
|
+
ZmI2OThhN2U1MmUzMTI3ZGM0OGZkM2Q0NzE0OWQ0M2JjOGEyOTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTNhYTIyNGQ2YzRlNjE0MjM2ZmVlYTU4NjgyNGY1NjY1MTQwZWI1ZjJjZDY2
|
14
|
+
NzUyNDJhYzExNTYyY2Q2OTU2NGVkMTE0M2U1NTBkOGE2ZTgyYjExNmM4YmI2
|
15
|
+
ODdiZGFmMDAxZDJjZThlODhmYzU4ZTQzOWY3Y2I5ZGU5ZDU2OWM=
|
data/lib/my_plugin/version.rb
CHANGED
data/lib/my_plugin.rb
CHANGED
@@ -3,8 +3,14 @@ require "my_plugin/version"
|
|
3
3
|
module MyPlugin
|
4
4
|
require 'my_plugin/railtie' if defined?(Rails)
|
5
5
|
|
6
|
-
def self.
|
6
|
+
def self.new_hash(obj, key_pair)
|
7
7
|
obj = Hash[*key_pair.split(',')]
|
8
|
-
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.merg_hash(obj, key_pair)
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.trim(obj)
|
14
|
+
obj = obj[4]
|
9
15
|
end
|
10
16
|
end
|