lessneglect 0.3.1 → 0.3.2
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.
- data/LICENSE.txt +1 -1
- data/VERSION +1 -1
- data/lessneglect.gemspec +2 -2
- data/lib/lessneglect.rb +2 -3
- data/readme.md +4 -7
- metadata +2 -2
data/LICENSE.txt
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.2
|
data/lessneglect.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "lessneglect"
|
|
8
|
-
s.version = "0.3.
|
|
8
|
+
s.version = "0.3.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Christopher Gooley"]
|
|
12
|
-
s.date = "2012-09-
|
|
12
|
+
s.date = "2012-09-10"
|
|
13
13
|
s.description = "API library to allow you to connect and submit messages and actions to your LessNeglect project account"
|
|
14
14
|
s.email = "gooley@lessneglect.com"
|
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/lessneglect.rb
CHANGED
|
@@ -7,19 +7,18 @@ require 'lessneglect/objects/event'
|
|
|
7
7
|
require 'lessneglect/objects/action_event'
|
|
8
8
|
require 'lessneglect/objects/message'
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
class LessNeglectApi
|
|
12
11
|
|
|
13
12
|
class Client
|
|
14
13
|
|
|
15
14
|
def initialize(opts = {})
|
|
16
|
-
@base_url = "
|
|
15
|
+
@base_url = "https://lessneglect.com/api/v2"
|
|
17
16
|
|
|
18
17
|
@project_code = opts[:code]
|
|
19
18
|
@project_secret = opts[:secret]
|
|
20
19
|
|
|
21
20
|
unless @project_code && @project_secret
|
|
22
|
-
raise StandardError.new "Must specify
|
|
21
|
+
raise StandardError.new "Must specify project code and secret when initalizing the ApiClient"
|
|
23
22
|
end
|
|
24
23
|
end
|
|
25
24
|
|
data/readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
LessNeglect
|
|
1
|
+
LessNeglect Ruby Client
|
|
2
2
|
===
|
|
3
|
-
Allow your
|
|
3
|
+
Allow your Ruby app to easily submit server-side messages and events to LessNeglect.
|
|
4
4
|
|
|
5
5
|
Installation
|
|
6
6
|
---
|
|
@@ -106,10 +106,7 @@ end
|
|
|
106
106
|
Helper Usage
|
|
107
107
|
--
|
|
108
108
|
```ruby
|
|
109
|
-
Neglect.log_event(
|
|
109
|
+
Neglect.log_event(@current_user, "uploaded-media")
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
Copyright (c) 2011-2012 Christopher Gooley. See LICENSE.txt for further details.
|
|
115
|
-
|
|
112
|
+
Copyright (c) 2011-2012 Christopher Gooley, Less Neglect. See LICENSE.txt for further details.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lessneglect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-09-
|
|
12
|
+
date: 2012-09-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rest-client
|