scratchpaper 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b3ed06d58a86d530c0a47cae0f527472a7c6ea36
4
+ data.tar.gz: 078c4a6a0169daa1b48db5bb6f053f5e56e97de2
5
+ SHA512:
6
+ metadata.gz: 6bb3facb38e55d8a8e7a9ad4e4e6e0cd6ac212a57d65d710170e4dcb46d9d810561f2c0becd9527ae6a0905ae9d2761b9abeea7377a1793b1127d4e1d8d5cf0c
7
+ data.tar.gz: 0be841fde66af4225da5bd813b8bbb2daf6082531b968a6f1afe5a27318257a9d39b58c50630c75ac313cc11d947e1e985a672188e7285b3ecde62a422aa2843
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1,3 @@
1
+ module ScratchPaper
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,25 @@
1
+ require "restclient"
2
+ require "json"
3
+
4
+ module ScratchPaper
5
+ module_function
6
+
7
+ def scratch_note(type, message)
8
+ RestClient.post("http://#{ENV["SCRATCHPAPER_URL"]}/#{ENV["SCRATCHPAPER_KEY"]}",
9
+ :data => [type, message].to_json)
10
+
11
+ :ok
12
+ end
13
+
14
+ def sp(data)
15
+ scratch_note("text", data)
16
+ end
17
+
18
+ def st(data)
19
+ scratch_note("table", data)
20
+ end
21
+
22
+ def sl(data)
23
+ scratch_note("list", data)
24
+ end
25
+ end
@@ -0,0 +1,21 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'scratchpaper/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "scratchpaper"
8
+ spec.version = ScratchPaper::VERSION
9
+ spec.authors = ["Gregory Brown"]
10
+ spec.email = ["gregory.t.brown@gmail.com"]
11
+ spec.summary = "Scratch paper"
12
+ spec.description = "Scratch paper"
13
+ spec.homepage = ""
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
+ spec.add_dependency "rest-client"
21
+ end
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scratchpaper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Gregory Brown
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-09-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rest-client
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Scratch paper
28
+ email:
29
+ - gregory.t.brown@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - Gemfile
35
+ - lib/scratchpaper.rb
36
+ - lib/scratchpaper/version.rb
37
+ - scratchpaper.gemspec
38
+ homepage: ''
39
+ licenses:
40
+ - MIT
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ requirements: []
57
+ rubyforge_project:
58
+ rubygems_version: 2.4.8
59
+ signing_key:
60
+ specification_version: 4
61
+ summary: Scratch paper
62
+ test_files: []
63
+ has_rdoc: