Koyaaan 0.1.3 → 0.1.4
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 +4 -4
- data/lib/Koyaaan.rb +23 -20
- data/lib/Koyaaan/convert_toot.rb +1 -1
- data/lib/Koyaaan/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00f4e1faec5029aedb15234d5d97ddb5cedd27b9295f3d4929ef589421df9623
|
4
|
+
data.tar.gz: 0d48460e139aa8883e6fca21f03beb1df4294622e8e715b90e2ede812774f774
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6d140e98cb2b702ab974b760eaefeeb8a3e6d8bd1f972da7f14299525bd232621f67aa1b054ae512d636093c9e69b968fff5ca768100bbae7b05d753c0b86b9
|
7
|
+
data.tar.gz: ec61cf778e50f7845a7432de6f329a9ecf41312a78ff21a54208ad33444c2033be140ef08241b5602369492338852cc7dcf8a6b2b4e49a8601939c46d73fd98a
|
data/lib/Koyaaan.rb
CHANGED
@@ -1,20 +1,23 @@
|
|
1
|
-
require "Koyaaan/version"
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
1
|
+
require "Koyaaan/version"
|
2
|
+
require "Koyaaan/convert"
|
3
|
+
require "Koyaaan/convert_random"
|
4
|
+
require "Koyaaan/statuses_controller"
|
5
|
+
|
6
|
+
module Koyaaan
|
7
|
+
def self.setup(&proc)
|
8
|
+
# create function for Monkey patch
|
9
|
+
extend self
|
10
|
+
(
|
11
|
+
class << self;
|
12
|
+
self
|
13
|
+
end).module_eval do
|
14
|
+
define_method 'convert_toot', &proc
|
15
|
+
# define_method 'b' do
|
16
|
+
# p 'b'
|
17
|
+
# end
|
18
|
+
end
|
19
|
+
|
20
|
+
# Monkey patch
|
21
|
+
Api::V1::StatusesController.prepend(ApiV1StatusesControllerPatch)
|
22
|
+
end
|
23
|
+
end
|
data/lib/Koyaaan/convert_toot.rb
CHANGED
data/lib/Koyaaan/version.rb
CHANGED