jive-tile 0.0.8 → 0.0.9

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: a8209f623b40e109f3874a53e58a503442e2685d
4
- data.tar.gz: 435667c040a6b8d447a7da9a790ce79cc8071e2b
3
+ metadata.gz: a3f6ba6cb7882f610c529aba5097f9123d6e9bd6
4
+ data.tar.gz: 1e6800dc4b5284d4d5e893516df9997cb6dc3c78
5
5
  SHA512:
6
- metadata.gz: a4151cc1c0fbfac04cd24faaf782b3a1d851b053ac37a7a466791f6d51fbb3c1d776ed5193a98805fda0f5b424f5b5062c803b0721a648fae40df2de4ceac4c3
7
- data.tar.gz: 07c994110178561a815eba80fe4d6e8ab66fb57e30496d5231db8bb1782beb0d2807026739828efbe5794ad91cca2b351efc11f9e9dbe68efc954f5122e4214e
6
+ metadata.gz: 7e60e9ebe85ea6536d0c96081a6223bfda95a16308160c49a46c62eb43360e4ee44070434d8a3f3b14a15a2022648fb7495d92bad619acf50bdf0d0f03c190f5
7
+ data.tar.gz: 0a6053695fe77be7d1d20a9bba88cb3237f9be42c3c8896c49fa5b7a64e8fbb5aebddec4706e0bb840eb0497cf6c287f68012b96c77aedc8f14a758376bae15b
data/Gemfile CHANGED
@@ -1,6 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in jive-tile.gemspec
4
- gemspec
5
-
6
- gem "jive-oauth_token", :path => "../ruby-jive-oauth_token"
4
+ gemspec
data/README.md CHANGED
@@ -1,16 +1,16 @@
1
- [![Gem Version](https://badge.fury.io/rb/jive-tile.svg)](http://badge.fury.io/rb/jive-tile)
2
- [![Build Status](https://travis-ci.org/butchmarshall/ruby-jive-tile.svg?branch=master)](https://travis-ci.org/butchmarshall/ruby-jive-tile)
1
+ [![Gem Version](https://badge.fury.io/rb/jive-webhook.svg)](http://badge.fury.io/rb/jive-webhook)
2
+ [![Build Status](https://travis-ci.org/butchmarshall/ruby-jive-webhook.svg?branch=master)](https://travis-ci.org/butchmarshall/ruby-jive-webhook)
3
3
 
4
- # Jive::Tile
4
+ # Jive::Webhook
5
5
 
6
- An implemention of Jives Tiles using ActiveRecord.
6
+ An implemention of Jives Webhook functionality using ActiveRecord.
7
7
 
8
8
  ## Installation
9
9
 
10
10
  Add this line to your application's Gemfile:
11
11
 
12
12
  ```ruby
13
- gem 'jive-tile'
13
+ gem 'jive-webhook'
14
14
  ```
15
15
 
16
16
  And then execute:
@@ -19,7 +19,7 @@ And then execute:
19
19
 
20
20
  Or install it yourself as:
21
21
 
22
- $ gem install jive-tile
22
+ $ gem install jive-webhook
23
23
 
24
24
  then run
25
25
 
@@ -33,12 +33,12 @@ rails generate jive:tile:active_record
33
33
  To the ActiveRecord model:
34
34
 
35
35
  ```ruby
36
- Jive::Tile.new(...)
36
+ Jive::Webhook.new(...)
37
37
  ```
38
38
 
39
39
  ## Contributing
40
40
 
41
- Bug reports and pull requests are welcome on GitHub at https://github.com/butchmarshall/ruby-jive-tile.
41
+ Bug reports and pull requests are welcome on GitHub at https://github.com/butchmarshall/ruby-jive-webhook.
42
42
 
43
43
 
44
44
  ## License
data/jive-tile.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  # Tiles require association with an AddOn
24
24
  spec.add_dependency "jive-add_on", ">= 0.0.2"
25
- spec.add_dependency "jive-oauth_token", ">= 0.0.3"
25
+ spec.add_dependency "jive-oauth_token", ">= 0.0.4"
26
26
 
27
27
  if RUBY_PLATFORM == 'java'
28
28
  spec.add_development_dependency "jdbc-sqlite3", "> 0"
@@ -34,8 +34,9 @@ module Jive
34
34
  json_body = JSON.parse(response.body)
35
35
 
36
36
  # Create
37
- Jive::OauthToken.create(
37
+ oauth_token = Jive::OauthToken.create(
38
38
  :owner => self,
39
+ :add_on => self.add_on,
39
40
  :scope => json_body["scope"],
40
41
  :token_type => json_body["token_type"],
41
42
  :expires_in => json_body["expires_in"],
@@ -2,6 +2,6 @@ require "active_record"
2
2
 
3
3
  module Jive
4
4
  class Tile < ActiveRecord::Base
5
- VERSION = "0.0.8"
5
+ VERSION = "0.0.9"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jive-tile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Butch Marshall
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-13 00:00:00.000000000 Z
11
+ date: 2016-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 0.0.3
53
+ version: 0.0.4
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 0.0.3
60
+ version: 0.0.4
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: sqlite3
63
63
  requirement: !ruby/object:Gem::Requirement