circleci-parallel 0.4.0 → 0.4.1

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: ba034ecce3229419887d139c4e3a64a04083dbda
4
- data.tar.gz: 26ce5fa0f331d2545b76832c1d456967d4d3e396
3
+ metadata.gz: 4613a77e68888f34117d79b0dd40bc63006d7c33
4
+ data.tar.gz: 69f3b6d6ef9c1335e4fb2d50de2ddede656cca51
5
5
  SHA512:
6
- metadata.gz: 679fa08d79eb0dc0bc3dfae5a4185b432d564cc514535bb99d8baa1785dde61b3469e24d2a542576f19689c01c14c977856060657d5f38101819dc954c78baf9
7
- data.tar.gz: be0a6d766ab1bf05c243d9785f3087176ca16c12ad4e0a01b232d7c16f70d04ba7bb9174fc51180a1959214af02056f17a4d09e5ced69155c382275da71c12c7
6
+ metadata.gz: d98de038acc878c686307b7690dcd663df779d53613030ace6a30f1d0e9d62ca64275cdd64ef938156a5a322e2cbe387797d246c190575779f7ab56ff729fee0
7
+ data.tar.gz: 94d320c7b6e14125c9f639486f228819e27358309c29ed0e4ec186de83fb6c01b77434a859bd81cf3c1d0a88700470baa8f34654740ef6b995f7e1ba65f10243
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Development
4
4
 
5
+ ## v0.4.1
6
+
7
+ * Tweak UI messsages.
8
+
5
9
  ## v0.4.0
6
10
 
7
11
  * Print "Done." when join is complete.
data/README.md CHANGED
@@ -6,8 +6,8 @@
6
6
 
7
7
  # CircleCI::Parallel
8
8
 
9
- **CircleCI::Parallel** provides simple APIs for joining [CircleCI parallel nodes](https://circleci.com/docs/parallelism/)
10
- and sharing files between the nodes.
9
+ **CircleCI::Parallel** provides simple APIs for syncing [CircleCI parallel nodes](https://circleci.com/docs/parallelism/)
10
+ and transferring files between the nodes.
11
11
 
12
12
  ## Installation
13
13
 
@@ -32,7 +32,7 @@ Before using CircleCI::Parallel:
32
32
  * [Set up parallelism](https://circleci.com/docs/setting-up-parallelism/)
33
33
  for your project from the CircleCI web console.
34
34
 
35
- CircleCI::Parallel uses SSH for joining and transferring data between nodes.
35
+ CircleCI::Parallel uses SSH for syncing nodes and transferring data between nodes.
36
36
 
37
37
  ```yaml
38
38
  # circle.yml
@@ -46,8 +46,6 @@ test:
46
46
  # test.rb
47
47
  require 'circleci/parallel'
48
48
 
49
- merged_data = {}
50
-
51
49
  CircleCI::Parallel.configure do |config|
52
50
  # This hook will be invoked on all the nodes.
53
51
  # The current working directory in this hook is set to the local data directory
@@ -71,20 +69,22 @@ CircleCI::Parallel.configure do |config|
71
69
  # └── node2
72
70
  #    └── node_specific_data_you_saved_on_node2.txt
73
71
  config.after_download do
72
+ merged_data = {}
73
+
74
74
  Dir.glob('*/data.json') do |path|
75
75
  json = File.read(path)
76
76
  data = JSON.parse(json)
77
77
  node_name = File.dirname(path)
78
78
  merged_data[node_name] = data
79
79
  end
80
+
81
+ p merged_data
80
82
  end
81
83
  end
82
84
 
83
- # Join all nodes in the same build and gather all node data into the master node.
85
+ # Sync all nodes in the same build and gather all node data into the master node.
84
86
  # Invoking this method blocks until the join and data downloads are complete.
85
87
  CircleCI::Parallel.join
86
-
87
- p merged_data
88
88
  ```
89
89
 
90
90
  See [API docs](http://www.rubydoc.info/gems/circleci-parallel) for more details.
@@ -23,7 +23,7 @@ module CircleCI
23
23
  end
24
24
 
25
25
  def mark_as_joining
26
- Parallel.puts('Joining CircleCI nodes...')
26
+ Parallel.puts('Syncing CircleCI nodes...')
27
27
  File.write(JOIN_MARKER_FILE, '')
28
28
  end
29
29
 
@@ -3,7 +3,7 @@ module CircleCI
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 4
6
- PATCH = 0
6
+ PATCH = 1
7
7
 
8
8
  def self.to_s
9
9
  [MAJOR, MINOR, PATCH].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circleci-parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Nakayama