intercom-app 0.2.3 → 0.2.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: 0496b048bf8d6daed8befdc4763496dfa872cce6
4
- data.tar.gz: cf98f459fc26ce33f0232d4db0d0318e0a55fb34
3
+ metadata.gz: 8b468b4333930ad7c0c2028de78ab6d159ca6c4f
4
+ data.tar.gz: 9c446200ab698c390a772c42819f7d5537d926a0
5
5
  SHA512:
6
- metadata.gz: bef4814836826d09a46e9768397c1905097d559607603e1b455c3ed17c2b40a0eb79f6133c23ceaade7b32d55f022c4b90da1397f32443b18ed2b8d9f75d4640
7
- data.tar.gz: 6345b26c25ae71baa25f61fd60bd3b36b7890a16ee000b01b55725aa9933e422ccaa9f5819c56a0d7690fa86a98c43e521f2dcd8182c22f729e9407376922f66
6
+ metadata.gz: f4deb87d560ba5196d8e7acb2dfdd53ec5b51c597b98ac6c02e9701fae8c2dfb24595aa8634cba51da533fa4e5dbec0d7e3a7894c88dc93bbbbca6141e5256e6
7
+ data.tar.gz: 67011cd585aa337a850e41c5ca537e4c761d10c7437956814663ac2cf44a48b4792c76e11c75f6e82556651c6f9c84112a4670c02ef91fe67e0a225fbf3d3b61
data/.gitignore CHANGED
@@ -3,3 +3,4 @@ test/intercom_ruby_app_example/log
3
3
  test/generators/tmp
4
4
  test/tmp
5
5
  todolist.md
6
+ Gemfile.lock
data/CHANGELOG.md CHANGED
@@ -35,3 +35,7 @@ Features:
35
35
 
36
36
  * Add core style from intercom
37
37
  * Redesign login page (@Skaelv)
38
+
39
+ ## 0.2.4 (2016-10-19)
40
+
41
+ * Add name, email by default to App model (@Skaelv)
data/README.md CHANGED
@@ -11,7 +11,7 @@ This gem includes a Rails Engine and generators for writing Rails applications u
11
11
 
12
12
  Apply to become an Intercom Developer
13
13
  --------------------------------
