pippipp 1.0.0

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: 3f1280302af611e8e7fc671badb99f3b4fc1e69b
4
+ data.tar.gz: 1dfe3082ee41f3d939ec2d0259007c4e8099f13e
5
+ SHA512:
6
+ metadata.gz: 299fb06bb6b54300fd0864c0c50c42d2dd4ca0c18e004e73828d422f2091c81b5f788ede8218f0780a2e2d7c7bc6c4c471ab980e8f5f23ae9ef2c07f1ba719da
7
+ data.tar.gz: 89d270b672556d0db254d7f3834f15dc9c03fb1a18bf22c3f46c110133e353e5f918c71921c9d470d5ccd15aa9638b45a6b4102474cf585d720303b7b24d5841
data/.gems ADDED
@@ -0,0 +1,2 @@
1
+ requests -v 0.0.6
2
+ cutest -v 1.2.1
data/README.md ADDED
File without changes
data/lib/pippipp.rb ADDED
@@ -0,0 +1,12 @@
1
+ require 'requests'
2
+
3
+ class Pippipp
4
+ def initialize(url)
5
+ @url = url
6
+ end
7
+
8
+ def status(message)
9
+ Requests.request("POST", @url,
10
+ data: { message: message })
11
+ end
12
+ end
data/pippipp.gemspec ADDED
@@ -0,0 +1,15 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "pippipp"
3
+ s.version = "1.0.0"
4
+ s.summary = "Gem for Pippipp"
5
+ s.description = s.summary
6
+ s.authors = ["Mayn Kjær", "Michel Martens", "Cecilia Rivero", "Francesco Rodríguez"]
7
+ s.email = ["mayn.kjaer@gmail.com", "michel@soveran.com", "contact@ceciliarivero.com", "frodsan@me.com"]
8
+ s.homepage = "https://pippipp.com"
9
+ s.license = "MIT"
10
+
11
+ s.files = `git ls-files`.split("\n")
12
+
13
+ s.add_dependency "requests"
14
+ s.add_development_dependency "cutest"
15
+ end
data/test/pippipp.rb ADDED
@@ -0,0 +1,12 @@
1
+ require "requests"
2
+ require_relative "../lib/pippipp"
3
+
4
+ scope do
5
+ test "Post new tweet" do
6
+ pipp = Pippipp.new("http://localhost:9393")
7
+
8
+ response = pipp.status("This is a status update")
9
+
10
+ assert_equal 200, response.status
11
+ end
12
+ end
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pippipp
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Mayn Kjær
8
+ - Michel Martens
9
+ - Cecilia Rivero
10
+ - Francesco Rodríguez
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+ date: 2014-07-06 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: requests
18
+ requirement: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: cutest
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ description: Gem for Pippipp
45
+ email:
46
+ - mayn.kjaer@gmail.com
47
+ - michel@soveran.com
48
+ - contact@ceciliarivero.com
49
+ - frodsan@me.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - ".gems"
55
+ - README.md
56
+ - lib/pippipp.rb
57
+ - pippipp.gemspec
58
+ - test/pippipp.rb
59
+ homepage: https://pippipp.com
60
+ licenses:
61
+ - MIT
62
+ metadata: {}
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubyforge_project:
79
+ rubygems_version: 2.3.0
80
+ signing_key:
81
+ specification_version: 4
82
+ summary: Gem for Pippipp
83
+ test_files: []