pushbullet 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 255899012bbc30cf6fb40f2e5b1903ab0f7b4c77
4
+ data.tar.gz: cc22e8ef98746a344bf444ec4f19f79757bbfa76
5
+ SHA512:
6
+ metadata.gz: ed7723aa236d272a767a2ebd54e9f35638958fb3903f1e8ade9b69b03ab7be94003ad29ada37946a3ac1b03b546ba6cdaa4fba2ccabbe2eb1c755ccb6014ada7
7
+ data.tar.gz: 7578a25b174f1601830a5602c4f54f0a47502ca9d388872606e5627e188a0ccfcbc7c63ffeca0a4051629289d6c3541c96b562712529229818cd0bf889a1cf1e
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in pushbullet.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Pravin Vaja
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,68 @@
1
+ # Pushbullet
2
+ PushBullet's API enables developers to push to devices that have installed the PushBullet Android app. Authentication is provided by a user's API key, found in their Account Settings. By using an API key, users can allow third party software built on this API without needing to provide their Google account and password.
3
+
4
+ ## Installation
5
+
6
+ Add this line to your application's Gemfile:
7
+
8
+ gem 'pushbullet'
9
+
10
+ And then execute:
11
+
12
+ $ bundle
13
+
14
+ Or install it yourself as:
15
+
16
+ $ gem install pushbullet
17
+
18
+ #### Setup Client
19
+
20
+ copy following content and paste into config/initializers/pushbullet.rb
21
+
22
+ PUSHBULLET_API_KEY = 'YOUR_PUSHBULLET_KEY_HERE'
23
+
24
+ ## Usage
25
+
26
+ client = Pushbullet::Client.new(PUSHBULLET_API_KEY)
27
+
28
+ #### Push to own device
29
+
30
+ You can send following list:
31
+ - note
32
+ - link
33
+ - address
34
+ - list
35
+ - file
36
+
37
+
38
+ ```ruby
39
+ # get json about own device list
40
+ client.devices
41
+
42
+ client.push_note(DEVICE_ID, 'title', 'message')
43
+ client.push_file(DEVICE_ID, 'File Name', 'path/to/file')
44
+ ```
45
+
46
+ #### Push to Friend's device
47
+
48
+ You can send following list:
49
+ - note
50
+ - link
51
+ - address
52
+ - list
53
+
54
+ ```ruby
55
+ # get json about friend list of Pushbullet
56
+ client.contacts
57
+
58
+ client.push_note_to('a@b.c', 'title', 'full message')
59
+ ```
60
+ ## Contributing
61
+
62
+ 1. Fork it ( http://github.com/vajapravin/mvaayoo/fork )
63
+ 2. Create your feature branch (`git checkout -b my-pushbullet`)
64
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
65
+ 4. Push to the branch (`git push origin my-pushbullet`)
66
+ 5. Create new Pull Request
67
+
68
+ Don't hesitate to write problems [vajapravin23@gmail.com]
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,4 @@
1
+ require 'pushbullet/client'
2
+
3
+ module Pushbullet
4
+ end
@@ -0,0 +1,3 @@
1
+ module Pushbullet
2
+ VERSION = '0.0.1'
3
+ end
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'pushbullet/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "pushbullet"
8
+ spec.version = Pushbullet::VERSION
9
+ spec.authors = ["vajapravin"]
10
+ spec.email = ["vajapravin23@gmail.com"]
11
+ spec.summary = %q{PushBullet's API enables developers to push to devices that have installed the PushBullet Android app.}
12
+ spec.description = %q{PushBullet's API enables developers to push to devices that have installed the PushBullet Android app. Authentication is provided by a user's API key, found in their Account Settings. By using an API key, users can allow third party software built on this API without needing to provide their Google account and password.}
13
+ spec.homepage = "https://github.com/vajapravin/pushbullet"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.5"
22
+ spec.add_development_dependency "rake", "~> 0"
23
+ spec.add_development_dependency 'faraday', "~> 0"
24
+ spec.add_development_dependency 'mime-types', "~> 0"
25
+
26
+ end
metadata ADDED
@@ -0,0 +1,112 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pushbullet
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - vajapravin
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: faraday
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: mime-types
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: PushBullet's API enables developers to push to devices that have installed
70
+ the PushBullet Android app. Authentication is provided by a user's API key, found
71
+ in their Account Settings. By using an API key, users can allow third party software
72
+ built on this API without needing to provide their Google account and password.
73
+ email:
74
+ - vajapravin23@gmail.com
75
+ executables: []
76
+ extensions: []
77
+ extra_rdoc_files: []
78
+ files:
79
+ - .gitignore
80
+ - Gemfile
81
+ - LICENSE.txt
82
+ - README.md
83
+ - Rakefile
84
+ - lib/pushbullet.rb
85
+ - lib/pushbullet/version.rb
86
+ - pushbullet.gemspec
87
+ homepage: https://github.com/vajapravin/pushbullet
88
+ licenses:
89
+ - MIT
90
+ metadata: {}
91
+ post_install_message:
92
+ rdoc_options: []
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements: []
106
+ rubyforge_project:
107
+ rubygems_version: 2.2.2
108
+ signing_key:
109
+ specification_version: 4
110
+ summary: PushBullet's API enables developers to push to devices that have installed
111
+ the PushBullet Android app.
112
+ test_files: []