eotb 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +12 -16
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/eotb.gemspec +5 -2
- metadata +22 -6
data/README.rdoc
CHANGED
@@ -4,10 +4,14 @@ Rails plugin which allow you easily track and observe your apps.
|
|
4
4
|
|
5
5
|
== Installation
|
6
6
|
|
7
|
+
=== RubyGems
|
8
|
+
|
7
9
|
Install gem in traditional way
|
8
10
|
|
9
11
|
$ gem install eotb
|
10
12
|
|
13
|
+
=== GitHub
|
14
|
+
|
11
15
|
Install gem from GitHub repository
|
12
16
|
|
13
17
|
$ git clone git://github.com/Quirke/eotb_rails_plugin.git
|
@@ -15,6 +19,8 @@ Install gem from GitHub repository
|
|
15
19
|
$ rake build
|
16
20
|
$ gem install ./pkg/eotb-0.2.0.gem
|
17
21
|
|
22
|
+
=== Bundler
|
23
|
+
|
18
24
|
Add this line to Gemfile in your rails application
|
19
25
|
|
20
26
|
gem 'eotb'
|
@@ -23,7 +29,7 @@ And run
|
|
23
29
|
|
24
30
|
$ bundle install
|
25
31
|
|
26
|
-
|
32
|
+
== Getting API Key
|
27
33
|
|
28
34
|
Create new account on Eotb website and add new application by clicking "Applications » Add application".
|
29
35
|
As a result you will get API Key of your application.
|
@@ -45,29 +51,19 @@ Register actor and his action
|
|
45
51
|
|
46
52
|
Eotb.register_event("user", "registered")
|
47
53
|
|
48
|
-
Register subject of event (<b>it must be a Hash!</b>)
|
54
|
+
Register subject of event (<b>it must be a Hash or JSON string!</b>)
|
49
55
|
|
50
56
|
Eotb.register_event("user", "registered", {:username => "John", :when => "today"})
|
57
|
+
Eotb.register_event("user", "registered", '{"username":"John", "when":"today"}')
|
51
58
|
|
52
59
|
Use Symbols instead of Strings
|
53
60
|
|
54
61
|
Eotb.register_event(:admin, :deleted, {:what => "News", :category => "Ruby"})
|
55
62
|
|
56
|
-
You can register any type of objects (for example Arrays)
|
57
|
-
|
58
|
-
Eotb.register_event(["User", "Admin"].to_actor, :connected, {:values => [28, 3]}.to_subject)
|
59
|
-
|
60
|
-
Eotb.register_event(Object.new.to_actor, :fed, {:pet => Dog.new}.to_subject)
|
61
|
-
|
62
|
-
Parse subject to JSON by
|
63
|
-
|
64
|
-
{:username => "John"}.to_subject.to_json
|
65
|
-
|
66
|
-
And inspect your actors and subjects
|
67
|
-
|
68
|
-
"Josh".to_actor.inspect
|
63
|
+
You can register any type of objects (for example Arrays)
|
69
64
|
|
70
|
-
{:
|
65
|
+
Eotb.register_event(["User", "Admin"], :connected, {:values => [28, 3]})
|
66
|
+
Eotb.register_event(Object.new, :fed, {:pet => Dog.new})
|
71
67
|
|
72
68
|
== Copyright
|
73
69
|
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/eotb.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{eotb}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ragnarson"]
|
12
|
-
s.date = %q{2010-07-
|
12
|
+
s.date = %q{2010-07-08}
|
13
13
|
s.description = %q{Rails plugin which allow you easily track and observe your apps}
|
14
14
|
s.email = %q{bartlomiej.kozal@ragnarson.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -46,13 +46,16 @@ Gem::Specification.new do |s|
|
|
46
46
|
|
47
47
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
48
48
|
s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
|
49
|
+
s.add_development_dependency(%q<jeweler>, [">= 1.4.0"])
|
49
50
|
s.add_runtime_dependency(%q<json>, [">= 1.4.3"])
|
50
51
|
else
|
51
52
|
s.add_dependency(%q<rspec>, [">= 1.3.0"])
|
53
|
+
s.add_dependency(%q<jeweler>, [">= 1.4.0"])
|
52
54
|
s.add_dependency(%q<json>, [">= 1.4.3"])
|
53
55
|
end
|
54
56
|
else
|
55
57
|
s.add_dependency(%q<rspec>, [">= 1.3.0"])
|
58
|
+
s.add_dependency(%q<jeweler>, [">= 1.4.0"])
|
56
59
|
s.add_dependency(%q<json>, [">= 1.4.3"])
|
57
60
|
end
|
58
61
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eotb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ragnarson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-08 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -35,9 +35,25 @@ dependencies:
|
|
35
35
|
type: :development
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
38
|
+
name: jeweler
|
39
39
|
prerelease: false
|
40
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 7
|
46
|
+
segments:
|
47
|
+
- 1
|
48
|
+
- 4
|
49
|
+
- 0
|
50
|
+
version: 1.4.0
|
51
|
+
type: :development
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: json
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
57
|
none: false
|
42
58
|
requirements:
|
43
59
|
- - ">="
|
@@ -49,7 +65,7 @@ dependencies:
|
|
49
65
|
- 3
|
50
66
|
version: 1.4.3
|
51
67
|
type: :runtime
|
52
|
-
version_requirements: *
|
68
|
+
version_requirements: *id003
|
53
69
|
description: Rails plugin which allow you easily track and observe your apps
|
54
70
|
email: bartlomiej.kozal@ragnarson.com
|
55
71
|
executables: []
|