shards 2.7 → 2.8

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
  SHA256:
3
- metadata.gz: c688a51ee052bf0df29eee7dad9acec4b6f914cc77f6d2a69ddaeb6a5dc6a9f6
4
- data.tar.gz: f45e86dbcfd3ad969571663c72fa29843cddcc790e60740e9a862b921635c5b2
3
+ metadata.gz: 750f1fb12c2710c34edaa65941a77584e7a823fdeaefaf0778a5ec4d21e1a528
4
+ data.tar.gz: 35b12cace67125056d74f701f51397a542499a3c8386f9dcb463213bbc6df1d9
5
5
  SHA512:
6
- metadata.gz: '09b03ff9e8661b5ee984b93dca23eb721be3924f93e66ace56293c44880f3047529ee73476c12f76653020a6befe990835971520337fe478848c842d9b18014e'
7
- data.tar.gz: dd394469a71dfa5ba5f8cab9933a8f53dcf34ff38e53672cd6e676c3ebc07ed737488142d1f2c9365c5b20a48c8f0de2298bd6818e9e7c99131cf731788251c9
6
+ metadata.gz: fd19a11f969d0fa627c6c36f9096702390d5c06b15f5bb4e56c98e6b232e00da2eb4ea7f9a5586e64873985b8a11455323f650ef1b48fa5bca7e968114f83660
7
+ data.tar.gz: 2f9487f41d90880be5e392e246c2746ea7a7adbb78e0dccf46242eed2b47ff51c69e84725212ca8bb204d8ea97539784c8e05b7ab64ae11bd79d7776d94e88ab
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shards (2.7)
4
+ shards (2.8)
5
5
  aws-sdk-ec2 (~> 1.48)
6
6
  aws-sdk-elasticloadbalancing (~> 1.5)
7
7
  aws-sdk-elasticloadbalancingv2 (~> 1.14)
@@ -13,7 +13,7 @@ module Shards
13
13
  end
14
14
 
15
15
  def base_path
16
- File.join ENV['ENGINEERING_ROOT_PATH'], ENV['PATH_TO_ENGINEERING_YAML'] , stage.location_name
16
+ File.join ENV['ENGINEERING_ROOT_PATH'], ENV['PATH_TO_ENGINEERING_YAML'] , stage.engineering_dirname
17
17
  end
18
18
 
19
19
  def file_list
data/lib/shards/stage.rb CHANGED
@@ -121,6 +121,10 @@ module Shards
121
121
  shard.list.keys.include? blank_db_shard_key
122
122
  end
123
123
 
124
+ def engineering_dirname
125
+ shard.dir.split('/').first
126
+ end
127
+
124
128
  end
125
129
  end
126
130
 
@@ -1,3 +1,3 @@
1
1
  module Shards
2
- VERSION = "2.7"
2
+ VERSION = "2.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shards
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.7'
4
+ version: '2.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego PL
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-08 00:00:00.000000000 Z
11
+ date: 2019-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler