my_plugin 0.1.7 → 0.1.8
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 +8 -8
- data/lib/my_plugin/version.rb +1 -1
- data/lib/tasks/my_plugin.rake +13 -13
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODFkMjUyMjI2OTEwNjQyMGRlZTU4MTgyMmIyYzU1MTIzZDE1NTkyZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGFkNjVlNTdlMDlkODBiZmE3NWY4MTg2YzYwMjg2ZGNiMDU3YzliNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Mjg0MGYwNmRmNDZmMWIyZTI0N2ZhN2NhYTdiNmQ0MjlkOGRmOThkNDYyZWY4
|
10
|
+
YzdjOTc1YTQ2MTNlMzg4ZGIyMmIxMzNmOWVjNzRhZjVlNDhiZDA4NGJlZDFh
|
11
|
+
ZWI0Y2VkN2RiYzQ2ZWNiMzc3YzNjMzMwNWQzYjY1ZWU3ODg1ZTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmVlZDI3MzI2NTRiMWMyYWZjZmMwNmRkYTNiM2ZjYjdlMWU3MWFiMDcxZWJh
|
14
|
+
N2Y0NWM5MWU5NGVhZTYzMTc1MGNiMzIwODBlN2U1NDNhN2Y4YmQ5MzY4ZDkw
|
15
|
+
NjNmMmI3NGZiOTBjNDEzODdhNGFiNzA0ZDJkOTBhNzE0MjQyMzE=
|
data/lib/my_plugin/version.rb
CHANGED
data/lib/tasks/my_plugin.rake
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
namespace :db do
|
2
2
|
|
3
3
|
desc 'my plugins rake task'
|
4
|
-
task :field
|
4
|
+
task :field => :environment # :response, :repeat do |t, args|
|
5
5
|
|
6
|
-
response = args[:response] || 'Task'
|
7
|
-
repeat = (args[:repeat] || 1).to_i
|
8
|
-
model_class =
|
6
|
+
# response = args[:response] || 'Task'
|
7
|
+
# repeat = (args[:repeat] || 1).to_i
|
8
|
+
model_class = User
|
9
|
+
puts model_class.first.username
|
10
|
+
# puts "When I say Rake, you say '#{response}'!"
|
9
11
|
|
10
|
-
|
12
|
+
# repeat.times do
|
11
13
|
|
12
|
-
|
14
|
+
# sleep 1
|
15
|
+
# puts "Rake!"
|
16
|
+
# sleep 1
|
17
|
+
# puts "#{response}!"
|
18
|
+
# puts model_class.first.username
|
13
19
|
|
14
|
-
|
15
|
-
puts "Rake!"
|
16
|
-
sleep 1
|
17
|
-
puts "#{response}!"
|
18
|
-
puts model_class.first.username
|
19
|
-
|
20
|
-
end
|
20
|
+
# end
|
21
21
|
end
|
22
22
|
end
|