prospector 0.3.0 → 0.4.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: 3271fbbd98467dba799a853bfd28e229274a539d
4
- data.tar.gz: 57cb3a89d4a5398524682622ba2c88e0b2675f02
3
+ metadata.gz: 3710b3639a273c0a4e3eb060a87cfe3be9e37891
4
+ data.tar.gz: 73d9f3f4093893b2032a426952fabfbb16fb8afc
5
5
  SHA512:
6
- metadata.gz: 9572530d8f6b69114949fd0b09e72d74a3a24fc56595cf7a2cbdd1d819c974d4cba7f7b0962002dab592e7e09e5cc5b4a10497e7695287584c1fc2fab6d8e913
7
- data.tar.gz: 5b3f831db4b95f8c63899e41b7bc641f5f748f1b8fdac72a1e7c86fa064b337bf834d9ba270ed9ec0bc5dd68a2cea95887f836349d70420e3d563430d29bda7f
6
+ metadata.gz: bbfe7653349e46e4a2e2bc2900e761b118c988c923fc34fef29912633780222ae86a79c92b9294f6860c0f12a63e531be85972fc405005c2ff3907597a27da8f
7
+ data.tar.gz: dc6bd917e44f164397d2b1691e17c2dd19d9036f2b67e3961741289bc9978d4f29daa143957d468e33311227570adb38b86186ee6bd94ebdf1ab8b66317d09fb
data/CHANGELOG.md ADDED
@@ -0,0 +1,31 @@
1
+ # Prospector Changelog
2
+
3
+ ## Version 0.4
4
+
5
+ * Adds support for an `inline` and `none` background adapter [PR #7](https://github.com/madebylotus/prospector/pull/7)
6
+
7
+ ## Version 0.3
8
+
9
+ * Adds support for configuring a RubyMotion project [PR #6](https://github.com/madebylotus/prospector/pull/6)
10
+ * Adds the `rake prospector:deliver` rake task [PR #6](https://github.com/madebylotus/prospector/pull/6)
11
+
12
+ ## Version 0.2.2
13
+
14
+ * Skips enqueueing background job to notify API if `Rake` constant is defined
15
+
16
+ ## Version 0.2.1
17
+
18
+ * Fixes issue with Sidekiq adapter not being recognized [PR #5](https://github.com/madebylotus/prospector/pull/5)
19
+
20
+ ## Version 0.2
21
+
22
+ * Adds support for enqueueing API notification via ActiveJob or Sidekiq [PR #4](https://github.com/madebylotus/prospector/pull/4)
23
+
24
+ ## Version 0.1.1
25
+
26
+ * Adds a Rack app to notify API on first request to app server [PR #3](https://github.com/madebylotus/prospector/pull/3)
27
+ * Exceptions now raised if trial is expired or account removed from API service [PR #2](https://github.com/madebylotus/prospector/pull/2)
28
+
29
+ ## Version 0.1
30
+
31
+ Initial alpha release
data/README.md CHANGED
@@ -68,7 +68,21 @@ end
68
68
 
69
69
  Rails integration includes automatic detection and support for ActiveJob as well as Sidekiq, to deliver usage details to the Prospector API in the background on app boot. Additionally, the rake task mentioned below is available to use at any time you see fit, for example as part of your deployment process.
70
70
 
71
- Valid background adapter options are `active_job`, `sidekiq`, and `none`. ActiveJob is preferred and chosen in Rais 4.2 and above with built-in ActiveJob support.
71
+ Valid background adapter options are `active_job`, `sidekiq`, `inline`, and `none`. ActiveJob is preferred and chosen in Rais 4.2 and above with built-in ActiveJob support.
72
+
73
+ ```ruby
74
+ # config/initializers/prospector.rb
75
+
76
+ Prospector.configure do |config|
77
+ # Will default to using ActiveJob
78
+ # config.background_adapter = :active_job
79
+ # config.background_adapter = :sidekiq
80
+ # config.background_adapter = :inline
81
+ # config.background_adapter = :none
82
+ end
83
+ ```
84
+
85
+ You can use the `none` background adapter to skip sending information to the API automatically, and instead call at any point in time you see fit, whether via the rake task or manually.
72
86
 
73
87
  ### RubyMotion
74
88
 
@@ -87,7 +101,7 @@ rake prospector:deliver
87
101
  If you prefer to notify the Prospector API without using the included Rails or RubyMotion support, you can always call directly.
88
102
 
89
103
  ```ruby
90
- Prospector.notify!
104
+ Prospector.notify! if Prospector.enabled?
91
105
  ```
92
106
 
93
107
  ## Development
@@ -6,7 +6,8 @@ module Prospector; module Background
6
6
  case adapter_name
7
7
  when :active_job then enqueue_via_active_job
8
8
  when :sidekiq then enqueue_via_sidekiq
9
- when :none then perform_immediately
9
+ when :inline then perform_immediately
10
+ when :none then return
10
11
  else
11
12
  raise UnsupportedAdapterError.new(adapter_name)
12
13
  end
@@ -1,3 +1,3 @@
1
1
  module Prospector
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prospector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Millsaps-Brewer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2015-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -105,6 +105,7 @@ files:
105
105
  - ".gitignore"
106
106
  - ".rspec"
107
107
  - ".travis.yml"
108
+ - CHANGELOG.md
108
109
  - CODE_OF_CONDUCT.md
109
110
  - Gemfile
110
111
  - LICENSE.txt