seiya 0.0.7.4 → 0.0.7.5
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/seiya/version.rb +1 -1
- data/lib/seiya.rb +18 -15
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4d611112f85f93780736302a06e67091bb3114a4
|
|
4
|
+
data.tar.gz: 941172b9cd341b05e0af011c1a44aadef7aa3ee2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1ee4335d3b8d2c4534117e56b0a874bdca536ed1779813a9aa613f8e36fb53feb167d1b0a6ed4b85f7ff252d608a5af4f0e120898978773f474876ccddb2dbf
|
|
7
|
+
data.tar.gz: 92a7195643cc5231e23f639b0409289e174a6e3f80051b3bc8471ca034e5a200a9e02c8ba84a740680b46920a62ebb9d96c2035feab209c616fbb74d87b74e61
|
data/lib/seiya/version.rb
CHANGED
data/lib/seiya.rb
CHANGED
|
@@ -191,9 +191,9 @@ Use "seiya <command> -h" to see more info about a command
|
|
|
191
191
|
puts 'Please in a seiya project directory!'
|
|
192
192
|
exit!
|
|
193
193
|
end
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
File.open File.join(load_path, 'tasks.rb'), 'a' do |file|
|
|
195
|
+
file.puts "require 'tasks/#{task_name}'"
|
|
196
|
+
end
|
|
197
197
|
|
|
198
198
|
task_dir = File.join load_path, 'tasks'
|
|
199
199
|
unless File.exist? task_dir
|
|
@@ -204,8 +204,8 @@ Use "seiya <command> -h" to see more info about a command
|
|
|
204
204
|
puts "task file: #{task_file_name} exist!"
|
|
205
205
|
exit!
|
|
206
206
|
end
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
File.write(task_file_name,
|
|
208
|
+
%(require 'seiya'
|
|
209
209
|
|
|
210
210
|
module Tasks
|
|
211
211
|
class #{task_name.camelize} < Seiya::Task
|
|
@@ -216,9 +216,8 @@ module Tasks
|
|
|
216
216
|
def parse(response, enum)
|
|
217
217
|
end
|
|
218
218
|
end
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
end
|
|
219
|
+
end
|
|
220
|
+
))
|
|
222
221
|
end
|
|
223
222
|
|
|
224
223
|
def gen_project_file(project_name)
|
|
@@ -238,13 +237,14 @@ settings = #{project_name}/settings|Settings
|
|
|
238
237
|
PIPELINES = {
|
|
239
238
|
'#{project_name}/pipelines|Pipelines::Test' => 10,
|
|
240
239
|
}
|
|
241
|
-
end
|
|
240
|
+
end
|
|
241
|
+
))
|
|
242
242
|
|
|
243
|
-
File.write("#{base_path}/items.rb",
|
|
243
|
+
File.write("#{base_path}/items.rb", "require 'items/test'\n")
|
|
244
244
|
|
|
245
|
-
File.write("#{base_path}/pipelines.rb",
|
|
245
|
+
File.write("#{base_path}/pipelines.rb", "require 'pipelines/test'\n")
|
|
246
246
|
|
|
247
|
-
File.write("#{base_path}/tasks.rb",
|
|
247
|
+
File.write("#{base_path}/tasks.rb", "require 'tasks/test'\n")
|
|
248
248
|
|
|
249
249
|
File.write("#{base_path}/items/test.rb",
|
|
250
250
|
%(require 'seiya'
|
|
@@ -255,7 +255,8 @@ module Items
|
|
|
255
255
|
inspect
|
|
256
256
|
end
|
|
257
257
|
end
|
|
258
|
-
end
|
|
258
|
+
end
|
|
259
|
+
))
|
|
259
260
|
|
|
260
261
|
File.write("#{base_path}/pipelines/test.rb",
|
|
261
262
|
%(require 'seiya'
|
|
@@ -269,7 +270,8 @@ module Pipelines
|
|
|
269
270
|
item
|
|
270
271
|
end
|
|
271
272
|
end
|
|
272
|
-
end
|
|
273
|
+
end
|
|
274
|
+
))
|
|
273
275
|
|
|
274
276
|
File.write("#{base_path}/tasks/test.rb",
|
|
275
277
|
%(require 'seiya'
|
|
@@ -286,7 +288,8 @@ module Tasks
|
|
|
286
288
|
enum.yield item
|
|
287
289
|
end
|
|
288
290
|
end
|
|
289
|
-
end
|
|
291
|
+
end
|
|
292
|
+
))
|
|
290
293
|
|
|
291
294
|
puts "New Seiya project '#{project_name}' created in:
|
|
292
295
|
#{File.join(Dir.pwd, project_name)}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: seiya
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.7.
|
|
4
|
+
version: 0.0.7.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- yetone
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-02-
|
|
11
|
+
date: 2015-02-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email: i@yetone.net
|