tp_common 0.4.7 → 0.4.8.pre1

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
  SHA256:
3
- metadata.gz: 6e7583b02a46f3c1ebe6b13e2f4515dc3bca69f39f3c1dd5dfe0d5da90275ccd
4
- data.tar.gz: f6a63720e101adf4128724f8979046e23b4e5a531160b78b53155aa3966f2683
3
+ metadata.gz: ac40af587fded2098a9b79a441e4fc4199fb06bc2226f2df65e63ebd792a38b0
4
+ data.tar.gz: 35816e3f5ff41d1e113525e58c051d0398a76d5b88dd4d851debad7872b04a55
5
5
  SHA512:
6
- metadata.gz: 5214d078dff3b4695967a3c85cbd8bfb72efde26ce3741facc1960ec888d5bd36e0e2b054519d75217cd05f87f3967f33edf1427b04b81fa3266bfb55febaaa3
7
- data.tar.gz: 8d50cb60c7ec1507e44ef82e7ccaa32d077b38df90ab298d8b3871fa1c9ee4f6b54540d6e2f23cc0c7f6bcda9078943e415e6283c7a0e4128ec324f8663cc5cc
6
+ metadata.gz: 9494afeec5d719b73c02414a98acf9a914f7167e90fdb5e916ce1ad9047f731939c6aab77c902017a4d46dbde070b7b09751e8f99300a7382ed18f1992264de1
7
+ data.tar.gz: c7bb51f9e35ed5f37fab27ac6f4d75295ef3b02efe4c16019defc43778ee4a459d05c25f9ffbe80bc935ff592b4b2f11862bcd206ff86ed17c811c1c37ebe22d
data/.gitignore CHANGED
@@ -4,10 +4,12 @@
4
4
  /_yardoc/
5
5
  /coverage/
6
6
  /doc/
7
+ /gemfiles/gems/
8
+ /gems/
7
9
  /pkg/
8
10
  /spec/reports/
9
11
  /tmp/
10
12
 
11
13
  # rspec failure tracking
12
14
  .rspec_status
13
- .DS_Store
15
+ .DS_Store
data/.travis.yml CHANGED
@@ -2,12 +2,14 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.5.3
5
+ services:
6
+ - redis-server
5
7
  gemfile:
6
8
  - gemfiles/rails_4.gemfile
7
9
  - gemfiles/rails_5.gemfile
8
10
  - gemfiles/rails_6.gemfile
9
11
  - gemfiles/rails_latest.gemfile
10
- before_install: gem install bundler -v 1.16.0
12
+ before_install: gem install bundler -v 1.17.3
11
13
  script:
12
14
  - bundle exec rspec --exclude-pattern "spec/integration/**/*_spec.rb"
13
15
  - bundle exec rspec spec/integration/rails_spec.rb
@@ -15,7 +17,7 @@ script:
15
17
  deploy:
16
18
  provider: rubygems
17
19
  api_key:
18
- secure: nHtQxeCICi2KYSS/K7fQ1n50eLrE2kVwagxYXVU3cXDAfLyQRMT0StzZMqT3lM6HNhFrCQveZJMDgTpxaQKkYjbR4t9dmDA6OxaZmD/AUw6/rykNGiQVptGJymvnygmPUO+igXOlNot4IEN3VXQMuhpsVBY26ScUmMhIWvPU0hb8ZniG6NSU7/uORD46UqLWVvaU0jy3+OYQzyFBo/OxhTZmVPRMlK+Kz8SgrIHtp3A/l5KBg6s/KXGY/St58D3aQ6GsholYpdMEuMt2pEGF4PyJZJvIOJKGzY1GuSRUfB0lhFLWbPExY4PDzICtM3+8r69rMw9mnKVuq9kkYOMsiqi+iRZbsFd6v6y+V/n/00U/GW6/pf5GEzgBCW1okaYEI0Bau3E+hUe8nmbylOQGg99SdbEAs0B6U2vB5eCbnqZ1QZLK3xxIQpj54kd9RRnStcmO/CdNaLWsYqjWCizaAlmUOxFTJlP5cGeAdhbXytJxgDunjLpLXbdq1PnldF4AVZKr6hKBT50kt5Z0h2uAWiNMfjVxHLMk4CLYj4XDaBGiqzNhINaDzl06rDBAZ1oiHTeowq03+1gyXB64UVZW5IgnTEJYCEM75OF5yvEPf2NIowb7wU+pxnKo9tsjPoD7DafFz/NlYzHFauairj6SvKvjrPO3A3E+kFqVCIDY+gM=
20
+ secure: UK/XPRcsRv84se63pUdb2MEv6No02N7bZl1gkXwB4Lsyc/ny9GTrtf0uBLIAcnZxJ26CSuN0IBrN8lHC+UM8Js+uKAsSOgTW/15Oik5p6cv/rUCOeyLVWvA99JRuq8NlvblDRVsWDRTs/i9TmTlJdy6ZO2K1yqrxIs7btTCPxD7sglrZMNHKRoFXe/dQ73BrM7YK1gOjIo7V75MAqSoG1E1TC9jRgdz4V9JftQph1I+S8PyhKz/XGiUXaJHHJm4K0HmgtClU0xZlw2CrUEMoxRLajjhIEgkwuNRlJsjKE2qBvgMnKZcwpZwgaDi8cDim4/ieC4Th/KkvQweQVfaZhnK9LIeG9vy71VOafjxD4DJn6JMl3Cc4pVtwmyvWz2P89IF8Wl3tVMp5vE4nHt26P7o534ke1n8fhiHJk043lFQ9A+XuZ+LKKEywnh3nuqaws/Sev8YgazrPdNTO3PDxGhf03SIJN5G3N9PakNWPIVvnbIQDtGczxww9bkK79WBk0ougi9R2yKA/CL6s79NbTBohiPLoj6wEtOzloixpqxiW1MV96jFqlXSNuxzBQR0Yan0WX2bwqYEuPzCBK8pR87/rXKx6x2Hc7czO5Itv06I4/+aZM9C0UpNP8I6WgA+FDsK6iBVh+NP5wVg0g2a4z9tM20DXyOc6QeMlE/wB0j0=
19
21
  gem: tp_common
20
22
  on:
21
23
  tags: true
data/Gemfile CHANGED
@@ -4,3 +4,5 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in tp_common.gemspec
6
6
  gemspec
7
+
8
+ gem 'redis'
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "redis"
5
6
  gem "rails", "~> 4.2"
6
7
  gem "rspec-rails"
7
8
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- tp_common (0.4.7)
4
+ tp_common (0.4.8.pre1)
5
5
  activesupport (>= 4.2.0, < 7.0)
6
6
  aws-sdk-s3 (~> 1.19)
7
7
  fog-aws (~> 2.0)
@@ -53,20 +53,20 @@ GEM
53
53
  thor (>= 0.14.0)
54
54
  arel (6.0.4)
55
55
  aws-eventstream (1.0.3)
56
- aws-partitions (1.256.0)
57
- aws-sdk-core (3.86.0)
56
+ aws-partitions (1.281.0)
57
+ aws-sdk-core (3.91.0)
58
58
  aws-eventstream (~> 1.0, >= 1.0.2)
59
59
  aws-partitions (~> 1, >= 1.239.0)
60
60
  aws-sigv4 (~> 1.1)
61
61
  jmespath (~> 1.0)
62
- aws-sdk-kms (1.27.0)
62
+ aws-sdk-kms (1.30.0)
63
63
  aws-sdk-core (~> 3, >= 3.71.0)
64
64
  aws-sigv4 (~> 1.1)
65
- aws-sdk-s3 (1.59.0)
65
+ aws-sdk-s3 (1.61.0)
66
66
  aws-sdk-core (~> 3, >= 3.83.0)
67
67
  aws-sdk-kms (~> 1)
68
68
  aws-sigv4 (~> 1.1)
69
- aws-sigv4 (1.1.0)
69
+ aws-sigv4 (1.1.1)
70
70
  aws-eventstream (~> 1.0, >= 1.0.2)
71
71
  builder (3.2.3)
72
72
  byebug (11.0.1)
@@ -77,7 +77,7 @@ GEM
77
77
  crass (1.0.4)
78
78
  diff-lcs (1.3)
79
79
  erubis (2.7.0)
80
- excon (0.71.0)
80
+ excon (0.72.0)
81
81
  fog-aws (2.0.1)
82
82
  fog-core (~> 1.38)
