knapsack_pro 0.45.0 → 0.46.0

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
  SHA1:
3
- metadata.gz: 72e3898daf42db4b3cb0c746ad66f00ecda1048d
4
- data.tar.gz: 5ed151190611d41bb925b93d9648385e5c55cbce
3
+ metadata.gz: faf69acd6fc43b314a341d426e48898c9939eee7
4
+ data.tar.gz: 92b80713554443d3a82c87f12c839ac874adc75e
5
5
  SHA512:
6
- metadata.gz: 5eb27e6eb4038c8dd31009a6bee4d46379b68669a79cb6a2e61e7023ed61d390c2cbb13855e221a48f79a1d3c9388c91bc080515e9367a8bc4ef5da648b88a1e
7
- data.tar.gz: 99c81386ae4c190c2c0d2bc07185b528f5c8be7c9937d419e2ab33f719c16688a1df321303750267723880fd745ab8d6f7c4bf29a15b43faff746b1602de9a8b
6
+ metadata.gz: 8caf5c2763a65260bd56f345c263388da4b8f0ba6df6ee4654f2daf746ef581808bb7c209afa9c49b68671866e35eb743aec45cd12f9318f1b1adcd8ec7ce37c
7
+ data.tar.gz: f1e17e64c0141d7517e4fa13348b0aadeea4181b727f02a2cfa39c9b3e393bbf3ee9045ab05a4e38c2aff40f71fa91a16e6801fe45f1602b477866d6f15cb7e8
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  * TODO
4
4
 
5
+ ### 0.46.0
6
+
7
+ * Autoload knapsack_pro rake tasks with Rails Railties
8
+
9
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/47
10
+
11
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v0.45.0...v0.46.0
12
+
5
13
  ### 0.45.0
6
14
 
7
15
  * Add before and after queue hooks
data/README.md CHANGED
@@ -159,12 +159,16 @@ end
159
159
 
160
160
  And then execute:
161
161
 
162
- $ bundle install
163
-
162
+ ```
163
+ $ bundle install
164
+ ```
164
165
 
165
- Add this line at the bottom of `Rakefile` if your project has one:
166
+ If you are not using Rails then add this line at the bottom of `Rakefile`:
166
167
 
167
168
  ```ruby
169
+ # Add this only if you are not using Rails.
170
+ # If you use Rails then knapsack_pro rake tasks are already loaded
171
+ # so there is no need to explicitly load them.
168
172
  KnapsackPro.load_tasks if defined?(KnapsackPro)
169
173
  ```
170
174
 
data/lib/knapsack_pro.rb CHANGED
@@ -61,6 +61,8 @@ require_relative 'knapsack_pro/crypto/branch_encryptor'
61
61
  require_relative 'knapsack_pro/crypto/decryptor'
62
62
  require_relative 'knapsack_pro/crypto/digestor'
63
63
 
64
+ require 'knapsack_pro/railtie' if defined?(Rails::Railtie)
65
+
64
66
  module KnapsackPro
65
67
  class << self
66
68
  def root
@@ -0,0 +1,10 @@
1
+ require 'rails'
2
+ require 'knapsack_pro'
3
+
4
+ module KnapsackPro
5
+ class Railtie < Rails::Railtie
6
+ rake_tasks do
7
+ KnapsackPro.load_tasks
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module KnapsackPro
2
- VERSION = '0.45.0'
2
+ VERSION = '0.46.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knapsack_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT
@@ -239,6 +239,7 @@ files:
239
239
  - lib/knapsack_pro/presenter.rb
240
240
  - lib/knapsack_pro/queue_allocator.rb
241
241
  - lib/knapsack_pro/queue_allocator_builder.rb
242
+ - lib/knapsack_pro/railtie.rb
242
243
  - lib/knapsack_pro/report.rb
243
244
  - lib/knapsack_pro/repository_adapter_initiator.rb
244
245
  - lib/knapsack_pro/repository_adapters/base_adapter.rb