nutella_framework 0.4.22 → 0.4.23

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11d4a4e13bce4f3789370fd910bfe1d05f645aaa
4
- data.tar.gz: 0df7db67fc1429a87131adacba91e47afbe44ee7
3
+ metadata.gz: fdf90218d76b70d6eb15505bebfdf195a6832d32
4
+ data.tar.gz: a4f33c70812b6acc488aa78b15f1ddf1b44a330a
5
5
  SHA512:
6
- metadata.gz: f82c8470f58c5846e8601926e9c59517a64f61c85271d590744e3799998dd777ac12dbade7fe987ec2eadfd81ebc863ccff1075b1975178382e3480b8f43077a
7
- data.tar.gz: 08ae436494a7aa2d65121f9eecfa42de276aae53b1316c934f32a4b3893e8195cccfa66adbc876aa852ca367edf02c83ab7cece706e1899829ed7cd36c5e7962
6
+ metadata.gz: e42b7e623b14a4bb21c15e965134a6a2fd75e6528007a51a12e6c692702f3b726cfb8906b805f941e6c0a30b5a013ee0f6de6842924cd788e7e9ddbd1d54fe36
7
+ data.tar.gz: 6744d35f6da79f9947e8169cd68f7b55bc212302395fb24bd27f2fa0366725556853d1ab96e34b7e7d587f86428b36fa554135d87e211ce2f7a9003fb4926a86
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.22
1
+ 0.4.23
@@ -30,13 +30,13 @@ nutella.f.net.subscribe_to_all_runs('configs/update', lambda do |message, app_id
30
30
  # Notify Update
31
31
 
32
32
  # Notify change of all configs
33
- publish_configs_update(new_configs)
33
+ publish_configs_update(app_id, run_id, new_configs)
34
34
 
35
35
  # Notify possible change of current config
36
36
  configs = configs_db['configs']
37
37
  id = '%d' % configs_db['currentConfig']
38
38
  config = configs[id]
39
- publish_mapping_update(config['mapping'])
39
+ publish_mapping_update(app_id, run_id, config['mapping'])
40
40
 
41
41
  end)
42
42
 
@@ -86,7 +86,7 @@ nutella.f.net.subscribe_to_all_runs('currentConfig/update', lambda do |message,
86
86
  puts 'Updated DB'
87
87
 
88
88
  # Notify Update
89
- publish_current_config_update(new_config)
89
+ publish_current_config_update(app_id, run_id, new_config)
90
90
 
91
91
  end)
92
92
 
@@ -98,7 +98,7 @@ nutella.f.net.subscribe_to_all_runs('currentConfig/updated', lambda do |message,
98
98
  configs = configs_db['configs']
99
99
  id = '%d' % configs_db['currentConfig']
100
100
  config = configs[id]
101
- publish_switch_config(config['mapping'])
101
+ publish_switch_config(app_id, run_id, config['mapping'])
102
102
  rescue => exception
103
103
  puts exception
104
104
  puts exception.backtrace
@@ -127,7 +127,7 @@ nutella.f.net.subscribe_to_all_runs('channels/update', lambda do |message, app_i
127
127
  end
128
128
 
129
129
  # Notify Update
130
- publish_channels_update(new_channels)
130
+ publish_channels_update(app_id, run_id, new_channels)
131
131
 
132
132
  end)
133
133
 
@@ -144,31 +144,31 @@ nutella.f.net.handle_requests_on_all_runs('channels/retrieve', lambda do |reques
144
144
  end
145
145
  end)
146
146
 
147
- def publish_configs_update(configs)
148
- nutella.f.net.publish_to_all_runs('configs/updated', configs)
147
+ def publish_configs_update(app_id, run_id, configs)
148
+ nutella.f.net.publish_to_run(app_id, run_id, 'configs/updated', configs)
149
149
  puts 'Sent configs/updated'
150
150
  end
151
151
 
152
152
  # Sends the update config id
153
- def publish_current_config_update(config_id)
154
- nutella.f.net.publish_to_all_runs('currentConfig/updated', config_id)
153
+ def publish_current_config_update(app_id, run_id, config_id)
154
+ nutella.f.net.publish_to_run(app_id, run_id, 'currentConfig/updated', config_id)
155
155
  puts 'Sent currentConfig/updated'
156
156
  end
157
157
 
158
158
  # Sends the whole new current configuration
159
- def publish_switch_config(mapping)
160
- nutella.f.net.publish_to_all_runs('currentConfig/switched', mapping)
159
+ def publish_switch_config(app_id, run_id, mapping)
160
+ nutella.f.net.publish_to_run(app_id, run_id, 'currentConfig/switched', mapping)
161
161
  puts 'Sent currentConfig/switched'
162
162
  end
163
163
 
164
164
  # Sends the current config (mapping), which might have been updated
165
- def publish_mapping_update(mapping)
166
- nutella.f.net.publish_to_all_runs('mapping/updated', mapping)
165
+ def publish_mapping_update(app_id, run_id, mapping)
166
+ nutella.f.net.publish_to_run(app_id, run_id, 'mapping/updated', mapping)
167
167
  puts 'Sent mapping/updated'
168
168
  end
169
169
 
170
- def publish_channels_update(channels)
171
- nutella.f.net.publish_to_all_runs('channels/updated', channels)
170
+ def publish_channels_update(app_id, run_id, channels)
171
+ nutella.f.net.publish_to_run(app_id, run_id, 'channels/updated', channels)
172
172
  puts 'Sent channels/updated'
173
173
  end
174
174
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nutella_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.22
4
+ version: 0.4.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Gnoli