intercom-rails 0.3.3 → 0.3.4

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: fad8f8d2ec8aa23c29149ded67376d397692901d
4
- data.tar.gz: bcc4e82069fe43a4058dee9aba24d30976f2f002
3
+ metadata.gz: ae61e5efdf193cc74b1176e5689e18ec2ceca704
4
+ data.tar.gz: e5dfb686a1b287f254d6f4fa16f6a6c794f885d4
5
5
  SHA512:
6
- metadata.gz: 46d75b65e5324ef4df39e0858d2ae8d76186acb325a51b63e41237d2bc17d936dd6e4bedf4c3bbbb88c64d29b9eb4c021022117a30ddfdb41f069d524b03a262
7
- data.tar.gz: 6a5707a85610968b143730224ae3ffc90af1bd49ceafc7b97d82c87a2214877ef71d0a80eeb2e18f25e050f7dcff16d3f51c71866f96898fd84facee3444bbc8
6
+ metadata.gz: d8296981fcc1ce3cbbc916f8ba0d99ccf2689c19bc92e9d3b2496908f79de5202aceb8a3c14bf7e79bd367864295cb7a7737f853b70ea226c0c5094cd18b9e95
7
+ data.tar.gz: 1b0b1c01a2de42adf788f684616d33ef7de2e147a8f3fe1392105f2619051c067fa337dcfe7cfc2f20fd5a7bb694810961d151405470c2f0de7f33942acd70fc
@@ -1,13 +1,18 @@
1
1
  module IntercomRails
2
2
  class Railtie < Rails::Railtie
3
3
  initializer "intercom-rails" do |app|
4
- ActionView::Base.send :include, ScriptTagHelper
5
- ActionController::Base.send :include, CustomDataHelper
6
- ActionController::Base.send :include, AutoInclude::Method
7
- if ActionController::Base.respond_to? :after_action
8
- ActionController::Base.after_action :intercom_rails_auto_include
9
- else
10
- ActionController::Base.after_filter :intercom_rails_auto_include
4
+ ActiveSupport.on_load :action_view do
5
+ include ScriptTagHelper
6
+ end
7
+ ActiveSupport.on_load :action_controller do
8
+ include CustomDataHelper
9
+ include AutoInclude::Method
10
+
11
+ if respond_to? :after_action
12
+ after_action :intercom_rails_auto_include
13
+ else
14
+ after_filter :intercom_rails_auto_include
15
+ end
11
16
  end
12
17
  end
13
18
  end
@@ -1,3 +1,3 @@
1
1
  module IntercomRails
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intercom-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McRedmond
@@ -10,146 +10,146 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-10-07 00:00:00.000000000 Z
13
+ date: 2016-10-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '>'
19
+ - - ">"
20
20
  - !ruby/object:Gem::Version
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '>'
26
+ - - ">"
27
27
  - !ruby/object:Gem::Version
28
28
  version: '3.0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rake
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: actionpack
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - '>'
47
+ - - ">"
48
48
  - !ruby/object:Gem::Version
49
49
  version: 3.2.12
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - '>'
54
+ - - ">"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 3.2.12
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: rspec
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ~>
61
+ - - "~>"
62
62
  - !ruby/object:Gem::Version
63
63
  version: '3.1'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ~>
68
+ - - "~>"
69
69
  - !ruby/object:Gem::Version
70
70
  version: '3.1'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rspec-rails
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ~>
75
+ - - "~>"
76
76
  - !ruby/object:Gem::Version
77
77
  version: '3.1'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ~>
82
+ - - "~>"
83
83
  - !ruby/object:Gem::Version
84
84
  version: '3.1'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: pry
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - '>='
89
+ - - ">="
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - '>='
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: sinatra
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - ~>
103
+ - - "~>"
104
104
  - !ruby/object:Gem::Version
105
105
  version: 1.4.5
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ~>
110
+ - - "~>"
111
111
  - !ruby/object:Gem::Version
112
112
  version: 1.4.5
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: thin
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ~>
117
+ - - "~>"
118
118
  - !ruby/object:Gem::Version
119
119
  version: 1.7.0
120
120
  type: :development
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - ~>
124
+ - - "~>"
125
125
  - !ruby/object:Gem::Version
126
126
  version: 1.7.0
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: tzinfo
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - '>='
131
+ - - ">="
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - '>='
138
+ - - ">="
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: gem-release
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - '>='
145
+ - - ">="
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  type: :development
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - '>='
152
+ - - ">="
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  description: Intercom (https://www.intercom.io) is a customer relationship management
@@ -163,25 +163,25 @@ executables: []
163
163
  extensions: []
164
164
  extra_rdoc_files: []
165
165
  files:
166
+ - README.mdown
167
+ - Rakefile
166
168
  - lib/data/cacert.pem
169
+ - lib/intercom-rails.rb
167
170
  - lib/intercom-rails/auto_include_filter.rb
168
171
  - lib/intercom-rails/config.rb
169
172
  - lib/intercom-rails/custom_data_helper.rb
170
173
  - lib/intercom-rails/date_helper.rb
171
174
  - lib/intercom-rails/exceptions.rb
175
+ - lib/intercom-rails/proxy.rb
172
176
  - lib/intercom-rails/proxy/company.rb
173
177
  - lib/intercom-rails/proxy/user.rb
174
- - lib/intercom-rails/proxy.rb
175
178
  - lib/intercom-rails/railtie.rb
176
179
  - lib/intercom-rails/script_tag.rb
177
180
  - lib/intercom-rails/script_tag_helper.rb
178
181
  - lib/intercom-rails/shutdown_helper.rb
179
182
  - lib/intercom-rails/version.rb
180
- - lib/intercom-rails.rb
181
183
  - lib/rails/generators/intercom/config/config_generator.rb
182
184
  - lib/rails/generators/intercom/config/intercom.rb.erb
183
- - Rakefile
184
- - README.mdown
185
185
  homepage: http://www.intercom.io
186
186
  licenses:
187
187
  - MIT
@@ -192,18 +192,19 @@ require_paths:
192
192
  - lib
193
193
  required_ruby_version: !ruby/object:Gem::Requirement
194
194
  requirements:
195
- - - '>='
195
+ - - ">="
196
196
  - !ruby/object:Gem::Version
197
197
  version: '0'
198
198
  required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  requirements:
200
- - - '>='
200
+ - - ">="
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0'
203
203
  requirements: []
204
204
  rubyforge_project: intercom-rails
205
- rubygems_version: 2.0.14.1
205
+ rubygems_version: 2.4.8
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: Rails helper for emitting javascript script tags for Intercom
209
209
  test_files: []
210
+ has_rdoc: