informant-rails 0.2.2 → 0.3.0

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
  SHA1:
3
- metadata.gz: 0101070fd5d0b43c4f97368059d8c892a70e9433
4
- data.tar.gz: 06e445560839ec4dce9249f569696000b3d4d8c0
3
+ metadata.gz: e78c8253683a9d854fb0702b6fb28502f0921e24
4
+ data.tar.gz: 52294cde986bc75570ad277d1e9358bfd27ee64f
5
5
  SHA512:
6
- metadata.gz: eb50461698c25f77fb16d57d0f5156ca573298860e4622197dc8cc0e530b748c9334bdfb3897d49a06f3f4330d130a04d5f34fb5863ca1b22fa9aae5a682dd7b
7
- data.tar.gz: 9a4f9f36f60b0340d99e2438008bcdb8ad4907c7d314a580c73f595926cc5fe318d900be7b3fa4b4e04128272b0817a8d44b1ac98df8b64225f00a231077e958
6
+ metadata.gz: d074dc65c5f740aeb80ae77add7bdc9fbe0eae46daeb0147c18688454f7910f796f3d3fc677fc5b0ed2239a0ff3f722df676aab012f690e06fed250b98a6a487
7
+ data.tar.gz: 694cf69ce4a38a6137585757c550e35d6c69d8508b2c90d34931a02dbc611c7637dfb975afb88f4b177314ccfab9ba717e838f960fbde40b324e96260467c82c
data/Rakefile CHANGED
@@ -1,6 +1,12 @@
1
- require "rspec/core/rake_task"
2
- RSpec::Core::RakeTask.new(:spec) do |spec|
3
- spec.pattern = "spec/**/*_spec.rb"
4
- end
1
+ require "bundler/setup"
2
+ require "bundler/gem_tasks"
5
3
 
6
- task default: :spec
4
+ if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
5
+ require "appraisal/task"
6
+ Appraisal::Task.new
7
+ task default: :appraisal
8
+ else
9
+ require "rspec/core/rake_task"
10
+ RSpec::Core::RakeTask.new
11
+ task default: :spec
12
+ end
@@ -10,14 +10,14 @@ module InformantRails
10
10
  end
11
11
  end
12
12
 
13
- def self.inform_action(controller_name, action)
13
+ def self.record_action(controller_name, action)
14
14
  if request
15
15
  request.filename = controller_name
16
16
  request.action = action
17
17
  end
18
18
  end
19
19
 
20
- def self.inform(model)
20
+ def self.record_validated_model(model)
21
21
  request.process_model(model) if request && include_model?(model)
22
22
  end
23
23
 
@@ -60,7 +60,7 @@ module InformantRails
60
60
  end
61
61
 
62
62
  def self.api_url
63
- @api_url ||= ['http://api.informantapp.com/api/v1', InformantRails::Config.server_environment].join('/')
63
+ @api_url ||= ['https://api.informantapp.com/api/v1', InformantRails::Config.server_environment].join('/')
64
64
  end
65
65
  end
66
66
  end
@@ -7,7 +7,7 @@ module InformantRails
7
7
  initializer 'informant ActionController binding' do
8
8
  class ::ActionController::Base
9
9
  before_filter do
10
- InformantRails::Client.inform_action(
10
+ InformantRails::Client.record_action(
11
11
  controller_name, action_name
12
12
  )
13
13
  end
@@ -19,7 +19,7 @@ module InformantRails
19
19
  initializer 'informant ActiveRecord binding' do
20
20
  class ::ActiveRecord::Base
21
21
  set_callback(:validate, :after) do
22
- InformantRails::Client.inform(self)
22
+ InformantRails::Client.record_validated_model(self)
23
23
  end
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module InformantRails
2
- VERSION = '0.2.2'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: informant-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Elliott
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-04 00:00:00.000000000 Z
12
+ date: 2014-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -59,7 +59,7 @@ files:
59
59
  - lib/informant-rails/railtie.rb
60
60
  - lib/informant-rails/request.rb
61
61
  - lib/informant-rails/version.rb
62
- homepage: http://www.informantapp.com
62
+ homepage: https://www.informantapp.com
63
63
  licenses:
64
64
  - GPL
65
65
  metadata: {}