ii 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8617e002e48e46ada54c958a18956d022fd898c7
4
- data.tar.gz: ed9d0b6ace8d28afe37d2188026a941b363747cf
3
+ metadata.gz: 25d08cc33999b525ffee8a37951114ebe8b62f12
4
+ data.tar.gz: e80b09e5a913857990003a8de3928bd8701f4185
5
5
  SHA512:
6
- metadata.gz: 00c157071db6e5cd393e84b4d52b7c79d6a2f8c2fe2584ae4f7d59b714968423dc4339334130594dbb1caa01881c857e2cc3143ad04269458bed01bca4da5160
7
- data.tar.gz: fa3ed23f67137d6b0c5e11214834be9e5704406030958e295c60cb09421edd48d0af6c5648714c661758adb749fa1b4fc820f90ae4cc1a6c28186ccaaa177a86
6
+ metadata.gz: 8835d4e98941a1a7c08ab3cd5dbfdd4e61aade13663ec8218cd288941869115c7a0759a4667e730588b4bfb5df1d1cb8428fc70a7cf26611852f477411718984
7
+ data.tar.gz: f193708d287f49048cd20cb471f9f2a21a228673ac6772fd514a441693a5affda19398376a9a8d7d9064d7ea46be69b6bff635ee7289e4596512051f7ec298c1
@@ -2,7 +2,11 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="e84f7d08-73cc-41ba-b393-5662aed03467" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/ii.gemspec" afterPath="$PROJECT_DIR$/ii.gemspec" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/ii.rb" afterPath="$PROJECT_DIR$/lib/ii.rb" />
5
8
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/ii/version.rb" afterPath="$PROJECT_DIR$/lib/ii/version.rb" />
9
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
10
  </list>
7
11
  <ignored path="ii.iws" />
8
12
  <ignored path=".idea/workspace.xml" />
@@ -25,51 +29,31 @@
25
29
  </component>
26
30
  <component name="FileEditorManager">
27
31
  <leaf>
28
- <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
29
- <entry file="file://$PROJECT_DIR$/lib/ii/version.rb">
30
- <provider selected="true" editor-type-id="text-editor">
31
- <state vertical-scroll-proportion="0.021367522" vertical-offset="0" max-vertical-offset="702">
32
- <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
33
- <folding />
34
- </state>
35
- </provider>
36
- </entry>
37
- </file>
38
- <file leaf-file-name="test_ii.rb" pinned="false" current="false" current-in-tab="false">
39
- <entry file="file://$PROJECT_DIR$/test/test_ii.rb">
40
- <provider selected="true" editor-type-id="text-editor">
41
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="210">
42
- <caret line="5" column="25" selection-start-line="5" selection-start-column="25" selection-end-line="5" selection-end-column="25" />
43
- <folding />
44
- </state>
45
- </provider>
46
- </entry>
47
- </file>
48
32
  <file leaf-file-name="ii.rb" pinned="false" current="false" current-in-tab="false">
49
33
  <entry file="file://$PROJECT_DIR$/lib/ii.rb">
50
34
  <provider selected="true" editor-type-id="text-editor">
51
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="210">
52
- <caret line="5" column="25" selection-start-line="5" selection-start-column="25" selection-end-line="5" selection-end-column="25" />
35
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="270">
36
+ <caret line="5" column="30" selection-start-line="5" selection-start-column="30" selection-end-line="5" selection-end-column="30" />
53
37
  <folding />
54
38
  </state>
55
39
  </provider>
56
40
  </entry>
57
41
  </file>
58
- <file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
59
- <entry file="file://$PROJECT_DIR$/Gemfile">
42
+ <file leaf-file-name="ii.gemspec" pinned="false" current="false" current-in-tab="false">
43
+ <entry file="file://$PROJECT_DIR$/ii.gemspec">
60
44
  <provider selected="true" editor-type-id="text-editor">
61
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="150">
62
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
45
+ <state vertical-scroll-proportion="-12.692307" vertical-offset="0" max-vertical-offset="450">
46
+ <caret line="22" column="46" selection-start-line="22" selection-start-column="46" selection-end-line="22" selection-end-column="46" />
63
47
  <folding />
64
48
  </state>
65
49
  </provider>
66
50
  </entry>
67
51
  </file>
68
- <file leaf-file-name="ii.gemspec" pinned="false" current="false" current-in-tab="false">
69
- <entry file="file://$PROJECT_DIR$/ii.gemspec">
52
+ <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
53
+ <entry file="file://$PROJECT_DIR$/lib/ii/version.rb">
70
54
  <provider selected="true" editor-type-id="text-editor">
71
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="435">
72
- <caret line="17" column="38" selection-start-line="17" selection-start-column="38" selection-end-line="17" selection-end-column="38" />
55
+ <state vertical-scroll-proportion="0.021367522" vertical-offset="0" max-vertical-offset="702">
56
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
73
57
  <folding />