83
83
  fog-json (~> 1.0)
@@ -107,7 +107,7 @@ GEM
107
107
  mail (2.7.1)
108
108
  mini_mime (>= 0.1.1)
109
109
  method_source (0.9.2)
110
- mime-types (3.3)
110
+ mime-types (3.3.1)
111
111
  mime-types-data (~> 3.2015)
112
112
  mime-types-data (3.2019.1009)
113
113
  mini_mime (1.0.1)
@@ -150,7 +150,8 @@ GEM
150
150
  activesupport (= 4.2.10)
151
151
  rake (>= 0.8.7)
152
152
  thor (>= 0.18.1, < 2.0)
153
- rake (10.5.0)
153
+ rake (13.0.1)
154
+ redis (4.1.3)
154
155
  rspec (3.8.0)
155
156
  rspec-core (~> 3.8.0)
156
157
  rspec-expectations (~> 3.8.0)
@@ -195,10 +196,11 @@ PLATFORMS
195
196
 
196
197
  DEPENDENCIES
197
198
  appraisal (~> 2.2, >= 2.2.0)
198
- bundler (~> 1.15)
199
+ bundler (>= 1.17.3)
199
200
  pry-byebug (~> 3)
200
201
  rails (~> 4.2)
201
- rake (~> 10.0)
202
+ rake (>= 12.3.3)
203
+ redis
202
204
  rspec (~> 3.0)
203
205
  rspec-rails
204
206
  timecop (~> 0.9)
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "redis"
5
6
  gem "rails", "~> 5.2"
6
7
  gem "rspec-rails"
7
8
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- tp_common (0.4.7)
4
+ tp_common (0.4.8.pre1)
5
5
  activesupport (>= 4.2.0, < 7.0)
6
6
  aws-sdk-s3 (~> 1.19)
7
7
  fog-aws (~> 2.0)
@@ -60,20 +60,20 @@ GEM
60
60
  thor (>= 0.14.0)
61
61
  arel (9.0.0)
62
62
  aws-eventstream (1.0.3)
63
- aws-partitions (1.256.0)
64
- aws-sdk-core (3.86.0)
63
+ aws-partitions (1.281.0)
64
+ aws-sdk-core (3.91.0)
65
65
  aws-eventstream (~> 1.0, >= 1.0.2)
66
66
  aws-partitions (~> 1, >= 1.239.0)
67
67
  aws-sigv4 (~> 1.1)
68
68
  jmespath (~> 1.0)
69
- aws-sdk-kms (1.27.0)
69
+ aws-sdk-kms (1.30.0)
70
70
  aws-sdk-core (~> 3, >= 3.71.0)
71
71
  aws-sigv4 (~> 1.1)
72
- aws-sdk-s3 (1.59.0)
72
+ aws-sdk-s3 (1.61.0)
73
73
  aws-sdk-core (~> 3, >= 3.83.0)
74
74
  aws-sdk-kms (~> 1)
75
75
  aws-sigv4 (~> 1.1)
76
- aws-sigv4 (1.1.0)
76
+ aws-sigv4 (1.1.1)
77
77
  aws-eventstream (~> 1.0, >= 1.0.2)
78
78
  builder (3.2.3)
79
79
  byebug (11.0.1)
@@ -84,7 +84,7 @@ GEM
84
84
  crass (1.0.4)
85
85
  diff-lcs (1.3)
86
86
  erubi (1.8.0)
87
- excon (0.71.0)
87
+ excon (0.72.0)
88
88
  fog-aws (2.0.1)
89
89
  fog-core (~> 1.38)
90
90
  fog-json (~> 1.0)
@@ -116,7 +116,7 @@ GEM
116
116
  marcel (0.3.3)
117
117
  mimemagic (~> 0.3.2)
118
118
  method_source (0.9.2)
119
- mime-types (3.3)
119
+ mime-types (3.3.1)
120
120
  mime-types-data (~> 3.2015)
121
121
  mime-types-data (3.2019.1009)
122
122
  mimemagic (0.3.3)
@@ -161,7 +161,8 @@ GEM
161
161
  method_source
162
162
  rake (>= 0.8.7)
163
163
  thor (>= 0.19.0, < 2.0)
164
- rake (10.5.0)
164
+ rake (13.0.1)
165
+ redis (4.1.3)
165
166
  rspec (3.8.0)
166
167
  rspec-core (~> 3.8.0)
167
168
  rspec-expectations (~> 3.8.0)
@@ -209,10 +210,11 @@ PLATFORMS
209
210
 
210
211
  DEPENDENCIES
211
212
  appraisal (~> 2.2, >= 2.2.0)
212
- bundler (~> 1.15)
213
+ bundler (>= 1.17.3)
213
214
  pry-byebug (~> 3)
214
215
  rails (~> 5.2)
215
- rake (~> 10.0)
216
+ rake (>= 12.3.3)
217
+ redis
216
218
  rspec (~> 3.0)
217
219
  rspec-rails
218
220
  timecop (~> 0.9)
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "redis"
5
6
  gem "rails", "~> 6.0"
6
7
  gem "rspec-rails"
7
8
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- tp_common (0.4.7)
4
+ tp_common (0.4.8.pre1)
5
5
  activesupport (>= 4.2.0, < 7.0)
6
6
  aws-sdk-s3 (~> 1.19)
7
7
  fog-aws (~> 2.0)
@@ -73,20 +73,20 @@ GEM
73
73
  rake
74
74
  thor (>= 0.14.0)
75
75
  aws-eventstream (1.0.3)
76
- aws-partitions (1.256.0)
77
- aws-sdk-core (3.86.0)
76
+ aws-partitions (1.281.0)
77
+ aws-sdk-core (3.91.0)
78
78
  aws-eventstream (~> 1.0, >= 1.0.2)
79
79
  aws-partitions (~> 1, >= 1.239.0)
80
80
  aws-sigv4 (~> 1.1)
81
81
  jmespath (~> 1.0)
82
- aws-sdk-kms (1.27.0)
82
+ aws-sdk-kms (1.30.0)
83
83
  aws-sdk-core (~> 3, >= 3.71.0)
84
84
  aws-sigv4 (~> 1.1)
85
- aws-sdk-s3 (1.59.0)
85
+ aws-sdk-s3 (1.61.0)
86
86
  aws-sdk-core (~> 3, >= 3.83.0)
87
87
  aws-sdk-kms (~> 1)
88
88
  aws-sigv4 (~> 1.1)
89
- aws-sigv4 (1.1.0)
89
+ aws-sigv4 (1.1.1)
90
90
  aws-eventstream (~> 1.0, >= 1.0.2)
91
91
  builder (3.2.3)
92
92
  byebug (11.0.1)
@@ -97,7 +97,7 @@ GEM
97
97
  crass (1.0.4)
98
98
  diff-lcs (1.3)
99
99
  erubi (1.8.0)
100
- excon (0.71.0)
100
+ excon (0.72.0)
101
101
  fog-aws (2.0.1)
102
102
  fog-core (~> 1.38)
103
103
  fog-json (~> 1.0)
@@ -129,7 +129,7 @@ GEM
129
129
  marcel (0.3.3)
130
130
  mimemagic (~> 0.3.2)
131
131
  method_source (0.9.2)
132
- mime-types (3.3)
132
+ mime-types (3.3.1)
133
133
  mime-types-data (~> 3.2015)
134
134
  mime-types-data (3.2019.1009)
135
135
  mimemagic (0.3.3)
@@ -176,7 +176,8 @@ GEM
176
176
  method_source
177
177
  rake (>= 0.8.7)
178
178
  thor (>= 0.20.3, < 2.0)
179
- rake (10.5.0)
179
+ rake (13.0.1)
180
+ redis (4.1.3)
180
181
  rspec (3.8.0)
181
182
  rspec-core (~> 3.8.0)
182
183
  rspec-expectations (~> 3.8.0)
@@ -225,10 +226,11 @@ PLATFORMS
225
226
 
226
227
  DEPENDENCIES
227
228
  appraisal (~> 2.2, >= 2.2.0)
228
- bundler (~> 1.15)
229
+ bundler (>= 1.17.3)
229
230
  pry-byebug (~> 3)
230
231
  rails (~> 6.0)
231
- rake (~> 10.0)
232
+ rake (>= 12.3.3)
233
+ redis
232
234
  rspec (~> 3.0)
233
235
  rspec-rails
234
236
  timecop (~> 0.9)
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "redis"
5
6
  gem "rails", "= 6.0.0"
6
7
  gem "rspec-rails"
7
8
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- tp_common (0.4.7)
4
+ tp_common (0.4.8.pre1)
5
5
  activesupport (>= 4.2.0, < 7.0)
6
6
  aws-sdk-s3 (~> 1.19)
7
7
  fog-aws (~> 2.0)
@@ -73,20 +73,20 @@ GEM
73
73
  rake
74
74
  thor (>= 0.14.0)
75
75
  aws-eventstream (1.0.3)
76
- aws-partitions (1.256.0)
77
- aws-sdk-core (3.86.0)
76
+ aws-partitions (1.281.0)
77
+ aws-sdk-core (3.91.0)
78
78
  aws-eventstream (~> 1.0, >= 1.0.2)
79
79
  aws-partitions (~> 1, >= 1.239.0)
80
80
  aws-sigv4 (~> 1.1)
81
81
  jmespath (~> 1.0)
82
- aws-sdk-kms (1.27.0)
82
+ aws-sdk-kms (1.30.0)
83
83
  aws-sdk-core (~> 3, >= 3.71.0)
84
84
  aws-sigv4 (~> 1.1)
85
- aws-sdk-s3 (1.59.0)
85
+ aws-sdk-s3 (1.61.0)
86
86
  aws-sdk-core (~> 3, >= 3.83.0)
87
87
  aws-sdk-kms (~> 1)
88
88
  aws-sigv4 (~> 1.1)
89
- aws-sigv4 (1.1.0)
89
+ aws-sigv4 (1.1.1)
90
90
  aws-eventstream (~> 1.0, >= 1.0.2)
91
91
  builder (3.2.3)
92
92
  byebug (11.0.1)
@@ -97,7 +97,7 @@ GEM
97
97
  crass (1.0.4)
98
98
  diff-lcs (1.3)
99
99
  erubi (1.8.0)
100
- excon (0.71.0)
100
+ excon (0.72.0)
101
101
  fog-aws (2.0.1)
102
102
  fog-core (~> 1.38)
103
103
  fog-json (~> 1.0)
@@ -129,7 +129,7 @@ GEM
129
129
  marcel (0.3.3)
130
130
  mimemagic (~> 0.3.2)
131
131
  method_source (0.9.2)
132
- mime-types (3.3)
132
+ mime-types (3.3.1)
133
133
  mime-types-data (~> 3.2015)
134
134
  mime-types-data (3.2019.1009)
135
135
  mimemagic (0.3.3)
@@ -176,7 +176,8 @@ GEM
176
176
  method_source
177
177
  rake (>= 0.8.7)
178
178
  thor (>= 0.20.3, < 2.0)
179
- rake (10.5.0)
179
+ rake (13.0.1)
180
+ redis (4.1.3)
180
181
  rspec (3.8.0)
181
182
  rspec-core (~> 3.8.0)
182
183
  rspec-expectations (~> 3.8.0)
@@ -225,10 +226,11 @@ PLATFORMS
225
226
 
226
227
  DEPENDENCIES
227
228
  appraisal (~> 2.2, >= 2.2.0)
228
- bundler (~> 1.15)
229
+ bundler (>= 1.17.3)
229
230
  pry-byebug (~> 3)
230
231
  rails (= 6.0.0)
231
- rake (~> 10.0)
232
+ rake (>= 12.3.3)
233
+ redis
232
234
  rspec (~> 3.0)
233
235
  rspec-rails
234
236
  timecop (~> 0.9)
@@ -31,7 +31,11 @@ module TpCommon
31
31
  # ```
32
32
  class RemoteAssetsLoader
33
33
  DEFAULT_CDN = 'https://cdn.tinypulse.com/spa'
34
- LoaderConfiguration = Struct.new(:cdn, :dev_cdn, :package_path_provider)
34
+ LoaderConfiguration = Struct.new(:cdn,
35
+ :dev_cdn,
36
+ :package_path_provider,
37
+ :enable_hot_reload,
38
+ :redis_connection)
35
39
 
36
40
  class << self
37
41
  # Configure RemoteAssetsLoader, for now, only :cdn is supported
@@ -43,6 +47,8 @@ module TpCommon
43
47
  def configure
44
48
  yield(config)
45
49
 
50
+ config.enable_hot_reload = !!config.enable_hot_reload
51
+ raise StandardError.new('Please add :redis_connection if enable hot_reload') if config.enable_hot_reload && config.redis_connection.nil?
46
52
  config.package_path_provider = TpCommon::AssetLoaders::ProviderClass.new(config.cdn, config.dev_cdn)
47
53
  end
48
54
 
@@ -56,10 +62,43 @@ module TpCommon
56
62
  # ```
57
63
  # TpCommon::AssetLoaders::RemoteAssetsLoader.load(:'tinypulse-spa-1', ENV['SPA_VERSION_TINYPULSE_SPA_1_HOT_CHANGE'] || 'v1.0.0')
58
64
  # ```
59
- def load(package_name, version)
60
- package_name = package_name.to_sym
61
- packages[package_name] = new(package_name, version)
62
- packages
65
+ #
66
+ # For multiple packages:
67
+ # ```
68
+ # TpCommon::AssetLoaders::RemoteAssetsLoader.load(
69
+ # 'tinypulse-spa-1': 'v1.0.0',
70
+ # 'tinypulse-spa-2': 'v1.0.0',
71
+ # 'tinypulse-spa-3': 'v1.0.0')
72
+ # ```
73
+ #
74
+ def load(package_name, version = nil)
75
+ if version
76
+ package_name = package_name.to_sym
77
+ packages[package_name] = new(package_name, version)
78
+ packages
79
+ else
80
+ all_packages = Hash(package_name)
81
+ all_packages.each do |key, ver|
82
+ packages[key] = new(key, ver)
83
+ end
84
+
85
+ packages
86
+ end
87
+ end
88
+
89
+ # TODO: [AV] Add desc before release
90
+ def cache_set(package_name, version)
91
+ config.redis_connection.set(cache_key(package_name), version)
92
+ end
93
+
94
+ # TODO: [AV] Add desc before release
95
+ def cache_get(package_name)
96
+ config.redis_connection.get(cache_key(package_name))
97
+ end
98
+
99
+ # TODO: [AV] Add desc before release
100
+ def cache_unset(package_name)
101
+ config.redis_connection.del(cache_key(package_name))
63
102
  end
64
103
 
65
104
  # Get package:
@@ -80,11 +119,22 @@ module TpCommon
80
119
  end
81
120
 
82
121
  def asset_url(package_name, version, asset)
122
+ if config.enable_hot_reload
123
+ cached_version = cache_get(package_name)
124
+ if cached_version
125
+ return config.package_path_provider.asset_url(package_name, cached_version, asset)
126
+ end
127
+ end
128
+
83
129
  config.package_path_provider.asset_url(package_name, version, asset)
84
130
  end
85
131
 
86
132
  private
87
133
 
134
+ def cache_key(package_name)
135
+ "tp_common/asset_loaders/remote_assets_loader/#{package_name}"
136
+ end
137
+
88
138
  def new_config
89
139
  LoaderConfiguration.new(DEFAULT_CDN, nil)
90
140
  end
@@ -1,3 +1,3 @@
1
1
  module TpCommon
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8.pre1"
3
3
  end
data/tp_common.gemspec CHANGED
@@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
28
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ["lib"]
30
30
 
31
- spec.add_development_dependency "bundler", "~> 1.15"
32
- spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency 'bundler', '>= 1.17.3'
32
+ spec.add_development_dependency 'rake', '>= 12.3.3'
33
33
  spec.add_development_dependency "rspec", "~> 3.0"
34
34
  spec.add_development_dependency "pry-byebug", '~> 3'
35
35
  spec.add_development_dependency "timecop", '~> 0.9'
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tp_common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TINYpulse Devops
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-17 00:00:00.000000000 Z
11
+ date: 2020-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.15'
19
+ version: 1.17.3
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.15'
26
+ version: 1.17.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: 12.3.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: 12.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -269,9 +269,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
269
269
  version: '0'
270
270
  required_rubygems_version: !ruby/object:Gem::Requirement
271
271
  requirements:
272
- - - ">="
272
+ - - ">"
273
273
  - !ruby/object:Gem::Version
274
- version: '0'
274
+ version: 1.3.1
275
275
  requirements: []
276
276
  rubyforge_project:
277
277
  rubygems_version: 2.7.7