copperegg 0.6.1.pre3 → 0.6.1.pre4

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,9 +64,9 @@ module CopperEgg
64
64
  json = JSON.parse(response.body)
65
65
  metric_group = self.class.new(json)
66
66
  @id = self.name
67
- needs_update = self.label != metric_group.label || self.frequency != metric_group.frequency || self.metrics.length != metric_group.metrics.length || self.metrics.map(&:name).sort != metric_group.metrics.map {|m| m["name"]}.sort
68
- if needs_update
69
- self.class.request(self.to_hash.merge(:id => @id, :request_type => "put", :show_hidden => true))
67
+ # needs_update = self.label != metric_group.label || self.frequency != metric_group.frequency || self.metrics.length != metric_group.metrics.length || self.metrics.map(&:name).sort != metric_group.metrics.map {|m| m["name"]}.sort
68
+ if true #needs_update
69
+ self.class.request(self.to_hash.merge(:id => @id, :is_hidden => 0, :request_type => "put", :show_hidden => true))
70
70
  else
71
71
  response
72
72
  end
@@ -1,3 +1,3 @@
1
1
  module CopperEgg
2
- GEM_VERSION = '0.6.1.pre3'
2
+ GEM_VERSION = '0.6.1.pre4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copperegg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1.pre3
4
+ version: 0.6.1.pre4
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -34,7 +34,6 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - ./CHANGELOG.md
37
- - ./copperegg-0.6.1.pre3.gem
38
37
  - ./copperegg.gemspec
39
38
  - ./Gemfile
40
39
  - ./Gemfile.lock
File without changes