74
58
  </state>
75
59
  </provider>
@@ -118,11 +102,12 @@
118
102
  <component name="IdeDocumentHistory">
119
103
  <option name="changedFiles">
120
104
  <list>
121
- <option value="$PROJECT_DIR$/ii.gemspec" />
122
105
  <option value="$PROJECT_DIR$/bin/ii" />
123
106
  <option value="$PROJECT_DIR$/Rakefile" />
124
107
  <option value="$PROJECT_DIR$/test/test_ii.rb" />
125
108
  <option value="$PROJECT_DIR$/lib/ii.rb" />
109
+ <option value="$PROJECT_DIR$/Gemfile" />
110
+ <option value="$PROJECT_DIR$/ii.gemspec" />
126
111
  <option value="$PROJECT_DIR$/lib/ii/version.rb" />
127
112
  </list>
128
113
  </option>
@@ -359,7 +344,7 @@
359
344
  </entry>
360
345
  <entry file="file://$PROJECT_DIR$/test/test_ii.rb">
361
346
  <provider selected="true" editor-type-id="text-editor">
362
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="210">
347
+ <state vertical-scroll-proportion="0.10683761" vertical-offset="0" max-vertical-offset="702">
363
348
  <caret line="5" column="25" selection-start-line="5" selection-start-column="25" selection-end-line="5" selection-end-column="25" />
364
349
  <folding />
365
350
  </state>
@@ -367,32 +352,32 @@
367
352
  </entry>
368
353
  <entry file="file://$PROJECT_DIR$/Gemfile">
369
354
  <provider selected="true" editor-type-id="text-editor">
370
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="702">
371
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
355
+ <state vertical-scroll-proportion="0.06410257" vertical-offset="0" max-vertical-offset="702">
356
+ <caret line="3" column="7" selection-start-line="3" selection-start-column="7" selection-end-line="3" selection-end-column="7" />
372
357
  <folding />
373
358
  </state>
374
359
  </provider>
375
360
  </entry>
376
361
  <entry file="file://$PROJECT_DIR$/lib/ii.rb">
377
362
  <provider selected="true" editor-type-id="text-editor">
378
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="210">
379
- <caret line="5" column="25" selection-start-line="5" selection-start-column="25" selection-end-line="5" selection-end-column="25" />
363
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="270">
364
+ <caret line="5" column="30" selection-start-line="5" selection-start-column="30" selection-end-line="5" selection-end-column="30" />
380
365
  <folding />
381
366
  </state>
382
367
  </provider>
383
368
  </entry>
384
- <entry file="file://$PROJECT_DIR$/bin/ii">
369
+ <entry file="file://$PROJECT_DIR$/ii.gemspec">
385
370
  <provider selected="true" editor-type-id="text-editor">
386
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="135">
387
- <caret line="3" column="6" selection-start-line="3" selection-start-column="6" selection-end-line="3" selection-end-column="6" />
371
+ <state vertical-scroll-proportion="-12.692307" vertical-offset="0" max-vertical-offset="450">
372
+ <caret line="22" column="46" selection-start-line="22" selection-start-column="46" selection-end-line="22" selection-end-column="46" />
388
373
  <folding />
389
374
  </state>
390
375
  </provider>
391
376
  </entry>
392
- <entry file="file://$PROJECT_DIR$/ii.gemspec">
377
+ <entry file="file://$PROJECT_DIR$/bin/ii">
393
378
  <provider selected="true" editor-type-id="text-editor">
394
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="435">
395
- <caret line="17" column="38" selection-start-line="17" selection-start-column="38" selection-end-line="17" selection-end-column="38" />
379
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="135">
380
+ <caret line="3" column="6" selection-start-line="3" selection-start-column="6" selection-end-line="3" selection-end-column="6" />
396
381
  <folding />
397
382
  </state>
398
383
  </provider>
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
1
+ source 'https://ruby.taobao.org'
2
2
 
3
3
  # Specify your gem's dependencies in ii.gemspec
4
- gemspec
4
+ gemspec
data/ii.gemspec CHANGED
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.6"
22
22
  spec.add_development_dependency "rake"
23
+ spec.add_runtime_dependency "Parallel", "~> 1.0"
23
24
  end
data/lib/ii.rb CHANGED
@@ -1,8 +1,12 @@
1
1
  require "ii/version"
2
+ require "Parallel"
2
3
 
3
4
  class Ii
4
5
  def self.hi
5
- puts "Hello world!"
6
+ files = ['a', 'b', 'c', 'd']
7
+ Parallel.each(files){|file|
8
+ puts "Hello world!"
9
+ }
6
10
  return "Hello world!"
7
11
  end
8
12
  end
@@ -1,3 +1,3 @@
1
1
  class Ii
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ii
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - yuguo
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: Parallel
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
41
55
  description: '"Image Idea is a tool set for image operation, as resize and change
42
56
  color."'
43
57
  email: