brillo 1.3.1 → 2.0.0.rc1

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
- SHA1:
3
- metadata.gz: 61e5e2263d796a20787bc0cd8925462c72ce7c93
4
- data.tar.gz: d81692c4e9c6fb80a9a08f99b05a929617d64959
2
+ SHA256:
3
+ metadata.gz: be0a2111b48be481799d0bd12cdf21d26910df68bbdb7606b2fb7dd60f506b4a
4
+ data.tar.gz: 7eb16335d290df5402ed913fd3481271da3d3f17b2f8531c8ad1f06aed143ba1
5
5
  SHA512:
6
- metadata.gz: 56384ed1cbc3b0c0e43f0fd3a3ba3bc12a637d6179ea6cf77a31c748a10b89573c3a4a7e7bca96dd236eec44c13baf038068887ce219ec70538f697a354c8ab7
7
- data.tar.gz: 1da446a41b9690b66da535402cf5df047638eede48bf7519d6961c9f8c6100ccb1576b0b54c1213adc4e9fa0bf2d7bcb28895d2185be9b485c501a0eb2e18d13
6
+ metadata.gz: 7ee6a06c79a6db89bc4b7da52638f82335abc9edef92bc5e0cf139fb6adf380d38466c51ebe3fd4b05b43a2ce2355bbf3e2f10a0fd5492bf63f6ce32c96a2a86
7
+ data.tar.gz: 87a2a7018c6a494d7e3b5f1f4582dcb79b6e4f1ed77a786739bae26471f7c5d57b3caabaffa25d77d8972ea25b6b7ad3b2772cb01d71b3350ebe50f2a5289808
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
3
  /Gemfile.lock
4
+ gemfiles/*.gemfile.lock
4
5
  /_yardoc/
5
6
  /coverage/
6
7
  /doc/
data/.travis.yml CHANGED
@@ -1,7 +1,17 @@
1
1
  language: ruby
2
+
2
3
  rvm:
3
4
  - 2.3.1
5
+ - 2.5.1
6
+
7
+ gemfile:
8
+ - gemfiles/rails_4.2.gemfile
9
+ - gemfiles/rails_5.0.gemfile
10
+ - gemfiles/rails_5.1.gemfile
11
+ - gemfiles/rails_5.2.gemfile
12
+
4
13
  cache: bundler
14
+
5
15
  services:
6
16
  - mysql
7
17
 
@@ -11,3 +21,7 @@ before_install:
11
21
  script:
12
22
  - bundle exec rspec
13
23
  - cd example_app; bundle exec rspec
24
+
25
+ matrix:
26
+ allow_failures:
27
+ - gemfile: gemfiles/rails_5.2.gemfile
data/Appraisals ADDED
@@ -0,0 +1,19 @@
1
+ appraise "rails-4.2" do
2
+ gem "rails", "~> 4.2.0"
3
+ gem "mysql2", "~> 0.4.5"
4
+ end
5
+
6
+ appraise "rails-5.0" do
7
+ gem "rails", "~> 5.0.0"
8
+ gem "mysql2", "~> 0.4.5"
9
+ end
10
+
11
+ appraise "rails-5.1" do
12
+ gem "rails", "~> 5.1.0"
13
+ gem "mysql2", "~> 0.4.5"
14
+ end
15
+
16
+ appraise "rails-5.2" do
17
+ gem "rails", "~> 5.2.0"
18
+ gem "mysql2", "~> 0.4.5"
19
+ end
data/brillo.gemspec CHANGED
@@ -18,16 +18,15 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "rake", "~> 10.0"
21
+ spec.add_dependency "rake"
22
22
  spec.add_dependency "capistrano", "~> 3.0"
23
23
  spec.add_dependency "polo", "~> 0.4"
24
- spec.add_dependency "aws-sdk", "~> 2.0"
24
+ spec.add_dependency "aws-sdk-s3", "~> 1"
25
25
  spec.add_dependency "activerecord", ">= 3.2"
26
26
  spec.add_dependency "activesupport", ">= 3.2"
27
27
 
28
- spec.add_development_dependency "rails", "4.2.5.1"
29
- spec.add_development_dependency "mysql2"
30
- spec.add_development_dependency "rspec-rails", "~> 3.4"
28
+ spec.add_development_dependency "appraisal"
29
+ spec.add_development_dependency "rspec-rails", "~> 3.7"
31
30
  spec.add_development_dependency "pry"
32
31
  spec.add_development_dependency "benchmark-ips"
33
32
  end
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.2.0"
6
+ gem "mysql2", "~> 0.4.5"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.0.0"
6
+ gem "mysql2", "~> 0.4.5"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.1.0"
6
+ gem "mysql2", "~> 0.4.5"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.2.0"
6
+ gem "mysql2", "~> 0.4.5"
7
+
8
+ gemspec path: "../"
data/lib/brillo.rb CHANGED
@@ -39,7 +39,7 @@ module Brillo
39
39
 
40
40
  def self.config
41
41
  @config ||= begin
42
- static_config = YAML.load_file("#{Rails.root.to_s}/config/brillo.yml").deep_symbolize_keys
42
+ static_config = YAML.load(ERB.new(File.read("#{Rails.root.to_s}/config/brillo.yml")).result).deep_symbolize_keys
43
43
  Config.new(static_config)
44
44
  end
45
45
  end
@@ -21,8 +21,8 @@ module Brillo
21
21
  }
22
22
 
23
23
  TACTICS = {
24
- latest: -> (klass) { klass.order('id desc').limit(LATEST_LIMIT).pluck(:id) },
25
- all: -> (klass) { klass.pluck(:id) }
24
+ latest: -> (klass) { klass.order("#{klass.primary_key} desc").limit(LATEST_LIMIT).pluck(klass.primary_key) },
25
+ all: -> (klass) { klass.pluck(klass.primary_key) }
26
26
  }
27
27
 
28
28
  attr_reader :config, :adapter, :transferrer
@@ -1,4 +1,4 @@
1
- require 'aws-sdk'
1
+ require 'aws-sdk-s3'
2
2
 
3
3
  module Brillo
4
4
  module Transferrer
@@ -1,3 +1,3 @@
1
1
  module Brillo
2
- VERSION = "1.3.1"
2
+ VERSION = "2.0.0.rc1"
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brillo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 2.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Bessey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-01 00:00:00.000000000 Z
11
+ date: 2019-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '10.0'
19
+ version: '0'
20
20
  type: :runtime
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: '10.0'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: capistrano
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -53,19 +53,19 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.4'
55
55
  - !ruby/object:Gem::Dependency
56
- name: aws-sdk
56
+ name: aws-sdk-s3
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.0'
61
+ version: '1'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '2.0'
68
+ version: '1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activerecord
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -95,21 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '3.2'
97
97
  - !ruby/object:Gem::Dependency
98
- name: rails
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '='
102
- - !ruby/object:Gem::Version
103
- version: 4.2.5.1
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '='
109
- - !ruby/object:Gem::Version
110
- version: 4.2.5.1
111
- - !ruby/object:Gem::Dependency
112
- name: mysql2
98
+ name: appraisal
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
101
  - - ">="
@@ -128,14 +114,14 @@ dependencies:
128
114
  requirements:
129
115
  - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: '3.4'
117
+ version: '3.7'
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: '3.4'
124
+ version: '3.7'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: pry
141
127
  requirement: !ruby/object:Gem::Requirement
@@ -174,6 +160,7 @@ files:
174
160
  - ".gitignore"
175
161
  - ".rspec"
176
162
  - ".travis.yml"
163
+ - Appraisals
177
164
  - CHANGELOG.md
178
165
  - Gemfile
179
166
  - LICENSE
@@ -184,6 +171,10 @@ files:
184
171
  - brillo.gemspec
185
172
  - config/brillo-example.yml
186
173
  - config/brillo-initializer.rb
174
+ - gemfiles/rails_4.2.gemfile
175
+ - gemfiles/rails_5.0.gemfile
176
+ - gemfiles/rails_5.1.gemfile
177
+ - gemfiles/rails_5.2.gemfile
187
178
  - lib/brillo.rb
188
179
  - lib/brillo/adapter/README.md
189
180
  - lib/brillo/adapter/base.rb
@@ -220,12 +211,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
211
  version: '0'
221
212
  required_rubygems_version: !ruby/object:Gem::Requirement
222
213
  requirements:
223
- - - ">="
214
+ - - ">"
224
215
  - !ruby/object:Gem::Version
225
- version: '0'
216
+ version: 1.3.1
226
217
  requirements: []
227
- rubyforge_project:
228
- rubygems_version: 2.5.2
218
+ rubygems_version: 3.0.1
229
219
  signing_key:
230
220
  specification_version: 4
231
221
  summary: Rails database scrubber and loader, great for seeding your dev db with real