14
- To create an Intercom application and get your `client_id` and `client_secret` you will need to create an [Intercom account](https://app.intercom.io) first.
14
+ To create an Intercom application and get your `client_id` and `client_secret` you will need to create an [Intercom account](https://app.intercom.io) first. For the Redirect URL ensure that you add `/auth/intercom/callback` to your URL (e.g. `https://<YOUR_URL>:3000/auth/intercom/callback`).
15
15
  Once your application is created you can apply for an OAuth application in the "App Settings >> OAuth" section.
16
16
  Make sure you request read admin permission to use [omniauth-intercom](http://github.com/intercom/omniauth-intercom).
17
17
  Installation
@@ -24,7 +24,7 @@ $ rails new my_intercom_app
24
24
  $ cd my_intercom_app
25
25
  ```
26
26
  Then add `intercom-app` to your Gemfile and bundle install :
27
- `gem 'intercom-app', '>= 0.2.1'`
27
+ `gem 'intercom-app', '>= 0.2.4'`
28
28
  and run :
29
29
  ``` sh
30
30
  $ bundle install
@@ -38,7 +38,7 @@ Generators
38
38
 
39
39
  ### Default Generator
40
40
 
41
- The default generator will run the `install`, `app_model`, and `home_controller` generators.
41
+ The default generator will run the `install`, `app_model`, and `home_controller` generators.
42
42
  ** This is the recommended way to start your app. **
43
43
 
44
44
  ```sh
@@ -50,17 +50,19 @@ $ rails generate intercom_app --app_key <intercom_client_id> --app_secret <inter
50
50
 
51
51
  You can now run :
52
52
 
53
- At this point you've finished the setup.
53
+ At this point you've finished the setup.
54
54
  You can run:
55
55
 
56
56
  ```sh
57
57
  rake db:migrate
58
58
  rails s
59
59
  ```
60
- If you visit `localhost:3000` you'll be able to complete the OAuth flow and receive an authentication token.
60
+ If you visit `http://<YOUR_URL>:3000` you'll be able to complete the OAuth flow and receive an authentication token.
61
61
 
62
62
  You can make calls to Intercom APIs using `@intercom_client` in all controllers that inherits from `IntercomApp::AuthenticatedController`. This `@intercom_client` variable is instantiated with the token associated to the current session.
63
63
 
64
+ [See intercom-ruby](https://github.com/intercom/intercom-ruby) for more informations about how to use the ruby client to call Intercom API.
65
+
64
66
 
65
67
  ![](https://github.com/intercom/intercom-ruby-app/raw/master/screenshot.png?raw=true)
66
68
 
data/RELEASING CHANGED
@@ -1,16 +1,19 @@
1
1
  To release a new version of the intercom-ruby-app gem :
2
- 1. git checkout master
3
- 2. git pull origin master
2
+ 1. Checkout from master branch
3
+ $ git checkout master
4
+ 2. Pull from origin master branch
5
+ $ git pull origin master
4
6
  3. Update the version number in `intercom-ruby-app/lib/intercom-ruby-app.rb`
5
- 4. Add a CHANGELOG entry
6
- 5. Commit to master with an explicit message : "Bump to vX.Y.Z"
7
- 6. Tag the new release :
7
+ 4. Update the version number in `Readme.rb`
8
+ 5. Add a CHANGELOG entry
9
+ 6. Commit to master with an explicit message : "Bump to vX.Y.Z"
10
+ 7. Tag the new release :
8
11
  $ git tag -a vx.y.z -m 'Tag message'
9
- 7. Push the new release :
12
+ 8. Push the new release :
10
13
  $ git push origin master
11
- 8. Push the new tag :
14
+ 9. Push the new tag :
12
15
  $ git push --tags
13
- 9. Build the new gem :
16
+ 10. Build the new gem :
14
17
  $ gem build intercom-app.gemspec
15
- 10. Push the new gem :
18
+ 11. Push the new gem :
16
19
  $ gem push intercom-app-X.Y.Z.gem
@@ -3,6 +3,8 @@ class CreateApps < ActiveRecord::Migration
3
3
  create_table :apps do |t|
4
4
  t.string :intercom_app_id, null: false
5
5
  t.string :intercom_token, null: false
6
+ t.string :name, null: false
7
+ t.string :email, null: false
6
8
  t.timestamps
7
9
  end
8
10
 
@@ -1,3 +1,3 @@
1
1
  module IntercomApp
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intercom-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Antoine
@@ -134,7 +134,6 @@ files:
134
134
  - ".travis.yml"
135
135
  - CHANGELOG.md
136
136
  - Gemfile
137
- - Gemfile.lock
138
137
  - LICENSE
139
138
  - README.md
140
139
  - RELEASING
@@ -200,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
199
  version: '0'
201
200
  requirements: []
202
201
  rubyforge_project:
203
- rubygems_version: 2.4.8
202
+ rubygems_version: 2.6.1
204
203
  signing_key:
205
204
  specification_version: 4
206
205
  summary: Intercom.io ruby application boilerplate
data/Gemfile.lock DELETED
@@ -1,148 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- intercom-app (0.2.2)
5
- intercom (~> 3.5)
6
- omniauth-intercom (~> 0.1)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionmailer (4.2.6)
12
- actionpack (= 4.2.6)
13
- actionview (= 4.2.6)
14
- activejob (= 4.2.6)
15
- mail (~> 2.5, >= 2.5.4)
16
- rails-dom-testing (~> 1.0, >= 1.0.5)
17
- actionpack (4.2.6)
18
- actionview (= 4.2.6)
19
- activesupport (= 4.2.6)
20
- rack (~> 1.6)
21
- rack-test (~> 0.6.2)
22
- rails-dom-testing (~> 1.0, >= 1.0.5)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
- actionview (4.2.6)
25
- activesupport (= 4.2.6)
26
- builder (~> 3.1)
27
- erubis (~> 2.7.0)
28
- rails-dom-testing (~> 1.0, >= 1.0.5)
29
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
- activejob (4.2.6)
31
- activesupport (= 4.2.6)
32
- globalid (>= 0.3.0)
33
- activemodel (4.2.6)
34
- activesupport (= 4.2.6)
35
- builder (~> 3.1)
36
- activerecord (4.2.6)
37
- activemodel (= 4.2.6)
38
- activesupport (= 4.2.6)
39
- arel (~> 6.0)
40
- activesupport (4.2.6)
41
- i18n (~> 0.7)
42
- json (~> 1.7, >= 1.7.7)
43
- minitest (~> 5.1)
44
- thread_safe (~> 0.3, >= 0.3.4)
45
- tzinfo (~> 1.1)
46
- arel (6.0.3)
47
- builder (3.2.2)
48
- byebug (9.0.5)
49
- concurrent-ruby (1.0.2)
50
- erubis (2.7.0)
51
- faraday (0.9.2)
52
- multipart-post (>= 1.2, < 3)
53
- globalid (0.3.6)
54
- activesupport (>= 4.1.0)
55
- hashie (3.4.6)
56
- i18n (0.7.0)
57
- intercom (3.5.5)
58
- json (~> 1.8)
59
- json (1.8.3)
60
- jwt (1.5.6)
61
- loofah (2.0.3)
62
- nokogiri (>= 1.5.9)
63
- mail (2.6.4)
64
- mime-types (>= 1.16, < 4)
65
- metaclass (0.0.4)
66
- mime-types (3.1)
67
- mime-types-data (~> 3.2015)
68
- mime-types-data (3.2016.0521)
69
- mini_portile2 (2.1.0)
70
- minitest (5.9.0)
71
- mocha (1.1.0)
72
- metaclass (~> 0.0.1)
73
- multi_json (1.12.1)
74
- multi_xml (0.5.5)
75
- multipart-post (2.0.0)
76
- nokogiri (1.6.8)
77
- mini_portile2 (~> 2.1.0)
78
- pkg-config (~> 1.1.7)
79
- oauth2 (1.2.0)
80
- faraday (>= 0.8, < 0.10)
81
- jwt (~> 1.0)
82
- multi_json (~> 1.3)
83
- multi_xml (~> 0.5)
84
- rack (>= 1.2, < 3)
85
- omniauth (1.3.1)
86
- hashie (>= 1.2, < 4)
87
- rack (>= 1.0, < 3)
88
- omniauth-intercom (0.1.3)
89
- omniauth-oauth2 (~> 1.2)
90
- omniauth-oauth2 (1.4.0)
91
- oauth2 (~> 1.0)
92
- omniauth (~> 1.2)
93
- pkg-config (1.1.7)
94
- rack (1.6.4)
95
- rack-test (0.6.3)
96
- rack (>= 1.0)
97
- rails (4.2.6)
98
- actionmailer (= 4.2.6)
99
- actionpack (= 4.2.6)
100
- actionview (= 4.2.6)
101
- activejob (= 4.2.6)
102
- activemodel (= 4.2.6)
103
- activerecord (= 4.2.6)
104
- activesupport (= 4.2.6)
105
- bundler (>= 1.3.0, < 2.0)
106
- railties (= 4.2.6)
107
- sprockets-rails
108
- rails-deprecated_sanitizer (1.0.3)
109
- activesupport (>= 4.2.0.alpha)
110
- rails-dom-testing (1.0.7)
111
- activesupport (>= 4.2.0.beta, < 5.0)
112
- nokogiri (~> 1.6.0)
113
- rails-deprecated_sanitizer (>= 1.0.1)
114
- rails-html-sanitizer (1.0.3)
115
- loofah (~> 2.0)
116
- railties (4.2.6)
117
- actionpack (= 4.2.6)
118
- activesupport (= 4.2.6)
119
- rake (>= 0.8.7)
120
- thor (>= 0.18.1, < 2.0)
121
- rake (10.5.0)
122
- sprockets (3.6.3)
123
- concurrent-ruby (~> 1.0)
124
- rack (> 1, < 3)
125
- sprockets-rails (3.1.1)
126
- actionpack (>= 4.0)
127
- activesupport (>= 4.0)
128
- sprockets (>= 3.0.0)
129
- sqlite3 (1.3.11)
130
- thor (0.19.1)
131
- thread_safe (0.3.5)
132
- tzinfo (1.2.2)
133
- thread_safe (~> 0.1)
134
-
135
- PLATFORMS
136
- ruby
137
-
138
- DEPENDENCIES
139
- bundler (~> 1.12)
140
- byebug (~> 9.0)
141
- intercom-app!
142
- mocha (~> 1.1)
143
- rails (~> 4.2)
144
- rake (~> 10.0)
145
- sqlite3 (~> 1.3)
146
-
147
- BUNDLED WITH
148
- 1.12.5